Re: [arm-gnu] Re: Compiler internal error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [arm-gnu] Re: Compiler internal error
- To: Daniel Jacobowitz <dan@xxxxxxxxxxxxxxxx>
- Subject: Re: [arm-gnu] Re: Compiler internal error
- From: Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
- Date: Fri, 20 Feb 2009 07:45:59 -0800
Daniel Jacobowitz wrote:
> On Fri, Feb 20, 2009 at 04:00:03PM +0530, Kishore wrote:
>> Indeed. It does work fine without the naked attribute, however the same code
>> compiles fine with GNUARM. Also it does compile fine when the parameters are
>> passed as constant zero.
>
> It may compile, but that doesn't necessarily mean that the generated
> code is safe.
Indeed. While we agree that the crash is a bug in the compiler, the
right behavior is an error message, not a successful compilation. It
may happen to work with some versions of GCC (including older versions
of Sourcery G++), but it is working by chance. So, yes, this is a bug
in the code that you got.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@xxxxxxxxxxxxxxxx
(650) 331-3385 x713