lto-streamer-in.c (input_bb): Do not find referenced vars in debug statements.

2011-02-24  Richard Guenther  <rguenther@suse.de>

	* lto-streamer-in.c (input_bb): Do not find referenced vars
	in debug statements.

From-SVN: r170465
This commit is contained in:
Richard Guenther 2011-02-24 12:50:54 +00:00 committed by Richard Biener
parent 5b1cce91e5
commit 1c3277eef0
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-02-24 Richard Guenther <rguenther@suse.de>
* lto-streamer-in.c (input_bb): Do not find referenced vars
in debug statements.
2011-02-23 Jason Merrill <jason@redhat.com>
* common.opt (fabi-version): Document v5 and v6.

View File

@ -1097,8 +1097,8 @@ input_bb (struct lto_input_block *ib, enum LTO_tags tag,
while (tag)
{
gimple stmt = input_gimple_stmt (ib, data_in, fn, tag);
find_referenced_vars_in (stmt);
if (!is_gimple_debug (stmt))
find_referenced_vars_in (stmt);
gsi_insert_after (&bsi, stmt, GSI_NEW_STMT);
/* After the statement, expect a 0 delimiter or the EH region