------- Comment #1 from pinskia at gcc dot gnu dot org  2006-03-03 23:40 -------
Here is the patch which should fix this bug:
Index: i386.c
===================================================================
--- i386.c      (revision 111688)
+++ i386.c      (working copy)
@@ -2232,7 +2232,9 @@ ix86_function_ok_for_sibcall (tree decl,
   /* If we are generating position-independent code, we cannot sibcall
      optimize any indirect call, or a direct call to a global function,
      as the PLT requires %ebx be live.  */
-  if (!TARGET_64BIT && flag_pic && (!decl || !targetm.binds_local_p (decl)))
+  if (!TARGET_MACHO
+      && !TARGET_64BIT
+      && flag_pic && (!decl || !targetm.binds_local_p (decl)))
     return false;

   if (decl)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26552

Reply via email to