[Bug target/58523] ARM and AArch64: -fsection-anchors doesn't seem to work

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 25 06:30:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58523

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
With -fno-common,
arm LE produces:
    movw    r3, #:lower16:.LANCHOR0
    movt    r3, #:upper16:.LANCHOR0
    ldmia    r3, {r0, r3}
    add    r0, r0, r3
    bx    lr

AARCH64 produces:
    adrp    x1, .LANCHOR0
    add    x1, x1, :lo12:.LANCHOR0
    ldr    w2, [x1]
    ldr    w0, [x1,4]
    add    w0, w2, w0
    ret



More information about the Gcc-bugs mailing list