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]

Backport PR 21721 patch to 4.0 branch (IA64 target bug)


This patch was submitted and applied to the mainline by Richard
Henderson to fix PR 21721.  I would like to apply it to the 4.0 branch.
I tested it with the 4.0 branch on an IA64 Linux system with no
regressions.

OK to check in on 4.0 branch?

2005-07-19  Steve Ellcey  <sje@cup.hp.com>

	Backport from mainline.
	PR target/21721
	* config/ia64/ia64.c (emit_predicate_relation_info): Skip p0.

Index: config/ia64/ia64.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ia64/ia64.c,v
retrieving revision 1.347.2.8
diff -u -p -d -r1.347.2.8 ia64.c
--- config/ia64/ia64.c	19 May 2005 09:35:57 -0000	1.347.2.8
+++ config/ia64/ia64.c	8 Jun 2005 01:52:54 -0000
@@ -7392,7 +7392,9 @@ emit_predicate_relation_info (void)
 	  && NOTE_LINE_NUMBER (NEXT_INSN (head)) == NOTE_INSN_BASIC_BLOCK)
 	head = NEXT_INSN (head);
 
-      for (r = PR_REG (0); r < PR_REG (64); r += 2)
+      /* Skip p0, which may be thought to be live due to (reg:DI p0)
+	 grabbing the entire block of predicate registers.  */
+      for (r = PR_REG (2); r < PR_REG (64); r += 2)
 	if (REGNO_REG_SET_P (bb->global_live_at_start, r))
 	  {
 	    rtx p = gen_rtx_REG (BImode, r);


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