re PR lto/59543 (lto1: fatal error: Cgraph edge statement index out of range)

2014-03-19  Richard Biener  <rguenther@suse.de>

	PR lto/59543
	* lto-streamer-in.c (input_function): In WPA stage do not drop
	debug stmts.

From-SVN: r208677
This commit is contained in:
Richard Biener 2014-03-19 09:22:15 +00:00 committed by Richard Biener
parent 3efe2e2cc1
commit 8c9cfbe630
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2014-03-19 Richard Biener <rguenther@suse.de>
PR lto/59543
* lto-streamer-in.c (input_function): In WPA stage do not drop
debug stmts.
2014-03-19 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/60559

View File

@ -988,7 +988,7 @@ input_function (tree fn_decl, struct data_in *data_in,
We can't remove them earlier because this would cause uid
mismatches in fixups, but we can do it at this point, as
long as debug stmts don't require fixups. */
if (!MAY_HAVE_DEBUG_STMTS && is_gimple_debug (stmt))
if (!MAY_HAVE_DEBUG_STMTS && !flag_wpa && is_gimple_debug (stmt))
{
gimple_stmt_iterator gsi = bsi;
gsi_next (&bsi);