[Bug target/67215] -fno-plt needs improvements for x86

2015-10-27 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/67215] -fno-plt needs improvements for x86

2015-10-27 Thread hjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215 --- Comment #7 from hjl at gcc dot gnu.org --- Author: hjl Date: Tue Oct 27 14:29:31 2015 New Revision: 229444 URL: https://gcc.gnu.org/viewcvs?rev=229444&root=gcc&view=rev Log: Properly handle -fno-plt in ix86_expand_call prepare_call_address

[Bug target/67215] -fno-plt needs improvements for x86

2015-09-06 Thread LpSolit at netscape dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215 --- Comment #6 from H.J. Lu --- (In reply to H.J. Lu from comment #5) > Created attachment 36190 [details] > A patch > > For x86, -fno-plt should be handled by ix86_expand_call to > generate indirect call via GOT, not by forcing the function > a

[Bug target/67215] -fno-plt needs improvements for x86

2015-08-15 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215 --- Comment #5 from H.J. Lu --- Created attachment 36190 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36190&action=edit A patch For x86, -fno-plt should be handled by ix86_expand_call to generate indirect call via GOT, not by forcing the

[Bug target/67215] -fno-plt needs improvements for x86

2015-08-14 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215 H.J. Lu changed: What|Removed |Added Status|WAITING |NEW CC|

[Bug target/67215] -fno-plt needs improvements for x86

2015-08-14 Thread andrew.n.senkevich at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215 --- Comment #4 from Andrew Senkevich --- -bash-4.2$ cat test.c extern char* mem(int); char* arr[32]; void proc(void) { int i; for (i=0;i<32;i++) arr[i] = mem(128); } gcc -pie -fpie -fno-plt -O2 -S test.c -o test_32.S -m32 gcc -pie -fp

[Bug target/67215] -fno-plt needs improvements for x86

2015-08-14 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215 --- Comment #3 from H.J. Lu --- (In reply to Andrew Senkevich from comment #2) > -bash-4.2$ cat test.c > extern int proc2(int); > > int proc( void) > { > int i = proc2( 3); > > return i; > } > > gcc test.c -S -pie -fpie -o test.1.S > gcc t

[Bug target/67215] -fno-plt needs improvements for x86

2015-08-14 Thread andrew.n.senkevich at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215 --- Comment #2 from Andrew Senkevich --- -bash-4.2$ cat test.c extern int proc2(int); int proc( void) { int i = proc2( 3); return i; } gcc test.c -S -pie -fpie -o test.1.S gcc test.c -S -pie -fpie -fno-plt -o test.2.S -bash-4.2$ cat test.

[Bug target/67215] -fno-plt needs improvements for x86

2015-08-14 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|