diff options
author | Mark Mitchell <mark@codesourcery.com> | 1999-09-15 17:21:35 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-09-15 17:21:35 +0000 |
commit | 19832c7774e145cd1e545d1fb322d9397ffa17bc (patch) | |
tree | 028193b2d6284162a3a403d4a102ccff8fa34296 /gcc/expr.c | |
parent | 640e1822bce00ad625e6edb6cd9ff410ee50f425 (diff) | |
download | gcc-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.c | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -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)); + } } } |