[Bug target/91766] -fvisibility=hidden during -fpic still uses GOT indirection on arm64

2019-09-14 Thread blu.dark at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91766 --- Comment #5 from martin krastev --- For reference, here what -fvisibility=hidden -fpic -fcommon produces on amd64 (https://godbolt.org/z/0aIyhl): foo: movl$0, room(%rip) leaqroom(%rip), %rax ret Notice the abs

[Bug target/91766] -fvisibility=hidden during -fpic still uses GOT indirection on arm64

2019-09-14 Thread blu.dark at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91766 --- Comment #3 from martin krastev --- So it appears to be a clash between -fcommon and -fvisibility=hidden during -fpic -- passing either -fno-common or -fno-pic drops the GOT indirection. And explicitly hiding the symbol obviously solves it. Bu

[Bug c/91766] New: -fvisibility=hidden during -fpic still uses GOT indirection on arm64

2019-09-13 Thread blu.dark at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: blu.dark at gmail dot com Target Milestone: --- Passing -fvisibility=hidden does not stop GOT round-trips for global symbols during -fpic. Example: #if DO_HIDE #define HIDE