[arm-gnu] CM3 - "cmp sp, r0" - error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[arm-gnu] CM3 - "cmp sp, r0" - error



Hi,

Using eabi GCC V4.3.2 the code

"cmp sp, r0"

generates the error 

"Error: r13 not allowed here -- `cmp r0,sp'"

but I think that is a valid THUMB2 instruction.  Before this GCC version the
code built with no error.

Is this a bug?  Is there a bug list somewhere, I could not find one.

Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers.  More than 7000 downloads per month.

+ http://www.FreeRTOS.org/Documentation
FreeRTOS eBook - learn how to use an RTOS!