]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix linux kernel miscompile.
authorJames E Wilson <wilson@specifixinc.com>
Fri, 17 Sep 2004 17:56:32 +0000 (17:56 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Fri, 17 Sep 2004 17:56:32 +0000 (10:56 -0700)
PR target/17455
* config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
if current_function_decl is a sibcall.

From-SVN: r87659

gcc/ChangeLog
gcc/config/ia64/ia64.c

index 05cb309f57cf2061e63455ed810d6210fc5a2164..0d6e9d12f422657be81985ea473d441570399a3c 100644 (file)
@@ -1,3 +1,9 @@
+2004-09-17  James E Wilson  <wilson@specifixinc.com>
+
+       PR target/17455
+       * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
+       if current_function_decl is a sibcall.
+
 2004-09-13  Richard Henderson  <rth@redhat.com>
 
         PR inline-asm/6806
index b90ca308e10e46ada46dd2262ac751666b95de9b..67fb535fbf0f4599f1adac39bea81afd4389c160 100644 (file)
@@ -7394,6 +7394,12 @@ bool
 ia64_function_ok_for_sibcall (decl)
      tree decl;
 {
+  /* We can't perform a sibcall if the current function has the syscall_linkage
+     attribute.  */
+  if (lookup_attribute ("syscall_linkage",
+                       TYPE_ATTRIBUTES (TREE_TYPE (current_function_decl))))
+    return false;
+
   /* We must always return with our current GP.  This means we can
      only sibcall to functions defined in the current module.  */
   return decl && (*targetm.binds_local_p) (decl);