[arm] Preprocessor define for EABI.

Paul Brook paul@codesourcery.com
Fri Jun 25 15:30:00 GMT 2004


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.  */



More information about the Gcc-patches mailing list