From: Richard Earnshaw Date: Thu, 22 Dec 2011 17:32:58 +0000 (+0000) Subject: re PR target/51643 (Incorrect code produced for tail-call of weak function with ... X-Git-Tag: releases/gcc-4.6.3~234 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1f44c551b10f207d2a5eff102dd9aebef3c6293;p=thirdparty%2Fgcc.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: r182629 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cd22ed466177..9135dcfeea6b 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-21 Richard Earnshaw PR target/51643 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index f271320c80e3..0683fc634191 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -5082,7 +5082,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. */