summaryrefslogtreecommitdiff
path: root/gcc/lto-streamer-in.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-19 09:22:15 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-19 09:22:15 +0000
commit1df9b23b3b3db8974b555cba9ca291887ec46bcd (patch)
treef746fb78cac5f6fc1058d8d6dcc104e1ec92db26 /gcc/lto-streamer-in.c
parentda7a2b38a55851f9b330df5a1fed381e53f8f68e (diff)
downloadgcc-1df9b23b3b3db8974b555cba9ca291887ec46bcd.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208677 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer-in.c')
-rw-r--r--gcc/lto-streamer-in.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c
index da248b94692..3238ab8109c 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);