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 2/*] Remove pre-gcc 3.4 string inline optimizations.


On Sun, 24 May 2015, Ondřej Bílka wrote:

> -/* GCC < 3.0 optimizes memset(s, 0, n) but not bzero(s, n).
> -   The optimization is broken before EGCS 1.1.
> -   GCC 3.0+ has __builtin_bzero as well, but at least till GCC 3.4
> -   if it decides to call the library function, it calls memset
> -   and not bzero.  */
> -# if __GNUC_PREREQ (2, 91)
> -#  define __bzero(s, n) __builtin_memset (s, '\0', n)
> -# endif

It looks like you're removing a definition that would be used with current 
GCC here.

-- 
Joseph S. Myers
joseph@codesourcery.com

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