This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Do not register DEBUG_EXPR_DECLs with the varpool
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 11 Dec 2009 20:37:04 +0100 (CET)
- Subject: [PATCH] Do not register DEBUG_EXPR_DECLs with the varpool
Bootstrapped on x86_64-unknown-linux-gnu, testing in progress.
Richard.
2009-12-11 Richard Guenther <rguenther@suse.de>
* lto-streamer-in.c (lto_input_tree_ref): Do not register
DEBUG_EXPR_DECLs with the varpool.
Index: gcc/lto-streamer-in.c
===================================================================
*** gcc/lto-streamer-in.c (revision 155173)
--- gcc/lto-streamer-in.c (working copy)
*************** lto_input_tree_ref (struct lto_input_blo
*** 358,364 ****
case LTO_label_decl_ref:
ix_u = lto_input_uleb128 (ib);
result = lto_file_decl_data_get_var_decl (data_in->file_data, ix_u);
! if (tag == LTO_global_decl_ref)
varpool_mark_needed_node (varpool_node (result));
break;
--- 358,364 ----
case LTO_label_decl_ref:
ix_u = lto_input_uleb128 (ib);
result = lto_file_decl_data_get_var_decl (data_in->file_data, ix_u);
! if (TREE_CODE (result) == VAR_DECL)
varpool_mark_needed_node (varpool_node (result));
break;