stmt.c (expand_asm_operands): Fix index into inout_mode when reading it.
authorJ"orn Rennecke <amylaar@cygnus.co.uk>
Thu, 2 Sep 1999 22:10:15 +0000 (22:10 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Thu, 2 Sep 1999 22:10:15 +0000 (23:10 +0100)
* stmt.c (expand_asm_operands): Fix index into inout_mode when
reading it.

From-SVN: r29066

gcc/ChangeLog
gcc/stmt.c

index e73dd7dc76fd5ed249e583691d18a9a24a8ff36a..5732fbc3ccce80761d71092f50e591c8b6cf47be 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep  2 22:00:08 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
+
+       * stmt.c (expand_asm_operands): Fix index into inout_mode when
+       reading it.
+
 Thu Sep  2 13:00:48 1999  Richard Henderson  <rth@cygnus.com>
 
        * stmt.c (expand_asm_operands): Invoke MD_ASM_CLOBBERS if present.
index f0548b494edbd87dc4cd806bc93821ec9fa747e7..64b9232c5b1199ab2ee548aa96308935ad255813 100644 (file)
@@ -1552,7 +1552,7 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
       XVECEXP (body, 3, ninputs - ninout + i)      /* argvec */
        = output_rtx[j];
       XVECEXP (body, 4, ninputs - ninout + i)      /* constraints */
-       = gen_rtx_ASM_INPUT (inout_mode[j], match[j]);
+       = gen_rtx_ASM_INPUT (inout_mode[i], match[j]);
     }
 
   /* Now, for each output, construct an rtx