Commit cbe9cc08 by Kaveh R. Ghazi Committed by Kaveh Ghazi

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
parent 493f36a7
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
/* { 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 (); };
......
// { 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" } }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment