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
This commit is contained in:
Eric Botcazou 2012-12-11 09:16:59 +00:00
parent 000030b80b
commit c401fb6f18
2 changed files with 7 additions and 2 deletions

View File

@ -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>

View File

@ -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;