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: [GLIBC][PATCH] Remove strcmp inlines


Joseph wrote:
On Mon, 12 Dec 2016, Adhemerval Zanella wrote:
> > I tend to agree with your rationale, however tying remove existing 
> > string2.h microoptimization with compiler support one can argue that
> > we still need to support old compiler and then it will require multiple 
> > releases to actually remove such code.
>
> Well, considering the GNU system as a whole a minimum if the optimization 
> is plausibly useful would be at least to make sure there is a GCC bug 
> filed for it before removing the optimization from glibc.

Yes I agree this is a reasonble optimization, so I've created PR 78809.
It probably doesn't help a lot in general code but the current optimizations
on strcmp are basic and that only deal with both strings constant or one
string being the empty string.

Wilco

 

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