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/dojump.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/dojump.c')
-rw-r--r-- | gcc/dojump.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/dojump.c b/gcc/dojump.c index d65347e..e214091 100644 --- a/gcc/dojump.c +++ b/gcc/dojump.c @@ -584,7 +584,7 @@ do_jump (tree exp, rtx if_false_label, rtx if_true_label) /* Fall through and generate the normal code. */ default: normal: - temp = expand_expr (exp, NULL_RTX, VOIDmode, 0); + temp = expand_normal (exp); do_pending_stack_adjust (); if (GET_CODE (temp) == CONST_INT @@ -636,8 +636,8 @@ static void do_jump_by_parts_greater (tree exp, int swap, rtx if_false_label, rtx if_true_label) { - rtx op0 = expand_expr (TREE_OPERAND (exp, swap), NULL_RTX, VOIDmode, 0); - rtx op1 = expand_expr (TREE_OPERAND (exp, !swap), NULL_RTX, VOIDmode, 0); + rtx op0 = expand_normal (TREE_OPERAND (exp, swap)); + rtx op1 = expand_normal (TREE_OPERAND (exp, !swap)); enum machine_mode mode = TYPE_MODE (TREE_TYPE (TREE_OPERAND (exp, 0))); int unsignedp = TYPE_UNSIGNED (TREE_TYPE (TREE_OPERAND (exp, 0))); @@ -702,8 +702,8 @@ do_jump_by_parts_greater_rtx (enum machine_mode mode, int unsignedp, rtx op0, static void do_jump_by_parts_equality (tree exp, rtx if_false_label, rtx if_true_label) { - rtx op0 = expand_expr (TREE_OPERAND (exp, 0), NULL_RTX, VOIDmode, 0); - rtx op1 = expand_expr (TREE_OPERAND (exp, 1), NULL_RTX, VOIDmode, 0); + rtx op0 = expand_normal (TREE_OPERAND (exp, 0)); + rtx op1 = expand_normal (TREE_OPERAND (exp, 1)); enum machine_mode mode = TYPE_MODE (TREE_TYPE (TREE_OPERAND (exp, 0))); int nwords = (GET_MODE_SIZE (mode) / UNITS_PER_WORD); int i; @@ -923,11 +923,11 @@ do_compare_and_jump (tree exp, enum rtx_code signed_code, enum rtx_code code; /* Don't crash if the comparison was erroneous. */ - op0 = expand_expr (TREE_OPERAND (exp, 0), NULL_RTX, VOIDmode, 0); + op0 = expand_normal (TREE_OPERAND (exp, 0)); if (TREE_CODE (TREE_OPERAND (exp, 0)) == ERROR_MARK) return; - op1 = expand_expr (TREE_OPERAND (exp, 1), NULL_RTX, VOIDmode, 0); + op1 = expand_normal (TREE_OPERAND (exp, 1)); if (TREE_CODE (TREE_OPERAND (exp, 1)) == ERROR_MARK) return; |