From: Rainer Orth Date: Tue, 17 Jul 2018 09:41:11 +0000 (+0000) Subject: Build gcc/testsuite/g++.dg/lto/pr86523-[12]_0.C as PIC X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=74285cd3a96c59586c62e5859dec649077c6e1e4;p=gcc.git Build gcc/testsuite/g++.dg/lto/pr86523-[12]_0.C as PIC * 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a17d60fb17d..d95cf8d51b4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2018-07-17 Rainer Orth + + * 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 * gcc.target/powerpc/loop_align.c: Update scanned pattern. diff --git a/gcc/testsuite/g++.dg/lto/pr86523-1_0.C b/gcc/testsuite/g++.dg/lto/pr86523-1_0.C index 3f75cdd9d27..bae5d48e657 100644 --- a/gcc/testsuite/g++.dg/lto/pr86523-1_0.C +++ b/gcc/testsuite/g++.dg/lto/pr86523-1_0.C @@ -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 {}; diff --git a/gcc/testsuite/g++.dg/lto/pr86523-2_0.C b/gcc/testsuite/g++.dg/lto/pr86523-2_0.C index f156230827e..bfe70fba327 100644 --- a/gcc/testsuite/g++.dg/lto/pr86523-2_0.C +++ b/gcc/testsuite/g++.dg/lto/pr86523-2_0.C @@ -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 {