re PR target/51643 (Incorrect code produced for tail-call of weak function with ...
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 22 Dec 2011 14:13:09 +0000 (14:13 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Thu, 22 Dec 2011 14:13:09 +0000 (14:13 +0000)
commit50c9d049978e096b754415819c521c9d9504173e
treebce6c504cb06327a64dfee7c868d0aae7206e80c
parent9dacb44bf10a5151a0d0e1a2a22865ed00575d40
re PR target/51643 (Incorrect code produced for tail-call of weak function with -O2/-O3 option)

PR target/51643
* arm.c (arm_function_ok_for_sibcall): Don't try to tailcall a
weak function on bare-metal EABI targets.

* gcc.target/arm/sibcall-2.c: New test.

From-SVN: r182621
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/sibcall-2.c [new file with mode: 0644]