From owner-freebsd-current Wed Mar 15 23:11:13 2000 Delivered-To: freebsd-current@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by hub.freebsd.org (Postfix) with ESMTP id 61D6537BDBA for ; Wed, 15 Mar 2000 23:11:10 -0800 (PST) (envelope-from Doug@gorean.org) Received: from gorean.org (doug@master [10.0.0.2]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id XAA07496; Wed, 15 Mar 2000 23:11:05 -0800 (PST) (envelope-from Doug@gorean.org) Message-ID: <38D08908.C629B55E@gorean.org> Date: Wed, 15 Mar 2000 23:11:04 -0800 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.72 [en] (X11; U; FreeBSD 5.0-CURRENT-0313 i386) X-Accept-Language: en MIME-Version: 1.0 To: Christian Weisgerber Cc: freebsd-current@freebsd.org Subject: Re: gcc -Os optimisation broken (RELENG_4) References: <38CF48CF.59A100D7@altavista.net> <8ap8qe$hvj$1@bigeye.rhein-neckar.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Christian Weisgerber wrote: > > Maxim Sobolev wrote: > > > I've just upgraded my production server to the 4.0-RELEASE and found that > > squid23 when compiled with -Os option dying with signal 11 on each attempt to > > load page. When I recompiled it with -O fault disappeared. > > Which brings us back to the popular topic of which optimization > levels are reliable. > > Building 5.0-CURRENT with "-Os -mpentium" failed for me with gas > complaining (unknown opcode I think, but don't hold me to it). I > went back to "-O -mpentium" and that worked fine. On another machine, > "-O2 -mpentiumpro" worked, too. Hmm... If I have a PII (Actually celeron 300A) or a PIII, which is better, 'pentium' or 'pentiumpro'? I would think the latter, but I've learned not to assume where gcc is concerned. Also, I have heard conflicting reports as to whether compiling the kernel/world with optimisations is a good thing. Anyone care to (re)open that can of worms? Thanks, Doug -- "While the future's there for anyone to change, still you know it seems, it would be easier sometimes to change the past" - Jackson Browne, "Fountain of Sorrow" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message