[testsuite] Stringify __USER_LABEL_PREFIX__ in pr85248.

Message ID D094AE4A-7EC2-495F-BF28-56D01A7AAFEF@sandoe.co.uk
State New
Headers show
Series
  • [testsuite] Stringify __USER_LABEL_PREFIX__ in pr85248.
Related show

Commit Message

Iain Sandoe Aug. 21, 2018, 2:20 p.m.
another missing stringify for _U_L_P_ 

OK?
thanks
Iain

gcc/testsuite

	* gcc.dg/lto/pr85248_0.c (test_alias): Stringify __USER_LABEL_PREFIX__.
	(test_noreturn): Likewise.

---
 gcc/testsuite/gcc.dg/lto/pr85248_0.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

-- 
2.17.1

Comments

Mike Stump Aug. 21, 2018, 3:35 p.m. | #1
On Aug 21, 2018, at 7:20 AM, Iain Sandoe <iain@sandoe.co.uk> wrote:
> 

> another missing stringify for _U_L_P_ 

> 

> OK?


Ok.
=

Patch

diff --git a/gcc/testsuite/gcc.dg/lto/pr85248_0.c b/gcc/testsuite/gcc.dg/lto/pr85248_0.c
index df61ac976a..902f4b6620 100644
--- a/gcc/testsuite/gcc.dg/lto/pr85248_0.c
+++ b/gcc/testsuite/gcc.dg/lto/pr85248_0.c
@@ -2,8 +2,13 @@ 
 /* { dg-lto-do run } */
 /* { dg-lto-options { { -flto -O2 } } } */
 
-extern void test_alias (int s, int e) __asm__ (__USER_LABEL_PREFIX__ "test");
-extern void test_noreturn (int s, int e) __asm__ (__USER_LABEL_PREFIX__ "test")
+#define STR1(X) #X
+#define STR2(X) STR1(X)
+
+extern void test_alias (int s, int e) 
+  __asm__ (STR2(__USER_LABEL_PREFIX__) "test");
+extern void test_noreturn (int s, int e)
+  __asm__ (STR2(__USER_LABEL_PREFIX__)  "test")
   __attribute__ ((__noreturn__));
 
 extern inline __attribute__ ((__always_inline__, __gnu_inline__)) void