[Bug target/63815] g++.dg/other/pr53811.C fails with -mcmodel=large -fpic

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Nov 11 20:18:00 GMT 2014


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

--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
Large model thunk with PIC never worked.  GCC 4.8 generates:

_ZThn8_N12ScriptString12CreateStringEPKc:
.LFB1:
    .cfi_startproc
    subq    $8, %rdi
    movabsq    $.LTHUNK0@GOTOFF, %r10
    addq    %rbx, %r10
    jmp    *%r10
    .cfi_endproc


It never sets up GOT base pointer.



More information about the Gcc-bugs mailing list