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 i386]:Ensure intrinsic functions are declared "C"


On 05/12/2010 12:12 PM, Richard Guenther wrote:
Including them the other way around fixes the warning.

...because intrin.h includes x86intrin.h within its extern "C" block, so there is no mismatch, and the later include becomes a no-op.


Why do we warn for linkage change of gnu_inline functions?

Because there isn't (currently) a special case to prevent it. I would accept a patch to that effect.


But why *not* add extern "C" wrappers? What's the harm?

Jason


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