public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/46537] New: [4.6 Regression] ICE: SIGSEGV in simplify_replace_fn_rtx (simplify-rtx.c:362) with -g -O -fipa-cp -fipa-cp-clone -freorder-blocks
@ 2010-11-18 12:28 zsojka at seznam dot cz
  2010-11-18 12:31 ` [Bug tree-optimization/46537] " zsojka at seznam dot cz
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2010-11-18 12:28 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.6 Regression] ICE: SIGSEGV in
                    simplify_replace_fn_rtx (simplify-rtx.c:362) with -g
                    -O -fipa-cp -fipa-cp-clone -freorder-blocks
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


Created attachment 22443
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22443
reduced testcase

Compiler output:
$ gcc -g -O -fipa-cp -fipa-cp-clone -freorder-blocks testcase.C
testcase.C: In function 'void test5()':
testcase.C:56: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.

Tested revisions:
r166868 - crash
r165699 - OK
r163636 - OK
4.5 r166509 - OK


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

* [Bug tree-optimization/46537] [4.6 Regression] ICE: SIGSEGV in simplify_replace_fn_rtx (simplify-rtx.c:362) with -g -O -fipa-cp -fipa-cp-clone -freorder-blocks
  2010-11-18 12:28 [Bug tree-optimization/46537] New: [4.6 Regression] ICE: SIGSEGV in simplify_replace_fn_rtx (simplify-rtx.c:362) with -g -O -fipa-cp -fipa-cp-clone -freorder-blocks zsojka at seznam dot cz
@ 2010-11-18 12:31 ` zsojka at seznam dot cz
  2010-12-27 19:48 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2010-11-18 12:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Zdenek Sojka <zsojka at seznam dot cz> 2010-11-18 12:28:43 UTC ---
(gdb) bt
#0  simplify_replace_fn_rtx (x=0x0, old_rtx=0x0, fn=0xb8c4c0
<strip_pointer_flags>, data=0x0)
    at /mnt/svn/gcc-trunk/gcc/simplify-rtx.c:362
#1  0x0000000000b9b1c8 in emit_note_insn_var_location (varp=0x1938840,
data=<value optimized out>)
    at /mnt/svn/gcc-trunk/gcc/var-tracking.c:7324
#2  0x00000000011cf478 in htab_traverse_noresize (htab=<value optimized out>, 
    callback=0xb9a840 <emit_note_insn_var_location>, info=0x7fffffffd880) at
/mnt/svn/gcc-trunk/libiberty/hashtab.c:784
#3  0x0000000000b927bd in emit_notes_for_changes (insn=0x7ffff5d8d798,
where=EMIT_NOTE_BEFORE_INSN, 
    vars=<value optimized out>) at /mnt/svn/gcc-trunk/gcc/var-tracking.c:7532
#4  0x0000000000b981ed in emit_notes_for_differences () at
/mnt/svn/gcc-trunk/gcc/var-tracking.c:7674
#5  vt_emit_notes () at /mnt/svn/gcc-trunk/gcc/var-tracking.c:7995
#6  0x0000000000b9e783 in variable_tracking_main_1 () at
/mnt/svn/gcc-trunk/gcc/var-tracking.c:8610
#7  variable_tracking_main () at /mnt/svn/gcc-trunk/gcc/var-tracking.c:8624
#8  0x0000000000909e0f in execute_one_pass (pass=0x177f6c0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1560
#9  0x000000000090a0d5 in execute_pass_list (pass=0x177f6c0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1615
#10 0x000000000090a0e7 in execute_pass_list (pass=0x177c1c0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1616
#11 0x000000000090a0e7 in execute_pass_list (pass=0x177c220) at
/mnt/svn/gcc-trunk/gcc/passes.c:1616
#12 0x0000000000a4e0d6 in tree_rest_of_compilation (fndecl=0x7ffff5d0ed00) at
/mnt/svn/gcc-trunk/gcc/tree-optimize.c:422
#13 0x0000000000c15a12 in cgraph_expand_function (node=0x7ffff5d24420) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1494
#14 0x0000000000c17fea in cgraph_expand_all_functions () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1553
#15 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1809
#16 0x0000000000c1855a in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1017
#17 0x0000000000585ded in cp_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/cp/decl2.c:3973
#18 0x00000000009f6d60 in compile_file (argc=7, argv=0x7fffffffde88) at
/mnt/svn/gcc-trunk/gcc/toplev.c:882
#19 do_compile (argc=7, argv=0x7fffffffde88) at
/mnt/svn/gcc-trunk/gcc/toplev.c:2313
#20 toplev_main (argc=7, argv=0x7fffffffde88) at
/mnt/svn/gcc-trunk/gcc/toplev.c:2374
#21 0x00007ffff6579bbd in __libc_start_main () from /lib/libc.so.6
#22 0x00000000004caea1 in _start ()


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

* [Bug tree-optimization/46537] [4.6 Regression] ICE: SIGSEGV in simplify_replace_fn_rtx (simplify-rtx.c:362) with -g -O -fipa-cp -fipa-cp-clone -freorder-blocks
  2010-11-18 12:28 [Bug tree-optimization/46537] New: [4.6 Regression] ICE: SIGSEGV in simplify_replace_fn_rtx (simplify-rtx.c:362) with -g -O -fipa-cp -fipa-cp-clone -freorder-blocks zsojka at seznam dot cz
  2010-11-18 12:31 ` [Bug tree-optimization/46537] " zsojka at seznam dot cz
@ 2010-12-27 19:48 ` jakub at gcc dot gnu.org
  2011-01-03 20:05 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-12-27 19:48 UTC (permalink / raw)
  To: gcc-bugs

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

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

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


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

* [Bug tree-optimization/46537] [4.6 Regression] ICE: SIGSEGV in simplify_replace_fn_rtx (simplify-rtx.c:362) with -g -O -fipa-cp -fipa-cp-clone -freorder-blocks
  2010-11-18 12:28 [Bug tree-optimization/46537] New: [4.6 Regression] ICE: SIGSEGV in simplify_replace_fn_rtx (simplify-rtx.c:362) with -g -O -fipa-cp -fipa-cp-clone -freorder-blocks zsojka at seznam dot cz
  2010-11-18 12:31 ` [Bug tree-optimization/46537] " zsojka at seznam dot cz
  2010-12-27 19:48 ` jakub at gcc dot gnu.org
@ 2011-01-03 20:05 ` rguenth at gcc dot gnu.org
  2011-01-03 20:20 ` hjl.tools at gmail dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-03 20:05 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


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

* [Bug tree-optimization/46537] [4.6 Regression] ICE: SIGSEGV in simplify_replace_fn_rtx (simplify-rtx.c:362) with -g -O -fipa-cp -fipa-cp-clone -freorder-blocks
  2010-11-18 12:28 [Bug tree-optimization/46537] New: [4.6 Regression] ICE: SIGSEGV in simplify_replace_fn_rtx (simplify-rtx.c:362) with -g -O -fipa-cp -fipa-cp-clone -freorder-blocks zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2011-01-03 20:05 ` rguenth at gcc dot gnu.org
@ 2011-01-03 20:20 ` hjl.tools at gmail dot com
  2011-01-03 20:30 ` zsojka at seznam dot cz
  2011-01-03 20:38 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2011-01-03 20:20 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2011.01.03 20:20:18
                 CC|                            |hjl.tools at gmail dot com
     Ever Confirmed|0                           |1

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-03 20:20:18 UTC ---
I can't reproduce it on Linux/x86-64 with revision 166868
nor revision 168409.


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

* [Bug tree-optimization/46537] [4.6 Regression] ICE: SIGSEGV in simplify_replace_fn_rtx (simplify-rtx.c:362) with -g -O -fipa-cp -fipa-cp-clone -freorder-blocks
  2010-11-18 12:28 [Bug tree-optimization/46537] New: [4.6 Regression] ICE: SIGSEGV in simplify_replace_fn_rtx (simplify-rtx.c:362) with -g -O -fipa-cp -fipa-cp-clone -freorder-blocks zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2011-01-03 20:20 ` hjl.tools at gmail dot com
@ 2011-01-03 20:30 ` zsojka at seznam dot cz
  2011-01-03 20:38 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2011-01-03 20:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Zdenek Sojka <zsojka at seznam dot cz> 2011-01-03 20:30:40 UTC ---
Indeed seems to be fixed now, even the original testcase doen't crash anymore.


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

* [Bug tree-optimization/46537] [4.6 Regression] ICE: SIGSEGV in simplify_replace_fn_rtx (simplify-rtx.c:362) with -g -O -fipa-cp -fipa-cp-clone -freorder-blocks
  2010-11-18 12:28 [Bug tree-optimization/46537] New: [4.6 Regression] ICE: SIGSEGV in simplify_replace_fn_rtx (simplify-rtx.c:362) with -g -O -fipa-cp -fipa-cp-clone -freorder-blocks zsojka at seznam dot cz
                   ` (4 preceding siblings ...)
  2011-01-03 20:30 ` zsojka at seznam dot cz
@ 2011-01-03 20:38 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-01-03 20:38 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-03 20:38:16 UTC ---
That kind of checking has been removed altogether in PR46867, as it was
unreliable.


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

end of thread, other threads:[~2011-01-03 20:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-18 12:28 [Bug tree-optimization/46537] New: [4.6 Regression] ICE: SIGSEGV in simplify_replace_fn_rtx (simplify-rtx.c:362) with -g -O -fipa-cp -fipa-cp-clone -freorder-blocks zsojka at seznam dot cz
2010-11-18 12:31 ` [Bug tree-optimization/46537] " zsojka at seznam dot cz
2010-12-27 19:48 ` jakub at gcc dot gnu.org
2011-01-03 20:05 ` rguenth at gcc dot gnu.org
2011-01-03 20:20 ` hjl.tools at gmail dot com
2011-01-03 20:30 ` zsojka at seznam dot cz
2011-01-03 20:38 ` 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).