From 04037457c1d3ef2b22cce8cd2cd4dcdd94352fe1 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Mon, 29 Dec 2014 01:38:40 +0000 Subject: [PATCH] pr59626_0.c (ASMNAME, [...]): Define. * gcc.dg/lto/pr59626_0.c (ASMNAME, ASMNAME2, STRING): Define. (__atoi): Use ASMNAME. From-SVN: r219096 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/lto/pr59626_0.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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) { -- 2.30.2