From owner-freebsd-stable Wed Jul 12 1:49:34 2000 Delivered-To: freebsd-stable@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [209.152.133.57]) by hub.freebsd.org (Postfix) with ESMTP id 0AEAD37B819 for ; Wed, 12 Jul 2000 01:49:28 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.9.3/8.9.1) id BAA73640; Wed, 12 Jul 2000 01:49:19 -0700 (PDT) (envelope-from obrien) Date: Wed, 12 Jul 2000 01:49:19 -0700 From: "David O'Brien" To: "Chris D. Faulhaber" Cc: freebsd-stable@FreeBSD.org Subject: Re: More optimization issues? Message-ID: <20000712014919.A73493@dragon.nuxi.com> Reply-To: obrien@FreeBSD.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from jedgar@fxp.org on Tue, Jul 11, 2000 at 07:48:33PM -0400 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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