This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
-mstrict-align default on PPC VxWorks
- To: gcc-patches at gcc dot gnu dot org
- Subject: -mstrict-align default on PPC VxWorks
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Sun, 19 Dec 99 08:00:06 EST
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