This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix verbose-asm problem


I missed an instance of 'c' in my last patch to final.c which caused
crashes when -fverbose-asm was passed.  This fixes it.

Tested with 'make quickstrap' and 'make check-gcc' on powerpc-darwin.

-- 
- Geoffrey Keating <geoffk@apple.com>

====================
2004-09-10  Geoffrey Keating  <geoffk@apple.com>

	* final.c (output_asm_insn): Correct problem with -fverbose-asm.

Index: final.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/final.c,v
retrieving revision 1.336
diff -u -p -u -p -r1.336 final.c
--- final.c	10 Sep 2004 19:01:04 -0000	1.336
+++ final.c	11 Sep 2004 01:50:09 -0000
@@ -3120,7 +3120,7 @@ output_asm_insn (const char *template, r
 	      output_operand (operands[opnum], letter);
 
 	    if (!opoutput[opnum])
-	      oporder[ops++] = c;
+	      oporder[ops++] = opnum;
 	    opoutput[opnum] = 1;
 
 	    p = endptr;
@@ -3139,7 +3139,7 @@ output_asm_insn (const char *template, r
 	      output_operand (operands[opnum], 0);
 
 	    if (!opoutput[opnum])
-	      oporder[ops++] = c;
+	      oporder[ops++] = opnum;
 	    opoutput[opnum] = 1;
 
 	    p = endptr;
====================


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]