Optimization trouble

Zack Weinberg zack@rabi.columbia.edu
Sat May 1 05:28:00 GMT 1999


On Sat, 1 May 1999 13:18:52 +0200 (CEST), Mark Kettenis wrote:
>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:
[...]
>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.

Oops, I missed that one.  The conditional should be

#if defined __GNUC__ && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 90))

which corresponds to egcs-1.1 and later.

zw



More information about the Libc-hacker mailing list