Commit 8a762fcb by Kai Tietz Committed by Kai Tietz

i386-protos.h (ix86_reg_parm_stack_space): New.

2008-06-03  Kai Tietz  <kai.tietz@onevision.com>

	* config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
	* config/i386/i386.h (ix86_reg_parm_stack_space): Removed
	prototype.
	* config/i386/i386.c (ix86_reg_parm_stack_space): Changed
	return type to int.
	(ix86_call_abi_override): Remove check for call_used_regs.

From-SVN: r136319
parent db736800
2008-06-03 Kai Tietz <kai.tietz@onevision.com>
* config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
* config/i386/i386.h (ix86_reg_parm_stack_space): Removed
prototype.
* config/i386/i386.c (ix86_reg_parm_stack_space): Changed
return type to int.
(ix86_call_abi_override): Remove check for call_used_regs.
2008-06-03 Richard Guenther <rguenther@suse.de> 2008-06-03 Richard Guenther <rguenther@suse.de>
* tree-ssa-structalias.c (find_func_aliases): Add constraints * tree-ssa-structalias.c (find_func_aliases): Add constraints
......
...@@ -141,6 +141,7 @@ extern int ix86_cfun_abi (void); ...@@ -141,6 +141,7 @@ extern int ix86_cfun_abi (void);
extern int ix86_function_abi (const_tree); extern int ix86_function_abi (const_tree);
extern int ix86_function_type_abi (const_tree); extern int ix86_function_type_abi (const_tree);
extern void ix86_call_abi_override (const_tree); extern void ix86_call_abi_override (const_tree);
extern int ix86_reg_parm_stack_space (const_tree);
extern void ix86_split_fp_branch (enum rtx_code code, rtx, rtx, extern void ix86_split_fp_branch (enum rtx_code code, rtx, rtx,
rtx, rtx, rtx, rtx); rtx, rtx, rtx, rtx);
......
...@@ -3542,7 +3542,7 @@ ix86_must_pass_in_stack (enum machine_mode mode, const_tree type) ...@@ -3542,7 +3542,7 @@ ix86_must_pass_in_stack (enum machine_mode mode, const_tree type)
/* It returns the size, in bytes, of the area reserved for arguments passed /* It returns the size, in bytes, of the area reserved for arguments passed
in registers for the function represented by fndecl dependent to the used in registers for the function represented by fndecl dependent to the used
abi format. */ abi format. */
unsigned int int
ix86_reg_parm_stack_space (const_tree fndecl) ix86_reg_parm_stack_space (const_tree fndecl)
{ {
int call_abi = 0; int call_abi = 0;
...@@ -3611,7 +3611,7 @@ ix86_call_abi_override (const_tree fndecl) ...@@ -3611,7 +3611,7 @@ ix86_call_abi_override (const_tree fndecl)
cfun->machine->call_abi = DEFAULT_ABI; cfun->machine->call_abi = DEFAULT_ABI;
else else
cfun->machine->call_abi = ix86_function_type_abi (TREE_TYPE (fndecl)); cfun->machine->call_abi = ix86_function_type_abi (TREE_TYPE (fndecl));
if (TARGET_64BIT && cfun->machine->call_abi == MS_ABI && call_used_regs) if (TARGET_64BIT && cfun->machine->call_abi == MS_ABI)
{ {
if (call_used_regs[4 /*RSI*/] != 0 || call_used_regs[5 /*RDI*/] != 0) if (call_used_regs[4 /*RSI*/] != 0 || call_used_regs[5 /*RDI*/] != 0)
{ {
...@@ -3620,7 +3620,7 @@ ix86_call_abi_override (const_tree fndecl) ...@@ -3620,7 +3620,7 @@ ix86_call_abi_override (const_tree fndecl)
init_regs (); init_regs ();
} }
} }
else if (TARGET_64BIT && call_used_regs) else if (TARGET_64BIT)
{ {
if (call_used_regs[4 /*RSI*/] != 1 || call_used_regs[5 /*RDI*/] != 1) if (call_used_regs[4 /*RSI*/] != 1 || call_used_regs[5 /*RDI*/] != 1)
{ {
......
...@@ -1641,8 +1641,6 @@ enum reg_class ...@@ -1641,8 +1641,6 @@ enum reg_class
#define OUTGOING_REG_PARM_STACK_SPACE(FNTYPE) (ix86_function_type_abi (FNTYPE) == MS_ABI ? 1 : 0) #define OUTGOING_REG_PARM_STACK_SPACE(FNTYPE) (ix86_function_type_abi (FNTYPE) == MS_ABI ? 1 : 0)
extern unsigned int ix86_reg_parm_stack_space (const_tree);
/* Value is the number of bytes of arguments automatically /* Value is the number of bytes of arguments automatically
popped when returning from a subroutine call. popped when returning from a subroutine call.
FUNDECL is the declaration node of the function (as a tree), FUNDECL is the declaration node of the function (as a tree),
......
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