[Bug target/66232] -fPIC -fno-plt -mx32 fails to generate indirect branch via GOT

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu May 21 03:42:00 GMT 2015


--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
We can add patterns to support

(call (mem:QI (zero_extend:DI (mem/u/c:SI (const:SI (unspec:SI [
                            (symbol_ref:SI ("bar") [flags 0x41]  <function_decl
0x7f19fd7bbbd0 bar>)
                        ] UNSPEC_GOTPCREL)) [1  S4 A8])) [0 bar S1 A8])
    (const_int 0 [0]))

It is "call *bar@GOTPCREL(%rip)"

More information about the Gcc-bugs mailing list