Fix g++.dg/lto/pr89330 on Solaris
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Sun, 28 Jul 2019 12:31:17 +0000 (12:31 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Sun, 28 Jul 2019 12:31:17 +0000 (12:31 +0000)
* g++.dg/lto/pr89330_0.C (dg-lto-options): Add -fPIC.
Require fpic support.

From-SVN: r273856

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr89330_0.C

index 7527e73..4230691 100644 (file)
@@ -1,3 +1,8 @@
+2019-07-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * g++.dg/lto/pr89330_0.C (dg-lto-options): Add -fPIC.
+       Require fpic support.
+
 2019-07-27  Iain Sandoe  <iain@sandoe.co.uk>
 
        * gcc.target/powerpc/bmi2-bzhi64-1a.c: Add options to enable altivec
index 10082f8..7335e69 100644 (file)
@@ -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 {};