This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/54962] Strange-looking diagnostics from diagnostic_report_current_module() from warnings emitted during LTO
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Oct 2012 11:38:33 +0000
- Subject: [Bug lto/54962] Strange-looking diagnostics from diagnostic_report_current_module() from warnings emitted during LTO
- Auto-submitted: auto-generated
- References: <bug-54962-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54962
--- Comment #5 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-10-18 11:38:33 UTC ---
(In reply to comment #4)
>
> We stream the expanded location and allocate new line-map entries at LTO
> read time.
Where?
I guess this precludes any knowledge of what is included from where and for
sure no tracking of macro expansion, but it still doesn't explain why
MAIN_FILE_P and INCLUDED_FROM do not work reliably. They should be true for
every map and return NULL, respectively. That seems like a bug.