[Bug middle-end/44134] New: Unneeded +0.0 for c = 0.0 ; c = c+ a*b

2010-05-14 Thread tkoenig at gcc dot gnu dot org
This code leads to the adding of 0.0, which is a nop. Any signalling should have been done previously. i...@linux-fd1f:/tmp cat mult.f90 subroutine foo(a,b,c) real, intent(in) :: a,b real, intent(out) :: c c = 0.0 c = c + a*b end subroutine foo i...@linux-fd1f:/tmp gfortran -O3

Re: [Bug middle-end/44134] New: Unneeded +0.0 for c = 0.0 ; c = c+ a*b

2010-05-14 Thread Andrew Pinski
Sent from my iPhone On May 14, 2010, at 2:18 AM, tkoenig at gcc dot gnu dot org gcc-bugzi...@gcc.gnu.org wrote: This code leads to the adding of 0.0, which is a nop. Any signalling should have been done previously. It is not signalling that matters here but signed zero. 0.0 + -0.0 ==