typeck.c (c_expand_asm_operands): Restore the original contents of the output list.
authorRichard Henderson <rth@gcc.gnu.org>
Sun, 23 Apr 2000 22:32:18 +0000 (15:32 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 23 Apr 2000 22:32:18 +0000 (15:32 -0700)
        * typeck.c (c_expand_asm_operands): Restore the original
        contents of the output list.

From-SVN: r33362

gcc/cp/ChangeLog
gcc/cp/typeck.c

index 8561e607454c8ba85b9659324ec5973421a6f24e..80d48a648232b4178219b7490b6463458ee86c8e 100644 (file)
@@ -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>
 
index aa4cd32180ee9ee3f5bbc232802f0b73057a7150..da5e9546b19facdcf716b05738542e3068f4e010 100644 (file)
@@ -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.)  */