[Bug target/70146] missed-optimization: i386 hidden references should use PC32 relocations instead of GOTOFF

2016-03-11 Thread luto at kernel dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70146 --- Comment #6 from Andy Lutomirski --- The PLT case could be reduced significantly by -fno-plt, but the TLS issue is just sad. I don't suppose it could be fixed with just toolchain changes while retaining compatibility with existing libc

[Bug target/70146] missed-optimization: i386 hidden references should use PC32 relocations instead of GOTOFF

2016-03-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70146 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #5

[Bug target/70146] missed-optimization: i386 hidden references should use PC32 relocations instead of GOTOFF

2016-03-10 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70146 --- Comment #4 from H.J. Lu --- (In reply to Andy Lutomirski from comment #3) > I think a similar optimization could be applied to default-visibility > references as well. For example, gcc can generate things like this: > > call

[Bug target/70146] missed-optimization: i386 hidden references should use PC32 relocations instead of GOTOFF

2016-03-10 Thread luto at kernel dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70146 --- Comment #3 from Andy Lutomirski --- I think a similar optimization could be applied to default-visibility references as well. For example, gcc can generate things like this: call__x86.get_pc_thunk.ax addl

[Bug target/70146] missed-optimization: i386 hidden references should use PC32 relocations instead of GOTOFF

2016-03-09 Thread richard at netbsd dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70146 Richard PALO changed: What|Removed |Added CC||richard at netbsd dot org --- Comment #2

[Bug target/70146] missed-optimization: i386 hidden references should use PC32 relocations instead of GOTOFF

2016-03-09 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70146 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/70146] missed-optimization: i386 hidden references should use PC32 relocations instead of GOTOFF

2016-03-09 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70146 --- Comment #1 from H.J. Lu --- We do it for MacOS: #if TARGET_MACHO /* Output the Mach-O "canonical" pic base label name ("Lxx$pb") here. This is what will be referenced by the Mach-O PIC subsystem. */ if