Bug 203208 - gfortran internal compiler error using openmp and optimizations
Summary: gfortran internal compiler error using openmp and optimizations
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc4
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-18 21:46 UTC by Hugh Merz
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-21 12:32:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Source code that triggers ICE (66.27 KB, application/octet-stream)
2006-08-18 21:46 UTC, Hugh Merz
no flags Details
Header file required to compile Source (2.32 KB, text/x-fortran)
2006-08-18 21:47 UTC, Hugh Merz
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 28790 0 None None None Never

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.


Note You need to log in before you can comment on or make changes to this bug.