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

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

 



On 8 May 2018 at 12:01, Sebastian Huber
<sebastian.huber@xxxxxxxxxxxxxxxxxx> wrote:
> On 08/05/18 12:40, Jonathan Wakely wrote:
>>
>> On 8 May 2018 at 06:32, Sebastian Huber wrote:
>>>
>>> Hello,
>>>
>>> do the C dialect options -std=* affect the ABI?
>>>
>>> https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html
>>>
>>> For example can I safely link objects produced with different C++
>>> standard
>>> versions to produce an executable?
>>
>> You started out asking about C but then finish asking about C++, which
>> are you asking about?
>
>
> The C++ standard options are also documented on this page. In the text you
> have:
>
> "The following options control the dialect of C (or languages derived from
> C, such as C++, Objective-C and Objective-C++) that the compiler accepts:"

Yes, but you specifically said "C dialect options" which makes it
ambiguous whether you're asking about the options for C++ that are
documented in the section called "C dialect options" or asking about
the options for C.

>>
>> For C++ see
>> https://stackoverflow.com/questions/46746878/is-it-safe-to-link-c17-c14-and-c11-objects/49119902#49119902
>>
>> To the best of my knowledge the -std options for C do not affect ABI
>> either, but I'm less certain than I am for C++.
>
>
> I think it should be documented on this page if the ABI is affected.



[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