This is the mail archive of the libc-alpha@sources.redhat.com 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]

Re: Should we optimize memset to bzero?


> Glibc shouldn't try to second-guess GCC here.  Instead, *all* the inline
> optimisations for standard string functions should move into GCC.  Glibc
> will then need to communicate to GCC that it has certain functions such as
> __bzero that the built-in functions may reduce to.  I've previously
> suggested an implicitly included <stdc-macros.h> header that GCC would
> automatically include (if it exists) before every translation unit in
> order to define __STDC_ISO_10646__ (which describes library properties
> that change with the glibc version, but must be constant throughout the
> translation unit rather than just after some standard header has been
> included) properly. 

Wouldn't it be better to determine features of the C library at
gcc configuration time?

Regards,
Martin


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