From owner-freebsd-alpha Thu Mar 23 8: 4:58 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 0155037C4B0; Thu, 23 Mar 2000 08:04:54 -0800 (PST) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id LAA00523; Thu, 23 Mar 2000 11:04:52 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.9.3/8.9.1) id LAA09585; Thu, 23 Mar 2000 11:04:22 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 23 Mar 2000 11:04:22 -0500 (EST) To: Ed Hall Cc: obrien@FreeBSD.ORG, freebsd-alpha@FreeBSD.ORG Subject: Re: Compiler problems with -O2 (was Re: CVS Trouble, even under 4.0-RELEASE (alpha) HELP!) In-Reply-To: <200003230820.AAA12969@screech.weirdnoise.com> References: <14553.19348.115781.273817@grasshopper.cs.duke.edu> <200003230820.AAA12969@screech.weirdnoise.com> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14554.16137.955904.783199@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org (-stable and howardl@account.abs.net trimmed from the CC lines) Ed Hall writes: > Andrew Gallatin writes: > : I take it the O2 bugs are not unique to us, but rather they are > : generic across all OSes that gcc version 2.95.2 runs on? Do the gcc > : people know these problems exist? > > Just FYI, the Linux kernel is compiled with: > > -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -mno-fp-regs \ > -ffixed-8 -fno-strict-aliasing > > on Alpha, and seems quite stable with these flags. Yes, this is with > GCC 2.95.2. Any idea if the linux compiler uses the HAIFA optimizer? Perhaps that is our problem. > On applications, I've seen gains of about 20% for the higher levels of > optimization (for example, CSound processes a particular piece in 79 > seconds when compiled with just -O, and 65 seconds with -O2). This is > a useful improvement, though one that has to be balanced with the risks. To me, at least, this is not worth the risk. The Tru64 Compaq C compiler & libraries have sped up a collegue's floating-point intensive matrix manipulation code by a factor of 4. That's the To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message