public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/26125]  New: g++.dg/opt/complex5.C:11: ICE: Segmentation fault
@ 2006-02-06 12:55 danglin at gcc dot gnu dot org
  2006-02-06 13:00 ` [Bug tree-optimization/26125] [4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2006-02-06 12:55 UTC (permalink / raw)
  To: gcc-bugs

Executing on host: /test/gnu/gcc-4.1/objdir/gcc/testsuite/../g++
-B/test/gnu/gcc
-4.1/objdir/gcc/testsuite/../
/test/gnu/gcc-4.1/gcc/gcc/testsuite/g++.dg/opt/com
plex5.C  -nostdinc++
-I/test/gnu/gcc-4.1/objdir/hppa2.0w-hp-hpux11.11/libstdc++-
v3/include/hppa2.0w-hp-hpux11.11
-I/test/gnu/gcc-4.1/objdir/hppa2.0w-hp-hpux11.1
1/libstdc++-v3/include -I/test/gnu/gcc-4.1/gcc/libstdc++-v3/libsupc++
-I/test/gn
u/gcc-4.1/gcc/libstdc++-v3/include/backward
-I/test/gnu/gcc-4.1/gcc/libstdc++-v3
/testsuite -fmessage-length=0  -O2  -S  -o complex5.s    (timeout = 300)
/test/gnu/gcc-4.1/gcc/gcc/testsuite/g++.dg/opt/complex5.C: In function 'double
_
_complex__ elt_zero()':
/test/gnu/gcc-4.1/gcc/gcc/testsuite/g++.dg/opt/complex5.C:11: internal compiler
error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
compiler exited with status 1
output is:
/test/gnu/gcc-4.1/gcc/gcc/testsuite/g++.dg/opt/complex5.C: In function 'double
_
_complex__ elt_zero()':
/test/gnu/gcc-4.1/gcc/gcc/testsuite/g++.dg/opt/complex5.C:11: internal compiler
error: Segmentation fault

(gdb) r `cat xx.sh`
Starting program: /test/gnu/gcc-4.1/objdir/gcc/cc1plus `cat xx.sh`
Detaching after fork from child process 19856.
GNU C++ version 4.1.0 20060205 (prerelease) (hppa2.0w-hp-hpux11.11)
        compiled by GNU C version 4.1.0 20060205 (prerelease).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
options passed:  -nostdinc++

-I/test/gnu/gcc-4.1/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/hppa2.0w-hp-hpux11.11
 -I/test/gnu/gcc-4.1/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include
 -I/test/gnu/gcc-4.1/gcc/libstdc++-v3/libsupc++
 -I/test/gnu/gcc-4.1/gcc/libstdc++-v3/include/backward
 -I/test/gnu/gcc-4.1/gcc/libstdc++-v3/testsuite -iprefix -isystem
 -auxbase-strip -O2 -fmessage-length=0
options enabled:  -falign-loops -fargument-alias -fbranch-count-reg
 -fcaller-saves -fcommon -fcprop-registers -fcrossjumping
 -fcse-follow-jumps -fcse-skip-blocks -fdefer-pop -fdelayed-branch
 -fdelete-null-pointer-checks -fearly-inlining
 -feliminate-unused-debug-types -fexceptions -fexpensive-optimizations
 -ffunction-cse -fgcse -fgcse-lm -fguess-branch-probability -fident
 -fif-conversion -fif-conversion2 -finline-functions-called-once
 -fipa-pure-const -fipa-reference -fipa-type-escape -fivopts
 -fkeep-static-consts -fleading-underscore -floop-optimize -floop-optimize2
 -fmath-errno -fmerge-constants -fomit-frame-pointer
 -foptimize-register-move -foptimize-sibling-calls -fpeephole -fpeephole2
 -freg-struct-return -fregmove -freorder-blocks -freorder-functions
 -frerun-cse-after-loop -frerun-loop-opt -fsched-interblock -fsched-spec
 -fsched-stalled-insns-dep -fschedule-insns -fschedule-insns2 -fshow-column
 -fsplit-ivs-in-unroller -fstrength-reduce -fstrict-aliasing -fthread-jumps
 -ftrapping-math -ftree-ccp -ftree-ch -ftree-copy-prop -ftree-copyrename
 -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-fre -ftree-loop-im
 -ftree-loop-ivcanon -ftree-loop-optimize -ftree-lrs -ftree-pre
 -ftree-salias -ftree-sink -ftree-sra -ftree-store-ccp
 -ftree-store-copy-prop -ftree-ter -ftree-vect-loop-version -ftree-vrp
 -funit-at-a-time -fvar-tracking -fzero-initialized-in-bss -mbig-switch
 -mgas -mspace-regs
Compiler executable checksum: c122a4c335979b8f0ae5e70db9004734
 double __complex__ to_complex(double) double __complex__ elt_zero()
Analyzing compilation unitPerforming intraprocedural optimizations
Assembling functions:
 double __complex__ elt_zero()
Program received signal SIGSEGV, Segmentation fault.
0x0026d820 in simple_iv_increment_p (stmt=0x0)
    at ../../gcc/gcc/tree-ssa-dom.c:1739
1739      if (TREE_CODE (phi) != PHI_NODE)
(gdb) bt
#0  0x0026d820 in simple_iv_increment_p (stmt=0x0)
    at ../../gcc/gcc/tree-ssa-dom.c:1739
#1  0x00271784 in optimize_stmt (walk_data=0x0, bb=0x400246a0, si=
      {tsi = {ptr = 0x7ae89e80, container = 0x7ae8f450}, bb = 0x7adf0960})
    at ../../gcc/gcc/tree-ssa-dom.c:2558
#2  0x003be2e8 in walk_dominator_tree (walk_data=0x7eff0dc8, bb=0x7adf0960)
    at ../../gcc/gcc/domwalk.c:196
#3  0x003be0e8 in walk_dominator_tree (walk_data=0x7eff0dc8, bb=0x7adf08c0)
    at ../../gcc/gcc/domwalk.c:212
#4  0x0026dce8 in tree_ssa_dominator_optimize ()
    at ../../gcc/gcc/tree-ssa-dom.c:446
#5  0x002216d0 in execute_one_pass (pass=0x400657e8)
    at ../../gcc/gcc/passes.c:827
#6  0x00221824 in execute_pass_list (pass=0x400657e8)
    at ../../gcc/gcc/passes.c:859
#7  0x00221838 in execute_pass_list (pass=0x40007338)
    at ../../gcc/gcc/passes.c:860
#8  0x0010e7ec in tree_rest_of_compilation (fndecl=0x7ae8c700)
    at ../../gcc/gcc/tree-optimize.c:419
#9  0x000a8db8 in expand_body (fn=0x7ae8c700)
    at ../../gcc/gcc/cp/semantics.c:3014
#10 0x0023db9c in cgraph_expand_function (node=0x7ae8c780)
    at ../../gcc/gcc/cgraphunit.c:1055
---Type <return> to continue, or q <return> to quit---
#11 0x0023e444 in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1121
#12 0x0006fb48 in cp_finish_file () at ../../gcc/gcc/cp/decl2.c:3115
#13 0x00029314 in finish_file () at ../../gcc/gcc/cp/cp-lang.c:144
#14 0x000f37dc in c_common_parse_file (set_yydebug=0)
    at ../../gcc/gcc/c-opts.c:1144
#15 0x00201c2c in toplev_main (argc=1074028192, argv=0x400466a0)
    at ../../gcc/gcc/toplev.c:991
#16 0x000ff1b4 in main (argc=0, argv=0x7adf0960) at ../../gcc/gcc/main.c:35


-- 
           Summary: g++.dg/opt/complex5.C:11: ICE: Segmentation fault
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa2.0w-hp-hpux11.11
  GCC host triplet: hppa2.0w-hp-hpux11.11
GCC target triplet: hppa2.0w-hp-hpux11.11


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


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

* [Bug tree-optimization/26125] [4.1 Regression] g++.dg/opt/complex5.C:11: ICE: Segmentation fault
  2006-02-06 12:55 [Bug tree-optimization/26125] New: g++.dg/opt/complex5.C:11: ICE: Segmentation fault danglin at gcc dot gnu dot org
@ 2006-02-06 13:00 ` pinskia at gcc dot gnu dot org
  2006-02-06 13:02 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-06 13:00 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Keywords|                            |ice-on-valid-code
            Summary|g++.dg/opt/complex5.C:11:   |[4.1 Regression]
                   |ICE: Segmentation fault     |g++.dg/opt/complex5.C:11:
                   |                            |ICE: Segmentation fault
   Target Milestone|---                         |4.1.0


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


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

* [Bug tree-optimization/26125] [4.1 Regression] g++.dg/opt/complex5.C:11: ICE: Segmentation fault
  2006-02-06 12:55 [Bug tree-optimization/26125] New: g++.dg/opt/complex5.C:11: ICE: Segmentation fault danglin at gcc dot gnu dot org
  2006-02-06 13:00 ` [Bug tree-optimization/26125] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2006-02-06 13:02 ` dave at hiauly1 dot hia dot nrc dot ca
  2006-02-06 15:13 ` rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2006-02-06 13:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dave at hiauly1 dot hia dot nrc dot ca  2006-02-06 13:02 -------
Subject: Re:   New: g++.dg/opt/complex5.C:11: ICE: Segmentation fault

The test was ok on 20060203:
http://gcc.gnu.org/ml/gcc-testresults/2006-02/msg00222.html

Dave


-- 


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


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

* [Bug tree-optimization/26125] [4.1 Regression] g++.dg/opt/complex5.C:11: ICE: Segmentation fault
  2006-02-06 12:55 [Bug tree-optimization/26125] New: g++.dg/opt/complex5.C:11: ICE: Segmentation fault danglin at gcc dot gnu dot org
  2006-02-06 13:00 ` [Bug tree-optimization/26125] [4.1 Regression] " pinskia at gcc dot gnu dot org
  2006-02-06 13:02 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2006-02-06 15:13 ` rguenth at gcc dot gnu dot org
  2006-02-06 16:22 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-06 15:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2006-02-06 15:13 -------
Dom -> Jeff.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at gcc dot gnu dot org


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


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

* [Bug tree-optimization/26125] [4.1 Regression] g++.dg/opt/complex5.C:11: ICE: Segmentation fault
  2006-02-06 12:55 [Bug tree-optimization/26125] New: g++.dg/opt/complex5.C:11: ICE: Segmentation fault danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-02-06 15:13 ` rguenth at gcc dot gnu dot org
@ 2006-02-06 16:22 ` dave at hiauly1 dot hia dot nrc dot ca
  2006-02-06 17:05 ` reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2006-02-06 16:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dave at hiauly1 dot hia dot nrc dot ca  2006-02-06 16:22 -------
Subject: Re:  [4.1 Regression] g++.dg/opt/complex5.C:11: ICE: Segmentation
fault

> Dom -> Jeff.

I haven't checked this but it appears from the timing that Jason's
change on 2006-02-03 introduced the failure.

Dave


-- 


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


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

* [Bug tree-optimization/26125] [4.1 Regression] g++.dg/opt/complex5.C:11: ICE: Segmentation fault
  2006-02-06 12:55 [Bug tree-optimization/26125] New: g++.dg/opt/complex5.C:11: ICE: Segmentation fault danglin at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-02-06 16:22 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2006-02-06 17:05 ` reichelt at gcc dot gnu dot org
  2006-02-06 17:08 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-06 17:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from reichelt at gcc dot gnu dot org  2006-02-06 17:05 -------
The testcase also crashes on x86_64-unknown-linux-gnu with "-O -m32":

complex5.C: In function 'double __complex__ elt_zero()':
complex5.C:11: error: statement makes a memory store, but has no V_MAY_DEFS nor
V_MUST_DEFS
REALPART_EXPR <D.2009_2> = r_1;
complex5.C:11: internal compiler error: verify_ssa failed
Please submit a full bug report, [etc.]

Confirmed thusly.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |monitored
   Last reconfirmed|0000-00-00 00:00:00         |2006-02-06 17:05:04
               date|                            |


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


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

* [Bug tree-optimization/26125] [4.1 Regression] g++.dg/opt/complex5.C:11: ICE: Segmentation fault
  2006-02-06 12:55 [Bug tree-optimization/26125] New: g++.dg/opt/complex5.C:11: ICE: Segmentation fault danglin at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-02-06 17:05 ` reichelt at gcc dot gnu dot org
@ 2006-02-06 17:08 ` pinskia at gcc dot gnu dot org
  2006-02-08 15:49 ` [Bug tree-optimization/26125] [4.1/4.2 " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-06 17:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-02-06 17:07 -------
(In reply to comment #4)
> The testcase also crashes on x86_64-unknown-linux-gnu with "-O -m32":

That exactly the same ICE at which the testcase was ICE before I fixed it the
first time.  I wonder why my fix no longer works. 


-- 


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


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

* [Bug tree-optimization/26125] [4.1/4.2 Regression] g++.dg/opt/complex5.C:11: ICE: Segmentation fault
  2006-02-06 12:55 [Bug tree-optimization/26125] New: g++.dg/opt/complex5.C:11: ICE: Segmentation fault danglin at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-02-06 17:08 ` pinskia at gcc dot gnu dot org
@ 2006-02-08 15:49 ` pinskia at gcc dot gnu dot org
  2006-02-09 13:32 ` [Bug tree-optimization/26125] [4.1 " pinskia at gcc dot gnu dot org
  2006-02-10 23:09 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-08 15:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-02-08 15:49 -------
This patch works for me but I don't know if it is the correct one or not:
Index: tree-inline.c
===================================================================
--- tree-inline.c       (revision 110756)
+++ tree-inline.c       (working copy)
@@ -1211,7 +1211,7 @@ declare_return_variable (copy_body_data 
       /* If the callee cannot possibly modify MODIFY_DEST, then we can
         reuse it as the result of the call directly.  Don't do this if
         it would promote MODIFY_DEST to addressable.  */
-      else if (TREE_ADDRESSABLE (result))
+      else if (TREE_ADDRESSABLE (result) || !DECL_COMPLEX_GIMPLE_REG_P
(result))
        use_it = false;
       else
        {


-- 


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


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

* [Bug tree-optimization/26125] [4.1 Regression] g++.dg/opt/complex5.C:11: ICE: Segmentation fault
  2006-02-06 12:55 [Bug tree-optimization/26125] New: g++.dg/opt/complex5.C:11: ICE: Segmentation fault danglin at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-02-08 15:49 ` [Bug tree-optimization/26125] [4.1/4.2 " pinskia at gcc dot gnu dot org
@ 2006-02-09 13:32 ` pinskia at gcc dot gnu dot org
  2006-02-10 23:09 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-09 13:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2006-02-09 13:32 -------
Fixed on the mainline by:


        PR tree-opt/24365
        * tree-inline.c (declare_return_variable): Also clear
        DECL_COMPLEX_GIMPLE_REG_P as needed in the modify_dest case.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2 Regression]        |[4.1 Regression]
                   |g++.dg/opt/complex5.C:11:   |g++.dg/opt/complex5.C:11:
                   |ICE: Segmentation fault     |ICE: Segmentation fault


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


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

* [Bug tree-optimization/26125] [4.1 Regression] g++.dg/opt/complex5.C:11: ICE: Segmentation fault
  2006-02-06 12:55 [Bug tree-optimization/26125] New: g++.dg/opt/complex5.C:11: ICE: Segmentation fault danglin at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-02-09 13:32 ` [Bug tree-optimization/26125] [4.1 " pinskia at gcc dot gnu dot org
@ 2006-02-10 23:09 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-10 23:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2006-02-10 23:09 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2006-02-10 23:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-06 12:55 [Bug tree-optimization/26125] New: g++.dg/opt/complex5.C:11: ICE: Segmentation fault danglin at gcc dot gnu dot org
2006-02-06 13:00 ` [Bug tree-optimization/26125] [4.1 Regression] " pinskia at gcc dot gnu dot org
2006-02-06 13:02 ` dave at hiauly1 dot hia dot nrc dot ca
2006-02-06 15:13 ` rguenth at gcc dot gnu dot org
2006-02-06 16:22 ` dave at hiauly1 dot hia dot nrc dot ca
2006-02-06 17:05 ` reichelt at gcc dot gnu dot org
2006-02-06 17:08 ` pinskia at gcc dot gnu dot org
2006-02-08 15:49 ` [Bug tree-optimization/26125] [4.1/4.2 " pinskia at gcc dot gnu dot org
2006-02-09 13:32 ` [Bug tree-optimization/26125] [4.1 " pinskia at gcc dot gnu dot org
2006-02-10 23:09 ` pinskia at gcc dot gnu dot 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).