From owner-freebsd-current Mon Mar 10 18:24:41 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 C276937B404 for ; Mon, 10 Mar 2003 18:24:39 -0800 (PST) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CB9B43FBF for ; Mon, 10 Mar 2003 18:24:39 -0800 (PST) (envelope-from fearow@attbi.com) Received: from god.woofcat.com (12-251-110-17.client.attbi.com[12.251.110.17]) by sccrmhc02.attbi.com (sccrmhc02) with SMTP id <2003031102243800200lbe4de>; Tue, 11 Mar 2003 02:24:38 +0000 Date: Mon, 10 Mar 2003 20:24:25 -0600 From: Anti To: Dan Naumov Cc: freebsd-current@freebsd.org Subject: Re: -O2 breaks GCC 3.2.1-compiled code (seems OS specific) Message-Id: <20030310202425.2125d97f.fearow@attbi.com> In-Reply-To: <1047347538.9634.8.camel@localhost.localdomain> References: <1047347538.9634.8.camel@localhost.localdomain> 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 11 Mar 2003 03:52:18 +0200 Dan Naumov wrote: > Hello list. > > Since my issues are related to 5.0, I though I'd rather ask here. I've > noticed an interesting problem: I am using FreeBSD 5.0-p4 and GCC 3.2.1 > and if I use "CPUTYPE=athlon-tbird" and "CFLAGS= -O2 -mmmx -m3dnow > -fomit-frame-pointer -pipe", ezm3 refuses to compile AT ALL and even > though AbiWord 1.0.4 does compile, it will always coredump on exit, > preventing saving of any changes done to the Preferences. However, going > down from -O2 to -O solved both problems. > > This makes me wonder what exactly is wrong, since I've used exactly the > same CPUTYPE and CFLAGS under Gentoo Linux with GCC 3.2.1 for a long > time and everything compiled absolutely fine. This leads me to believe > that there are not only arch-specific, but also OS-specific GCC issues. > Can anyone else confirm this ? need to add -fno-schedule-insns2 to your CFLAGS to get ezm3 to compile with -O2... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message