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
This commit is contained in:
parent
05fa7d54d9
commit
010ef11091
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
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>
|
||||
|
||||
* 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)
|
|||
/* 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 || TREE_PUBLIC (decl)))
|
||||
if (!TARGET_64BIT && flag_pic && (!decl || !targetm.binds_local_p (decl)))
|
||||
return false;
|
||||
|
||||
if (decl)
|
||||
|
|
Loading…
Add table
Reference in a new issue