[Bug middle-end/56231] warning traces have bogus line information when using LTO

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 8 12:55:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56231

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-08 12:55:19 UTC ---
Author: rguenth
Date: Fri Feb  8 12:55:13 2013
New Revision: 195884

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195884
Log:
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.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lto-streamer-in.c
    trunk/gcc/lto-streamer-out.c
    trunk/gcc/lto-streamer.h
    trunk/gcc/lto/ChangeLog
    trunk/gcc/lto/lto-lang.c



More information about the Gcc-bugs mailing list