inline-3.c: Add -fpie when pic.

* gcc.dg/tree-ssa/inline-3.c: Add -fpie when pic.
	* gcc.dg/tree-ssa/local-pure-const.c: Likewise.

From-SVN: r151346
This commit is contained in:
Kaveh R. Ghazi 2009-09-02 18:06:40 +00:00 committed by Kaveh Ghazi
parent fef94f7680
commit f8563a3ba7
3 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.dg/tree-ssa/inline-3.c: Add -fpie when pic.
* gcc.dg/tree-ssa/local-pure-const.c: Likewise.
2009-09-02 Martin Jambor <mjambor@suse.cz>
* gcc.dg/tree-ssa/sra-8.c: New testcase.

View File

@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-einline2" } */
/* { dg-options "-O2 -fdump-tree-einline2 -fpie" { target { ! nonpic } } } */
extern void inlined ();
void inline_me_too (void);
void inline_through_me (void (*ptr)(void));

View File

@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-local-pure-const1" } */
/* { dg-options "-O1 -fdump-tree-local-pure-const1 -fpie" { target { ! nonpic } } } */
t(int a, int b, int c)
{
int *p;