Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jul 2000 01:49:19 -0700
From:      "David O'Brien" <obrien@FreeBSD.org>
To:        "Chris D. Faulhaber" <jedgar@fxp.org>
Cc:        freebsd-stable@FreeBSD.org
Subject:   Re: More optimization issues?
Message-ID:  <20000712014919.A73493@dragon.nuxi.com>
In-Reply-To: <Pine.BSF.4.21.0007111932550.1603-100000@earth.causticlabs.com>; from jedgar@fxp.org on Tue, Jul 11, 2000 at 07:48:33PM -0400
References:  <Pine.BSF.4.21.0007111932550.1603-100000@earth.causticlabs.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 11, 2000 at 07:48:33PM -0400, Chris D. Faulhaber wrote:
> While porting another program, I found the following:
> Using the default CXXFLAGS (-O -pipe):
> $ g++  -O -pipe ud2cd.cc -o ud2cd

I don't believe this... (*sigh*).  Remove the "-O" and it compiles fine
on both -CURRENT and a 4-STABLE box before the Assember / Linker upgrade.

Use ``g++ -Wall'' and ``g++ -O -Wall'' on the first (that works) you are
given two warnings about the code.  With "-O" you only get one of the
warnings (and bad linking).  The only difference is in the call to to
``cpp'' in which which "-O" causes "-D__OPTIMIZE__" (use ``g++ -v'' to
see this).

-- 
-- David  (obrien@FreeBSD.org)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000712014919.A73493>