OSDN Git Service

PR target/51643
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Dec 2011 17:31:50 +0000 (17:31 +0000)
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Dec 2011 17:31:50 +0000 (17:31 +0000)
* arm.c (arm_function_ok_for_sibcall): Use DECL_WEAK in previous
change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182628 138bc75d-0d04-0410-961f-82ee72b054a4

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

index cc8a2a4..3c785e1 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 fec43fb..0bded8d 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.  */