This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix uninit-H test for Xtensa
- From: Bob Wilson <bwilson at tensilica dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 22 Nov 2004 14:40:18 -0800
- Subject: fix uninit-H test for Xtensa
- Organization: Tensilica, Inc.
I've committed this patch on mainline so that this test works for Xtensa.
2004-11-22 Bob Wilson <bob.wilson@acm.org>
* gcc.dg/uninit-H.c: Define ASM for Xtensa targets.
Index: gcc.dg/uninit-H.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/uninit-H.c,v
retrieving revision 1.8
diff -u -r1.8 uninit-H.c
--- gcc.dg/uninit-H.c 9 Nov 2004 00:49:00 -0000 1.8
+++ gcc.dg/uninit-H.c 22 Nov 2004 22:36:47 -0000
@@ -18,6 +18,8 @@
# define ASM __asm__("r12")
#elif defined __hppa__
# define ASM __asm__("%r30")
+#elif defined __xtensa__
+# define ASM __asm__("sp")
#else
# define ASM
#endif