arm.c (thumb1_final_prescan_insn): Assert lr save for real far jump.
authorJoey Ye <joey.ye@arm.com>
Mon, 15 Apr 2013 07:41:27 +0000 (07:41 +0000)
committerJoey Ye <jye2@gcc.gnu.org>
Mon, 15 Apr 2013 07:41:27 +0000 (07:41 +0000)
commit517b1da2746f0abd2151331e18673898fd8dc367
treedf5a6b0d5b2fa9c82cf54232d1868739e59ac29c
parentc21f34f1e19c0503bb56852233c969a7b107e080
arm.c (thumb1_final_prescan_insn): Assert lr save for real far jump.

2013-04-15  Joey Ye  <joey.ye@arm.com>

    * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
    for real far jump.
    (thumb_far_jump_used_p): Count instruction size and set
    far_jump_used.

testsuite:
    * gcc.target/arm/thumb1-far-jump-1.c: New test.
    * gcc.target/arm/thumb1-far-jump-2.c: New test.

From-SVN: r197956
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/thumb1-far-jump-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/thumb1-far-jump-2.c [new file with mode: 0644]