diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2005-04-01 07:06:37 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2005-04-01 07:06:37 +0000 |
commit | c5221531453e02bcf2a50e0a03c191214abd82a5 (patch) | |
tree | 6a1977e2a0394d9335428f8fd4371c38b4ea246b | |
parent | 45f7cb601829cd50ac80677edf22d3c03e9b6327 (diff) | |
download | gcc-c5221531453e02bcf2a50e0a03c191214abd82a5.zip gcc-c5221531453e02bcf2a50e0a03c191214abd82a5.tar.gz gcc-c5221531453e02bcf2a50e0a03c191214abd82a5.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/alias-7.c | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f940542..8de0c44 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.dg/alias-7.c b/gcc/testsuite/gcc.dg/alias-7.c index 6974970..591c302 100644 --- a/gcc/testsuite/gcc.dg/alias-7.c +++ b/gcc/testsuite/gcc.dg/alias-7.c @@ -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 |