Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Nov 2002 16:36:54 +0900
From:      TOMITA Yoshinori <yoshint@flab.fujitsu.co.jp>
To:        David Schultz <dschultz@uclink.Berkeley.EDU>
Cc:        Thomas David Rivers <rivers@dignus.com>, FreeBSD-current@FreeBSD.ORG
Subject:   Re: gcc 3.2.1 optimization bug ?
Message-ID:  <ywld6p7l1wp.fsf@cerberus.proc.flab.fujitsu.co.jp>
In-Reply-To: <20021115013750.GA12079@HAL9000.homeunix.com> (David Schultz's message of "Thu, 14 Nov 2002 17:37:50 -0800")
References:  <ywlvg34jn21.fsf@cerberus.proc.flab.fujitsu.co.jp> <200211111355.gABDt2g55397@lakes.dignus.com> <ywlfzu8i44g.fsf@cerberus.proc.flab.fujitsu.co.jp> <20021115013750.GA12079@HAL9000.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>> On Thu, 14 Nov 2002 17:37:50 -0800, David Schultz
>> <dschultz@uclink.Berkeley.EDU> said:

Da> You can work around the problem by disabling -fschedule-insns or
Da> -fstrict-aliasing, both of which are turned on by -O2.  The latter
Da> option is the more direct cause of your problem, but for some
Da> reason only the combination of the two seems to generate incorrect
Da> output on i386.

Before posting that question here, one of my colleague advised me that
it may have something to do with "aliasing" feature.  I looked up the
option "-fstrict-aliasing" in gcc.info and tried:

       gcc -O2 -fstrict-aliasing ...

ha-ha... I should have read the info more carefully.
-fno-strict-alias also worked for it. Thanks.


-- 
TOMITA Yoshinori

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?ywld6p7l1wp.fsf>