first-global.C: Add -fpie for all pic targets.

* g++.dg/other/first-global.C: Add -fpie for all pic targets.
	* g++.dg/parse/attr-externally-visible-1.C: Likewise.

From-SVN: r131968
This commit is contained in:
Kaveh R. Ghazi 2008-01-30 20:40:58 +00:00 committed by Kaveh Ghazi
parent 493f36a777
commit cbe9cc080e
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-01-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* g++.dg/other/first-global.C: Add -fpie for all pic targets.
* g++.dg/parse/attr-externally-visible-1.C: Likewise.
2008-01-30 Jan Hubicka <jh@suse.cz>
PR target/34982

View File

@ -1,5 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-fpie" { target *-*-darwin* } } */
/* { dg-options "-fpie" { target { ! nonpic } } } */
/* { dg-final { scan-assembler "_GLOBAL__I(_|_65535_0_)foobar" } } */
struct foo { foo (); };

View File

@ -1,6 +1,6 @@
// { dg-do compile }
// { dg-options "-O3 -fwhole-program" }
/* { dg-options "-O3 -fwhole-program -fpie" { target *-*-darwin* } } */
// { dg-options "-O3 -fwhole-program -fpie" { target { ! nonpic } } }
// { dg-final { scan-assembler "foo1" } }
// { dg-final { scan-assembler "foo2" } }
// { dg-final { scan-assembler "foo3" } }