re PR middle-end/20524 (Alias failures on ARM, CRIS, MMIX)
authorHans-Peter Nilsson <hp@axis.com>
Fri, 1 Apr 2005 07:06:37 +0000 (07:06 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Fri, 1 Apr 2005 07:06:37 +0000 (07:06 +0000)
PR middle-end/20524
* gcc.dg/alias-7.c: Prefix asm-declared name with
__USER_LABEL_PREFIX__.

From-SVN: r97370

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/alias-7.c

index f9405425e40f668c88da81aa2d36b017bc87c7f8..8de0c4426ae7f832b0ab3dc34daa820d863bdd23 100644 (file)
@@ -1,3 +1,9 @@
+2005-04-01  Hans-Peter Nilsson  <hp@axis.com>
+
+       PR middle-end/20524
+       * gcc.dg/alias-7.c: Prefix asm-declared name with
+       __USER_LABEL_PREFIX__.
+
 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
 
        PR c++/18644
index 697497021f1d7b01a55a96950f8095e01e5973ac..591c3028e03712f9146e802add48f92f71653206 100644 (file)
@@ -4,7 +4,11 @@
 
 extern void abort (void);
 
-int foo __asm__ ("foo") __attribute__((nocommon));
+#define ASMNAME(cname)  ASMNAME2 (__USER_LABEL_PREFIX__, cname)
+#define ASMNAME2(prefix, cname) STRING (prefix) cname
+#define STRING(x)    #x
+
+int foo __asm__ (ASMNAME ("foo")) __attribute__((nocommon));
 extern __typeof (foo) bar __attribute__ ((weak, alias ("foo")));
 
 int