From: Szabolcs Nagy Date: Tue, 21 Aug 2018 13:20:21 +0000 (+0000) Subject: Restrict the pr86763 test to *-*-linux* targets X-Git-Tag: releases/gcc-7.4.0~194 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f60cfe0eb0979caee9968c947f0b7ebf4796e1f;p=thirdparty%2Fgcc.git 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 --- 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