From 8f60cfe0eb0979caee9968c947f0b7ebf4796e1f Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Tue, 21 Aug 2018 13:20:21 +0000 Subject: [PATCH] Restrict the pr86763 test to *-*-linux* targets clock_gettime is not available on some baremetal targets and may require -lrt on some non-linux targets. gcc/testsuite/ChangeLog: Backport from mainline 2018-08-21 Szabolcs Nagy * g++.dg/torture/pr86763.C: Restrict to *-*-linux*. From-SVN: r263701 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/g++.dg/torture/pr86763.C | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cd81a5060715..27db12935f2f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2018-08-21 Szabolcs Nagy + + Backport from mainline + 2018-08-21 Szabolcs Nagy + + * g++.dg/torture/pr86763.C: Restrict to *-*-linux*. + 2018-08-17 Richard Biener Backport from mainline diff --git a/gcc/testsuite/g++.dg/torture/pr86763.C b/gcc/testsuite/g++.dg/torture/pr86763.C index 6b79d561a60b..8455ac9ce129 100644 --- a/gcc/testsuite/g++.dg/torture/pr86763.C +++ b/gcc/testsuite/g++.dg/torture/pr86763.C @@ -1,5 +1,6 @@ -// { dg-do run } +// { dg-do run { target { *-*-linux* } } } // { dg-additional-options "-fschedule-insns2 -fstrict-aliasing" } +// { dg-additional-options "-lrt" } #include #include -- 2.47.2