This is the mail archive of the 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: ICE in change_address at emit_rtl.c

On Thu, Nov 22, 2001 at 01:18:02PM +0100, Gerald Pfeifer wrote:
> On Thu, 22 Nov 2001, Craig Rodrigues wrote:
> > OK, that one might be a bad report.   These ones have
> > the same ICE error message.  Can they be closed?
> >
> > 4916, 4821, 4734, 4684, 4613, 4612, 4611, 4410, 4297, 4916,
> > 4821, 4734, 4684, 4613, 4612, 4611, 4581, 4438, 4410, 4297
> 4297 can be closed (verified on sparc-sun-solaris2.8 for current 3.0.3-CVS):
>   nunki[95]:~% gccvs main.ii -O3
>   main.c: In function `int main(int, char**)':
>   main.c:169: `strcmp' undeclared (first use this function)
>   main.c:169: (Each undeclared identifier is reported only once for each function
>    it appears in.)
>   main.c:171: `exit' undeclared (first use this function)
>   main.c:249: confused by earlier errors, bailing out

Careful! "confused by earlier errors, bailing out" means that there
_was_ an ICE but we pretended it didn't happen because there was an
earlier error.  In this case, the undeclared strcmp and exit are
unlikely to have corrupted data structures down the line and provoked
the ICE, which means there's still a real bug here.  Put declarations
of strcmp and exit just above main() in that test file, and I bet you
the bug comes back.

This is why ICE suppression is a Bad Thing.


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