http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54962
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> 2012-10-18 10:40:34 UTC --- (In reply to comment #3) > (In reply to comment #2) > > > This is called by default_tree_diagnostic_starter FWIW; perhaps lto1 > > > needs its > > > own implementation of this? > > > > Maybe yes. LTO should print the "main" file as well (so it doesn't have > > a MAIN_FILE_P), but not as included-from but in some other way. > > > > How does the line_map works in LTO? Is it saved and restored or re-build from > scratch? We stream the expanded location and allocate new line-map entries at LTO read time.