This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] Define __NO_MATH_INLINES and __NO_STRING_INLINES


On Thu, 27 May 2004, Jakub Jelinek wrote:

> BTW; __builtin_bzero should be IMHO changed, so that if clear_storage called
> from it decides to call a function instead of expanding inline, it doesn't call
> memset (x, '\0', y) but bzero (x, y).
> glibc then can have a choice between defining __bzero (s, n) to
> __builtin_memset (s, '\0', n) (for architectures where it implements bzero
> as a wrapper around memset and thus memset is more efficient, see e.g. ppc)
> and __builtin_bzero (s, n) which could be used on arches where bzero library
> function is faster than memset.

If __bzero is called by macro expansions of standard functions, or from
code that might get linked into ISO C programs with an incompatible
definition of bzero, it shouldn't end up as a call to bzero (via
__builtin_bzero deciding to call bzero rather than expanding inline) on
namespace grounds.

-- 
Joseph S. Myers
jsm@polyomino.org.uk


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