Re: Do C dialect options -std=* affect the ABI?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/08/2018 07:32 AM, Sebastian Huber wrote:
For example can I safely link objects produced with different C++ standard versions to produce an executable?

In general, no. A lot of header files enable and disable features based on the standards version, and that usually has an ABI impact.

I think for C, the inlining behavior changes significantly, which has ABI implications. See the -fgnu89-inline option (whose documentation apparently was not updated for C11). I'm not even sure that you can assume that if the code still links, it has the same behavior.

Thanks,
Florian



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux