This is the mail archive of the 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]
Other format: [Raw text]

Add Xtensa predefined macro to specify the ABI

I've committed this patch on mainline to specify the Xtensa ABI. Tensilica is developing a separate ABI that doesn't use register windows, but GCC doesn't yet support it. The macro indicates that GCC is using the original "windowed" ABI.

2004-11-25 Bob Wilson <>

        * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define

Index: xtensa.h
RCS file: /cvs/gcc/gcc/gcc/config/xtensa/xtensa.h,v
retrieving revision 1.58
diff -u -r1.58 xtensa.h
--- xtensa.h	13 Jul 2004 07:45:09 -0000	1.58
+++ xtensa.h	26 Nov 2004 03:36:18 -0000
@@ -108,6 +108,7 @@
     builtin_assert ("machine=xtensa");					\
     builtin_define ("__xtensa__");					\
     builtin_define ("__XTENSA__");					\
+    builtin_define ("__XTENSA_WINDOWED_ABI__");				\
     builtin_define (TARGET_BIG_ENDIAN ? "__XTENSA_EB__" : "__XTENSA_EL__"); \
     if (!TARGET_HARD_FLOAT)						\
       builtin_define ("__XTENSA_SOFT_FLOAT__");				\

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