public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/48159] New: [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g
@ 2011-03-16 21:30 zsojka at seznam dot cz
  2011-03-17  9:43 ` [Bug debug/48159] " rguenth at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: zsojka at seznam dot cz @ 2011-03-16 21:30 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.7 Regression] ICE: SIGSEGV in build2_stat
                    (tree.c:3802) with -O -ftree-loop-distribution
                    -fno-tree-ch -g
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


Created attachment 23687
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23687
reduced testcase (same as tree-ssa/pr39007.c)

Compiler output:
$ gcc -O -ftree-loop-distribution -fno-tree-ch -g testcase.c
==25254== Invalid read of size 2
==25254==    at 0xA60576: build2_stat (tree.c:3802)
==25254==    by 0x5E140C: gimple_assign_rhs_to_tree (cfgexpand.c:78)
==25254==    by 0xA0B6F6: insert_debug_temp_for_var_def (tree-ssa.c:398)
==25254==    by 0xA0BB7F: insert_debug_temps_for_defs (tree-ssa.c:496)
==25254==    by 0x74B7F9: gsi_remove (gimple-iterator.c:511)
==25254==    by 0x92D351: distribute_loop (tree-loop-distribution.c:206)
==25254==    by 0x92DD2E: tree_loop_distribution
(tree-loop-distribution.c:1252)
==25254==    by 0x7F8775: execute_one_pass (passes.c:1556)
==25254==    by 0x7F8A74: execute_pass_list (passes.c:1611)
==25254==    by 0x7F8A86: execute_pass_list (passes.c:1612)
==25254==    by 0x7F8A86: execute_pass_list (passes.c:1612)
==25254==    by 0x93BA05: tree_rest_of_compilation (tree-optimize.c:422)
==25254==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25254== 
testcase.c: In function 'foo':
testcase.c:1:6: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tested revisions:
r171047 - crash
4.6 r170955 - OK


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

* [Bug debug/48159] [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g
  2011-03-16 21:30 [Bug debug/48159] New: [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g zsojka at seznam dot cz
@ 2011-03-17  9:43 ` rguenth at gcc dot gnu.org
  2011-05-02 17:12 ` doko at ubuntu dot com
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-17  9:43 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.03.17 09:41:58
   Target Milestone|---                         |4.7.0
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-17 09:41:58 UTC ---
Confirmed.


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

* [Bug debug/48159] [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g
  2011-03-16 21:30 [Bug debug/48159] New: [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g zsojka at seznam dot cz
  2011-03-17  9:43 ` [Bug debug/48159] " rguenth at gcc dot gnu.org
@ 2011-05-02 17:12 ` doko at ubuntu dot com
  2011-05-02 17:18 ` doko at ubuntu dot com
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: doko at ubuntu dot com @ 2011-05-02 17:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Matthias Klose <doko at ubuntu dot com> 2011-05-02 17:06:02 UTC ---
Created attachment 24168
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24168
preprocessed source


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

* [Bug debug/48159] [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g
  2011-03-16 21:30 [Bug debug/48159] New: [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g zsojka at seznam dot cz
  2011-03-17  9:43 ` [Bug debug/48159] " rguenth at gcc dot gnu.org
  2011-05-02 17:12 ` doko at ubuntu dot com
@ 2011-05-02 17:18 ` doko at ubuntu dot com
  2011-05-02 20:12 ` zsojka at seznam dot cz
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: doko at ubuntu dot com @ 2011-05-02 17:18 UTC (permalink / raw)
  To: gcc-bugs

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

Matthias Klose <doko at ubuntu dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doko at ubuntu dot com

--- Comment #2 from Matthias Klose <doko at ubuntu dot com> 2011-05-02 17:05:14 UTC ---
have a similiar build failure, but seen with both 4.6 and 4.7, so this seems to
be a 4.6 regression too. works with -O2 and below.

fails with 4.6 20110428 and trunk 20110419.

$ gcc -g -O3 -c psf.i 
psf.c: In function 'psf_fit':
psf.c:300:6: internal compiler error: Segmentation fault
Please submit a full bug report,


Program received signal SIGSEGV, Segmentation fault.
0x000000000083e71a in build2_stat ()
(gdb) bt
#0  0x000000000083e71a in build2_stat ()
#1  0x00000000005490ee in gimple_assign_rhs_to_tree ()
#2  0x000000000080114e in insert_debug_temp_for_var_def ()
#3  0x0000000000801538 in insert_debug_temps_for_defs ()
#4  0x000000000062553a in gsi_remove ()
#5  0x0000000000763862 in ?? ()
#6  0x000000000076402f in ?? ()
#7  0x000000000069f0e9 in execute_one_pass ()
#8  0x000000000069f395 in execute_pass_list ()
#9  0x000000000069f3a7 in execute_pass_list ()
#10 0x000000000069f3a7 in execute_pass_list ()
#11 0x000000000076b051 in tree_rest_of_compilation ()
#12 0x00000000008a915f in ?? ()
#13 0x00000000008aadba in cgraph_optimize ()
#14 0x00000000008ab1ba in cgraph_finalize_compilation_unit ()
#15 0x00000000004b6e05 in c_write_global_declarations ()
#16 0x00000000007301be in toplev_main ()
#17 0x00007ffff625aeed in __libc_start_main (main=<value optimized out>,
argc=<value optimized out>, 
    ubp_av=<value optimized out>, init=<value optimized out>, fini=<value
optimized out>, 
    rtld_fini=<value optimized out>, stack_end=0x7fffffffe5e8) at
libc-start.c:228
#18 0x00000000004a67f9 in _start ()


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

* [Bug debug/48159] [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g
  2011-03-16 21:30 [Bug debug/48159] New: [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2011-05-02 17:18 ` doko at ubuntu dot com
@ 2011-05-02 20:12 ` zsojka at seznam dot cz
  2011-05-05 19:04 ` zsojka at seznam dot cz
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: zsojka at seznam dot cz @ 2011-05-02 20:12 UTC (permalink / raw)
  To: gcc-bugs

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

Zdenek Sojka <zsojka at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |spop at gcc dot gnu.org

--- Comment #4 from Zdenek Sojka <zsojka at seznam dot cz> 2011-05-02 19:58:27 UTC ---
Backtrace with debug symbols for the testcase from comment #3 (trunk r173240):

$ gcc -w -c -O3 -g psf.i -wrapper valgrind,-q,--num-callers=40
==5472== Invalid read of size 2
==5472==    at 0xA9521C: build2_stat (tree.c:3753)
==5472==    by 0x5E408E: gimple_assign_rhs_to_tree (cfgexpand.c:78)
==5472==    by 0xA37EBF: insert_debug_temp_for_var_def (tree-ssa.c:402)
==5472==    by 0xA383EA: insert_debug_temps_for_defs (tree-ssa.c:506)
==5472==    by 0x762FB8: gsi_remove (gimple-iterator.c:511)
==5472==    by 0x9504B9: distribute_loop (tree-loop-distribution.c:206)
==5472==    by 0x95100C: tree_loop_distribution (tree-loop-distribution.c:1252)
==5472==    by 0x816DF5: execute_one_pass (passes.c:1556)
==5472==    by 0x8170D4: execute_pass_list (passes.c:1611)
==5472==    by 0x8170E6: execute_pass_list (passes.c:1612)
==5472==    by 0x8170E6: execute_pass_list (passes.c:1612)
==5472==    by 0x95F6EA: tree_rest_of_compilation (tree-optimize.c:423)
==5472==    by 0xB42C22: cgraph_expand_function (cgraphunit.c:1579)
==5472==    by 0xB4516B: cgraph_optimize (cgraphunit.c:1638)
==5472==    by 0xB456F9: cgraph_finalize_compilation_unit (cgraphunit.c:1099)
==5472==    by 0x4FAF73: c_write_global_declarations (c-decl.c:9883)
==5472==    by 0x903A17: toplev_main (toplev.c:591)
==5472==    by 0x644AB6C: (below main) (in /lib64/libc-2.11.3.so)
==5472==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5472== 
psf.c: In function 'psf_fit':
psf.c:300:6: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

-fno-tree-loop-distribute-patterns prevents the crash.


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

* [Bug debug/48159] [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g
  2011-03-16 21:30 [Bug debug/48159] New: [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2011-05-02 20:12 ` zsojka at seznam dot cz
@ 2011-05-05 19:04 ` zsojka at seznam dot cz
  2011-05-10 12:19 ` [Bug debug/48159] [4.6/4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -ftree-loop-distribution -g jakub at gcc dot gnu.org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: zsojka at seznam dot cz @ 2011-05-05 19:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Zdenek Sojka <zsojka at seznam dot cz> 2011-05-05 18:43:43 UTC ---
Created attachment 24191
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24191
reduced testcase from comment #2

$ gcc -O3 -g pr48159-2.c -fno-tree-loop-distribute-patterns -c
$ gcc -O3 -g pr48159-2.c
pr48159-2.c: In function 'foo':
pr48159-2.c:4:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Fails with both 4.7 and 4.6.1 (r173059).


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

* [Bug debug/48159] [4.6/4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -ftree-loop-distribution -g
  2011-03-16 21:30 [Bug debug/48159] New: [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g zsojka at seznam dot cz
                   ` (4 preceding siblings ...)
  2011-05-05 19:04 ` zsojka at seznam dot cz
@ 2011-05-10 12:19 ` jakub at gcc dot gnu.org
  2011-05-10 13:13 ` jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-10 12:19 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-10 12:15:55 UTC ---
Caused by http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167697


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

* [Bug debug/48159] [4.6/4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -ftree-loop-distribution -g
  2011-03-16 21:30 [Bug debug/48159] New: [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g zsojka at seznam dot cz
                   ` (5 preceding siblings ...)
  2011-05-10 12:19 ` [Bug debug/48159] [4.6/4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -ftree-loop-distribution -g jakub at gcc dot gnu.org
@ 2011-05-10 13:13 ` jakub at gcc dot gnu.org
  2011-05-10 14:37 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-10 13:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-10 13:08:31 UTC ---
Further reduced testcase for -O3 -g:

void
foo (double x, int y, double *__restrict z, double *__restrict w)
{
  while (y--)
    *z++ = (*w++ = 0) * x;
}


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

* [Bug debug/48159] [4.6/4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -ftree-loop-distribution -g
  2011-03-16 21:30 [Bug debug/48159] New: [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g zsojka at seznam dot cz
                   ` (6 preceding siblings ...)
  2011-05-10 13:13 ` jakub at gcc dot gnu.org
@ 2011-05-10 14:37 ` jakub at gcc dot gnu.org
  2011-05-10 15:21 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-10 14:37 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aoliva at gcc dot gnu.org

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-10 14:29:32 UTC ---
First of all, it surprises me that tree-loop-distribution.c and stmts_from_loop
don't do anything special about debug stmts, I'd say stmts_from_loop should
ignore debug stmts like it ignores GIMPLE_LABELs and
generate_loops_for_partition and generate_builtin match that, the first
by keeping all DEBUG stmts in all loops and generate_builtin to just ignore
them.  Otherwise I think we risk -fcompare-debug failures.

The second problem is in generate_loops_for_partition, it wants to remove
all stmts that are not in that partition, and going in the order of stmts
queued
from stmts_from_loop, by walking the loop bbs sequentially and first going
through not marked phis, removing each of them, then going through stmts from
first to last in the bb, again removing unneeded stmts.

insert_debug_temp_for_var_def though assumes I think that within one bb stmts
are removed from the end towards beginning and that bbs are traversed during
removal in the right order according to dominator info.  Not sure what we want
to do there, perhaps reset all the debug stmts that use values set by stmts
that are not in the current partition?  Alex, any ideas?  In particular, the
problematic DEBUG stmt uses a SSA_NAME which is not in partition bitmap, whose
definition is a PHI node result again not in the partition, and where one of
the PHI arguments again uses the SSA_NAME also used in the DEBUG stmt.


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

* [Bug debug/48159] [4.6/4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -ftree-loop-distribution -g
  2011-03-16 21:30 [Bug debug/48159] New: [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g zsojka at seznam dot cz
                   ` (7 preceding siblings ...)
  2011-05-10 14:37 ` jakub at gcc dot gnu.org
@ 2011-05-10 15:21 ` jakub at gcc dot gnu.org
  2011-05-11  9:37 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-10 15:21 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.7.0                       |4.6.1


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

* [Bug debug/48159] [4.6/4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -ftree-loop-distribution -g
  2011-03-16 21:30 [Bug debug/48159] New: [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g zsojka at seznam dot cz
                   ` (8 preceding siblings ...)
  2011-05-10 15:21 ` jakub at gcc dot gnu.org
@ 2011-05-11  9:37 ` jakub at gcc dot gnu.org
  2011-05-11 13:04 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-11  9:37 UTC (permalink / raw)
  To: gcc-bugs

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

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                     |

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-11 09:29:56 UTC ---
Created attachment 24223
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24223
gcc46-pr48159.patch

Untested fix.


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

* [Bug debug/48159] [4.6/4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -ftree-loop-distribution -g
  2011-03-16 21:30 [Bug debug/48159] New: [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g zsojka at seznam dot cz
                   ` (9 preceding siblings ...)
  2011-05-11  9:37 ` jakub at gcc dot gnu.org
@ 2011-05-11 13:04 ` jakub at gcc dot gnu.org
  2011-05-11 13:32 ` jakub at gcc dot gnu.org
  2011-05-11 13:47 ` jakub at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-11 13:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-11 12:53:49 UTC ---
Author: jakub
Date: Wed May 11 12:53:43 2011
New Revision: 173656

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173656
Log:
    PR debug/48159
    * tree-ssa.c (reset_debug_uses): New function.
    * tree-flow.h (reset_debug_uses): New prototype.
    * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
    * tree-loop-distribution.c (generate_loops_for_partition): Call
    reset_debug_uses on the stmts that will be removed.  Keep around
    all debug stmts, don't count them as bits in partition bitmap.
    (generate_builtin): Don't count debug stmts or labels as bits in
    partition bitmap.

    * gcc.dg/pr48159-1.c: New test.
    * gcc.dg/pr48159-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr48159-1.c
    trunk/gcc/testsuite/gcc.dg/pr48159-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-data-ref.c
    trunk/gcc/tree-flow.h
    trunk/gcc/tree-loop-distribution.c
    trunk/gcc/tree-ssa.c


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

* [Bug debug/48159] [4.6/4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -ftree-loop-distribution -g
  2011-03-16 21:30 [Bug debug/48159] New: [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g zsojka at seznam dot cz
                   ` (10 preceding siblings ...)
  2011-05-11 13:04 ` jakub at gcc dot gnu.org
@ 2011-05-11 13:32 ` jakub at gcc dot gnu.org
  2011-05-11 13:47 ` jakub at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-11 13:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-11 13:07:59 UTC ---
Author: jakub
Date: Wed May 11 13:07:54 2011
New Revision: 173657

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173657
Log:
    PR debug/48159
    * tree-ssa.c (reset_debug_uses): New function.
    * tree-flow.h (reset_debug_uses): New prototype.
    * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
    * tree-loop-distribution.c (generate_loops_for_partition): Call
    reset_debug_uses on the stmts that will be removed.  Keep around
    all debug stmts, don't count them as bits in partition bitmap.
    (generate_builtin): Don't count debug stmts or labels as bits in
    partition bitmap.

    * gcc.dg/pr48159-1.c: New test.
    * gcc.dg/pr48159-2.c: New test.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/pr48159-1.c
    branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/pr48159-2.c
Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_6-branch/gcc/tree-data-ref.c
    branches/gcc-4_6-branch/gcc/tree-flow.h
    branches/gcc-4_6-branch/gcc/tree-loop-distribution.c
    branches/gcc-4_6-branch/gcc/tree-ssa.c


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

* [Bug debug/48159] [4.6/4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -ftree-loop-distribution -g
  2011-03-16 21:30 [Bug debug/48159] New: [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g zsojka at seznam dot cz
                   ` (11 preceding siblings ...)
  2011-05-11 13:32 ` jakub at gcc dot gnu.org
@ 2011-05-11 13:47 ` jakub at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-11 13:47 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-11 13:08:40 UTC ---
Fixed.


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

end of thread, other threads:[~2011-05-11 13:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-16 21:30 [Bug debug/48159] New: [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g zsojka at seznam dot cz
2011-03-17  9:43 ` [Bug debug/48159] " rguenth at gcc dot gnu.org
2011-05-02 17:12 ` doko at ubuntu dot com
2011-05-02 17:18 ` doko at ubuntu dot com
2011-05-02 20:12 ` zsojka at seznam dot cz
2011-05-05 19:04 ` zsojka at seznam dot cz
2011-05-10 12:19 ` [Bug debug/48159] [4.6/4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -ftree-loop-distribution -g jakub at gcc dot gnu.org
2011-05-10 13:13 ` jakub at gcc dot gnu.org
2011-05-10 14:37 ` jakub at gcc dot gnu.org
2011-05-10 15:21 ` jakub at gcc dot gnu.org
2011-05-11  9:37 ` jakub at gcc dot gnu.org
2011-05-11 13:04 ` jakub at gcc dot gnu.org
2011-05-11 13:32 ` jakub at gcc dot gnu.org
2011-05-11 13:47 ` 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).