Commit 010ef110 by Andrew Pinski Committed by Andrew Pinski

re PR target/25377 (weakref sibcalled with -fPIC)

2006-02-02  Andrew Pinski  <pinskia@physics.uc.edu>

        PR target/25377
        * config/i386/i386.c (ix86_function_ok_for_sibcall):
        Use targetm.binds_local_p instead of TREE_PUBLIC.

From-SVN: r110537
parent 05fa7d54
2006-02-02 Andrew Pinski <pinskia@physics.uc.edu>
PR target/25377
* config/i386/i386.c (ix86_function_ok_for_sibcall):
Use targetm.binds_local_p instead of TREE_PUBLIC.
2006-02-02 Roger Sayle <roger@eyesopen.com> 2006-02-02 Roger Sayle <roger@eyesopen.com>
* tree.h (TYPE_STRING_FLAG): Document that this field may be used * tree.h (TYPE_STRING_FLAG): Document that this field may be used
......
...@@ -2228,7 +2228,7 @@ ix86_function_ok_for_sibcall (tree decl, tree exp) ...@@ -2228,7 +2228,7 @@ ix86_function_ok_for_sibcall (tree decl, tree exp)
/* If we are generating position-independent code, we cannot sibcall /* If we are generating position-independent code, we cannot sibcall
optimize any indirect call, or a direct call to a global function, optimize any indirect call, or a direct call to a global function,
as the PLT requires %ebx be live. */ as the PLT requires %ebx be live. */
if (!TARGET_64BIT && flag_pic && (!decl || TREE_PUBLIC (decl))) if (!TARGET_64BIT && flag_pic && (!decl || !targetm.binds_local_p (decl)))
return false; return false;
if (decl) if (decl)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment