This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] make -fstrict-volatile-bitfields the default for m32c, rx, sh, h8

Like this?

Index: rx.c
--- rx.c	(revision 162014)
+++ rx.c	(working copy)
@@ -2187,12 +2187,20 @@ rx_set_optimization_options (void)
       if (saved_allow_rx_fpu != ALLOW_RX_FPU_INSNS)
 	error ("Changing the FPU insns/math optimizations pairing is not supported");
+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)
   /* Naked functions should not allocate stack slots for arguments.  */
   return ! is_naked_func (NULL_TREE);
@@ -2775,9 +2783,12 @@ rx_memory_move_cost (enum machine_mode m
 #define TARGET_CC_MODES_COMPATIBLE		rx_cc_modes_compatible
 #define TARGET_MEMORY_MOVE_COST			rx_memory_move_cost
+#define TARGET_OPTION_OVERRIDE			rx_option_override
 struct gcc_target targetm = TARGET_INITIALIZER;
 /* #include "gt-rx.h" */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]