i386.c (ix86_function_ok_for_sibcall): Correct check for sibcall support for w64.

2008-09-23  Kai Tietz  <kai.tietz@onevision.com>

        *config/i386/i386.c (ix86_function_ok_for_sibcall): Correct
        check for sibcall support for w64.

From-SVN: r140606
This commit is contained in:
Kai Tietz 2008-09-23 17:56:45 +00:00 committed by Kai Tietz
parent b9a4b11fbd
commit 37e27d01ca
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-09-23 Kai Tietz <kai.tietz@onevision.com>
*config/i386/i386.c (ix86_function_ok_for_sibcall): Correct
check for sibcall support for w64.
2008-09-23 Eric Botcazou <ebotcazou@adacore.com>
* c-ppoutput.c (cb_used_define): Do nothing for a builtin node.

View File

@ -4099,6 +4099,7 @@ ix86_function_ok_for_sibcall (tree decl, tree exp)
/* Dllimport'd functions are also called indirectly. */
if (TARGET_DLLIMPORT_DECL_ATTRIBUTES
&& !TARGET_64BIT
&& decl && DECL_DLLIMPORT_P (decl)
&& ix86_function_regparm (TREE_TYPE (decl), NULL) >= 3)
return false;