This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix --with-cpu=iwmmxt
- From: Nick Clifton <nickc at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 03 Sep 2003 11:54:58 +0100
- Subject: Fix --with-cpu=iwmmxt
Hi Guys,
Configuring an arm target using the --with-cpu=iwmmxt switch was
broken, so I am applying the patch below to fix it.
Cheers
Nick
2003-09-03 Nick Clifton <nickc@redhat.com>
* config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
Use #error to generate the message if TARGET_DEFAULT is not
recognised.
Index: config/arm/arm.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/arm.h,v
retrieving revision 1.202
diff -c -3 -p -r1.202 arm.h
*** config/arm/arm.h 1 Jul 2003 23:26:43 -0000 1.202
--- config/arm/arm.h 3 Sep 2003 11:02:33 -0000
*************** extern GTY(()) rtx aof_pic_label;
*** 173,180 ****
#undef TARGET_DEFAULT
#define TARGET_DEFAULT (ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME)
#endif /* TARGET_CPU_DEFAULT */
#else
! Unrecognized value in TARGET_CPU_DEFAULT.
#endif
#endif
#endif
--- 173,183 ----
#undef TARGET_DEFAULT
#define TARGET_DEFAULT (ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME)
#endif /* TARGET_CPU_DEFAULT */
+ #if TARGET_CPU_DEFAULT == TARGET_CPU_iwmmxt
+ #define CPP_ARCH_DEFAULT_SPEC "-D__ARM_ARCH_5TE__ -D__XSCALE__ -D__IWMMXT__"
#else
! #error Unrecognized value in TARGET_CPU_DEFAULT.
! #endif
#endif
#endif
#endif