-/* 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
- abi format. */
-unsigned int
-ix86_reg_parm_stack_space (const_tree fndecl)
-{
- int call_abi = 0;
- /* For libcalls it is possible that there is no fndecl at hand.
- Therefore assume for this case the default abi of the target. */
- if (!fndecl)
- call_abi = DEFAULT_ABI;
- else
- call_abi = ix86_function_abi (fndecl);
- if (call_abi == 1)
- return 32;
- return 0;
-}
-
-/* Returns value SYSV_ABI, MS_ABI dependent on fntype, specifying the
- call abi used. */
-int
-ix86_function_type_abi (const_tree fntype)
-{
- if (TARGET_64BIT && fntype != NULL)
- {
- if (DEFAULT_ABI == SYSV_ABI)
- return lookup_attribute ("ms_abi", TYPE_ATTRIBUTES (fntype)) ? MS_ABI : SYSV_ABI;
- else
- return lookup_attribute ("sysv_abi", TYPE_ATTRIBUTES (fntype)) ? SYSV_ABI : MS_ABI;
- }
- return DEFAULT_ABI;
-}
-
-int
-ix86_function_abi (const_tree fndecl)
-{
- if (! fndecl)
- return DEFAULT_ABI;
- return ix86_function_type_abi (TREE_TYPE (fndecl));
-}
-
-/* Returns value SYSV_ABI, MS_ABI dependent on cfun, specifying the
- call abi used. */
-int
-ix86_cfun_abi (void)
-{
- if (! cfun || ! TARGET_64BIT)
- return DEFAULT_ABI;
- return cfun->machine->call_abi;
-}
-