Bug 229110

Summary: gfortran -ff2c ... produces `internal compiler error'
Product: [Fedora] Fedora Reporter: Burgin M.S. <mburgin>
Component: gcc4Assignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: 4.1.2-3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-24 11:24:42 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:

Description Burgin M.S. 2007-02-17 08:50:12 UTC
Description of problem: 
gfortran -ff2c ... produces `internal compiler error'


Version-Release number of selected component (if applicable):
gfortran --version
GNU Fortran 95 (GCC) 4.1.1 20061011 (Red Hat 4.1.1-30)

How reproducible:
The console log follows.

FORTRAN>gfortran -c -ff2c gfortran_err_at_expr_3162.f
gfortran_err_at_expr_3162.f: In function 't':
gfortran_err_at_expr_3162.f:1: internal compiler error: in emit_move_insn, at
expr.c:3162
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.

FORTRAN>cat $_
      function t(x)
      t=x
      if(t .gt. 0) stop
      return
      end

FORTRAN>gfortran -c -ff2c gfortran_err_at_optabs_2932.f 
gfortran_err_at_optabs_2932.f: In function 'y':
gfortran_err_at_optabs_2932.f:4: internal compiler error: in expand_copysign, at
optabs.c:2932
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.

FORTRAN>cat $_
      real function y (x)
      real x
      y=1.0
      y = sign (y, x)
      end function y



Additional info:
The same error occurs on x86_64

Comment 1 Jakub Jelinek 2007-02-24 11:24:42 UTC
Fixed in 4.1.2-3 in rawhide.