Commit 26cb3993 by Jan Hubicka Committed by Jan Hubicka

emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit before very first instruction.


	* 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
parent f070285a
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> 2007-04-01 Steven Bosscher <steven@gcc.gnu.org>
PR rtl-optimization/31391 PR rtl-optimization/31391
......
...@@ -80,7 +80,7 @@ typedef struct bitmap_head_def GTY(()) { ...@@ -80,7 +80,7 @@ typedef struct bitmap_head_def GTY(()) {
unsigned int indx; /* Index of last element looked at. */ unsigned int indx; /* Index of last element looked at. */
bitmap_obstack *obstack; /* Obstack to allocate elements from. bitmap_obstack *obstack; /* Obstack to allocate elements from.
If NULL, then use ggc_alloc. */ If NULL, then use ggc_alloc. */
#ifndef GATHER_STATISTICS #ifdef GATHER_STATISTICS
struct bitmap_descriptor GTY((skip)) *desc; struct bitmap_descriptor GTY((skip)) *desc;
#endif #endif
} bitmap_head; } bitmap_head;
......
...@@ -4220,7 +4220,10 @@ emit_insn_before_setloc (rtx pattern, rtx before, int loc) ...@@ -4220,7 +4220,10 @@ emit_insn_before_setloc (rtx pattern, rtx before, int loc)
if (pattern == NULL_RTX || !loc) if (pattern == NULL_RTX || !loc)
return last; return last;
first = NEXT_INSN (first); if (!first)
first = get_insns ();
else
first = NEXT_INSN (first);
while (1) while (1)
{ {
if (active_insn_p (first) && !INSN_LOCATOR (first)) if (active_insn_p (first) && !INSN_LOCATOR (first))
......
...@@ -2017,10 +2017,10 @@ ggc_print_statistics (void) ...@@ -2017,10 +2017,10 @@ ggc_print_statistics (void)
for (i = 0; i < NUM_ORDERS; i++) for (i = 0; i < NUM_ORDERS; i++)
if (G.stats.total_allocated_per_order[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), (unsigned long) OBJECT_SIZE (i),
G.stats.total_overhead_per_order[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), (unsigned long) OBJECT_SIZE (i),
G.stats.total_allocated_per_order[i]); G.stats.total_allocated_per_order[i]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment