From owner-freebsd-current Wed Feb 26 15:23:40 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD29037B401 for ; Wed, 26 Feb 2003 15:23:39 -0800 (PST) Received: from sccrmhc03.attbi.com (sccrmhc03.attbi.com [204.127.202.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25C2B43F3F for ; Wed, 26 Feb 2003 15:23:37 -0800 (PST) (envelope-from fearow@attbi.com) Received: from god.woofcat.com (12-251-110-17.client.attbi.com[12.251.110.17]) by sccrmhc03.attbi.com (sccrmhc03) with SMTP id <20030226232336003007j16be>; Wed, 26 Feb 2003 23:23:36 +0000 Date: Wed, 26 Feb 2003 17:23:33 -0600 From: Anti To: Jens Rehsack Cc: des@ofug.org, current@freebsd.org Subject: Re: -O2 considered harmful Message-Id: <20030226172333.5aed8fec.fearow@attbi.com> In-Reply-To: <3E5CADDE.9060900@liwing.de> References: <3E5CADDE.9060900@liwing.de> Organization: Woofcat X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 26 Feb 2003 13:06:54 +0100 Jens Rehsack wrote: > Dag-Erling Smorgrav wrote: > > It seems that with -O2 on ia32 (-march=k6-2 in my case), gcc will in > > some cases generate short jumps to targets too far away for the offset > > to fit in a single byte. A surefire way to reproduce this is to build > > Mesa (or XFree86-4-libraries, which includes parts of Mesa). > > > > Has anybody else run into this? > > > > I build world and ports on desktop machines usually using -O2 and never > got any problems, except with lang/ezm3. If you tell me, where you've > find the problems, I'll tell my gcc to keep the temporaries and check > them after a make build. you need to add "-fno-schedule-insns2" to your CFLAGS to compile ezm3 with -O2... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message