From 7d5fc81417a90f3b2a2d043ebe6334c3246f7a3a Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Mon, 18 Apr 2011 10:13:49 +0000 Subject: re PR lto/48492 (LTO bootstrap failure in copy_constant) PR lto/48492 * cfgexpand.c (expand_debug_expr) : Return NULL for a DECL_IN_CONSTANT_POOL without RTL. From-SVN: r172641 --- gcc/ChangeLog | 12 ++++++++++-- gcc/cfgexpand.c | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'gcc') 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 + + PR lto/48492 + * cfgexpand.c (expand_debug_expr) : Return NULL for a + DECL_IN_CONSTANT_POOL without RTL. + 2011-04-18 Ulrich Weigand Ira Rosen @@ -28,7 +34,8 @@ 2011-04-17 Jan Hubicka * 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; -- cgit v1.1