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
This commit is contained in:
Rainer Orth 2018-07-17 09:41:11 +00:00 committed by Rainer Orth
parent 487982030e
commit 74285cd3a9
3 changed files with 12 additions and 2 deletions

View 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.

View 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 {};

View 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 {