From: Hans-Peter Nilsson Date: Mon, 29 Dec 2014 01:38:40 +0000 (+0000) Subject: pr59626_0.c (ASMNAME, [...]): Define. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=04037457c1d3ef2b22cce8cd2cd4dcdd94352fe1;p=gcc.git pr59626_0.c (ASMNAME, [...]): Define. * gcc.dg/lto/pr59626_0.c (ASMNAME, ASMNAME2, STRING): Define. (__atoi): Use ASMNAME. From-SVN: r219096 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ef6ddcce56c..1c5ea71d342 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-12-29 Hans-Peter Nilsson + + * gcc.dg/lto/pr59626_0.c (ASMNAME, ASMNAME2, STRING): Define. + (__atoi): Use ASMNAME. + 2014-12-28 H.J. Lu * gcc.target/i386/pr57003.c: Skip on x32. diff --git a/gcc/testsuite/gcc.dg/lto/pr59626_0.c b/gcc/testsuite/gcc.dg/lto/pr59626_0.c index 752982fb506..9e9171de73a 100644 --- a/gcc/testsuite/gcc.dg/lto/pr59626_0.c +++ b/gcc/testsuite/gcc.dg/lto/pr59626_0.c @@ -1,6 +1,10 @@ /* { dg-lto-do run } */ -int __atoi (const char *) __asm__("atoi"); +#define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname) +#define ASMNAME2(prefix, cname) STRING (prefix) cname +#define STRING(x) #x + +int __atoi (const char *) __asm__(ASMNAME ("atoi")); extern inline __attribute__((always_inline,gnu_inline)) int atoi (const char *x) {