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 | |
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')
-rw-r--r-- | gcc/cp/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 4 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8561e60..80d48a6 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,6 +1,11 @@ +2000-04-23 Richard Henderson <rth@cygnus.com> + + * typeck.c (c_expand_asm_operands): Restore the original + contents of the output list. + 2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com> - * ir.texi: Document complex number representation. + * ir.texi: Document complex number representation. 2000-04-20 Nathan Sidwell <nathan@codesourcery.com> @@ -544,7 +549,7 @@ Sat Apr 15 16:00:01 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com> - * decl2.c: Make flag_honor_std dependant on ENABLE_STD_NAMESPACE. + * decl2.c: Make flag_honor_std dependant on ENABLE_STD_NAMESPACE. 2000-04-05 Mark Mitchell <mark@codesourcery.com> 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.) */ |