public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/54676] New: [4.8 Regression] ICE: in set_value_range, at tree-vrp.c:433
Date: Sun, 23 Sep 2012 09:15:00 -0000	[thread overview]
Message-ID: <bug-54676-4@http.gcc.gnu.org/bugzilla/> (raw)


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

             Bug #: 54676
           Summary: [4.8 Regression] ICE: in set_value_range, at
                    tree-vrp.c:433
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 28252
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28252
reduced testcase (from gcc.c-torture/compile/pr51247.c)

Compiler output:
$ gcc -O -fno-tree-ccp -fno-tree-copy-prop -fno-tree-fre -ftree-vrp testcase.c
testcase.c: In function 'foo':
testcase.c:11:1: internal compiler error: in set_value_range, at tree-vrp.c:433
 foo (int x)
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


Backtrace:
(gdb) bt
#0  0x0000000001120150 in fancy_abort(char const*, int, char const*) ()
#1  0x0000000000b8813f in set_value_range(value_range_d*, value_range_type,
tree_node*, tree_node*, bitmap_head_def*) ()
    at /mnt/svn/gcc-trunk/gcc/tree-vrp.c:433
#2  0x0000000000b9a8f9 in vrp_visit_stmt(gimple_statement_d*, edge_def**,
tree_node**) () at /mnt/svn/gcc-trunk/gcc/tree-vrp.c:7687
#3  0x0000000000afbb03 in simulate_stmt(gimple_statement_d*) () at
/mnt/svn/gcc-trunk/gcc/tree-ssa-propagate.c:320
#4  0x0000000000afc166 in ssa_propagate(ssa_prop_result
(*)(gimple_statement_d*, edge_def**, tree_node**), ssa_prop_result
(*)(gimple_statement_d*))
    () at /mnt/svn/gcc-trunk/gcc/tree-ssa-propagate.c:443
#5  0x0000000000b96f30 in execute_vrp() () at
/mnt/svn/gcc-trunk/gcc/tree-vrp.c:9124
#6  0x00000000008fdaed in execute_one_pass(opt_pass*) () at
/mnt/svn/gcc-trunk/gcc/passes.c:2199
#7  0x00000000008fdea5 in execute_pass_list(opt_pass*) () at
/mnt/svn/gcc-trunk/gcc/passes.c:2254
#8  0x00000000008fdeb7 in execute_pass_list(opt_pass*) () at
/mnt/svn/gcc-trunk/gcc/passes.c:2255
#9  0x00000000006c2228 in expand_function(cgraph_node*) () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1601
#10 0x00000000006c40d2 in compile() () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1705
#11 0x00000000006c46c5 in finalize_compilation_unit() () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:2080
#12 0x00000000005a1ac0 in c_write_global_declarations() () at
/mnt/svn/gcc-trunk/gcc/c/c-decl.c:10116
#13 0x00000000009e2c65 in compile_file() () at
/mnt/svn/gcc-trunk/gcc/toplev.c:560
#14 0x00000000009e483a in toplev_main(int, char**) () at
/mnt/svn/gcc-trunk/gcc/toplev.c:1863
#15 0x00007ffff6e784bd in __libc_start_main () from /lib64/libc.so.6
#16 0x0000000000588781 in _start ()


Version:
$ gcc -v                                                                      
Using built-in specs.
COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc
COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-191648-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df
--enable-languages=c,c++,lto,fortran
--prefix=/mnt/svn/gcc-trunk/binary-191648-lto-fortran-checking-yes-rtl-df/
--without-cloog --without-ppl
Thread model: posix
gcc version 4.8.0 20120923 (experimental) (GCC) 


Tested revisions:
r191648 - crash
4.7 r191640 - OK


             reply	other threads:[~2012-09-23  9:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-23  9:15 zsojka at seznam dot cz [this message]
2012-09-23 11:45 ` [Bug tree-optimization/54676] " polacek at redhat dot com
2012-09-23 11:54 ` dominiq at lps dot ens.fr
2012-09-23 20:38 ` jakub at gcc dot gnu.org
2012-09-24  8:59 ` jakub at gcc dot gnu.org
2012-09-25 12:47 ` jakub at gcc dot gnu.org
2012-09-25 12:51 ` 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-54676-4@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).