From owner-freebsd-stable Mon May 7 16:30:38 2001 Delivered-To: freebsd-stable@freebsd.org Received: from ecx1.edifecs.com (mail.edifecs.com [207.153.149.131]) by hub.freebsd.org (Postfix) with ESMTP id 6F75837B422 for ; Mon, 7 May 2001 16:30:32 -0700 (PDT) (envelope-from MichaelV@EDIFECS.COM) Received: by ecx1.edifecs.com with Internet Mail Service (5.5.2653.19) id ; Mon, 7 May 2001 16:35:54 -0700 Message-ID: <36F7B20351634E4FBFFE6C6A216B30D54BDD@ecx1.edifecs.com> From: Michael VanLoon To: 'Juha Saarinen' , Nuno Teixeira , Guilherme Oliveira Cc: FreeBSD Stable Subject: RE: CFLAGS Optimization Date: Mon, 7 May 2001 16:35:54 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > From: Juha Saarinen [mailto:juha@saarinen.org] > Sent: Monday, May 07, 2001 4:24 PM > > :: > Nuno Teixeira wrote: > :: > > > :: > > [i586]: > :: > > CFLAGS='-O3 -mcpu=pentium -march=pentium -ffast-math > -funroll-loops > :: > > - -fomit-frame-pointer -fforce-mem -fforce-addr -malign-double > :: > > - -fno-exceptions' > > -O2/-O3 turn on -fforce-mem; > -march implies -mcpu; > -fno-exceptions doesn't make anything run faster, and could > break some C++ > code; > > I've had bad experience with any optflags above -O on FreeBSD. Actually, implying that -O3 causes potential problems _in_FreeBSD_ is a misnomer. GCC is essentially the same, no matter which platform it's running on, especially if they're all Intel based. Linux has the same potential to be bitten by badly-formed -O3 code as FreeBSD/NetBSD/Linux/BeOS/etc. does. The point is that GCC doesn't always generate correct code when heavy optimizations are turned on. Whether you've been bitten by that yet, or not, can often times vary depending on how hard you push your system and how closely you pay attention. It can sometimes turn up in very infrequent, subtle ways. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message