This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Add Xtensa predefined macro to specify the ABI
- From: Bob Wilson <bwilson at tensilica dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 25 Nov 2004 19:42:35 -0800
- Subject: Add Xtensa predefined macro to specify the ABI
- Organization: Tensilica, Inc.
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 <bob.wilson@acm.org>
* config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
__XTENSA_WINDOWED_ABI__.
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__"); \