From owner-freebsd-bugs Thu Aug 30 6:50: 5 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 80A3D37B407 for ; Thu, 30 Aug 2001 06:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7UDo1T33866; Thu, 30 Aug 2001 06:50:01 -0700 (PDT) (envelope-from gnats) Date: Thu, 30 Aug 2001 06:50:01 -0700 (PDT) Message-Id: <200108301350.f7UDo1T33866@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bruce Evans Subject: Re: i386/19245: -fexpensive-optimizations buggy (even with -O) Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR i386/19245; it has been noted by GNATS. From: Bruce Evans To: Mikhail Teterin Cc: , , Subject: Re: i386/19245: -fexpensive-optimizations buggy (even with -O) Date: Thu, 30 Aug 2001 23:45:16 +1000 (EST) On Wed, 29 Aug 2001, Mikhail Teterin wrote: > > The main reason reason is that I wasn't sure that it was not a FreeBSD > > bug. There is now a near-duplicate of this PR (gnu/30181) which says > > that the bug is in both the FreeBSD port and original GNU version > > of gcc-2.95.3, and analyses generated code to locate the wrong > > instructions. It's clear that it is a gcc bug. > > But on the Mandrake the same code compiles correctly -- that's what I > don't understand. In fact, that's the only reason I filed the PR at all > -- I know about optimization problems in gcc in general. > > Did Mandrake patch the compiler somehow? Can we incorporate their fix? Maybe they just use obrien's hack to silently force -O2 down to -O1 :-). (WANT_FORCE_OPTIMIZATION_DOWNGRADE=1 in /etc/make.conf in -current.) Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message