This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH rewrite duplicate_decls to not modify olddecl (fixesgcc/12336)
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: Per Bothner <per at bothner dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 09 Dec 2003 17:11:46 -0800
- Subject: Re: PATCH rewrite duplicate_decls to not modify olddecl (fixesgcc/12336)
- References: <3FD57AB3.7040107@bothner.com> <87ad62mjg3.fsf@codesourcery.com>
"Zack Weinberg" <zack@codesourcery.com> writes:
> I don't see any problems with your patch, however, I agree that it is
> far from obviously safe. I'm going to test it on x86-linux and
> ia64-hpux tonight, and sparc-solaris2 after that machine finishes
> doing some other work.
Your patch produces a large number of testsuite failures on any target
that uses DWARF2 by default. In the C testsuite alone:
173 internal error: in decl_ultimate_origin, at dwarf2out.c:4384
36 internal error: in add_abstract_origin_attribute, at dwarf2out.c:9918
6 internal error: in gen_subprogram_die, at dwarf2out.c:10661
c-torture/compile/20001018-1.c and c-torture/compile/20030110-1.c are
the first two failing test cases in my i386-linux build. I think the
problem has something to do with encountering two nested-block-scope
declarations (explicit or implicit) for the same symbol in the same
function.
Could you please investigate this?
zw