From: Richard Guenther Date: Thu, 24 Feb 2011 12:50:54 +0000 (+0000) Subject: lto-streamer-in.c (input_bb): Do not find referenced vars in debug statements. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c3277eef0319b14993175c7a293a9e5dc2ccd9b;p=gcc.git lto-streamer-in.c (input_bb): Do not find referenced vars in debug statements. 2011-02-24 Richard Guenther * lto-streamer-in.c (input_bb): Do not find referenced vars in debug statements. From-SVN: r170465 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c064b51ce64..ab2cb1b55a8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-02-24 Richard Guenther + + * lto-streamer-in.c (input_bb): Do not find referenced vars + in debug statements. + 2011-02-23 Jason Merrill * common.opt (fabi-version): Document v5 and v6. diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index 7409c1aca9d..058885d2252 100644 --- a/gcc/lto-streamer-in.c +++ b/gcc/lto-streamer-in.c @@ -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