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

            Bug ID: 79747
           Summary: Missing documentation for
                    -malign-{jumps,label,loops,functions}= and strange
                    value range limitation
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---
            Target: x86_64-linux-gnu

Hello.

I hit following issues related to these options:

1) PDF documentation does not document these options with trailing equals sign.
2) -malign-call is still present in documentation => I'll prepare patch for
that
3) -malign-functions (and other) do limit range a user can use:

./xgcc -B. -malign-functions=1611 /tmp/empty.c
cc1: warning: -malign-functions is obsolete, use -falign-functions
cc1: error: -malign-functions=1611 is not between 0 and 16

While using -falign-function accepts arbitrary value:

$ ./xgcc -B. -falign-functions=12345 /tmp/a.c -S -c && grep align a.s
...
        .p2align 14,,12344

I'm not sure how to properly fix 3)?

Reply via email to