This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Fix PR debug/14114
> gen_subprogram_die() in dwarf2out.c is prepared to handle this case.
> When same tree is supplied again, it checks that previous die generated
> for the tree was declaration die. If possible it reuses that declaration
> die for definition.
The global scope declaration never reaches gen_subprogram_die().
> gen_subprogram_die() is not prepared to handle the sequence presented
> by pr14114, that is definition first and then declaration.
Yes. And my position is that it doesn't have to.