C++ PATCH: PR 9924
Roger Sayle
roger@www.eyesopen.com
Tue Mar 18 04:33:00 GMT 2003
On Mon, 17 Mar 2003, Benjamin Kosnik wrote:
> >Its not that system headers are C++
> >aware (with extern "C", and namespaces, and attributes, and empty
> >throw expection lists, etc...), instead its just g++ automatically
> >assumes functions prototyped in /usr/include have C linkage.
>
> You might want to take a look at the glibc 2.3 headers, since Jason
> apparently cannot convince you otherwise. I suspect you'll be very
> surprised.
<humor>
My god, you're right! We can completely remove nothrow_libfn_p and
IMPLICIT_EXTERN_C from the g++ front-end. I'll start on a patch
straight away. All this time I've been fixing bugs in code we don't
even need. I remember filing my glibc copyright assignments with the
FSF, but I never even thought to take a look. Who knew?
My apologies for ever believing that system headers aren't C++ aware.
</humor>
Roger
--
More information about the Gcc-patches
mailing list