public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/55920] [4.8 Regression] ICE in expand_debug_locations, at cfgexpand.c:3753
Date: Fri, 11 Jan 2013 16:56:00 -0000	[thread overview]
Message-ID: <bug-55920-4-U90EED8UrR@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-55920-4@http.gcc.gnu.org/bugzilla/>


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

--- Comment #4 from Martin Jambor <jamborm at gcc dot gnu.org> 2013-01-11 16:55:54 UTC ---
The debug statements for non-DCEable variables can be easily disabled
by the following (also, yet untested) patch:


2013-01-11  Martin Jambor  <mjambor@suse.cz>

    * tree-sra.c (analyze_access_subtree): Do not mark non-removable
    accesses as grp_to_be_debug_replaced.

Index: src/gcc/tree-sra.c
===================================================================
--- src.orig/gcc/tree-sra.c
+++ src/gcc/tree-sra.c
@@ -2199,7 +2199,9 @@ analyze_access_subtree (struct access *r
     {
       if (allow_replacements
       && scalar && !root->first_child
-      && (root->grp_scalar_write || root->grp_assignment_write))
+      && (root->grp_scalar_write || root->grp_assignment_write)
+      && !bitmap_bit_p (cannot_scalarize_away_bitmap,
+                DECL_UID (root->base)))
     {
       gcc_checking_assert (!root->grp_scalar_read
                    && !root->grp_assignment_read);


  parent reply	other threads:[~2013-01-11 16:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-09 16:30 [Bug tree-optimization/55920] New: " rmansfield at qnx dot com
2013-01-09 17:47 ` [Bug tree-optimization/55920] " jakub at gcc dot gnu.org
2013-01-09 18:23 ` [Bug tree-optimization/55920] [4.8 Regression] " rguenth at gcc dot gnu.org
2013-01-11 16:53 ` jamborm at gcc dot gnu.org
2013-01-11 16:56 ` jamborm at gcc dot gnu.org [this message]
2013-01-11 17:05 ` jakub at gcc dot gnu.org
2013-01-15 12:04 ` jakub at gcc dot gnu.org
2013-01-15 12:19 ` jamborm at gcc dot gnu.org
2013-01-15 16:34 ` jakub at gcc dot gnu.org
2013-01-15 16:43 ` jamborm at gcc dot gnu.org
2013-01-15 18:37 ` jakub at gcc dot gnu.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=bug-55920-4-U90EED8UrR@http.gcc.gnu.org/bugzilla/ \
    --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).