Commit 0685e770 by DJ Delorie Committed by DJ Delorie

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
parent 3bb06db4
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> 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
* tree.h (build_function_call_expr): Delete. * tree.h (build_function_call_expr): Delete.
......
...@@ -403,6 +403,10 @@ h8300_init_once (void) ...@@ -403,6 +403,10 @@ h8300_init_once (void)
restore er6 though, so bump up the cost. */ restore er6 though, so bump up the cost. */
h8300_move_ratio = 6; 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. /* Implement REG_CLASS_FROM_LETTER.
......
...@@ -431,6 +431,10 @@ m32c_override_options (void) ...@@ -431,6 +431,10 @@ m32c_override_options (void)
if (TARGET_A24) if (TARGET_A24)
flag_ivopts = 0; 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 */ /* Defining data structures for per-function information */
......
...@@ -2190,6 +2190,14 @@ rx_set_optimization_options (void) ...@@ -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 static bool
rx_allocate_stack_slots_for_args (void) 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) ...@@ -2778,6 +2786,9 @@ rx_memory_move_cost (enum machine_mode mode, enum reg_class regclass, bool in)
#undef TARGET_MEMORY_MOVE_COST #undef TARGET_MEMORY_MOVE_COST
#define TARGET_MEMORY_MOVE_COST rx_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; struct gcc_target targetm = TARGET_INITIALIZER;
/* #include "gt-rx.h" */ /* #include "gt-rx.h" */
...@@ -973,6 +973,10 @@ sh_override_options (void) ...@@ -973,6 +973,10 @@ sh_override_options (void)
if (sh_fixed_range_str) if (sh_fixed_range_str)
sh_fix_range (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. */ /* Print the operand address in x to the stream. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment