The -Msave flag is no longer working properly. This used to work in CE19.4 and prior. The little program below illustrates the problem. The value of ‘j’ in sub1 is not preserved call to call.
! pgf90 -g -Msave -o pgi_msave_bug.exe pgi_msave_bug.f90 program msave_bug i = 0 print *,'i = ',i call sub1(i) i = 2 print *,'i = ',i call sub1(i) end program msave_bug subroutine sub1(i) if(i.lt.1)j=555 print *,'j should equal 555, j = ',j end subroutine sub1
pgf90 19.10-0 LLVM 64-bit target on x86-64 Linux -tp nehalem