[Patch ARM] PR 40887 - Fix return to use blx.

Ramana Radhakrishnan ramana.radhakrishnan@arm.com
Wed Dec 23 09:45:00 GMT 2009


Hi, 

This patch fixes PR target/40887 by disabling the call_mem patterns for
arch > armv5te. This allows the correct generation of blx instructions
for armv5te onwards for indirect calls.

Tested with no regressions on qemu for Cortex A8 for ARM and Thumb2.

Ok to commit on trunk ?

cheers
Ramana


2009-12-10  Julian Brown  <julian@codesourcery.com>
            Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        PR target/40887

        * config/arm/arm.c (output_call_mem): Remove armv5 support.
        * config/arm/arm.md (*call_mem): Disable for armv5. Add note.
        (*call_value_mem): Likewise.


	PR target/40887

	* target/gcc.arm/pr40887.c: New test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr40887.patch
Type: text/x-patch
Size: 1561 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20091223/62c17e24/attachment.bin>


More information about the Gcc-patches mailing list