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
This commit is contained in:
parent
5cdb5d5980
commit
694481d86f
2 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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" } } */
|
||||
|
|
Loading…
Add table
Reference in a new issue