[Bug middle-end/88345] -Os overrides -falign-functions=N on the command line
matz at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Sep 12 12:35:10 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88345
Michael Matz <matz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |matz at gcc dot gnu.org
--- Comment #16 from Michael Matz <matz at gcc dot gnu.org> ---
I think -falign-functions=N should simply override any consideration of -Os or
coldness or suchlike. Clearly the explicit use of such option is by some
intention of the compiler user, and as the compiler can't know _what_ exactly
is intended it needs to assume that the alignment needs to hold for all
functions. Richis proposal would of course work, but seems a rather awkward
workaround for behaviour that actually is surprising.
More information about the Gcc-bugs
mailing list