Re: PING: [PATCH] PR target/65846: Optimize data access in PIE with copy reloc

2015-05-26 Thread Evgeny Stupachenko
GCC built with latest binutils and the patch give the following performance improve: spec2000INT +3% at "-O2 -m32", +1,5% at "-O2 -m64". Some other benchmark scores at "-O2" were also improved up to 6%. The patch is very efficient for PIE mode. Thanks, Evgeny On Tue, May 5, 2015 at 6:30 PM, H.J

PING: [PATCH] PR target/65846: Optimize data access in PIE with copy reloc

2015-05-05 Thread H.J. Lu
On Wed, Apr 22, 2015 at 9:34 AM, H.J. Lu wrote: > Normally, with PIE, GCC accesses globals that are extern to the module > using GOT. This is two instructions, one to get the address of the global > from GOT and the other to get the value. Examples: > > --- > extern int a_glob; > int > main () >

Re: [PATCH] PR target/65846: Optimize data access in PIE with copy reloc

2015-04-22 Thread H.J. Lu
On Wed, Apr 22, 2015 at 3:15 PM, Ramana Radhakrishnan wrote: > On Wed, Apr 22, 2015 at 5:34 PM, H.J. Lu wrote: >> Normally, with PIE, GCC accesses globals that are extern to the module >> using GOT. This is two instructions, one to get the address of the global >> from GOT and the other to get t

Re: [PATCH] PR target/65846: Optimize data access in PIE with copy reloc

2015-04-22 Thread Ramana Radhakrishnan
On Wed, Apr 22, 2015 at 5:34 PM, H.J. Lu wrote: > Normally, with PIE, GCC accesses globals that are extern to the module > using GOT. This is two instructions, one to get the address of the global > from GOT and the other to get the value. Examples: > > --- > extern int a_glob; > int > main () >

[PATCH] PR target/65846: Optimize data access in PIE with copy reloc

2015-04-22 Thread H.J. Lu
Normally, with PIE, GCC accesses globals that are extern to the module using GOT. This is two instructions, one to get the address of the global from GOT and the other to get the value. Examples: --- extern int a_glob; int main () { return a_glob; } --- With PIE, the generated code accesses g