[Bug c/84100] [7 Regression] Function __attribute__((optimize(align-loops=32))) gives spurious warning

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 6 13:51:00 GMT 2018


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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org
           Assignee|jakub at gcc dot gnu.org           |marxin at gcc dot gnu.org

--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
I see one another problem with usage of the pragma:

$ cat lbm.i
void a (void) {}
#pragma GCC push_options
#pragma GCC optimize "align-functions=128"
void b (void) {}
#pragma GCC pop_options
void c (void) {}

$ ./xgcc -B. -O2 -S lbm.i -c -o/dev/stdout
        .file   "lbm.i"
        .text
        .p2align 4,,15
        .globl  a
        .type   a, @function
a:
.LFB0:
        .cfi_startproc
        ret
        .cfi_endproc
.LFE0:
        .size   a, .-a
        .p2align 4,,127 <-------- THIS is wrong as it should be '6,,127'
        .globl  b
        .type   b, @function
b:
.LFB1:
        .cfi_startproc
        ret
        .cfi_endproc
.LFE1:
        .size   b, .-b
...

I've got patch for that, let me Jakub take this PR.


More information about the Gcc-bugs mailing list