From c553659e1c1d7418954c604be93ef593e77a52e1 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Thu, 16 Aug 2018 08:33:16 +0000 Subject: [PATCH] Fix pr81923 test for targets using __USER_LABEL_PREFIX__ 2018-08-16 Iain Sandoe gcc/testsuite * gcc.dg/asan/pr81923.c: Stringify __USER_LABEL_PREFIX__. From-SVN: r263577 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/asan/pr81923.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 39ce2776578..9ebf04d81f3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2018-08-16 Iain Sandoe + + * gcc.dg/asan/pr81923.c: Stringify __USER_LABEL_PREFIX__. + 2018-08-15 Uros Bizjak * gcc.target/i386/rop1.c: Remove. diff --git a/gcc/testsuite/gcc.dg/asan/pr81923.c b/gcc/testsuite/gcc.dg/asan/pr81923.c index f81d512c96e..dd9db728ce9 100644 --- a/gcc/testsuite/gcc.dg/asan/pr81923.c +++ b/gcc/testsuite/gcc.dg/asan/pr81923.c @@ -1,7 +1,10 @@ /* PR sanitizer/81923 */ /* { dg-do link } */ -int foobar __asm (__USER_LABEL_PREFIX__ "barbaz") = 34; +#define STR1(X) #X +#define STR2(X) STR1(X) + +int foobar __asm (STR2(__USER_LABEL_PREFIX__) "barbaz") = 34; int main () -- 2.30.2