From: Richard Earnshaw Date: Thu, 22 Dec 2011 17:31:50 +0000 (+0000) Subject: re PR target/51643 (Incorrect code produced for tail-call of weak function with ... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=444880b9b1f55dd5efa5212c120fcfc012ea90eb;p=gcc.git 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): Use DECL_WEAK in previous change. From-SVN: r182628 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cc8a2a4fbfb..3c785e1ce46 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-12-21 Richard Earnshaw + + PR target/51643 + * arm.c (arm_function_ok_for_sibcall): Use DECL_WEAK in previous + change. + 2011-12-22 Tristan Gingold * config/ia64/ia64.c (ia64_promote_function_mode): Remove. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index fec43fba903..0bded8d04e9 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -5255,7 +5255,7 @@ arm_function_ok_for_sibcall (tree decl, tree exp) sibling calls. */ if (TARGET_AAPCS_BASED && arm_abi == ARM_ABI_AAPCS - && lookup_attribute ("weak", DECL_ATTRIBUTES (decl))) + && DECL_WEAK (decl)) return false; /* Everything else is ok. */