pr59626_0.c (ASMNAME, [...]): Define.

* gcc.dg/lto/pr59626_0.c (ASMNAME, ASMNAME2, STRING): Define.
	(__atoi): Use ASMNAME.

From-SVN: r219096
This commit is contained in:
Hans-Peter Nilsson 2014-12-29 01:38:40 +00:00 committed by Hans-Peter Nilsson
parent db569cc86c
commit 04037457c1
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-12-29 Hans-Peter Nilsson <hp@axis.com>
* gcc.dg/lto/pr59626_0.c (ASMNAME, ASMNAME2, STRING): Define.
(__atoi): Use ASMNAME.
2014-12-28 H.J. Lu <hongjiu.lu@intel.com>
* gcc.target/i386/pr57003.c: Skip on x32.

View file

@ -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)
{