aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2011-04-18 10:13:49 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2011-04-18 10:13:49 +0000
commit7d5fc81417a90f3b2a2d043ebe6334c3246f7a3a (patch)
tree05b99c9098d55bd2746c8f784f15b02637e036f4 /gcc
parent7e7cfcf6eb7ed4bbc1cc7d8c4f689fa72cc7deb0 (diff)
downloadgcc-7d5fc81417a90f3b2a2d043ebe6334c3246f7a3a.zip
gcc-7d5fc81417a90f3b2a2d043ebe6334c3246f7a3a.tar.gz
gcc-7d5fc81417a90f3b2a2d043ebe6334c3246f7a3a.tar.bz2
re PR lto/48492 (LTO bootstrap failure in copy_constant)
PR lto/48492 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a DECL_IN_CONSTANT_POOL without RTL. From-SVN: r172641
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog12
-rw-r--r--gcc/cfgexpand.c1
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 30398d2..b6f1147 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
+
+ PR lto/48492
+ * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
+ DECL_IN_CONSTANT_POOL without RTL.
+
2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
Ira Rosen <ira.rosen@linaro.org>
@@ -28,7 +34,8 @@
2011-04-17 Jan Hubicka <jh@suse.cz>
* cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
- * cgrpahunit.c (cgraph_finalize_function): Do not set finalized_by_frontend.
+ * cgrpahunit.c (cgraph_finalize_function): Do not set
+ finalized_by_frontend.
* lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
finalized_by_frontend.
@@ -37,7 +44,8 @@
* cgraph.c (cgraph_clone_node): Do not handle vtable_method
* cgraph.h (struct cgraph_local_info): Drop vtable_method.
* cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
- * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable method.
+ * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
+ method.
* gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
gimple-fold.c
* varasm.c (mark_decl_referenced): Drop vtable_method handling code.
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index 359c2da..effb844 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -2495,6 +2495,7 @@ expand_debug_expr (tree exp)
|| !TREE_STATIC (exp)
|| !DECL_NAME (exp)
|| DECL_HARD_REGISTER (exp)
+ || DECL_IN_CONSTANT_POOL (exp)
|| mode == VOIDmode)
return NULL;