On Tue, Nov 15, 2016 at 1:19 PM, Eric Botcazou <ebotca...@adacore.com> wrote:
>> Yes, I know -fno-strict-aliasing is globally set, but will all
>> -fstrict-aliasing optimization attributes on functions be "overwritten"?
>> That is, are you sure that when optimizing a function originally compiled
>> with -fstrict-aliasing that -fno-strict-aliasing is in effect?
>
> Do you mean with the "optimize" attribute or somesuch?  If so, I suppose not,
> if the attributes are properly saved and restored; otherwise, I don't really
> understand the question because I don't think that LTO saves the entire option
> state on a per-function basis.

Yes, it does since GCC 5 (or was it 6?).

Richard.

> --
> Eric Botcazou

Reply via email to