This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: g77 -ieee crash in 1.0.3a


>  [lindahl@spare-parts ocean]$ g77 -c -O3 -static
>  -I/usr/local/mpich/include -mieee test.f test.f: In
>  subroutine `minmax':  test.f:47: internal
>  error--unrecognizable insn:  (insn 189 188 190 (set
>  (reg:DF 142)
>  	(le:DF (float_extend:DF (reg:SF 140))
>  	    (float_extend:DF (reg:SF 141)))) -1 (nil)
>      (nil))

I get the same error message using a 19980726-CVS'd egcs-1.1  
prerelease snapshot, using the following, somewhat simpler example:

      subroutine a(b,c)
      b = max(b,c)
      end

:-)

The only important option in the list above is -mieee:  With it,  
you'll get the error, without it there's no problem (and the  
expected floating conditional move is used; probably the above insn  
also tries that, but perhaps it gets confused by the float_extends -  
I've no idea why they're necessary, because all variables are  
single precision).

Cheers,
Toon.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]