Commit a978134e by Prakhar Bahuguna Committed by Thomas Preud'homme

[ARM] Only test tls-disable-literal-pool.c if target supports native TLS

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
parent 39aac208
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> 2017-05-19 Richard Biener <rguenther@suse.de>
PR c++/80593 PR c++/80593
......
/* { dg-do compile } */ /* { 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_cortex_m } */
/* { dg-require-effective-target arm_thumb2_ok } */ /* { dg-require-effective-target arm_thumb2_ok } */
/* { dg-options "-mslow-flash-data" } */ /* { dg-options "-mslow-flash-data" } */
...@@ -9,7 +9,6 @@ __thread int x = 0; ...@@ -9,7 +9,6 @@ __thread int x = 0;
int int
bar () 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 } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment