aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2013-02-08 12:55:13 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2013-02-08 12:55:13 +0000
commite45cde982611c5a86c215dd4079ca7f0375e141b (patch)
tree2b580cff0a35536512ce08acfa951238833efcb5 /gcc/lto
parentc1ca73d819136e8fee6af5b8a616840ee59594d6 (diff)
downloadgcc-e45cde982611c5a86c215dd4079ca7f0375e141b.zip
gcc-e45cde982611c5a86c215dd4079ca7f0375e141b.tar.gz
gcc-e45cde982611c5a86c215dd4079ca7f0375e141b.tar.bz2
re PR middle-end/56231 (warning traces have bogus line information when using LTO)
2013-02-08 Richard Biener <rguenther@suse.de> PR lto/56231 * lto-streamer.h (struct data_in): Remove current_file, current_line and current_col members. * lto-streamer-out.c (lto_output_location): Stream changed bits en-block for efficiency. * lto-streamer-in.c (clear_line_info): Remove. (lto_input_location): Cache current file, line and column globally via local statics. Read changed bits en-block. (input_function): Do not call clear_line_info. (lto_read_body): Likewise. (lto_input_toplevel_asms): Likewise. lto/ * lto-lang.c (lto_init): Do not enter a dummy file. From-SVN: r195884
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog5
-rw-r--r--gcc/lto/lto-lang.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index 6743f2f..e3530da 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-08 Richard Biener <rguenther@suse.de>
+
+ PR lto/56231
+ * lto-lang.c (lto_init): Do not enter a dummy file.
+
2013-02-07 Uros Bizjak <ubizjak@gmail.com>
PR bootstrap/56227
diff --git a/gcc/lto/lto-lang.c b/gcc/lto/lto-lang.c
index b2919ee..87a756d 100644
--- a/gcc/lto/lto-lang.c
+++ b/gcc/lto/lto-lang.c
@@ -1156,9 +1156,6 @@ lto_init (void)
/* We need to generate LTO if running in WPA mode. */
flag_generate_lto = flag_wpa;
- /* Initialize libcpp line maps for gcc_assert to work. */
- linemap_add (line_table, LC_ENTER, 0, NULL, 0);
-
/* Create the basic integer types. */
build_common_tree_nodes (flag_signed_char, /*short_double=*/false);