aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2011-12-22 17:31:50 +0000
committerRichard Earnshaw <rearnsha@gcc.gnu.org>2011-12-22 17:31:50 +0000
commit444880b9b1f55dd5efa5212c120fcfc012ea90eb (patch)
tree556b346e1fa69436def8ad3e7b9456e72e9f9f5c /gcc/config
parent8ee957277277dd4efb39d5d828f2bfa5573c2fc8 (diff)
downloadgcc-444880b9b1f55dd5efa5212c120fcfc012ea90eb.zip
gcc-444880b9b1f55dd5efa5212c120fcfc012ea90eb.tar.gz
gcc-444880b9b1f55dd5efa5212c120fcfc012ea90eb.tar.bz2
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
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/arm/arm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index fec43fb..0bded8d 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -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. */