public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/66945] New: ICE in generic_simplify (generic-match.c:24790)
@ 2015-07-20 15:27 antoine.balestrat at gmail dot com
  2015-07-21  7:57 ` [Bug middle-end/66945] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: antoine.balestrat at gmail dot com @ 2015-07-20 15:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66945

            Bug ID: 66945
           Summary: ICE in generic_simplify (generic-match.c:24790)
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoine.balestrat at gmail dot com
  Target Milestone: ---

Hello !

This very pathological testcase seems to trigger an ICE with a freshly built
gcc.

$ xgcc --version
gcc (GCC) 6.0.0 20150720 (experimental)

$ cat tested.c
unsigned b;
f()
{
    for(;;)
        if(!b?:(b=0));
        else if(b%0<b?:b)
            for(;;);
}

$ xgcc -w -O1 tested.c
~/experiments/gcc/dist/bin/gcc -w -O1 tested.c
tested.c: In function ‘f’:
tested.c:2:1: internal compiler error: Segmentation fault
 f()
 ^
0xb7bd2f crash_signal
        ../../srcdir/gcc/toplev.c:352
0x91332d generic_simplify(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
        /home/antoine/gcc/objdir/gcc/generic-match.c:24790
0x826037 fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
        ../../srcdir/gcc/fold-const.c:9190
0xbc2eed cleanup_control_expr_graph
        ../../srcdir/gcc/tree-cfgcleanup.c:116
0xbc2eed cleanup_control_flow_bb
        ../../srcdir/gcc/tree-cfgcleanup.c:211
0xbc2eed cleanup_tree_cfg_bb
        ../../srcdir/gcc/tree-cfgcleanup.c:628
0xbc3548 cleanup_tree_cfg_1
        ../../srcdir/gcc/tree-cfgcleanup.c:681
0xbc3548 cleanup_tree_cfg_noloop
        ../../srcdir/gcc/tree-cfgcleanup.c:733
0xbc3548 cleanup_tree_cfg()
        ../../srcdir/gcc/tree-cfgcleanup.c:788
0xab7e44 execute_function_todo
        ../../srcdir/gcc/passes.c:1900
0xab8733 execute_todo
        ../../srcdir/gcc/passes.c:2005
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-492846-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jul 20 15:34:51 2015
Return-Path: <gcc-bugs-return-492846-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82801 invoked by alias); 20 Jul 2015 15:34:51 -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 82768 invoked by uid 48); 20 Jul 2015 15:34:47 -0000
From: "zhykzhykzhyk at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66944] static thread_local member in class template may cause compilation to fail
Date: Mon, 20 Jul 2015 15:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: major
X-Bugzilla-Who: zhykzhykzhyk at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
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_severity
Message-ID: <bug-66944-4-HEgd4jsta9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66944-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66944-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: 2015-07/txt/msg01736.txt.bz2
Content-length: 280

https://gcc.gnu.org/bugzilla/show_bug.cgi?idf944

zhykzhykzhyk at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-23  7:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-20 15:27 [Bug middle-end/66945] New: ICE in generic_simplify (generic-match.c:24790) antoine.balestrat at gmail dot com
2015-07-21  7:57 ` [Bug middle-end/66945] " rguenth at gcc dot gnu.org
2015-07-21 12:30 ` rguenth at gcc dot gnu.org
2015-07-23  7:24 ` rguenth at gcc dot gnu.org
2015-07-23  7:24 ` rguenth at gcc dot gnu.org

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).