From: Rainer Orth Date: Sun, 28 Jul 2019 12:31:17 +0000 (+0000) Subject: Fix g++.dg/lto/pr89330 on Solaris X-Git-Tag: misc/cutover-git~3772 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f394a9e1c5fffda66f822b13d2b9cc2623db653;p=thirdparty%2Fgcc.git Fix g++.dg/lto/pr89330 on Solaris * g++.dg/lto/pr89330_0.C (dg-lto-options): Add -fPIC. Require fpic support. From-SVN: r273856 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7527e730263f..4230691c11a8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-07-28 Rainer Orth + + * g++.dg/lto/pr89330_0.C (dg-lto-options): Add -fPIC. + Require fpic support. + 2019-07-27 Iain Sandoe * gcc.target/powerpc/bmi2-bzhi64-1a.c: Add options to enable altivec diff --git a/gcc/testsuite/g++.dg/lto/pr89330_0.C b/gcc/testsuite/g++.dg/lto/pr89330_0.C index 10082f834129..7335e6919d16 100644 --- a/gcc/testsuite/g++.dg/lto/pr89330_0.C +++ b/gcc/testsuite/g++.dg/lto/pr89330_0.C @@ -1,5 +1,6 @@ // { dg-lto-do link } -// { dg-lto-options { { -O3 -g -flto -shared -Wno-odr } } } +// { dg-lto-options { { -O3 -g -flto -shared -fPIC -Wno-odr } } } +// { dg-require-effective-target fpic } namespace Inkscape { class Anchored {};