Commit 444880b9 by Richard Earnshaw Committed by Richard Earnshaw

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
parent 8ee95727
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.
...@@ -5255,7 +5255,7 @@ arm_function_ok_for_sibcall (tree decl, tree exp) ...@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment