diff options
author | Marcin Dalecki <martin@dalecki.de> | 2006-01-31 05:44:14 +0100 |
---|---|---|
committer | Marcin Dalecki <dalecki@gcc.gnu.org> | 2006-01-31 05:44:14 +0100 |
commit | 842173466d766db080cbc9e837988e31b453d05f (patch) | |
tree | 192fa663854a8c88d61fa5a51c2091381047e15d /gcc/calls.c | |
parent | 4536bcac6522406e0c4f2a79aee0451d8985a56f (diff) | |
download | gcc-842173466d766db080cbc9e837988e31b453d05f.zip gcc-842173466d766db080cbc9e837988e31b453d05f.tar.gz gcc-842173466d766db080cbc9e837988e31b453d05f.tar.bz2 |
expr.h (expand_normal): new inline function.
2006-01-30 Marcin Dalecki <martin@dalecki.de>
* expr.h (expand_normal): new inline function.
* builtins.c: use it, use EXPAND_NORMAL explicitely.
* dojump.c: use it.
* dwarf2out.c: use it.
* expr.c: use it.
* calls.c: use it.
* expmed.c: use it.
* except.c: use it.
* config/sparc/sparc.c: use it.
* config/i386/i386.c: use it.
* config/rs6000/rs6000.c: use it.
* config/arm/arm.c: use it.
* config/mips/mips.c: use it.
* stmt.c: use it, use EXPAND_NORMAL explicitely.
From-SVN: r110428
Diffstat (limited to 'gcc/calls.c')
-rw-r--r-- | gcc/calls.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/calls.c b/gcc/calls.c index 2cc15fc..e8ae809 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -659,8 +659,7 @@ precompute_register_parameters (int num_actuals, struct arg_data *args, if (args[i].value == 0) { push_temp_slots (); - args[i].value = expand_expr (args[i].tree_value, NULL_RTX, - VOIDmode, 0); + args[i].value = expand_normal (args[i].tree_value); preserve_temp_slots (args[i].value); pop_temp_slots (); } @@ -1250,7 +1249,7 @@ precompute_arguments (int flags, int num_actuals, struct arg_data *args) gcc_assert (!TREE_ADDRESSABLE (TREE_TYPE (args[i].tree_value))); args[i].initial_value = args[i].value - = expand_expr (args[i].tree_value, NULL_RTX, VOIDmode, 0); + = expand_normal (args[i].tree_value); mode = TYPE_MODE (TREE_TYPE (args[i].tree_value)); if (mode != args[i].mode) @@ -1433,7 +1432,7 @@ rtx_for_function_call (tree fndecl, tree addr) /* Generate an rtx (probably a pseudo-register) for the address. */ { push_temp_slots (); - funexp = expand_expr (addr, NULL_RTX, VOIDmode, 0); + funexp = expand_normal (addr); pop_temp_slots (); /* FUNEXP can't be BLKmode. */ } return funexp; @@ -2545,8 +2544,7 @@ expand_call (tree exp, rtx target, int ignore) precompute_register_parameters (num_actuals, args, ®_parm_seen); if (TREE_OPERAND (exp, 2)) - static_chain_value = expand_expr (TREE_OPERAND (exp, 2), - NULL_RTX, VOIDmode, 0); + static_chain_value = expand_normal (TREE_OPERAND (exp, 2)); else static_chain_value = 0; |