------- Comment #5 from dfranke at gcc dot gnu dot org  2010-05-17 22:23 -------
(In reply to comment #4)
> We have complete control of whether to print the negative sign with
> -fno-sign-zero.  I am tempted to say this is a no-never-mind situation.

Using the testcase shown in comment #3:

$> gfortran-svn pr44156-c3.f90 -fno-sign-zero && ./a.out
   0.0000000       0.0000000       0.0000000    
$> gfortran-svn pr44156-c3.f90 -fsign-zero && ./a.out
   0.0000000       0.0000000      -0.0000000

The flag does work for the third value, i.e. the line

   real, parameter :: e = a(1) * b(1)

but has no say for the others.


Out of curiosity, what do other compilers do? I, right now, don't have any to
test with.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44156

Reply via email to