OSDN Git Service

* config/h8300/h8300.c (h8300_init_once): Default to
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Jul 2010 19:43:30 +0000 (19:43 +0000)
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Jul 2010 19:43:30 +0000 (19:43 +0000)
-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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162149 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/h8300/h8300.c
gcc/config/m32c/m32c.c
gcc/config/rx/rx.c
gcc/config/sh/sh.c

index 335eb21..0ce8cad 100644 (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.
index 546a6ae..bba5e79 100644 (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.
index 3b32a7a..7ffd146 100644 (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 */
index f58960e..c81ef4c 100644 (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;
+}
+
 \f
 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" */
index 4f5b59c..2055a5b 100644 (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;
 }
 \f
 /* Print the operand address in x to the stream.  */