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: [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_*
> 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


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