This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
Re: Optimization trouble
- To: Mark Kettenis <kettenis@wins.uva.nl>, libc-hacker@cygnus.com
- Subject: Re: Optimization trouble
- From: Zack Weinberg <zack@rabi.columbia.edu>
- Date: Sat, 01 May 1999 08:28:54 -0400
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