On Sun, Feb 09, 2003, David Schultz wrote:

> > Yet squid under i386 freebsd is .. well, finds -O bugs in gcc.
> > We gave up trying -O under FreeBSD a long time ago. :-)
> 
> The last time someone told me, ``gcc -O is broken'', it turned out
> that they were doing some stack fiddling, and gcc's optimizations
> broke their faulty assumptions.  On the other hand, I'm sure gcc -O
> does have bugs.  Do you have an example snippet that gets miscompiled?

Err, grab the squid24 port, hack the configure script to remove the
bit where it removes -O for FreeBSD, compile, install, run.

It should die quite quickly after you submit a HTTP request which
requires a DNS lookup - GCC generates an xor %eax, %eax at the beginning
of a function which NULLs a pointer - that we're not NULLing. :-)




Adrian

-- 
Adrian Chadd                    <angryskul> learning is bad
<[EMAIL PROTECTED]>              <angryskul> it just makes the people around you 
dumber
(angryskul == alfred@irc)           <angryskul> :(


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to