Description of problem: Compiling the attached OpenMP fortran code with gfortran causes an ICE when specifying `-fopenmp` and any of `-O1`,`-O2` or `-O3`. Version-Release number of selected component (if applicable): gcc version 4.1.1 20060525 (Red Hat 4.1.1-1) How reproducible: Fails to compile every time. Steps to Reproduce: 1.copy pmfast_shmem.F90 and fftw3.f to $PWD 2.gfortran -g -O3 -DFFTW_ONLY -c -fopenmp pmfast_shmem.F90 Actual results: >gfortran -g -O3 -DFFTW_ONLY -c -fopenmp pmfast_shmem.F90 pmfast_shmem.F90: In function 'density_proj': pmfast_shmem.F90:1955: internal compiler error: in initialize_inlined_parameters, at tree-inline.c:1158 Expected results: Code should compile. It works fine if `-fopenmp` is omitted, or if optimizations are set to `-O0`. Also works with other fortran OpenMP compilers. Additional info:
Created attachment 134487 [details] Source code that triggers ICE
Created attachment 134488 [details] Header file required to compile Source
Tracking upstream.