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

2016-06-23 Thread hjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66232 --- Comment #10 from hjl at gcc dot gnu.org --- Author: hjl Date: Thu Jun 23 16:30:43 2016 New Revision: 237736 URL: https://gcc.gnu.org/viewcvs?rev=237736=gcc=rev Log: i386: Access external function via GOT slot for -fno-plt i386 psABI has

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

2016-01-19 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66232 H.J. Lu changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

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

2015-12-23 Thread uros at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66232 --- Comment #8 from uros at gcc dot gnu.org --- Author: uros Date: Wed Dec 23 09:49:28 2015 New Revision: 231923 URL: https://gcc.gnu.org/viewcvs?rev=231923=gcc=rev Log: [PATCH] Allow indirect call via GOT for 64-bit Pmode x32 From: H.J. Lu

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

2015-08-16 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66232 H.J. Lu hjl.tools at gmail dot com changed: What|Removed |Added Status|RESOLVED|REOPENED Last

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

2015-07-27 Thread hjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66232 --- Comment #6 from hjl at gcc dot gnu.org hjl at gcc dot gnu.org --- Author: hjl Date: Mon Jul 27 16:24:35 2015 New Revision: 226254 URL: https://gcc.gnu.org/viewcvs?rev=226254root=gccview=rev Log: Add more tests for PR target/66232 PR

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

2015-05-21 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66232 --- Comment #2 from H.J. Lu hjl.tools at gmail dot com --- Created attachment 35585 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35585action=edit A patch I am testing this.

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

2015-05-21 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66232 H.J. Lu hjl.tools at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

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

2015-05-21 Thread hjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66232 --- Comment #4 from hjl at gcc dot gnu.org hjl at gcc dot gnu.org --- Author: hjl Date: Thu May 21 21:58:57 2015 New Revision: 223505 URL: https://gcc.gnu.org/viewcvs?rev=223505root=gccview=rev Log: Allow indirect branch via GOT slot for x32

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

2015-05-21 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66232 --- Comment #3 from H.J. Lu hjl.tools at gmail dot com --- (In reply to H.J. Lu from comment #2) Created attachment 35585 [details] A patch I am testing this. It failed this: [hjl@gnu-6 pr66232]$ cat x.c extern void (*bar) (void); void foo

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

2015-05-20 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66232 --- 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