This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] optimization/6323
- From: Roger Sayle <roger at eyesopen dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>, Gwenole Beauchesne <gbeauchesne at mandrakesoft dot com>, <mark at codesourcery dot com>, <gcc-bugs at gcc dot gnu dot org>
- Date: Fri, 19 Apr 2002 19:03:07 -0600 (MDT)
- Subject: Re: [PATCH] optimization/6323
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
--