public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "bonzini at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/39886] [4.5 Regression] ICE in purge_dead_edges, at cfgrtl.c:2274
Date: Wed, 01 Jul 2009 15:47:00 -0000	[thread overview]
Message-ID: <20090701154710.31716.qmail@sourceware.org> (raw)
In-Reply-To: <bug-39886-12544@http.gcc.gnu.org/bugzilla/>



------- Comment #3 from bonzini at gnu dot org  2009-07-01 15:47 -------
Honza, this worked for me:

Index: combine.c
===================================================================
--- combine.c   (revision 149135)
+++ combine.c   (working copy)
@@ -2173,12 +2173,13 @@
 update_cfg_for_uncondjump (rtx insn)
 {
   basic_block bb = BLOCK_FOR_INSN (insn);
+  bool at_end = (BB_END (bb) == insn);

-  if (BB_END (bb) == insn)
+  if (at_end)
     purge_dead_edges (bb);

   delete_insn (insn);
-  if (EDGE_COUNT (bb->succs) == 1)
+  if (at_end && EDGE_COUNT (bb->succs) == 1)
     single_succ_edge (bb)->flags |= EDGE_FALLTHRU;
 }


Would you mind seeing if your patch was the same?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39886


  parent reply	other threads:[~2009-07-01 15:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-24 15:01 [Bug c/39886] New: " regehr at cs dot utah dot edu
2009-04-24 15:41 ` [Bug c/39886] [4.5 Regression] " rguenth at gcc dot gnu dot org
2009-05-05 15:58 ` [Bug middle-end/39886] " mmitchel at gcc dot gnu dot org
2009-05-09 18:30 ` hubicka at ucw dot cz
2009-07-01 15:47 ` bonzini at gnu dot org [this message]
2009-07-02 10:05 ` hubicka at ucw dot cz
2009-07-11 21:56 ` d dot g dot gorbachev at gmail dot com
2009-07-11 21:56 ` d dot g dot gorbachev at gmail dot com
2009-09-03 15:10 ` fxcoudert at gcc dot gnu dot org
2009-09-19 17:29 ` [Bug middle-end/39886] [4.5 Regression] Revision 145283 caused " hjl dot tools at gmail dot com
2009-09-20  9:24 ` ktietz at gcc dot gnu dot org
2009-09-20 17:26 ` [Bug rtl-optimization/39886] " ktietz at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090701154710.31716.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).