diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 103892c02c5..83d13e78b22 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2006-02-02 Andrew Pinski + + 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 * tree.h (TYPE_STRING_FLAG): Document that this field may be used diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index ed23c86a1d4..27b42ea7d9c 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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)