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]

Re: 3.4 PATCH: Fix IRIX 6 bootstrap failure


Zdenek Dvorak writes:

> your fix is of course right.  The second failure is almost surely unrelated to

Unfortunately not: it doesn't work on alpha-dec-osf5.1:

/vol/gnu/src/gcc/gcc-dist/gcc/cfgrtl.c: In function `mark_killed_regs':
/vol/gnu/src/gcc/gcc-dist/gcc/cfgrtl.c:1327: warning: comparison between signed and unsigned

I'm using the one below instead, which works on both platforms.

> my patch.

Indeed: the culprit has already been identified.

I suppose this can go in as obvious?

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University


Thu Jun 26 18:02:24 2003  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* cfgrtl.c (mark_killed_regs): Cast HARD_REGNO_NREGS to int.

Index: gcc/cfgrtl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cfgrtl.c,v
retrieving revision 1.84
diff -u -p -r1.84 cfgrtl.c
--- gcc/cfgrtl.c	26 Jun 2003 06:13:27 -0000	1.84
+++ gcc/cfgrtl.c	27 Jun 2003 18:32:32 -0000
@@ -1324,7 +1324,7 @@ mark_killed_regs (rtx reg, rtx set ATTRI
     SET_REGNO_REG_SET (killed, regno);
   else
     {
-      for (i = 0; i < HARD_REGNO_NREGS (regno, GET_MODE (reg)); i++)
+      for (i = 0; i < (int) HARD_REGNO_NREGS (regno, GET_MODE (reg)); i++)
 	SET_REGNO_REG_SET (killed, regno + i);
     }
 }


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