[PATCH] optimization/6323

Roger Sayle roger@eyesopen.com
Sat Apr 20 12:49:00 GMT 2002


On Fri, 19 Apr 2002, Jason Merrill wrote:
> > + // Test that static inline redeclarations of no-return builtins don't ICE.
> > + // Origin: Roger Sayle  Apr 16, 2002
> > + // Copyright (C) 2002 Free Software Foundation.
> > +
> > + extern void exit(int);
>
> This should be extern "C".  With a plain extern, the testcase is
> ill-formed.

Oops.  You're right.  With "-fno-builtin", the symbol exit is mangled
to _Z4exiti and is not found in the C library.  It works fine with
the default test suite options.

I believe that Mark is investigating an alternative solution to
PR 6323, so this particular patch is dead.  But if you'd like to
retain the testcase, please feel free to correct it to prototype
exit as extern "C".

Roger
--



More information about the Gcc-bugs mailing list