This is the mail archive of the gcc-patches@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] Builtins and C++ and such (take 2)


> 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


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