This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fixes tree-loop-distribute-patterns issues


On 20-06-2013 18:34, Winfried Magerl wrote:
> Hi,
>
> [...]
>
> Don't care to much about my post because I'm the one who don't understand
> why compiling rtld-memset.c with '-fno-tree-loop-distribute-patterns'
> fixes the problem with the run-time-loader on glibc-2.18 when it
> looks like the glibc-2.17-version of memset.c is identical and
> works without any additional fix.....
> And yes, I use glibc-2.17 as system-library and it's compiled with
> gcc-4.8.1 and '-O3'.
>
> regards
>
> 	winfried
>
On x86_64 GLIBC 2.17 rtld-memset code use is 'sysdeps/x86_64/multiarch/memset.S'
(and it won't generate a recursive call regarding the CFLAGS used), however on
some point in 2.18 the build started to select 'sysdeps/x86_64/rtld-memset.c'
instead. This C implementation just include <string/memset.c> and therefore
could generate recursive calls with right compiler opts. Siddhesh patch replace
it with assembly patch, thus avoid the recursive call.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]