[PATCH] Ensure start_source_file and end_source_file debug hook calls in gfortran always match (PR debug/33739)

Jakub Jelinek jakub@redhat.com
Thu Dec 6 12:10:00 GMT 2007


On Thu, Dec 06, 2007 at 11:49:09AM +0000, FX wrote:
> > But, I wonder if we can't just call the start/end file hooks right away
> > during reading of the files after moving gfc_define_undef_line handling
> > into the load_file loop.  We aren't calling any debug hooks during
> > parsing other than these start_source_file/end_source_file/define/undef
> > anyway, all other debug hooks are only called when we jump into trans_*
> > code.
> 
> It tried that approach before I first added the calls to start/end
> file hooks. It didn't work because debug hooks aren't yet set up when
> we get into load_file(), IIRC.

I see, but is there any reason why gfc_new_file is called by gfc_init
rather than gfc_parse_file?  I need to wait for a pending
bootstrap/regression testing, then will test it out.

	Jakub



More information about the Fortran mailing list