The information in this article applies to:
SYMPTOMSMicrosoft FORTRAN code that uses alternate RETURNS and is compiled with $STORAGE:2 metacommand in the called subprogram and $STORAGE:4 (the default) in the calling routine may not return to the correct alternate return label number. This will cause incorrect results. CAUSEWhen the $STORAGE:2 metacommand is in the separately compiled subroutine with the alternate return, the AX register is correctly initialized with the return code but the DX register is not correctly initialized (zeroed), resulting in incorrect operation of the calling program. There is a CWD (convert to double word using DX:AX) missing in the generated code for the called subprogram. The calling routine acts on the fact that DX is not zero and branches to the next executable statement and not the correct alternate return label. STATUSMicrosoft has confirmed this to be a problem in the products listed above. This problem was corrected in FORTRAN PowerStation. MORE INFORMATIONThe following code reproduces the problem: Calling routine (in separate file):
Called subprogram (in separate file):
Additional query words: 5.10 buglist5.10 fixlist1.00
Keywords : |
Last Reviewed: November 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |