diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2012-12-11 09:16:59 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2012-12-11 09:16:59 +0000 |
commit | c401fb6f18ed51467bc84311bdc1d9f64b57309a (patch) | |
tree | ee07a2f5b57885b948e937096a68f501448851ae /gcc | |
parent | 000030b80b9a0117446d4611c6e8048cd400e964 (diff) | |
download | gcc-c401fb6f18ed51467bc84311bdc1d9f64b57309a.zip gcc-c401fb6f18ed51467bc84311bdc1d9f64b57309a.tar.gz gcc-c401fb6f18ed51467bc84311bdc1d9f64b57309a.tar.bz2 |
tree-ssa-loop-ivopts.c (prepare_decl_rtl): Generate RTL only for a DECL which HAS_RTL_P.
* tree-ssa-loop-ivopts.c (prepare_decl_rtl) <ADDR_EXPR>: Generate RTL
only for a DECL which HAS_RTL_P.
From-SVN: r194387
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1862af7..eef5504 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-12-11 Eric Botcazou <ebotcazou@adacore.com> + + * tree-ssa-loop-ivopts.c (prepare_decl_rtl) <ADDR_EXPR>: Generate RTL + only for a DECL which HAS_RTL_P. + 2012-12-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * config/s390/predicates.md ("execute_operation"): New predicate. @@ -6,7 +11,7 @@ 2012-12-10 Xinliang David Li <davidxl@google.com> - * config/i386/i386.c: Enable push/pop in pro/epilogue for mordern CPUs. + * config/i386/i386.c: Enable push/pop in pro/epilogue for modern CPUs. 2012-12-10 Steve Ellcey <sellcey@mips.com> diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index ed13170..1e41fa9 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -2806,7 +2806,7 @@ prepare_decl_rtl (tree *expr_p, int *ws, void *data) expr_p = &TREE_OPERAND (*expr_p, 0)) continue; obj = *expr_p; - if (DECL_P (obj) && !DECL_RTL_SET_P (obj)) + if (DECL_P (obj) && HAS_RTL_P (obj) && !DECL_RTL_SET_P (obj)) x = produce_memory_decl_rtl (obj, regno); break; |