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 bootstrap/13990: bootstrap fails for m6811-elf


Hi!

Committed the attached to fix build of m6811-elf.  Arguments of the gen_rtx_NE
are not used.  Only the code of the rtx is used.  Anyway, the arguments as now passed
should reflect the reality.

Verified with:

Configured with: /opt/gnu/gcc-main/configure --target=m6811-elf --program-prefix=m6811-elf- --prefix=/build/fsf-m68hc11/usr-2.14 --enable-languages=c,c++,ada
Thread model: single
gcc version 3.5.0 20040207 (experimental)

Stephane

2004-02-07 Stephane Carrez <stcarrez@nerim.fr>

	PR bootstrap/13990
	* config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
	gen_rtx_NE.

Index: config/m68hc11/m68hc11.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m68hc11/m68hc11.md,v
retrieving revision 1.56
diff -u -p -r1.56 m68hc11.md
--- config/m68hc11/m68hc11.md	4 Feb 2004 19:15:23 -0000	1.56
+++ config/m68hc11/m68hc11.md	7 Feb 2004 16:40:18 -0000
@@ -5977,17 +5977,24 @@
     {
       FAIL;
     }
+
+  /* Note that for xxx_dbcc_dec_yy the gen_rtx_NE is only used to pass
+     the operator and its operands are not relevant.  */
   if (GET_MODE (operands[0]) == HImode)
     {
       emit_jump_insn (gen_m68hc12_dbcc_dec_hi (operands[0],
-					       gen_rtx_NE (HImode),
+					       gen_rtx_NE (HImode,
+							   operands[0],
+							   const1_rtx),
 					       operands[4]));
       DONE;
     }
   if (GET_MODE (operands[0]) == QImode)
     {
       emit_jump_insn (gen_m68hc12_dbcc_dec_qi (operands[0],
-					       gen_rtx_NE (QImode),
+					       gen_rtx_NE (QImode,
+							   operands[0],
+							   const1_rtx),
 					       operands[4]));
       DONE;
     }

Attachment: pgp00000.pgp
Description: PGP signature


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