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.