This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Ensure start_source_file and end_source_file debug hook calls in gfortran always match (PR debug/33739)
> 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_*
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.