Commit 694481d8 by Dave Korn Committed by Dave Korn

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
parent 5cdb5d59
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> 2010-12-05 Daniel Kraft <d@domob.eu>
PR fortran/46794 PR fortran/46794
......
...@@ -2,9 +2,13 @@ ...@@ -2,9 +2,13 @@
/* { dg-require-alias "" } */ /* { dg-require-alias "" } */
/* { dg-options "-O2" } */ /* { 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; int yum;
void dessert (void) { ++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)); extern void wobbly (void) __attribute__ ((alias ("jelly2"), weak));
/* { dg-final { scan-assembler "wobbly" } } */ /* { dg-final { scan-assembler "wobbly" } } */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment