diff options
| author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-01 19:48:01 +0000 |
|---|---|---|
| committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-01 19:48:01 +0000 |
| commit | 4486418e176c6c8fc4c3f2ecb12f130406c46e89 (patch) | |
| tree | d0643ac498a8717ec42054fe964056ce95cc37e2 | |
| parent | 41456429d0333227c6abe2fd87ef2eba382c5170 (diff) | |
| download | ppe42-gcc-4486418e176c6c8fc4c3f2ecb12f130406c46e89.tar.gz ppe42-gcc-4486418e176c6c8fc4c3f2ecb12f130406c46e89.zip | |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123408 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 11 | ||||
| -rw-r--r-- | gcc/bitmap.h | 2 | ||||
| -rw-r--r-- | gcc/emit-rtl.c | 5 | ||||
| -rw-r--r-- | gcc/ggc-page.c | 4 |
4 files changed, 18 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2e2f90c6a64..2988bd8406b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/bitmap.h b/gcc/bitmap.h index 9a33646ccb1..a81945d1216 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -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; diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index ebe0a52e7d9..16fa6c5ed7c 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -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)) diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index 01251f606e0..5caa5c666a3 100644 --- a/gcc/ggc-page.c +++ b/gcc/ggc-page.c @@ -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]); } |

