[Bug middle-end/88345] -Os overrides -falign-functions=N on the command line

koen.zandberg at inria dot fr gcc-bugzilla@gcc.gnu.org
Fri Sep 11 10:52:32 GMT 2020


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

Koen Zandberg <koen.zandberg at inria dot fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |koen.zandberg at inria dot fr

--- Comment #6 from Koen Zandberg <koen.zandberg at inria dot fr> ---
We're hitting this bug on the an ARMv7 (cortex-m7) platform. Due to cache
alignment we see a significant increase in performance when aligning individual
functions on cache line boundaries, but we still prefer to compile with size
optimizations enabled due to the limited resources available on the platform.

Is there a way to work around this issue and enable -falign-functions together
with -Os?


More information about the Gcc-bugs mailing list