]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit before very first...
authorJan Hubicka <jh@suse.cz>
Sun, 1 Apr 2007 19:48:01 +0000 (21:48 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 1 Apr 2007 19:48:01 +0000 (19:48 +0000)
* emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
before very first instruction.

* ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
waring on 64bit hosts.
* bitmap.h: Fix typo in bitmap_head_def.

From-SVN: r123408

gcc/ChangeLog
gcc/bitmap.h
gcc/emit-rtl.c
gcc/ggc-page.c

index 2e2f90c6a64e708b2c2d8001f654562be8093f31..2988bd8406bd2425ad66a114d68418c51fe40531 100644 (file)
@@ -1,3 +1,14 @@
+2007-04-01  Jan Hubicka  <jh@suse.cz>
+
+       * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
+       before very first instruction.
+
+2007-04-01  Jan Hubicka  <jh@suse.cz>
+
+       * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
+       waring on 64bit hosts.
+       * bitmap.h: Fix typo in bitmap_head_def.
+
 2007-04-01  Steven Bosscher  <steven@gcc.gnu.org>
 
        PR rtl-optimization/31391
index 9a33646ccb1156f62d38f3e7cac63bdc1b92e7d3..a81945d121653d3a137eacb62dbc51c9143b6429 100644 (file)
@@ -80,7 +80,7 @@ typedef struct bitmap_head_def GTY(()) {
   unsigned int indx;           /* Index of last element looked at.  */
   bitmap_obstack *obstack;     /* Obstack to allocate elements from.
                                   If NULL, then use ggc_alloc.  */
-#ifndef GATHER_STATISTICS
+#ifdef GATHER_STATISTICS
   struct bitmap_descriptor GTY((skip)) *desc;
 #endif
 } bitmap_head;
index ebe0a52e7d9774a335eb5b62345002f292580669..16fa6c5ed7c69a9e9afe3e35f000a22b11a6acfb 100644 (file)
@@ -4220,7 +4220,10 @@ emit_insn_before_setloc (rtx pattern, rtx before, int loc)
   if (pattern == NULL_RTX || !loc)
     return last;
 
-  first = NEXT_INSN (first);
+  if (!first)
+    first = get_insns ();
+  else
+    first = NEXT_INSN (first);
   while (1)
     {
       if (active_insn_p (first) && !INSN_LOCATOR (first))
index 01251f606e0c60e30ef525d82a03572d221a3cbc..5caa5c666a3aefa51b986d7449170a1523369b80 100644 (file)
@@ -2017,10 +2017,10 @@ ggc_print_statistics (void)
     for (i = 0; i < NUM_ORDERS; i++)
       if (G.stats.total_allocated_per_order[i])
         {
-          fprintf (stderr, "Total Overhead  page size %7ul:     %10lld\n",
+          fprintf (stderr, "Total Overhead  page size %7lu:     %10lld\n",
                    (unsigned long) OBJECT_SIZE (i),
                   G.stats.total_overhead_per_order[i]);
-          fprintf (stderr, "Total Allocated page size %7ul:     %10lld\n",
+          fprintf (stderr, "Total Allocated page size %7lu:     %10lld\n",
                    (unsigned long) OBJECT_SIZE (i),
                   G.stats.total_allocated_per_order[i]);
         }