diff options
author | Dave Korn <dave.korn.cygwin@gmail.com> | 2010-12-06 01:13:36 +0000 |
---|---|---|
committer | Dave Korn <davek@gcc.gnu.org> | 2010-12-06 01:13:36 +0000 |
commit | 694481d86f1710a0977586b6abf6d11dd73469d5 (patch) | |
tree | 4afb43bc539532f7942051b23198c0abaeb2000c /gcc | |
parent | 5cdb5d5980c35887be8a920992961277a96513fb (diff) | |
download | gcc-694481d86f1710a0977586b6abf6d11dd73469d5.zip gcc-694481d86f1710a0977586b6abf6d11dd73469d5.tar.gz gcc-694481d86f1710a0977586b6abf6d11dd73469d5.tar.bz2 |
pr46674.c (LABEL3): New macro definition.
* gcc.dg/pr46674.c (LABEL3): New macro definition.
(LABEL2): Likewise.
(LABEL): Likewise.
(jelly): Account for user label prefix in asm name.
From-SVN: r167483
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr46674.c | 6 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 875a86d..01878fe 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com> + + * gcc.dg/pr46674.c (LABEL3): New macro definition. + (LABEL2): Likewise. + (LABEL): Likewise. + (jelly): Account for user label prefix in asm name. + 2010-12-05 Daniel Kraft <d@domob.eu> PR fortran/46794 diff --git a/gcc/testsuite/gcc.dg/pr46674.c b/gcc/testsuite/gcc.dg/pr46674.c index cf6dfc7..871b364 100644 --- a/gcc/testsuite/gcc.dg/pr46674.c +++ b/gcc/testsuite/gcc.dg/pr46674.c @@ -2,9 +2,13 @@ /* { dg-require-alias "" } */ /* { dg-options "-O2" } */ +#define LABEL3(pfx, x) # pfx x +#define LABEL2(pfx, x) LABEL3(pfx, x) +#define LABEL(x) LABEL2(__USER_LABEL_PREFIX__, x) + int yum; void dessert (void) { ++yum; } -extern void jelly (void) __asm__ ("jelly2") __attribute__ ((alias ("dessert"), weak)); +extern void jelly (void) __asm__ (LABEL ("jelly2")) __attribute__ ((alias ("dessert"), weak)); extern void wobbly (void) __attribute__ ((alias ("jelly2"), weak)); /* { dg-final { scan-assembler "wobbly" } } */ |