From 713f0303cc20449b51f013007d4247e0d2a22fac Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 23 Apr 2000 15:32:18 -0700 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 9 +++++++-- gcc/cp/typeck.c | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8561e607454..80d48a64823 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,6 +1,11 @@ +2000-04-23 Richard Henderson + + * typeck.c (c_expand_asm_operands): Restore the original + contents of the output list. + 2000-04-22 Gabriel Dos Reis - * ir.texi: Document complex number representation. + * ir.texi: Document complex number representation. 2000-04-20 Nathan Sidwell @@ -544,7 +549,7 @@ Sat Apr 15 16:00:01 2000 Richard Kenner 2000-04-05 Benjamin Kosnik - * 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 diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index aa4cd32180e..da5e9546b19 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.) */ -- 2.30.2