From c401fb6f18ed51467bc84311bdc1d9f64b57309a Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 11 Dec 2012 09:16:59 +0000 Subject: [PATCH] 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) : Generate RTL only for a DECL which HAS_RTL_P. From-SVN: r194387 --- gcc/ChangeLog | 7 ++++++- gcc/tree-ssa-loop-ivopts.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1862af75760..eef5504bca0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-12-11 Eric Botcazou + + * tree-ssa-loop-ivopts.c (prepare_decl_rtl) : Generate RTL + only for a DECL which HAS_RTL_P. + 2012-12-11 Andreas Krebbel * config/s390/predicates.md ("execute_operation"): New predicate. @@ -6,7 +11,7 @@ 2012-12-10 Xinliang David Li - * 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 diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index ed1317080ea..1e41fa94a73 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; -- 2.30.2