Fix pr81923 test for targets using __USER_LABEL_PREFIX__
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 16 Aug 2018 08:33:16 +0000 (08:33 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Thu, 16 Aug 2018 08:33:16 +0000 (08:33 +0000)
2018-08-16  Iain Sandoe <iain@sandoe.co.uk>

gcc/testsuite

* gcc.dg/asan/pr81923.c: Stringify __USER_LABEL_PREFIX__.

From-SVN: r263577

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/asan/pr81923.c

index 39ce2776578f6b341f69712f2daea4101d5c6a16..9ebf04d81f3bc6fd4f65223201efa8d82c0e0d7c 100644 (file)
@@ -1,3 +1,7 @@
+2018-08-16  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * gcc.dg/asan/pr81923.c: Stringify __USER_LABEL_PREFIX__.
+
 2018-08-15  Uros Bizjak  <ubizjak@gmail.com>
 
        * gcc.target/i386/rop1.c: Remove.
index f81d512c96e382ad2aa14c210106d9aa81705b92..dd9db728ce9ec304524e8a5bb39a903afe5dd106 100644 (file)
@@ -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 ()