public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/101459] New: Mismatch in description of option "-falign-functions" between source code and documentation
@ 2021-07-15  6:09 ashimida at linux dot alibaba.com
  2021-07-15  6:10 ` [Bug other/101459] " ashimida at linux dot alibaba.com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ashimida at linux dot alibaba.com @ 2021-07-15  6:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101459
           Summary: Mismatch in description of option "-falign-functions"
                    between source code and documentation
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ashimida at linux dot alibaba.com
  Target Milestone: ---

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);
  }
  ......
}

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-07-16  1:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-15  6:09 [Bug other/101459] New: Mismatch in description of option "-falign-functions" between source code and documentation ashimida at linux dot alibaba.com
2021-07-15  6:10 ` [Bug other/101459] " ashimida at linux dot alibaba.com
2021-07-15  7:12 ` rguenth at gcc dot gnu.org
2021-07-15  7:37 ` ashimida at linux dot alibaba.com
2021-07-16  1:03 ` pinskia at gcc dot gnu.org
2021-07-16  1:28 ` ashimida at linux dot alibaba.com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).