https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101459
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to ashimida from comment #3) > (In reply to Richard Biener from comment #2) > > The flag, -falign-functions is only enabled at -O2+ (but not -Os), but the > > actual alignment is recorded in the 'align_functions' data which is only > > populated when -falign-functions is specified so I think it works as > > documented. > > so I think this flag is also worked at -O0 I think you are misunderstanding the documentation. The documentation is saying it is enabled by default at -O2 and above (but not -Os); not that it will only work at -O2 and above.