From owner-freebsd-current Wed Feb 26 11:40:27 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 1E91337B401 for ; Wed, 26 Feb 2003 11:40:26 -0800 (PST) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05A3243F85 for ; Wed, 26 Feb 2003 11:40:25 -0800 (PST) (envelope-from DougB@freebsd.org) Received: from master.gorean.org (12-234-22-23.client.attbi.com[12.234.22.23]) by sccrmhc01.attbi.com (sccrmhc01) with SMTP id <2003022619402300100a44lke>; Wed, 26 Feb 2003 19:40:24 +0000 Date: Wed, 26 Feb 2003 11:40:23 -0800 (PST) From: Doug Barton To: Dag-Erling Smorgrav Cc: current@freebsd.org Subject: Re: -O2 considered harmful In-Reply-To: Message-ID: <20030226113815.W5357@znfgre.tberna.bet> References: Organization: http://www.FreeBSD.org/ X-message-flag: Outlook -- Not just for spreading viruses anymore! MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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, 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). I was recently a participant in a thread in another forum where all sorts of people, including a well respected gcc developer, said categorically that the latest (stock) gcc produces correct code with -O2 in all cases on ia32. If it doesn't, the gcc folks would like a bug report. Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message