This is the mail archive of the
mailing list for the GCC project.
Re: RFC/RFHelp: c-decl.c rewrite - almost but not quite
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Andrew Pinski <pinskia at physics dot uc dot edu>
- Date: Thu, 18 Mar 2004 11:01:06 -0800
- Subject: Re: RFC/RFHelp: c-decl.c rewrite - almost but not quite
- References: <firstname.lastname@example.org>
On Mar 16, 2004, at 12:54, Zack Weinberg wrote:
Here finally is the big c-decl.c rewrite. I'm pleased to report it
solves the infamous dwarf2out ICE and several other bugs (see the
changelog for details). However, I need some help finishing it.
Most significantly, the Objective-C and possibly Java front ends
appear to be broken by this patch, such that neither runtime library
can be built. For Objective-C the symptoms are a bunch of warnings
about unexpected types for 'id' followed by an ICE in list_length
owing to a list of global decls that has somehow become circular.
(I added circular list detection to list_length under ENABLE_CHECKING;
without that it would be an infinite loop instead of an ICE.)
Some investigating work on my part, some of the Objective-C failures is
due to the front-end putting a variable in the global scope only as
there is no file scope at the point which it inserts it.
The function which causes this is
But the code to use the decl has been dead for a long time and maybe
The code that used it was removed
but it was "#if 0" before that and I cannot find the place where it was
"#if 0" out.
I will run the who Objective-C testsuite on this change.