Commit 6bdf7029 authored by amylaar's avatar amylaar
Browse files

Fix fallout from PR middle-end/15700:

	* gcc.c-torture/compile/20011119-1.c: Take
	__USER_LABEL_PREFIX__ into account.
	* gcc.c-torture/compile/20011119-2.c: Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97317 138bc75d-0d04-0410-961f-82ee72b054a4
parent bc97227f
#define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname)
#define ASMNAME2(prefix, cname) STRING (prefix) cname
#define STRING(x) #x
extern inline int foo (void) { return 23; }
int xxx(void) __asm__("xxx");
int xxx(void) __asm__(ASMNAME ("xxx"));
int xxx(void) { return 23; }
extern int foo (void) __attribute__ ((weak, alias ("xxx")));
#define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname)
#define ASMNAME2(prefix, cname) STRING (prefix) cname
#define STRING(x) #x
extern inline int foo (void) { return 23; }
int bar (void) { return foo (); }
extern int foo (void) __attribute__ ((weak, alias ("xxx")));
int baz (void) { return foo (); }
int xxx(void) __asm__("xxx");
int xxx(void) __asm__(ASMNAME ("xxx"));
int xxx(void) { return 23; }
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