This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/51643] Incorrect code produced for tail-call of weak function with -O2/-O3 option


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]