This is the mail archive of the gcc-bugs@gcc.gnu.org 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: [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
--


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