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
This commit is contained in:
Richard Earnshaw 2011-12-22 17:31:50 +00:00 committed by Richard Earnshaw
parent 8ee9572772
commit 444880b9b1
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-12-21 Richard Earnshaw <rearnsha@arm.com>
PR target/51643
* arm.c (arm_function_ok_for_sibcall): Use DECL_WEAK in previous
change.
2011-12-22 Tristan Gingold <gingold@adacore.com> 2011-12-22 Tristan Gingold <gingold@adacore.com>
* config/ia64/ia64.c (ia64_promote_function_mode): Remove. * config/ia64/ia64.c (ia64_promote_function_mode): Remove.

View File

@ -5255,7 +5255,7 @@ arm_function_ok_for_sibcall (tree decl, tree exp)
sibling calls. */ sibling calls. */
if (TARGET_AAPCS_BASED if (TARGET_AAPCS_BASED
&& arm_abi == ARM_ABI_AAPCS && arm_abi == ARM_ABI_AAPCS
&& lookup_attribute ("weak", DECL_ATTRIBUTES (decl))) && DECL_WEAK (decl))
return false; return false;
/* Everything else is ok. */ /* Everything else is ok. */