Build gcc/testsuite/g++.dg/lto/pr86523-[12]_0.C as PIC
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 17 Jul 2018 09:41:11 +0000 (09:41 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 17 Jul 2018 09:41:11 +0000 (09:41 +0000)
* g++.dg/lto/pr86523-1_0.C: Require fpic, shared support.
(dg-lto-options): Add -fPIC.
* g++.dg/lto/pr86523-2_0.C: Likewise.

From-SVN: r262810

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr86523-1_0.C
gcc/testsuite/g++.dg/lto/pr86523-2_0.C

index a17d60fb17d0652093a632fa8676fedefe77bd9c..d95cf8d51b4ae64715d7cf4a76eb6fce1649e083 100644 (file)
@@ -1,3 +1,9 @@
+2018-07-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * g++.dg/lto/pr86523-1_0.C: Require fpic, shared support.
+       (dg-lto-options): Add -fPIC.
+       * g++.dg/lto/pr86523-2_0.C: Likewise.
+
 2018-07-17  Martin Liska  <mliska@suse.cz>
 
        * gcc.target/powerpc/loop_align.c: Update scanned pattern.
index 3f75cdd9d2771deeaf0585d6454f225aa04abdaf..bae5d48e6574136da4a1a1eac99b0d3933b87e05 100644 (file)
@@ -1,5 +1,7 @@
 // { dg-lto-do link }
-// { dg-lto-options {{-O2 -flto -g -shared}} }
+// { dg-require-effective-target fpic }
+// { dg-require-effective-target shared }
+// { dg-lto-options { { -O2 -fPIC -flto -g -shared } } }
 namespace {
     class a typedef b;
     class a {};
index f156230827e8bf4d4fa9ca9b828f437991695f88..bfe70fba327b6d3a3197ec5d188ca35c216aac0f 100644 (file)
@@ -1,5 +1,7 @@
 // { dg-lto-do link }
-// { dg-lto-options {{-O2 -flto -g -shared}} }
+// { dg-require-effective-target fpic }
+// { dg-require-effective-target shared }
+// { dg-lto-options { { -O2 -fPIC -flto -g -shared } } }
 class a typedef b;
 class a {};
 class c {