aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2014-03-19 09:22:15 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2014-03-19 09:22:15 +0000
commit8c9cfbe630d539a250f3018976ae6f47202f8667 (patch)
treef746fb78cac5f6fc1058d8d6dcc104e1ec92db26
parent3efe2e2cc10787a69473b926e100d4dde302f638 (diff)
downloadgcc-8c9cfbe630d539a250f3018976ae6f47202f8667.zip
gcc-8c9cfbe630d539a250f3018976ae6f47202f8667.tar.gz
gcc-8c9cfbe630d539a250f3018976ae6f47202f8667.tar.bz2
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/lto-streamer-in.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5785c61..9b85e2d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c
index da248b9..3238ab8 100644
--- a/gcc/lto-streamer-in.c
+++ b/gcc/lto-streamer-in.c
@@ -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);