Fix linux kernel miscompilation.
PR target/17455 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false if current_function_decl is a sibcall. From-SVN: r87574
This commit is contained in:
parent
04a7518894
commit
097f3d486a
@ -1,3 +1,9 @@
|
|||||||
|
2004-09-15 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-15 Mark Mitchell <mark@codesourcery.com>
|
2004-09-15 Mark Mitchell <mark@codesourcery.com>
|
||||||
|
|
||||||
* varasm.c (default_function_rdodata_section): Make sure to pass
|
* varasm.c (default_function_rdodata_section): Make sure to pass
|
||||||
|
@ -3367,6 +3367,12 @@ ia64_pass_by_reference (CUMULATIVE_ARGS *cum ATTRIBUTE_UNUSED,
|
|||||||
static bool
|
static bool
|
||||||
ia64_function_ok_for_sibcall (tree decl, tree exp ATTRIBUTE_UNUSED)
|
ia64_function_ok_for_sibcall (tree decl, tree exp ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
|
/* 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
|
/* We must always return with our current GP. This means we can
|
||||||
only sibcall to functions defined in the current module. */
|
only sibcall to functions defined in the current module. */
|
||||||
return decl && (*targetm.binds_local_p) (decl);
|
return decl && (*targetm.binds_local_p) (decl);
|
||||||
|
Loading…
Reference in New Issue
Block a user