PATCH: PR boostrap/44421: [4.6 Regression] Failed to bootstrap

H.J. Lu hongjiu.lu@intel.com
Sat Jun 5 00:52:00 GMT 2010


Hi,

This patch:

http://gcc.gnu.org/ml/gcc-patches/2010-06/msg00298.html

breaks bootstrap on targets which define EH_USES:

ia64/ia64.h:#define EH_USES(REGNO) ia64_eh_uses (REGNO)
m32c/m32c.h:#define EH_USES(REGNO) 0   /* FIXME */
mips/mips.h:#define EH_USES(N) mips_eh_uses (N)

I checked in this patch as an obvious fix.


H.J.
---
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 160304)
+++ ChangeLog	(working copy)
@@ -1,3 +1,10 @@
+2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR boostrap/44421
+	* df-problems.c (df_lr_bb_local_compute): Updated for embedded
+	bitmaps.
+	(df_byte_lr_bb_local_compute): Likewise.
+
 2010-06-03  Jason Merrill  <jason@redhat.com>
 
 	Implement noexcept operator (5.3.7)
Index: df-problems.c
===================================================================
--- df-problems.c	(revision 160304)
+++ df-problems.c	(working copy)
@@ -903,7 +903,7 @@ df_lr_bb_local_compute (unsigned int bb_
       df_ref use = *use_rec;
       /* Add use to set of uses in this BB.  */
       if (DF_REF_FLAGS (use) & DF_REF_AT_TOP)
-	bitmap_set_bit (bb_info->use, DF_REF_REGNO (use));
+	bitmap_set_bit (&bb_info->use, DF_REF_REGNO (use));
     }
 #endif
 
@@ -2712,7 +2712,7 @@ df_byte_lr_bb_local_compute (unsigned in
 	  unsigned int uregno = DF_REF_REGNO (use);
 	  unsigned int start = problem_data->regno_start[uregno];
 	  unsigned int len = problem_data->regno_len[uregno];
-	  bitmap_set_range (bb_info->use, start, len);
+	  bitmap_set_range (&bb_info->use, start, len);
 	}
     }
 #endif



More information about the Gcc-patches mailing list