2008-12-09 Kai Tietz <kai.tietz@onevision.com>
commitd8b9c8282ed92ae46155488b0cf28337b78253a0
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Dec 2008 09:14:28 +0000 (9 09:14 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Dec 2008 09:14:28 +0000 (9 09:14 +0000)
tree22389f9764187766baa819ce9d1fcc32e25e5dc3
parentdeea1aa8bd3f04e5ab51103d874578c4e83a250c
2008-12-09  Kai Tietz  <kai.tietz@onevision.com>

PR/38366
* function.c (aggregate_value_p): Get fntype from CALL_EXPR in any
case.
* calls.c (nitialize_argument_information): Add fntype argument
and use it for calls.promote_function_args.
        (expand_call): Pass fntype to aggregate_value_p if no fndecl
available and pass additional fntype to
initialize_argument_information.
* config/i386/i386.c (ix86_reg_parm_stack_space): Remove cfun part
to get function abi type.
(init_cumulative_args): Use for abi kind detection fntype, when no
fndecl is available.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142584 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/calls.c
gcc/config/i386/i386.c
gcc/function.c