diff options
author | Richard Henderson <rth@gcc.gnu.org> | 2000-04-23 15:32:18 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-04-23 15:32:18 -0700 |
commit | 713f0303cc20449b51f013007d4247e0d2a22fac (patch) | |
tree | 740a95c36daaa0335a5951efded2a2f436571c99 /gcc/cp/typeck.c | |
parent | 16ab191f302f5915199dec8c6893d88482bce7af (diff) | |
download | gcc-713f0303cc20449b51f013007d4247e0d2a22fac.zip gcc-713f0303cc20449b51f013007d4247e0d2a22fac.tar.gz gcc-713f0303cc20449b51f013007d4247e0d2a22fac.tar.bz2 |
typeck.c (c_expand_asm_operands): Restore the original contents of the output list.
* typeck.c (c_expand_asm_operands): Restore the original
contents of the output list.
From-SVN: r33362
Diffstat (limited to 'gcc/cp/typeck.c')
-rw-r--r-- | gcc/cp/typeck.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index aa4cd32..da5e954 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -6670,6 +6670,10 @@ c_expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line) expand_expr (build_modify_expr (o[i], NOP_EXPR, TREE_VALUE (tail)), const0_rtx, VOIDmode, EXPAND_NORMAL); free_temp_slots (); + + /* Restore the original value so that it's correct the next + time we expand this function. */ + TREE_VALUE (tail) = o[i]; } /* Detect modification of read-only values. (Otherwise done by build_modify_expr.) */ |