From 4f394a9e1c5fffda66f822b13d2b9cc2623db653 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Sun, 28 Jul 2019 12:31:17 +0000 Subject: [PATCH] Fix g++.dg/lto/pr89330 on Solaris * g++.dg/lto/pr89330_0.C (dg-lto-options): Add -fPIC. Require fpic support. From-SVN: r273856 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/lto/pr89330_0.C | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7527e730263..4230691c11a 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 10082f83412..7335e6919d1 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 {}; -- 2.30.2