public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/54676] New: [4.8 Regression] ICE: in set_value_range, at tree-vrp.c:433
@ 2012-09-23  9:15 zsojka at seznam dot cz
  2012-09-23 11:45 ` [Bug tree-optimization/54676] " polacek at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2012-09-23  9:15 UTC (permalink / raw)
  To: gcc-bugs


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


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

* [Bug tree-optimization/54676] [4.8 Regression] ICE: in set_value_range, at tree-vrp.c:433
  2012-09-23  9:15 [Bug tree-optimization/54676] New: [4.8 Regression] ICE: in set_value_range, at tree-vrp.c:433 zsojka at seznam dot cz
@ 2012-09-23 11:45 ` polacek at redhat dot com
  2012-09-23 11:54 ` dominiq at lps dot ens.fr
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: polacek at redhat dot com @ 2012-09-23 11:45 UTC (permalink / raw)
  To: gcc-bugs


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

Marek Polacek <polacek at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |polacek at redhat dot com

--- Comment #1 from Marek Polacek <polacek at redhat dot com> 2012-09-23 11:44:46 UTC ---
Started with http://gcc.gnu.org/viewcvs?view=revision&revision=188728


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

* [Bug tree-optimization/54676] [4.8 Regression] ICE: in set_value_range, at tree-vrp.c:433
  2012-09-23  9:15 [Bug tree-optimization/54676] New: [4.8 Regression] ICE: in set_value_range, at tree-vrp.c:433 zsojka at seznam dot cz
  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
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2012-09-23 11:54 UTC (permalink / raw)
  To: gcc-bugs


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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-09-23
     Ever Confirmed|0                           |1

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-09-23 11:54:11 UTC ---
I also see it on x86_64-apple-darwin10.


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

* [Bug tree-optimization/54676] [4.8 Regression] ICE: in set_value_range, at tree-vrp.c:433
  2012-09-23  9:15 [Bug tree-optimization/54676] New: [4.8 Regression] ICE: in set_value_range, at tree-vrp.c:433 zsojka at seznam dot cz
  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
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-09-23 20:38 UTC (permalink / raw)
  To: gcc-bugs


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |
   Target Milestone|---                         |4.8.0

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-23 20:37:53 UTC ---
Yet another spot where signed 1 bit precision type isn't handled right.
Will fix tomorrow.


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

* [Bug tree-optimization/54676] [4.8 Regression] ICE: in set_value_range, at tree-vrp.c:433
  2012-09-23  9:15 [Bug tree-optimization/54676] New: [4.8 Regression] ICE: in set_value_range, at tree-vrp.c:433 zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-09-24  8:59 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-24 08:59:19 UTC ---
Created attachment 28258
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28258
gcc48-pr54676.patch

Untested fix.


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

* [Bug tree-optimization/54676] [4.8 Regression] ICE: in set_value_range, at tree-vrp.c:433
  2012-09-23  9:15 [Bug tree-optimization/54676] New: [4.8 Regression] ICE: in set_value_range, at tree-vrp.c:433 zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-09-25 12:47 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-25 12:46:59 UTC ---
Author: jakub
Date: Tue Sep 25 12:46:54 2012
New Revision: 191703

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191703
Log:
    PR tree-optimization/54676
    * tree-vrp.c (set_and_canonicalize_value_range): Handle
    one bit precision properly.

    * gcc.dg/pr54676.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr54676.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vrp.c


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

* [Bug tree-optimization/54676] [4.8 Regression] ICE: in set_value_range, at tree-vrp.c:433
  2012-09-23  9:15 [Bug tree-optimization/54676] New: [4.8 Regression] ICE: in set_value_range, at tree-vrp.c:433 zsojka at seznam dot cz
                   ` (4 preceding siblings ...)
  2012-09-25 12:47 ` jakub at gcc dot gnu.org
@ 2012-09-25 12:51 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-09-25 12:51 UTC (permalink / raw)
  To: gcc-bugs


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-25 12:50:42 UTC ---
Fixed.


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

end of thread, other threads:[~2012-09-25 12:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-23  9:15 [Bug tree-optimization/54676] New: [4.8 Regression] ICE: in set_value_range, at tree-vrp.c:433 zsojka at seznam dot cz
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

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