diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2008-01-12 04:00:37 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2008-01-12 04:00:37 +0000 |
commit | 3b06604d6597361fa486893c7ded6868cd5c2a41 (patch) | |
tree | 98fdbcff55bdb29520897bcbdafbf14194ad51e7 | |
parent | e26b6e6f88f7ed0c2905fb7db6b0562c3295c951 (diff) | |
download | gcc-3b06604d6597361fa486893c7ded6868cd5c2a41.tar.gz |
loadpre5.c: Use static.
* gcc.dg/tree-ssa/loadpre5.c: Use static.
* gcc.dg/tree-ssa/loadpre8.c: Likewise.
Backport:
2007-09-04 Jan Hubicka <jh@suse.cz>
* gcc.dg/tree-ssa/loadpre8.c: Disable inlining.
* gcc.dg/tree-ssa/loadpre5.c: Likewise.
From-SVN: r131486
-rw-r--r-- | gcc/testsuite/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/loadpre5.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/loadpre8.c | 6 |
3 files changed, 17 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c9d5436c173..2c5e1f1a969 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2008-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * gcc.dg/tree-ssa/loadpre5.c: Use static. + * gcc.dg/tree-ssa/loadpre8.c: Likewise. + + Backport: + 2007-09-04 Jan Hubicka <jh@suse.cz> + + * gcc.dg/tree-ssa/loadpre8.c: Disable inlining. + * gcc.dg/tree-ssa/loadpre5.c: Likewise. + 2008-01-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * gcc.c-torture/execute/builtins/chk.h: Don't check !__PIE__. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loadpre5.c b/gcc/testsuite/gcc.dg/tree-ssa/loadpre5.c index 37314ebe8fd..aa5779a5650 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loadpre5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loadpre5.c @@ -2,7 +2,9 @@ /* { dg-options "-O2 -fdump-tree-pre-stats" } */ int p; int r; -int a(void) + +__attribute__ ((noinline)) +static int a(void) { return p; } diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loadpre8.c b/gcc/testsuite/gcc.dg/tree-ssa/loadpre8.c index 86cb1e46bba..a4d2e50c461 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loadpre8.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loadpre8.c @@ -24,7 +24,7 @@ typedef struct VEC_edge_base { } VEC_edge_base; -edge +__attribute__ ((noinline)) static edge VEC_edge_base_index (const VEC_edge_base * vec_, unsigned ix_) { } @@ -56,7 +56,7 @@ ei_start_1 (VEC_edge_gc ** ev) i.container = ev; return i; } -ei_next (edge_iterator * i) +__attribute__ ((noinline)) static ei_next (edge_iterator * i) { } static __inline__ edge @@ -75,7 +75,7 @@ static __inline__ tree get_def_from_ptr (def_operand_p def) { } -tree +__attribute__ ((noinline)) static tree phi_nodes (basic_block bb) { } |