http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48704
Summary: ICE: gfortran dies when '-finstrument-functions'
option is used
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 24063
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24063
Preprocesses input file, generated by '-save-temps'
When compiling the attached source file with gfortran 4.6.0 and the
'-finstrument-functions' option specified, gfortran dies with a SIGSEGV.
Without the option and with previous versions of the compiler (e.g., 4.5.2),
compilation works fine.
DETAILS
=======
$ gfortran -v -save-temps -finstrument-functions -c jacobi.F90
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/opt/packages/gcc/4.6.0/libexec/gcc/i686-pc-linux-gnu/4.6.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.6.0/configure --prefix=/opt/packages/gcc/4.6.0
--enable-languages=c,c++,fortran --enable-__cxa_atexit --enable-threads
--disable-multilib
Thread model: posix
gcc version 4.6.0 (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-finstrument-functions' '-c'
'-mtune=generic' '-march=pentiumpro'
/opt/packages/gcc/4.6.0/libexec/gcc/i686-pc-linux-gnu/4.6.0/f951 jacobi.F90
-cpp=jacobi.f90 -quiet -v jacobi.F90 -quiet -dumpbase jacobi.F90 -mtune=generic
-march=pentiumpro -auxbase jacobi -version -finstrument-functions
-fintrinsic-modules-path
/opt/packages/gcc/4.6.0/lib/gcc/i686-pc-linux-gnu/4.6.0/finclude -o jacobi.s
GNU Fortran (GCC) version 4.6.0 (i686-pc-linux-gnu)
compiled by GNU C version 4.6.0, GMP version 4.3.2, MPFR version 2.4.2, MPC
version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory
"/opt/packages/gcc/4.6.0/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/opt/packages/gcc/4.6.0/lib/gcc/i686-pc-linux-gnu/4.6.0/finclude
/opt/packages/gcc/4.6.0/lib/gcc/i686-pc-linux-gnu/4.6.0/include
/usr/local/include
/opt/packages/gcc/4.6.0/include
/opt/packages/gcc/4.6.0/lib/gcc/i686-pc-linux-gnu/4.6.0/include-fixed
/usr/include
End of search list.
GNU Fortran (GCC) version 4.6.0 (i686-pc-linux-gnu)
compiled by GNU C version 4.6.0, GMP version 4.3.2, MPFR version 2.4.2, MPC
version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
jacobi.F90: In function 'jacobi':
jacobi.F90:137:0: internal compiler error: Segmentation fault
STEP TO REPRODUCE
=================
$ gfortran -finstrument-functions -c jacobi.f90