re PR target/51643 (Incorrect code produced for tail-call of weak function with ...
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 22 Dec 2011 17:31:50 +0000 (17:31 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Thu, 22 Dec 2011 17:31:50 +0000 (17:31 +0000)
PR target/51643
* arm.c (arm_function_ok_for_sibcall): Use DECL_WEAK in previous
change.

From-SVN: r182628

gcc/ChangeLog
gcc/config/arm/arm.c

index cc8a2a4fbfb6b1c7d589dd7f9f7d9af7b32e9b6b..3c785e1ce460e8e618340af1ab6a5618306ff248 100644 (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>
 
        * config/ia64/ia64.c (ia64_promote_function_mode): Remove.
index fec43fba90399666ae5291fcd4bc804c9f82ac86..0bded8d04e95c28dddaa24e6555163358abc0854 100644 (file)
@@ -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.  */