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

From-SVN: r182629

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

index cd22ed466177aae011adc86c97121ada382d8b2a..9135dcfeea6b6cbd005ab9afb72b9e0592ec02f4 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-21  Richard Earnshaw  <rearnsha@arm.com>
 
        PR target/51643
index f271320c80e3a359807017d27a3f01df364c465b..0683fc63419104b849ca3dd48ae7ad6370c3d487 100644 (file)
@@ -5082,7 +5082,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.  */