From: Jonathan Wakely Date: Thu, 18 May 2017 15:31:41 +0000 (+0100) Subject: Skip C tests if test flags include C++ options X-Git-Tag: releases/gcc-5.5.0~347 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dc09b7cdf0b1fec93b62b3d0ec017e3f6c6b650;p=thirdparty%2Fgcc.git Skip C tests if test flags include C++ options Backport from mainline 2016-08-02 Jonathan Wakely * testsuite/18_support/bad_exception/23591_thread-1.c: Skip test if options are present that aren't valid for C. * testsuite/abi/header_cxxabi.c: Likewise. From-SVN: r248238 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4da56ad76e3f..f597b1666b8a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,12 @@ 2017-05-18 Jonathan Wakely + Backport from mainline + 2016-08-02 Jonathan Wakely + + * testsuite/18_support/bad_exception/23591_thread-1.c: Skip test if + options are present that aren't valid for C. + * testsuite/abi/header_cxxabi.c: Likewise. + Backport from mainline 2017-04-24 Jonathan Wakely diff --git a/libstdc++-v3/testsuite/18_support/bad_exception/23591_thread-1.c b/libstdc++-v3/testsuite/18_support/bad_exception/23591_thread-1.c index c460ca91c712..4d65507b3e10 100644 --- a/libstdc++-v3/testsuite/18_support/bad_exception/23591_thread-1.c +++ b/libstdc++-v3/testsuite/18_support/bad_exception/23591_thread-1.c @@ -1,4 +1,5 @@ // { dg-require-sharedlib "" } +// { dg-skip-if "invalid options for C" { *-*-* } { "-std=c++??" "-std=gnu++??" } } // { dg-options "-g -O2 -pthread -ldl -x c -fvtable-verify=none" { target *-*-linux* *-*-gnu* } } // Copyright (C) 2005-2015 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/abi/header_cxxabi.c b/libstdc++-v3/testsuite/abi/header_cxxabi.c index db4171ea1f85..dfef27fdc5cf 100644 --- a/libstdc++-v3/testsuite/abi/header_cxxabi.c +++ b/libstdc++-v3/testsuite/abi/header_cxxabi.c @@ -1,4 +1,5 @@ // { dg-do compile } +// { dg-skip-if "invalid options for C" { *-*-* } { "-std=c++??" "-std=gnu++??" } } // { dg-options "-x c" } // Copyright (C) 2006-2015 Free Software Foundation, Inc. //