The compilation of xshow.f of the xplor-nih package causes a compiler ICE
for...

gfortran -c xshow.f -O3 -ffast-math -fwhopr -fdefault-integer-8
-ffixed-line-length-120 -fno-second-underscore
xshow.f:295.7:

     & HEAP(VSTACK),HEAP(LSTACK),                                              
       1
Warning: Type mismatch in argument 'vstack' at (1); passed INTEGER(8) to
COMPLEX(8)
xshow.f:367.7:

     & HEAP(VSTACK),HEAP(LSTACK),HEAP(INDEX),HEAP(HPH),                        
       1
Warning: Type mismatch in argument 'vstack' at (1); passed INTEGER(8) to
COMPLEX(8)
xshow.f: In function ‘xshow_’:
xshow.f:2:0: 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.

This doesn't occur with "-O2 -ffast-math -fwhopr" and also is triggered by the
minimal subset of compiler options "-O2 -fipa-cp-clone -ftree-vectorize
-fno-signed-zeros -fno-trapping-math -fassociative-math -fwhopr". The
segmentation fault backtraces in gdb as...

(gdb) r xshow.f -ffixed-form -fPIC -quiet -dumpbase xshow.f
-mmacosx-version-min=10.6.3 -mtune=generic -auxbase xshow -O2 -version
-fipa-cp-clone -ftree-vectorize -fno-signed-zeros -fno-trapping-math
-fassociative-math -fwhopr -fdefault-integer-8 -ffixed-line-length-120
-fno-second-underscore -fintrinsic-modules-path
/sw/lib/gcc4.6/lib/gcc/x86_64-apple-darwin10.3.0/4.6.0/finclude -o
/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccdh1126.s
Starting program:
/sw/lib/gcc4.6/libexec/gcc/x86_64-apple-darwin10.3.0/4.6.0/f951 xshow.f
-ffixed-form -fPIC -quiet -dumpbase xshow.f -mmacosx-version-min=10.6.3
-mtune=generic -auxbase xshow -O2 -version -fipa-cp-clone -ftree-vectorize
-fno-signed-zeros -fno-trapping-math -fassociative-math -fwhopr
-fdefault-integer-8 -ffixed-line-length-120 -fno-second-underscore
-fintrinsic-modules-path
/sw/lib/gcc4.6/lib/gcc/x86_64-apple-darwin10.3.0/4.6.0/finclude -o
/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//ccdh1126.s
Reading symbols for shared libraries .++++++++++++..... done
GNU Fortran (GCC) version 4.6.0 20100515 (experimental) [trunk revision 159301]
(x86_64-apple-darwin10.3.0)
        compiled by GNU C version 4.6.0 20100515 (experimental) [trunk revision
159301], GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Fortran (GCC) version 4.6.0 20100515 (experimental) [trunk revision 159301]
(x86_64-apple-darwin10.3.0)
        compiled by GNU C version 4.6.0 20100515 (experimental) [trunk revision
159301], GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
xshow.f:295.7:

     & HEAP(VSTACK),HEAP(LSTACK),                                              
       1
Warning: Type mismatch in argument 'vstack' at (1); passed INTEGER(8) to
COMPLEX(8)
xshow.f:367.7:

     & HEAP(VSTACK),HEAP(LSTACK),HEAP(INDEX),HEAP(HPH),                        
       1
Warning: Type mismatch in argument 'vstack' at (1); passed INTEGER(8) to
COMPLEX(8)

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000004
vect_mark_slp_stmts (node=<value temporarily unavailable, due to
optimizations>, mark=pure_slp, j=-1) at
../../gcc-4.6-20100515/gcc/tree-vect-slp.c:2391
2391    }
(gdb) bt
#0  vect_mark_slp_stmts (node=<value temporarily unavailable, due to
optimizations>, mark=pure_slp, j=-1) at
../../gcc-4.6-20100515/gcc/tree-vect-slp.c:2391
#1  0x000000010072e754 in vect_make_slp_decision (loop_vinfo=0x1425dd990) at
../../gcc-4.6-20100515/gcc/tree-vect-slp.c:1261
#2  0x0000000100725a5b in vect_analyze_loop (loop=<value temporarily
unavailable, due to optimizations>) at
../../gcc-4.6-20100515/gcc/tree-vect-loop.c:1495
#3  0x000000010073144a in vectorize_loops () at
../../gcc-4.6-20100515/gcc/tree-vectorizer.c:219
#4  0x000000010056185a in execute_one_pass (pass=0x100aeefc0) at
../../gcc-4.6-20100515/gcc/passes.c:1591
#5  0x0000000100561afd in execute_pass_list (pass=0x100aeefc0) at
../../gcc-4.6-20100515/gcc/passes.c:1646
#6  0x0000000100561b0f in execute_pass_list (pass=0x100aef1a0) at
../../gcc-4.6-20100515/gcc/passes.c:1647
#7  0x0000000100561b0f in execute_pass_list (pass=0x100aee3c0) at
../../gcc-4.6-20100515/gcc/passes.c:1647
#8  0x0000000100659ba5 in tree_rest_of_compilation (fndecl=0x142643f00) at
../../gcc-4.6-20100515/gcc/tree-optimize.c:413
#9  0x00000001007b6950 in cgraph_expand_function (node=0x14240aa80) at
../../gcc-4.6-20100515/gcc/cgraphunit.c:1622
#10 0x00000001007b8cc9 in cgraph_optimize () at
../../gcc-4.6-20100515/gcc/cgraphunit.c:1701
#11 0x00000001007b91ea in cgraph_finalize_compilation_unit () at
../../gcc-4.6-20100515/gcc/cgraphunit.c:1161
#12 0x0000000100501b36 in write_global_declarations () at
../../gcc-4.6-20100515/gcc/langhooks.c:309
#13 0x0000000100613620 in toplev_main (argc=26, argv=0x7fff5fbfed68) at
../../gcc-4.6-20100515/gcc/toplev.c:1061
#14 0x0000000100001094 in start ()


-- 
           Summary: ICE on compiling xshow.f of xplor-nih with -O3 -ffast-
                    math -fwhopr
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: howarth at nitro dot med dot uc dot edu
 GCC build triplet: x86_64-apple-darwin10
  GCC host triplet: x86_64-apple-darwin10
GCC target triplet: x86_64-apple-darwin10


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

Reply via email to