This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [fortran,patch] Handle preprocessing with -g3


>>>>> "FX" == FX Coudert <fxcoudert@gmail.com> writes:

FX> The second half of the patch is needed to make it work: we need to
FX> register filenames with debug_hooks->start_source_file and
FX> debug_hooks-> end_source_file whenever we enter a new included file
FX> and exit it. We also do it for the main source file, if the debug
FX> format requests it (indicated by debug_hooks->
FX> start_end_main_source_file). This part was designed by looking at  
FX> gcc/c-lex.c.

I tripped across this the other day.  Having a
start_end_main_source_file flag seems weird... these aren't called all
that frequently, and debug implementations that don't need this info
could simply do nothing.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]