This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
ICE in complex division
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: fortran at gcc dot gnu dot org
- Date: Sat, 24 Jun 2006 11:49:41 +0200 (CEST)
- Subject: ICE in complex division
The following code:
complex :: z
z = (1.0E38,1.0E38)
z = 1/z
end
gives
div_comp_red_2.f90: In function 'MAIN__':
div_comp_red_2.f90:1: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
with -Ox, x>0, on OSX 10.3/4, G4/5 and gcc >= 4.1.0.
It does not look to be pr27889 and it is probably not
a frontend bug since I have found it while testing
g95 built with gcc4.1.1.
Note that z=1/(1.0E38,1.0E38) does not trigger the bug.
TIA
Dominique
on G5/10.3.9
Driving: gfc -v -O1 div_comp_red_2.f90 -lgfortranbegin -lgfortran -shared-libgcc
Using built-in specs.
Target: powerpc-apple-darwin7
Configured with: ../gcc-4.2-20060617/configure --prefix=/sw --prefix=/sw/lib/gcc4 --disable-multilib --enable-languages=c,c++,fortran,objc,java --infodir=/sw/lib/gcc4/share/info --with-gmp=/sw --with-included-gettext --host=powerpc-apple-darwin7 --with-as=/sw/lib/odcctools/bin/as --with-ld=/sw/lib/odcctools/bin/ld --with-nm=/sw/lib/odcctools/bin/nm
Thread model: posix
gcc version 4.2.0 20060617 (experimental)
/sw/lib/gcc4/libexec/gcc/powerpc-apple-darwin7/4.2.0/f951 div_comp_red_2.f90 -fPIC -quiet -dumpbase div_comp_red_2.f90 -auxbase div_comp_red_2 -O1 -version -I /sw/lib/gcc4/lib/gcc/powerpc-apple-darwin7/4.2.0/finclude -o /var/tmp//ccO7igfB.s
GNU F95 version 4.2.0 20060617 (experimental) (powerpc-apple-darwin7)
compiled by GNU C version 4.2.0 20060617 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
div_comp_red_2.f90: In function 'MAIN__':
div_comp_red_2.f90:1: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
On G4/10.4.6
Driving: gfortran -v -O1 div_comp_red.f90 -lgfortranbegin -lgfortran -shared-libgcc
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: ../configure --prefix=/sw --prefix=/sw/lib/gcc4 --disable-multilib --enable-languages=c,c++,fortran,objc,java --infodir=/sw/lib/gcc4/share/info --with-gmp=/sw --with-included-gettext --host=powerpc-apple-darwin8
Thread model: posix
gcc version 4.1.0
/sw/lib/gcc4/libexec/gcc/powerpc-apple-darwin8/4.1.0/f951 div_comp_red.f90 -fPIC -quiet -dumpbase div_comp_red.f90 -auxbase div_comp_red -O1 -version -o /var/tmp//ccmXrj1H.s
GNU F95 version 4.1.0 (powerpc-apple-darwin8)
compiled by GNU C version 4.0.1 (Apple Computer, Inc. build 5250).
GGC heuristics: --param ggc-min-expand=73 --param ggc-min-heapsize=81920
div_comp_red.f90: In function 'MAIN__':
div_comp_red.f90:1: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Top of the crash log:
Thread 0 Crashed:
0 f951 0x000a4b50 const_binop + 0x38 (fold-const.c:1495)
1 f951 0x000a505c const_binop + 0x544 (fold-const.c:1618)
2 f951 0x000b0f90 fold_binary + 0x16c8 (fold-const.c:7621)
3 f951 0x002be33c ccp_fold + 0x1cc (tree-ssa-ccp.c:917)
4 f951 0x002be96c evaluate_stmt + 0x3c (tree-ssa-ccp.c:1108)
5 f951 0x002beae4 visit_assignment + 0xd8 (tree-ssa-ccp.c:1190)
6 f951 0x002bee28 ccp_visit_stmt + 0x94 (tree-ssa-ccp.c:1335)
7 f951 0x003c18a8 simulate_stmt + 0x78 (tree-ssa-propagate.c:301)
8 f951 0x003c1d84 simulate_block + 0x180 (tree-iterator.h:75)
9 f951 0x003c2844 ssa_propagate + 0x60 (tree-ssa-propagate.c:674)
10 f951 0x002bef78 execute_ssa_ccp + 0x3c (tree-ssa-ccp.c:1370)
11 f951 0x000e7258 execute_one_pass + 0x210 (passes.c:830)
12 f951 0x000e730c execute_pass_list + 0x1c (passes.c:859)
13 f951 0x000e7324 execute_pass_list + 0x34 (passes.c:861)
14 f951 0x000cbd04 tree_rest_of_compilation + 0x288 (tree-optimize.c:421)
15 f951 0x000ba6dc cgraph_expand_function + 0x80 (cgraphunit.c:1059)
16 f951 0x000ba874 cgraph_expand_all_functions + 0xec (cgraphunit.c:1114)
17 f951 0x000bae4c cgraph_optimize + 0x16c (cgraphunit.c:1279)
18 f951 0x00026838 be_parse_file + 0x44 (f95-lang.c:522)
19 f951 0x000ccf14 compile_file + 0x74 (toplev.c:995)
20 f951 0x000ceb98 do_compile + 0xb0 (toplev.c:1951)
21 f951 0x000cec1c toplev_main + 0x58 (toplev.c:1983)
22 f951 0x000025b0 _start + 0x188 (crt.c:267)
23 dyld 0x8fe1a278 _dyld_start + 0x64