This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/51643] Incorrect code produced for tail-call of weak function with -O2/-O3 option
- From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Dec 2011 14:13:16 +0000
- Subject: [Bug target/51643] Incorrect code produced for tail-call of weak function with -O2/-O3 option
- Auto-submitted: auto-generated
- References: <bug-51643-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51643
--- Comment #8 from Richard Earnshaw <rearnsha at gcc dot gnu.org> 2011-12-22 14:13:16 UTC ---
Author: rearnsha
Date: Thu Dec 22 14:13:09 2011
New Revision: 182621
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182621
Log:
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.
Added:
trunk/gcc/testsuite/gcc.target/arm/sibcall-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/arm/arm.c
trunk/gcc/testsuite/ChangeLog