--- Comment #9 from twscofi at sandia dot gov 2009-07-07 20:54 ---
(In reply to comment #6)
>
> g77 is no longer supported.
Per
http://gcc.gnu.org/onlinedocs/gcc-4.4.0/gfortran/GNU-Fortran-and-G77.html#GNU-Fortran-and-G77
[Gfrortran] is an entirely new program that has been designed
--- Comment #8 from gdsjaar at sandia dot gov 2009-07-07 20:13 ---
Subject: Re: sign intrinsic fails for value of 0.0
OK, sorry for the buggy example code. It illustrates the folly of
improving the code after doing the runs. A better fixed code
illustrating my point is:
progr
--- Comment #7 from kargl at gcc dot gnu dot org 2009-07-07 20:09 ---
(In reply to comment #5)
> > OK, so I should instead be submitting a bug report for intel and g77 and
> > pgi. gfortran is the only correct implementation?
>
> The key point is: "If the processor cannot distinguish
--- Comment #6 from kargl at gcc dot gnu dot org 2009-07-07 20:05 ---
(In reply to comment #3)
> OK, so I should instead be submitting a bug report for intel and g77 and
> pgi. gfortran is the only correct implementation?
g77 is no longer supported. You can do want you want with bug
--- Comment #5 from dominiq at lps dot ens dot fr 2009-07-07 19:59 ---
> OK, so I should instead be submitting a bug report for intel and g77 and
> pgi. gfortran is the only correct implementation?
The key point is: "If the processor cannot distinguish between positive and
negative re
--- Comment #4 from dominiq at lps dot ens dot fr 2009-07-07 19:53 ---
Steven beats me with the f95 standard: sign(0.5,-0.0) shall give -0.5.
Note that the code in comment #0 gives 'pass' with ifort but fails with g77.
I think the code is invalid since mysign is implicitely typed as int
--- Comment #3 from gdsjaar at sandia dot gov 2009-07-07 19:51 ---
Subject: Re: sign intrinsic fails for value of 0.0
kargl at gcc dot gnu dot org wrote:
> --- Comment #2 from kargl at gcc dot gnu dot org 2009-07-07 19:43 ---
> (In reply to comment #0)
>
>> sahp7641> /var/s
--- Comment #2 from kargl at gcc dot gnu dot org 2009-07-07 19:43 ---
(In reply to comment #0)
> sahp7641> /var/scratch2/gcc4/bin/gfortran -v
> Using built-in specs.
> Target: x86_64-unknown-linux-gnu
> Configured with: ../gcc-4.4.0/configure --prefix=/var/scratch2/gcc4/
> --enable-langu
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-07-07 19:02 ---
Zeros have sign for FP value. Though I don't know if that is true for Fortran
standard ...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40675