require tls_runtime for tls execution test
authorAlexandre Oliva <oliva@adacore.com>
Wed, 8 Apr 2020 15:41:52 +0000 (12:41 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 8 Apr 2020 15:41:52 +0000 (12:41 -0300)
All TLS execution tests require tls_runtime, not just tls; pr78796.c
is the only exception that is not otherwise limited to platforms known
to support it.  I suppose that's an oversight.  On a platform whose
linker is configured to disregard TLS relocations, this test compiles
and assembles successfully, but execution fails.  The tls_runtime
requirement target avoids the noise from the expected failure.

for  gcc/testsuite/ChangeLog

* gcc.dg/tls/pr78796.c: Require tls_runtime.

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tls/pr78796.c

index a420dea..557c815 100644 (file)
@@ -1,3 +1,7 @@
+2020-04-08  Alexandre Oliva <oliva@adacore.com>
+
+       * gcc.dg/tls/pr78796.c: Require tls_runtime.
+
 2020-04-08  Martin Liska  <mliska@suse.cz>
 
        PR c++/94314
index a0b23d6..038e536 100644 (file)
@@ -2,7 +2,7 @@
 /* { dg-do run } */
 /* { dg-options "-O2" } */
 /* { dg-additional-options "-mcmodel=large" { target aarch64-*-* } } */
-/* { dg-require-effective-target tls } */
+/* { dg-require-effective-target tls_runtime } */
 /* { dg-add-options tls } */
 
 struct S { int a, b, c, d, e; };