public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/64563] New: ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu
@ 2015-01-12  4:20 su at cs dot ucdavis.edu
  2015-01-12  8:31 ` [Bug tree-optimization/64563] [5 Regression] " mpolacek at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: su at cs dot ucdavis.edu @ 2015-01-12  4:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64563
           Summary: ICE with "-Wall -Wextra" at -Os and above on
                    x86_64-linux-gnu
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu

The following code causes an ICE when compiled using the current gcc trunk with
"-Wall -Wextra" at -Os and above on x86_64-linux-gnu in both 32-bit and 64-bit
modes. 

It is a regression from 4.9.x.

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 5.0.0 20150111 (experimental) [trunk revision 219429] (GCC) 

$ 
$ gcc-trunk -Os -c small.c
$ gcc-4.9 -Wall -Wextra -Os -c small.c
small.c: In function ‘fn1’:
small.c:7:14: warning: comparison between signed and unsigned integer
expressions [-Wsign-compare]
   d = b = (a != (e | 4294967288UL));
              ^
$ 
$ gcc-trunk -Wall -Wextra -Os -c small.c
small.c: In function ‘fn1’:
small.c:7:14: warning: comparison between signed and unsigned integer
expressions [-Wsign-compare]
   d = b = (a != (e | 4294967288UL));
              ^
small.c:5:1: internal compiler error: Segmentation fault
 fn1 ()
 ^
0xa9896f crash_signal
    ../../gcc-trunk/gcc/toplev.c:372
0xce9a44 contains_struct_check(tree_node const*, tree_node_structure_enum, char
const*, int, char const*)
    ../../gcc-trunk/gcc/tree.h:3128
0xce9a44 vrp_val_is_min
    ../../gcc-trunk/gcc/tree-vrp.c:241
0xcf0094 vrp_evaluate_conditional
    ../../gcc-trunk/gcc/tree-vrp.c:7550
0xd06454 fold_predicate_in
    ../../gcc-trunk/gcc/tree-vrp.c:9958
0xd06454 vrp_fold_stmt
    ../../gcc-trunk/gcc/tree-vrp.c:10001
0xc2c3d3 substitute_and_fold_dom_walker::before_dom_children(basic_block_def*)
    ../../gcc-trunk/gcc/tree-ssa-propagate.c:1148
0x10ad7e7 dom_walker::walk(basic_block_def*)
    ../../gcc-trunk/gcc/domwalk.c:188
0xc2bcf0 substitute_and_fold(tree_node* (*)(tree_node*), bool
(*)(gimple_stmt_iterator*), bool)
    ../../gcc-trunk/gcc/tree-ssa-propagate.c:1236
0xd033f4 vrp_finalize
    ../../gcc-trunk/gcc/tree-vrp.c:10189
0xd033f4 execute_vrp
    ../../gcc-trunk/gcc/tree-vrp.c:10305
0xd033f4 execute
    ../../gcc-trunk/gcc/tree-vrp.c:10384
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.
$ 


--------------------------------


int a, b, c, d, f;
unsigned int e;

void
fn1 ()
{
  d = b = (a != (e | 4294967288UL));
  if (!d)
    c = f || b;
}
>From gcc-bugs-return-472732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jan 12 07:04:14 2015
Return-Path: <gcc-bugs-return-472732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16481 invoked by alias); 12 Jan 2015 07:04:13 -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 16447 invoked by uid 48); 12 Jan 2015 07:04:08 -0000
From: "Joost.VandeVondele at mat dot ethz.ch" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/63470] [5 Regression] internal compiler error: in estimate_edge_growth, at ipa-inline.h:308
Date: Mon, 12 Jan 2015 07:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: Joost.VandeVondele at mat dot ethz.ch
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-63470-4-NorkKjEBV6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63470-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63470-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-01/txt/msg00726.txt.bz2
Content-length: 218

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

--- Comment #8 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> ---
Possibly fixed by (?) :

https://gcc.gnu.org/ml/gcc-patches/2015-01/msg00640.html


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

end of thread, other threads:[~2015-02-01 21:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-12  4:20 [Bug tree-optimization/64563] New: ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu
2015-01-12  8:31 ` [Bug tree-optimization/64563] [5 Regression] " mpolacek at gcc dot gnu.org
2015-01-12  8:46 ` mpolacek at gcc dot gnu.org
2015-01-12  9:35 ` rguenth at gcc dot gnu.org
2015-01-12  9:45 ` trippels at gcc dot gnu.org
2015-01-12 10:12 ` jakub at gcc dot gnu.org
2015-01-12 20:48 ` jakub at gcc dot gnu.org
2015-01-12 20:53 ` jakub at gcc dot gnu.org
2015-01-14 20:22 ` jakub at gcc dot gnu.org
2015-02-01 21:51 ` jakub 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).