[coldfire-gnu-discuss] insn does not satisfy its constraints
Maxim Kuvyrkov
maxim at codesourcery.com
Mon Aug 22 16:28:22 UTC 2011
Jeff,
This appears to be a bug in the source code rather than in the compiler. The sysdepCallMethod() function explicitly refers to the FP0 register via 'register double f0d asm ("fp0")' statement, and this causes the compiler to fail when compiling for FPU-less ColdFire target.
Regards,
--
Maxim Kuvyrkov
CodeSourcery / Mentor Graphics
On Aug 23, 2011, at 12:21 AM, Boyce, Jeffrey A CAR wrote:
> Maxim,
>
> Please see attached.
>
>
> Thanks,
>
> Jeff
>
>
> -----Original Message-----
> From: Maxim Kuvyrkov [mailto:maxim at codesourcery.com]
> Sent: Sunday, August 21, 2011 2:45 AM
> To: Boyce, Jeffrey A CAR
> Cc: coldfire-gnu-discuss at codesourcery.com
> Subject: Re: [coldfire-gnu-discuss] insn does not satisfy its constraints
>
> Jeffrey,
>
> Please attach the preprocessed source file so that we can reproduce the problem on our side. You can get the preprocessed example by adding -save-temps to the command line -- the preprocessed source will be saved in a .i file.
>
> It seems something causes the compiler to generate code that uses a floating point register for a soft-fp target.
>
> Thank you,
>
> --
> Maxim Kuvyrkov
> CodeSourcery / Mentor Graphics
>
> On Aug 18, 2011, at 8:32 AM, Boyce, Jeffrey A CAR wrote:
>
>> <<methodcalls.c>> Hello,
>>
>> I'm getting the following compiler error when attempting to compile Kaffe 1.1.8 for Coldfire (54418):
>>
>> methodcalls.c: In function 'engine_callMethod':
>> methodcalls.c:225:1: error: insn does not satisfy its constraints:
>> (insn 599 398 400 47 ../../../config/md.h:99 (set (reg:DF 0 %d0)
>> (reg:DF 16 %fp0)) 52 {movdf_cf_soft} (nil))
>> methodcalls.c:225:1: internal compiler error: in reload_cse_simplify_operands, at postreload.c:403
>> Please submit a full bug report,
>> with preprocessed source if appropriate.
>> See <https://support.codesourcery.com/GNUToolchain/> for instructions.
>>
>> Methodcalls.c is attached. This happens using both 4.4.1 and 4.5.2 (2011.03-98) versions of the compilers. CFLAGS are as follows:
>>
>> -mcpu=54418 -msoft-float -march=isac -Wall -W -Wextra -fno-strict-aliasing -fno-omit-frame-pointer -O1 -pthread
>>
>> Any ideas what could be causing this error?
>>
>>
>> Thanks,
>>
>>
>> Jeff
>>
>> <methodcalls.c>
>
> <methodcalls.i>
More information about the coldfire-gnu-discuss
mailing list