PR target/51643
* arm.c (arm_function_ok_for_sibcall): Use DECL_WEAK in previous
change.
From-SVN: r182629
+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-21 Richard Earnshaw <rearnsha@arm.com>
PR target/51643
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. */