public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/58069] [4.9 Regression] ICE in tree_ssa_unswitch_loops at -O3 in 32 bit mode
Date: Sun, 04 Aug 2013 08:02:00 -0000	[thread overview]
Message-ID: <bug-58069-4-w0gVI7EKL0@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-58069-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
t.c: In function ‘main’:
t.c:43:5: error: definition in block 13 follows the use
 int main ()
     ^
for SSA_NAME: _117 in statement:
_49 = _117 | _57;
t.c:43:5: internal compiler error: verify_ssa failed
0xaa542c verify_ssa(bool)
    /home/marek/src/gcc/gcc/tree-ssa.c:1046
0x87dbbe execute_function_todo
    /home/marek/src/gcc/gcc/passes.c:1628
0x87e5fc execute_todo
    /home/marek/src/gcc/gcc/passes.c:1660
Please submit a full bug report,
with preprocessed source if appropriate.
>From gcc-bugs-return-427304-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 04 08:07:11 2013
Return-Path: <gcc-bugs-return-427304-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18277 invoked by alias); 4 Aug 2013 08:07:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 18189 invoked by uid 48); 4 Aug 2013 08:07:06 -0000
From: "young.cpy at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58076] New: internal compiler error: tree check:=?UTF-8?Q? expected tree that contains ‘decl common’ structure?=,=?UTF-8?Q? have ‘identifier_node’ in get_narrower?=, at tree.c:8500
Date: Sun, 04 Aug 2013 08:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: young.cpy at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-58076-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-08/txt/msg00228.txt.bz2
Content-length: 2841

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

            Bug ID: 58076
           Summary: internal compiler error: tree check: expected tree
                    that contains ‘decl common’ structure, have
                    ‘identifier_node’ in get_narrower, at tree.c:8500
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: young.cpy at gmail dot com

0x8991bef tree_contains_struct_check_failed(tree_node const*,
tree_node_structure_enum, char const*, int, char const*)
        ../.././gcc/tree.c:9340
0x89a1cac contains_struct_check
        ../.././gcc/tree.h:3804
0x89a1cac get_narrower(tree_node*, int*)
        ../.././gcc/tree.c:8500
0x8597a03 operand_equal_for_comparison_p
        ../.././gcc/fold-const.c:2845
0x85524d2 fold_ternary_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*, tree_node*)
        ../.././gcc/fold-const.c:14098
0x85556c4 fold_build3_stat_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*, tree_node*)
        ../.././gcc/fold-const.c:15054
0x85994ef fold_binary_op_with_conditional_arg
        ../.././gcc/fold-const.c:6170
0x8561e9e fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
        ../.././gcc/fold-const.c:10081
0x85894f2 fold_build2_stat_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
        ../.././gcc/fold-const.c:14992
0x85a3547 build_range_check(unsigned int, tree_node*, tree_node*, int,
tree_node*, tree_node*)
        ../.././gcc/fold-const.c:4279
0x838db81 warn_logical_operator(unsigned int, tree_code, tree_node*, tree_code,
tree_node*, tree_code, tree_node*)
        ../.././gcc/c-family/c-common.c:1654
0x8172076 build_new_op_1
        ../.././gcc/cp/call.c:5447
0x8172d3b build_new_op(unsigned int, tree_code, int, tree_node*, tree_node*,
tree_node*, tree_node**, int)
        ../.././gcc/cp/call.c:5512
0x82ab71c build_x_binary_op(unsigned int, tree_code, tree_node*, tree_code,
tree_node*, tree_code, tree_node**, int)
        ../.././gcc/cp/typeck.c:3751
0x8289b73 cp_parser_binary_expression
        ../.././gcc/cp/parser.c:7809
0x8289dd8 cp_parser_assignment_expression
        ../.././gcc/cp/parser.c:7928
0x828bd1d cp_parser_expression
        ../.././gcc/cp/parser.c:8090
0x829af4c cp_parser_expression
        ../.././gcc/cp/parser.c:8129
0x829af4c cp_parser_condition
        ../.././gcc/cp/parser.c:9786
0x82817b1 cp_parser_selection_statement
        ../.././gcc/cp/parser.c:9563
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-427305-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 04 08:35:26 2013
Return-Path: <gcc-bugs-return-427305-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21892 invoked by alias); 4 Aug 2013 08:35:25 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 21801 invoked by uid 48); 4 Aug 2013 08:35:21 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/58069] [4.9 Regression] ICE in tree_ssa_unswitch_loops at -O3 in 32 bit mode
Date: Sun, 04 Aug 2013 08:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58069-4-Fhu6cceAte@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58069-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58069-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-08/txt/msg00229.txt.bz2
Content-length: 527

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX069

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Slightly reduced

int b, c;
static *d = &c;
void
foo (void)
{
  int f, i, j, *g;
  int h[] = { 0, 0, 0, 1, 0, 0, 0, 0, 1 };
  for (i = 0; i < 1; i++)
    {
      int *k = &b;
      if (*g)
    fn3 ();
      else
    {
      *k = 0;
      fn4 ();
    }
      *g = *k;
      for (j = 8; j; j--)
    {
      for (f = 0; f <= 8; f++)
        *d |= h[f] && *k;
      int *o = &h[0];
      *o = *k;
    }
    }
}


  parent reply	other threads:[~2013-08-04  8:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-58069-4@http.gcc.gnu.org/bugzilla/>
2013-08-04  8:00 ` mpolacek at gcc dot gnu.org
2013-08-04  8:02 ` mpolacek at gcc dot gnu.org [this message]
2013-08-04 10:34 ` mpolacek at gcc dot gnu.org
2013-10-30 13:23 ` rguenth 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-58069-4-w0gVI7EKL0@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).