]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR lto/59543 (lto1: fatal error: Cgraph edge statement index out of range)
authorRichard Biener <rguenther@suse.de>
Wed, 19 Mar 2014 09:22:15 +0000 (09:22 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 19 Mar 2014 09:22:15 +0000 (09:22 +0000)
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

gcc/ChangeLog
gcc/lto-streamer-in.c

index 5785c61919cb68f997db457125f02de4c69caca4..9b85e2d0824748354c99173a089067daaaea1fdd 100644 (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
index da248b94692caad26029e92438971fd245ff6e8b..3238ab8109cf43e78dbf4fde242bbf18e88a8615 100644 (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);