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] |
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.
I do not have any position on this. I am just trying to explain why Zack's example works and pr14114 causes crash.
-- Devang
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |