aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-09-15 17:21:35 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-09-15 17:21:35 +0000
commit19832c7774e145cd1e545d1fb322d9397ffa17bc (patch)
tree028193b2d6284162a3a403d4a102ccff8fa34296 /gcc/expr.c
parent640e1822bce00ad625e6edb6cd9ff410ee50f425 (diff)
downloadgcc-19832c7774e145cd1e545d1fb322d9397ffa17bc.zip
gcc-19832c7774e145cd1e545d1fb322d9397ffa17bc.tar.gz
gcc-19832c7774e145cd1e545d1fb322d9397ffa17bc.tar.bz2
calls.c (precompute_arguments): Fix typo in comment.
* calls.c (precompute_arguments): Fix typo in comment. * expr.c (preexpand_calls): Don't preexpand the cleanup in a TARGET_EXPR. From-SVN: r29438
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index c4d0f14..c51a97a 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -8542,10 +8542,17 @@ preexpand_calls (exp)
for (i = 0; i < nops; i++)
if (TREE_OPERAND (exp, i) != 0)
{
- type = TREE_CODE_CLASS (TREE_CODE (TREE_OPERAND (exp, i)));
- if (type == 'e' || type == '<' || type == '1' || type == '2'
- || type == 'r')
- preexpand_calls (TREE_OPERAND (exp, i));
+ if (TREE_CODE (exp) == TARGET_EXPR && i == 2)
+ /* We don't need to preexpand the cleanup for a TARGET_EXPR.
+ It doesn't happen before the call is made. */
+ ;
+ else
+ {
+ type = TREE_CODE_CLASS (TREE_CODE (TREE_OPERAND (exp, i)));
+ if (type == 'e' || type == '<' || type == '1' || type == '2'
+ || type == 'r')
+ preexpand_calls (TREE_OPERAND (exp, i));
+ }
}
}