https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101459
--- Comment #1 from ashimida <ashimida at linux dot alibaba.com> ---
(In reply to ashimida from comment #0)
> As descripted in online doc [1], -falign-functions is enable at levels
> -O2/-O3.
> But from source code and test result, this options is worked for all options
> except -Os(such as -O0).
> Is this an error in the documentation, or am I misunderstanding something?
>
> FYI:
> // ./gcc/varasm.c
> void assemble_start_function (tree decl, const char *fnname)
> {
> ......
> if (! DECL_USER_ALIGN (decl)
> && align_functions.levels[0].log > align
> && optimize_function_for_speed_p (cfun))
> {
> int align_log = align_functions.levels[0].log;
> ......
> ASM_OUTPUT_ALIGN (asm_out_file, align_functions.levels[0].log);
> }
> ......
> }
[1] https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#Optimize-Options