[Bug c/70678] Static function compilation behaviour changes with __attribute__((optimize("O2"))) even if already compiling with -O2

lutoma at ohai dot su gcc-bugzilla@gcc.gnu.org
Fri Apr 15 12:02:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70678

--- Comment #2 from Lukas Martini <lutoma at ohai dot su> ---
Hi,

thanks for testing. I have to admit the explanation regarding how the various
switches play together went a little over my head, but if you tell me that's
intended behaviour, I'll trust your word on it :)

Just to be sure: For me, this also happens when "-fno-strict-aliasing -fwrapv"
are not added as parameters, I only added those because I saw them mentioned
somewhere in the bug reporting guidelines. If it's still intended behaviour
without them, feel free to close this bug report and thanks for the help!

Cheers,
Lukas


More information about the Gcc-bugs mailing list