View Full Version : Gfortran and -finit-local-zero

05-22-2009, 02:39 PM
Someone just reported an interesting interaction between gfortran-4.4.0 and TotalView. If you compile your code with the


option, and then try to step through your code, TotalView will jump around in the initialization section of a routine. It appears that this option will in-line code setting all the local variables to zero, placing this before the routine code, and not seeming to stick to a completely linear method of walking the defines. Once you get into the body of the code, stepping behaves normally, though stepping into any subroutine will likely go through the same sequence.

I'm not sure if this is the first version of gfortran that this option appears. I didn't find it in a 4.1.2 RedHat build of gfortran.

Just a heads up.