------- Comment #4 from truedfx at gentoo dot org 2010-08-07 14:34 ------- I'm having this problem too, and it's still happening with GCC 4.5. The ml message suggests that this may be hard to fix, but it looks surprisingly easy: instead of tracing back via INCLUDED_FROM, simply look at pfile->main_file which already contains the right file name. It just needs an accessor function because _cpp_file's definition is kept internal.
I have a patch that does this, but I'm only posting a description, because this way it'll be very easy to recreate it, and I still don't have to deal with any copyright paperwork :) -- truedfx at gentoo dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |truedfx at gentoo dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33919