h8300.c (h8300_init_once): Default to -fstrict_volatile_bitfields.

* config/h8300/h8300.c (h8300_init_once): Default to
-fstrict_volatile_bitfields.

* config/sh/sh.c (sh_override_options): Default to
-fstrict_volatile_bitfields.

* config/rx/rx.c (rx_option_override): New.

* config/m32c/m32c.c (m32c_override_options): Default to
-fstrict_volatile_bitfields.

From-SVN: r162149
This commit is contained in:
DJ Delorie 2010-07-13 15:43:30 -04:00 committed by DJ Delorie
parent 3bb06db415
commit 0685e770ac
5 changed files with 36 additions and 0 deletions

View File

@ -1,3 +1,16 @@
2010-07-13 DJ Delorie <dj@redhat.com>
* config/h8300/h8300.c (h8300_init_once): Default to
-fstrict_volatile_bitfields.
* config/sh/sh.c (sh_override_options): Default to
-fstrict_volatile_bitfields.
* config/rx/rx.c (rx_option_override): New.
* config/m32c/m32c.c (m32c_override_options): Default to
-fstrict_volatile_bitfields.
2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
* tree.h (build_function_call_expr): Delete.

View File

@ -403,6 +403,10 @@ h8300_init_once (void)
restore er6 though, so bump up the cost. */
h8300_move_ratio = 6;
}
/* This target defaults to strict volatile bitfields. */
if (flag_strict_volatile_bitfields < 0)
flag_strict_volatile_bitfields = 1;
}
/* Implement REG_CLASS_FROM_LETTER.

View File

@ -431,6 +431,10 @@ m32c_override_options (void)
if (TARGET_A24)
flag_ivopts = 0;
/* This target defaults to strict volatile bitfields. */
if (flag_strict_volatile_bitfields < 0)
flag_strict_volatile_bitfields = 1;
}
/* Defining data structures for per-function information */

View File

@ -2190,6 +2190,14 @@ rx_set_optimization_options (void)
}
}
static void
rx_option_override (void)
{
/* This target defaults to strict volatile bitfields. */
if (flag_strict_volatile_bitfields < 0)
flag_strict_volatile_bitfields = 1;
}
static bool
rx_allocate_stack_slots_for_args (void)
@ -2778,6 +2786,9 @@ rx_memory_move_cost (enum machine_mode mode, enum reg_class regclass, bool in)
#undef TARGET_MEMORY_MOVE_COST
#define TARGET_MEMORY_MOVE_COST rx_memory_move_cost
#undef TARGET_OPTION_OVERRIDE
#define TARGET_OPTION_OVERRIDE rx_option_override
struct gcc_target targetm = TARGET_INITIALIZER;
/* #include "gt-rx.h" */

View File

@ -973,6 +973,10 @@ sh_override_options (void)
if (sh_fixed_range_str)
sh_fix_range (sh_fixed_range_str);
/* This target defaults to strict volatile bitfields. */
if (flag_strict_volatile_bitfields < 0)
flag_strict_volatile_bitfields = 1;
}
/* Print the operand address in x to the stream. */