This is the mail archive of the
gcc-patches@gcc.gnu.org
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)
Jakub Jelinek wrote:
> Attached are two approaches.
> The second one calls the dbg hooks immediately during load_file, but moves
> the gfc_new_file call later on after debug hooks are initialized.
>
> The first one instead records the various file change events we want to
> pass to debug_hooks in a vector, with gfc_linebuf pointers showing what
> events should be reported at what line.
> [...]
> So, for stabs' sake I think the first approach is better, though of course
> the second approach is simpler.
>
Let's go for the first approach then.
OK for the trunk. Can you also cite PR34359 in your commit?
Thanks for the fix,
Tobias