This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [fortran,patch] Handle preprocessing with -g3
- From: Tom Tromey <tromey at redhat dot com>
- To: FX Coudert <fxcoudert at gmail dot com>
- Cc: gcc-patches list <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 22 Sep 2007 07:45:49 -0600
- Subject: Re: [fortran,patch] Handle preprocessing with -g3
- References: <FEBED440-739E-47AF-8223-080A90E57250@gmail.com>
- Reply-to: tromey at redhat dot com
>>>>> "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