Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 2003 20:24:25 -0600
From:      Anti <fearow@attbi.com>
To:        Dan Naumov <dan.naumov@ofw.fi>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11 Mar 2003 03:52:18 +0200
Dan Naumov <dan.naumov@ofw.fi> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030310202425.2125d97f.fearow>