This is the mail archive of the libc-hacker@cygnus.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]

Optimization trouble


When building the current CVS snapshot (with gcc 2.8.1) I get
undefined references to __builtin_memset.  This is obviously caused by
the following optimization patch:

1999-04-30 09:02 -0400  Zack Weinberg  <zack@rabi.columbia.edu>

	* string/bits/string2.h (memset): Avoid arithmetic overflow at
	compile time, which produces obnoxious warnings.  If GCCv2 is
	in use, map __bzero to __builtin_memset to enable that
	optimization.

Since the egcs ChangeLog has the following entry:

Fri Jan  2 04:34:14 1998  Richard Henderson  <rth@cygnus.com>

        * c-decl.c (init_decl_processing): Provide proper fallback symbol
        for __builtin_memset.

I suspect that __builtin_memset is broken in gcc and early egcs
versions.

So either we have to take the __bzero optimization out, or check for
the proper gcc version number.

Mark


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