[patch committed] SH: Fix build failure

Kaz Kojima kkojima@rr.iij4u.or.jp
Sat Mar 10 07:47:00 GMT 2007


The attached patch is a follow-up patch for

r122742 | aoliva | 2007-03-09 16:36:43 +0900 (Fri, 09 Mar 2007) | 15 lines

	* recog.c (decode_asm_operands): Add loc operand.

Without this, the trunk fails to build on SH with

../../ORIG/trunk/gcc/config/sh/sh.c: In function 'sh_insn_length_adjustment':
../../ORIG/trunk/gcc/config/sh/sh.c:8597: error: too few arguments to function 'decode_asm_operands'

Committed as obvious.

Regards,
	kaz
--
2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>

	* config/sh/sh.c (sh_insn_length_adjustment): Adjust for
	the change of decode_asm_operands.

diff -uprN ORIG/trunk/gcc/config/sh/sh.c LOCAL/trunk/gcc/config/sh/sh.c
--- ORIG/trunk/gcc/config/sh/sh.c	2007-02-20 09:54:08.000000000 +0900
+++ LOCAL/trunk/gcc/config/sh/sh.c	2007-03-10 14:48:17.000000000 +0900
@@ -8594,7 +8594,7 @@ sh_insn_length_adjustment (rtx insn)
 	template = XSTR (body, 0);
       else if (asm_noperands (body) >= 0)
 	template
-	  = decode_asm_operands (body, NULL, NULL, NULL, NULL);
+	  = decode_asm_operands (body, NULL, NULL, NULL, NULL, NULL);
       else
 	return 0;
       do



More information about the Gcc-patches mailing list