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



On Mar 3, 2004, at 11:06 PM, Eric Botcazou wrote:


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().

True, but there are situations where declaration die is created first using
gen_subprogram_die() and then later on definition die is generated for
the same tree.


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]