diff options
author | Jan Hubicka <jh@suse.cz> | 2007-04-01 21:48:01 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2007-04-01 19:48:01 +0000 |
commit | 26cb39935ffe763ca649a6f28a84b2658ea00020 (patch) | |
tree | d0643ac498a8717ec42054fe964056ce95cc37e2 /gcc/emit-rtl.c | |
parent | f070285a7b0048acebbb1a9ec9f9fbef5c9c0c3e (diff) | |
download | gcc-26cb39935ffe763ca649a6f28a84b2658ea00020.zip gcc-26cb39935ffe763ca649a6f28a84b2658ea00020.tar.gz gcc-26cb39935ffe763ca649a6f28a84b2658ea00020.tar.bz2 |
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
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index ebe0a52..16fa6c5 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)) |