re PR middle-end/20524 (Alias failures on ARM, CRIS, MMIX)

PR middle-end/20524
	* gcc.dg/alias-7.c: Prefix asm-declared name with
	__USER_LABEL_PREFIX__.

From-SVN: r97370
This commit is contained in:
Hans-Peter Nilsson 2005-04-01 07:06:37 +00:00 committed by Hans-Peter Nilsson
parent 45f7cb6018
commit c522153145
2 changed files with 11 additions and 1 deletions

View 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

View 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