This is with gcc-Version 4.3.0 20070131 on x86_64-unknown-linux-gnu. Using the Polyhedron tests, four tests fail with the -fprofile-use option, cf. http://www.physik.fu-berlin.de/~tburnus/gcc-trunk/benchmark/#rt
The tests are available from: http://www.polyhedron.co.uk/pb05/polyhedron_benchmark_suite.html I did: gfortran -fprofile-generate -march=opteron -ffast-math -funroll-loops -ftree-vectorize -msse3 -O3 -o aermod aermod.f90 ./aermod gfortran -fprofile-use -march=opteron -ffast-math -funroll-loops -ftree-vectorize -msse3 -O3 aermod.f90 The latter crashes with test.f90: In function 'setidg': test.f90:48679: internal compiler error: Floating point exception If the *.gc* file(s) don't exist, no error occures. This regression occurs between 2007-01-27-r121231 and 2007-01-30-r121332. Program received signal SIGFPE, Arithmetic exception. 0x000000000076c316 in stringop_block_profile (stmt=0x2b59f9ca67d0, expected_align=0x7fffb3a2ed70, expected_size=0x7fffb3a2ed68) at /projects/tob/gcc/gcc/value-prof.c:1440 1440 size = ((histogram->hvalue.counters[0] (gdb) bt #0 0x000000000076c316 in stringop_block_profile (stmt=0x2b59f9ca67d0, expected_align=0x7fffb3a2ed70, expected_size=0x7fffb3a2ed68) at /projects/tob/gcc/gcc/value-prof.c:1440 #1 0x00000000004c4f97 in expand_builtin_memset (arglist=<value optimized out>, target=0x2b59f70c7400, mode=VOIDmode, orig_exp=0x2b59f9ca67d0) at /projects/tob/gcc/gcc/builtins.c:3739 #2 0x00000000004c86db in expand_builtin (exp=0x2b59f9ca67d0, target=0x2b59f70c7400, subtarget=0x0, mode=VOIDmode, ignore=1) at /projects/tob/gcc/gcc/builtins.c:6228 #3 0x0000000000534bb8 in expand_expr_real_1 (exp=0x2b59f9ca67d0, target=0x0, tmode=VOIDmode, modifier=EXPAND_NORMAL, alt_rtl=0x0) at /projects/tob/gcc/gcc/expr.c:7724 #4 0x000000000053a3e3 in expand_expr_real (exp=0x2b59f9ca67d0, target=0x2b59f70c7400, tmode=VOIDmode, modifier=EXPAND_NORMAL, alt_rtl=0x0) at /projects/tob/gcc/gcc/expr.c:6746 #5 0x0000000000642049 in expand_expr_stmt (exp=0x2b59fa3e8540) at /projects/tob/gcc/gcc/expr.h:501 #6 0x00000000008ed6b5 in expand_gimple_basic_block (bb=0x2b59fa526000) at /projects/tob/gcc/gcc/cfgexpand.c:1540 #7 0x00000000008ee42e in tree_expand_cfg () at /projects/tob/gcc/gcc/cfgexpand.c:1810 -- Summary: [Regression 4.3] ICE with -fprofile-use Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: gcov-profile AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30650