public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rakdver at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/31526] [4.3 regression] ICE in alloc_aux_for_block()
Date: Tue, 10 Apr 2007 13:00:00 -0000	[thread overview]
Message-ID: <20070410125937.8355.qmail@sourceware.org> (raw)
In-Reply-To: <bug-31526-2736@http.gcc.gnu.org/bugzilla/>



------- Comment #4 from rakdver at gcc dot gnu dot org  2007-04-10 13:59 -------
This patch fixes the problem:

Index: tree-inline.c
===================================================================
*** tree-inline.c       (revision 123693)
--- tree-inline.c       (working copy)
*************** copy_cfg_body (copy_body_data * id, gcov
*** 1205,1211 ****
        new->aux = bb;
      }

!   last = n_basic_blocks;
    /* Now that we've duplicated the blocks, duplicate their edges.  */
    FOR_ALL_BB_FN (bb, cfun_to_copy)
      copy_edges_for_bb (bb, count_scale);
--- 1205,1211 ----
        new->aux = bb;
      }

!   last = last_basic_block;
    /* Now that we've duplicated the blocks, duplicate their edges.  */
    FOR_ALL_BB_FN (bb, cfun_to_copy)
      copy_edges_for_bb (bb, count_scale);
*************** copy_cfg_body (copy_body_data * id, gcov
*** 1219,1225 ****
      }
    /* Zero out AUX fields of newly created block during EH edge
       insertion. */
!   for (; last < n_basic_blocks; last++)
      BASIC_BLOCK (last)->aux = NULL;
    entry_block_map->aux = NULL;
    exit_block_map->aux = NULL;
--- 1219,1225 ----
      }
    /* Zero out AUX fields of newly created block during EH edge
       insertion. */
!   for (; last < last_basic_block; last++)
      BASIC_BLOCK (last)->aux = NULL;
    entry_block_map->aux = NULL;
    exit_block_map->aux = NULL;


-- 


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


  parent reply	other threads:[~2007-04-10 13:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-10 11:48 [Bug c++/31526] New: " martin at mpa-garching dot mpg dot de
2007-04-10 11:54 ` [Bug c++/31526] " martin at mpa-garching dot mpg dot de
2007-04-10 12:07 ` rguenth at gcc dot gnu dot org
2007-04-10 12:11 ` rakdver at gcc dot gnu dot org
2007-04-10 13:00 ` rakdver at gcc dot gnu dot org [this message]
2007-04-10 13:09 ` rguenth at gcc dot gnu dot org
2007-04-10 21:03 ` [Bug tree-optimization/31526] " rakdver at gcc dot gnu dot org
2007-04-10 21:10 ` rakdver at gcc dot gnu dot org
2007-04-13  8:46 ` martin at mpa-garching dot mpg dot de
2007-04-13  8:47 ` rguenth at gcc dot gnu dot org
2007-04-13  8:48 ` rguenth 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=20070410125937.8355.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).