Subject: Fwd: toolchain/23002: gcc3.3.1 miscompiles newsyslog on ARM
To: None <port-mips@netbsd.org>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: port-mips
Date: 10/01/2003 13:38:23
There was some talk about GCC 3.3.1 having problems with GCSE on MIPS.  
Please try Richard's suggestions of -fno-gcse-lm to see if that works 
around the problem for MIPS, too.  This will help track down the bug.

Begin forwarded message:

> From: Richard Earnshaw <rearnsha@arm.com>
> Date: Wed Oct 1, 2003  11:58:24  AM US/Pacific
> To: Jason Thorpe <thorpej@wasabisystems.com>
> Cc: rearnsha@arm.com, gnats-bugs@gnats.netbsd.org
> Subject: Re: toolchain/23002: gcc3.3.1 miscompiles newsyslog on ARM
> Reply-To: Richard.Earnshaw@arm.com
>
>>
>> On Monday, September 29, 2003, at 02:54  AM, Richard Earnshaw wrote:
>>
>>>> Fix:
>>> 	This appears to be a bug in the GCSE pass of gcc (still 
>>> investigating)
>>> 	A work-around is to build newsyslog on ARM with -fno-gcse.
>>
>> FWIW, the MIPS port apparently has a problem with GCSE.
>>
>>          -- Jason R. Thorpe <thorpej@wasabisystems.com>
>>
>
> Further investigation has shown that it's only load-motion that causes 
> the
> problem, so -fno-gcse-lm is sufficient to avoid the bug on ARM.
>
> R.
>
         -- Jason R. Thorpe <thorpej@wasabisystems.com>