Bug 203208

Summary: gfortran internal compiler error using openmp and optimizations
Product: [Fedora] Fedora Reporter: Hugh Merz <merz>
Component: gcc4Assignee: Jakub Jelinek <jakub>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-21 12:32:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Source code that triggers ICE
none
Header file required to compile Source none

Description Hugh Merz 2006-08-18 21:46:13 UTC
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:

Comment 1 Hugh Merz 2006-08-18 21:46:14 UTC
Created attachment 134487 [details]
Source code that triggers ICE

Comment 2 Hugh Merz 2006-08-18 21:47:46 UTC
Created attachment 134488 [details]
Header file required to compile Source

Comment 3 Jakub Jelinek 2006-08-21 12:32:03 UTC
Tracking upstream.