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

FX fxcoudert@gmail.com
Thu Dec 6 11:49:00 GMT 2007


> 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.

FX



More information about the Gcc-patches mailing list