This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Builtins and C++ and such (take 2)
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: Benjamin Kosnik <bkoz at redhat dot com>, Jason Merrill <jason at redhat dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>, libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 25 Mar 2002 09:55:05 -0800
- Subject: Re: [PATCH] Builtins and C++ and such (take 2)
- References: <Pine.LNX.4.33.0203250727050.8839-100000@www.eyesopen.com>
> One side-effect of disabling the built-in, is that functions that
> used to get C linkage due to the previously anticipated prototype,
> end up with C++ linkage. This results in warnings about unresolved
> references to std::abs and std::sqrt during linking (which should
> be references to _abs and _sqrt).
Let me back up and ask a slightly different question: does this reflect
a bug in V3 or a bug in the compiler? In other words, are there now
conforming programs whose meaning will be misconstrued by the compiler?
It didn't seem to me that your patch would do that, which would imply
that V3 was relying on functions magically getting the right linkage?
Perhaps you can explain this to me in a bit more detail?
Thanks,
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com