This is the mail archive of the gcc-patches@gcc.gnu.org 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]

-mstrict-align default on PPC VxWorks


VxWorks on PPC apparently doesn't have the unaligned handler, so strict
alignment should be the default on that target.

Sun Dec 19 07:50:42 1999  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* rs6000.h (SUBTARGET_DEFAULT): New macro.
	(TARGET_SWITCHES): Allow subtargets to default switches.
	* rs6000/vxppc.h (SUBTARGET_DEFAULT): New macro.

*** config/rs6000/rs6000.h.old	Fri Dec 17 16:08:11 1999
--- config/rs6000/rs6000.h	Sun Dec 19 06:55:04 1999
***************
*** 390,396 ****
    {"longcall",		MASK_LONGCALL},					\
    SUBTARGET_SWITCHES							\
!   {"",			TARGET_DEFAULT}}
  
  #define TARGET_DEFAULT (MASK_POWER | MASK_MULTIPLE | MASK_STRING)
  
  /* Processor type.  */
--- 390,397 ----
    {"longcall",		MASK_LONGCALL},					\
    SUBTARGET_SWITCHES							\
!   {"",			TARGET_DEFAULT | SUBTARGET_DEFAULT}}
  
  #define TARGET_DEFAULT (MASK_POWER | MASK_MULTIPLE | MASK_STRING)
+ #define SUBTARGET_DEFAULT 0
  
  /* Processor type.  */
*** config/rs6000/vxppc.h.old	Mon Feb  9 08:13:12 1998
--- config/rs6000/vxppc.h	Sun Dec 19 06:55:55 1999
***************
*** 62,63 ****
--- 62,68 ----
  #undef PREFERRED_DEBUGGING_TYPE
  #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
+ 
+ /* VxWorks normally doesn't have an unaligned handler, so make -mstrict-align
+    the default.  */
+ #undef SUBTARGET_DEFAULT
+ #define SUBTARGET_DEFAULT MASK_STRICT_ALIGN


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