diff options
author | Richard Biener <rguenth@gcc.gnu.org> | 2009-12-11 22:13:48 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-12-11 22:13:48 +0000 |
commit | 7780688fb8a9c07c662f975a19b463e1bd2cec7b (patch) | |
tree | ecbd5da09c64593b063de12274a76abd05898c13 /gcc | |
parent | 4fa287ffd2a9d21870f980701ef947b8079336e8 (diff) | |
download | gcc-7780688fb8a9c07c662f975a19b463e1bd2cec7b.zip gcc-7780688fb8a9c07c662f975a19b463e1bd2cec7b.tar.gz gcc-7780688fb8a9c07c662f975a19b463e1bd2cec7b.tar.bz2 |
lto-streamer-in.c (lto_input_tree_ref): Do not register DEBUG_EXPR_DECLs with the varpool.
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.
From-SVN: r155182
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 17 | ||||
-rw-r--r-- | gcc/lto-streamer-in.c | 2 |
2 files changed, 12 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b8bc619..a555f3f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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. + 2009-12-11 Eric Botcazou <ebotcazou@adacore.com> * config/sparc/linux-unwind.h (MD_FROB_UPDATE_CONTEXT, 64-bit): Define. @@ -73,17 +78,17 @@ PR middle-end/42228 PR middle-end/42110 - * cgraph.c (cgraph_create_edge_including_clones): Add old_stmt parameter; - update edge if it already exists. - (cgraph_remove_node): Handle correctly cases where we are removing node having - clones. + * cgraph.c (cgraph_create_edge_including_clones): Add old_stmt + parameter; update edge if it already exists. + (cgraph_remove_node): Handle correctly cases where we are removing + node having clones. * cgraph.h (cgraph_create_edge_including_clones): Declare. (verify_cgraph_node): Add missing error_found = true code. (cgraph_materialize_all_clones): Remove call edges of dead nodes. * ipa.c (cgraph_remove_unreachable_nodes): Correctly look for master clone; fix double linked list removal. - * tree-inline.c (copy_bb): Update cgraph_create_edge_including_clones call; - fix frequency of newly created edge. + * tree-inline.c (copy_bb): Update cgraph_create_edge_including_clones + call; fix frequency of newly created edge. 2009-12-10 Bernd Schmidt <bernd.schmidt@analog.com> diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index 781cf46..41f23d9 100644 --- a/gcc/lto-streamer-in.c +++ b/gcc/lto-streamer-in.c @@ -358,7 +358,7 @@ lto_input_tree_ref (struct lto_input_block *ib, struct data_in *data_in, 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) + if (TREE_CODE (result) == VAR_DECL) varpool_mark_needed_node (varpool_node (result)); break; |