From 411a771a1761e89b7420dd94bc296d52dc8c6f5c Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Thu, 19 Apr 2018 08:59:36 +0000 Subject: [PATCH] [testsuite] Fix tests for pr84805 and pr85405. 2018-04-19 Christophe Lyon * g++.dg/lto/pr85405_0.C: Require shared and fpic effective targets. * g++.dg/lto/pr85405b_0.C: Likewise. * g++.dg/lto/pr84805_0.C: Likewise. From-SVN: r259492 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/g++.dg/lto/pr84805_0.C | 2 ++ gcc/testsuite/g++.dg/lto/pr85405_0.C | 2 ++ gcc/testsuite/g++.dg/lto/pr85405b_0.C | 2 ++ 4 files changed, 13 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a5965b1123d..018c6b54d3d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2018-04-19 Christophe Lyon + + * g++.dg/lto/pr85405_0.C: Require shared and fpic effective + targets. + * g++.dg/lto/pr85405b_0.C: Likewise. + * g++.dg/lto/pr84805_0.C: Likewise. + 2018-04-18 Martin Liska PR ipa/83983 diff --git a/gcc/testsuite/g++.dg/lto/pr84805_0.C b/gcc/testsuite/g++.dg/lto/pr84805_0.C index 34828043d2e..eda0333fbb8 100644 --- a/gcc/testsuite/g++.dg/lto/pr84805_0.C +++ b/gcc/testsuite/g++.dg/lto/pr84805_0.C @@ -1,4 +1,6 @@ // { dg-lto-do link } +// { dg-require-effective-target shared } +// { dg-require-effective-target fpic } // { dg-lto-options {{-O0 -fPIC -shared -flto}} } template < typename _Tp, _Tp __v > struct integral_constant { diff --git a/gcc/testsuite/g++.dg/lto/pr85405_0.C b/gcc/testsuite/g++.dg/lto/pr85405_0.C index 1a41d81099c..1d46ea94ba5 100644 --- a/gcc/testsuite/g++.dg/lto/pr85405_0.C +++ b/gcc/testsuite/g++.dg/lto/pr85405_0.C @@ -1,4 +1,6 @@ // { dg-lto-do link } +// { dg-require-effective-target shared } +// { dg-require-effective-target fpic } // { dg-lto-options {{-fPIC -shared -flto}} } class VclReferenceBase { // { dg-lto-warning "7: type 'struct VclReferenceBase' violates the C\\+\\+ One Definition Rule" } diff --git a/gcc/testsuite/g++.dg/lto/pr85405b_0.C b/gcc/testsuite/g++.dg/lto/pr85405b_0.C index a692abb7715..a986a1f6f74 100644 --- a/gcc/testsuite/g++.dg/lto/pr85405b_0.C +++ b/gcc/testsuite/g++.dg/lto/pr85405b_0.C @@ -1,4 +1,6 @@ // { dg-lto-do link } +// { dg-require-effective-target shared } +// { dg-require-effective-target fpic } // { dg-lto-options {{-fPIC -shared -flto}} } class VclReferenceBase { // { dg-lto-warning "7: type 'struct VclReferenceBase' violates the C\\+\\+ One Definition Rule" } -- 2.30.2