This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[arm] Preprocessor define for EABI.
- From: Paul Brook <paul at codesourcery dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>,Richard Earnshaw <rearnsha at arm dot com>
- Date: Fri, 25 Jun 2004 14:06:23 +0100
- Subject: [arm] Preprocessor define for EABI.
- Organization: CodeSourcery
The patch below adds a preprocessor builtin_define to arm eabi based targets.
This is primarily to control the eabi tweaks in libstdc++.
Do other arm compilers have a similar define? If so we should probably use the
same name.
Ok?
Paul
2004-06-25 Paul Brook <paul@codesourcery.com>
* config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_EABI__.
Index: arm.h
===================================================================
RCS file: /var/cvsroot/gcc-cvs/gcc/gcc/config/arm/arm.h,v
retrieving revision 1.239
diff -u -p -r1.239 arm.h
--- arm.h 23 Jun 2004 10:39:50 -0000 1.239
+++ arm.h 25 Jun 2004 12:29:27 -0000
@@ -76,6 +76,8 @@ extern char arm_arch_name[];
builtin_define ("__XSCALE__"); \
if (arm_arch_iwmmxt) \
builtin_define ("__IWMMXT__"); \
+ if (TARGET_AAPCS_BASED) \
+ builtin_define ("__ARM_EABI__"); \
} while (0)
/* The various ARM cores. */