re PR lto/48492 (LTO bootstrap failure in copy_constant)
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 18 Apr 2011 10:13:49 +0000 (10:13 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 18 Apr 2011 10:13:49 +0000 (10:13 +0000)
PR lto/48492
* cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
DECL_IN_CONSTANT_POOL without RTL.

From-SVN: r172641

gcc/ChangeLog
gcc/cfgexpand.c

index 30398d2..b6f1147 100644 (file)
@@ -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.
index 359c2da..effb844 100644 (file)
@@ -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;