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

-- 
Eric Botcazou


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