From owner-freebsd-alpha Sun Sep 30 22:51:26 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from mail.baerum.kommune.no (mail.baerum.kommune.no [195.134.40.62]) by hub.freebsd.org (Postfix) with SMTP id 82DDA37B40D for ; Sun, 30 Sep 2001 22:51:22 -0700 (PDT) Received: from SA-D01-Message_Server by mail.baerum.kommune.no with Novell_GroupWise; Mon, 01 Oct 2001 07:52:32 +0200 Message-Id: X-Mailer: Novell GroupWise 5.5.2 Date: Mon, 01 Oct 2001 07:52:12 +0200 From: "Idar Tollefsen" To: Cc: Subject: Re: the -O2 flag Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > > Now that I"ve created make.conf to set my architecture so that gcc > > doesn't crash while compiling KDE with -O as is the default, I have > > another question. Somehow it still ends up with -O2 in the Makefiles > > that the configure script builds. g++ gives a big warning about known > > optimizer bugs on this platform with that switch. Now does this mean > > gcc might crash while compiling or that it may produce bad object = code? > > I've always tried to edit that flag out of makefiles, but this damn > > thing has a makefile in every subdirectory so I'd have to edit several > > dozen. >Possible bad code -- but with using the -mev56 flag, it may produce OK >code. >When I built kde, I seem to remember running find with a perl -pi to >edit each make file (or configure file). Its been a while.. Another thing to note is that it adds the flags from make.conf _after_ the KDE makefile flags. The result is that the -O? you specified in make.conf is the one that comes last, and according to the gcc man pages, the -O parameter specified last is the one that is used. I suspect that it spews out those warnings simply because -O2 is part of the command line at all, without necessarily beeing the one that is used. - IT To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message