Restrict the pr86763 test to *-*-linux* targets
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 21 Aug 2018 09:22:14 +0000 (09:22 +0000)
committerSzabolcs Nagy <nsz@gcc.gnu.org>
Tue, 21 Aug 2018 09:22:14 +0000 (09:22 +0000)
clock_gettime is not available on some baremetal targets
and may require -lrt on some non-linux targets.

gcc/testsuite/ChangeLog:

* g++.dg/torture/pr86763.C: Restrict to *-*-linux*.

From-SVN: r263694

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr86763.C

index eb143b3fa7aa072e05535a8801e6ab72afd10f64..ccdaa1e32a14d810ace38a1c0f6f7b964fa5ba02 100644 (file)
@@ -1,3 +1,7 @@
+2018-08-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * g++.dg/torture/pr86763.C: Restrict to *-*-linux*.
+
 2018-08-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
 
        PR middle-end/86121
index 79523b2485028204ec3cbde39cdb44ed040455b2..8455ac9ce1294e39c1b826c12230c343cdd360e2 100644 (file)
@@ -1,6 +1,6 @@
-// { dg-do run }
+// { dg-do run { target { *-*-linux* } } }
 // { dg-additional-options "-fschedule-insns2 -fstrict-aliasing" }
-// { dg-additional-options "-lrt" { target *-*-linux-gnu } }
+// { dg-additional-options "-lrt" }
 
 #include <cstdint>
 #include <cassert>