[ARM] Only test tls-disable-literal-pool.c if target supports native TLS
authorPrakhar Bahuguna <prakhar.bahuguna@arm.com>
Fri, 19 May 2017 13:04:27 +0000 (13:04 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Fri, 19 May 2017 13:04:27 +0000 (13:04 +0000)
2017-05-19  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>

    gcc/testsuite/
    * gcc.target/arm/tls-disable-literal-pool.c: Change
    require-effective-target to tls_native.
    Move dg-error to return statement line and change to dg-message.

From-SVN: r248270

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/tls-disable-literal-pool.c

index a8adc9195061ba54374ee5279b9f5b8d67540984..01319bdcedae5822382222eda60845beb2780597 100644 (file)
@@ -1,3 +1,9 @@
+2017-05-19  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
+
+       * gcc.target/arm/tls-disable-literal-pool.c: Change
+       require-effective-target to tls_native.
+       Move dg-error to return statement line and change to dg-message.
+
 2017-05-19  Richard Biener  <rguenther@suse.de>
 
        PR c++/80593
index fe14a6b132c8d247a372474ad7a81d586a65ef38..283201fdd97aac2fcd302665b519a27615558364 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target tls } */
+/* { dg-require-effective-target tls_native } */
 /* { dg-require-effective-target arm_cortex_m } */
 /* { dg-require-effective-target arm_thumb2_ok } */
 /* { dg-options "-mslow-flash-data" } */
@@ -9,7 +9,6 @@ __thread int x = 0;
 int
 bar ()
 {
-  return x;
+  return x; /* { dg-message "sorry, unimplemented: accessing thread-local storage is not currently supported with -mpure-code or -mslow-flash-data" } */
 }
 
-/* { dg-error "accessing thread-local storage is not currently supported with -mpure-code or -mslow-flash-data" "" { target *-*-* } 12 } */