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:
parent
8ee9572772
commit
444880b9b1
@ -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>
|
||||
|
||||
* config/ia64/ia64.c (ia64_promote_function_mode): Remove.
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user