24.05.2014 Views

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

-qxlf90 Option<br />

Syntax<br />

-qxlf90={settings}<br />

<strong>XL</strong>F90({settings})<br />

Provides backward compatibility with <strong>XL</strong> <strong>Fortran</strong> <strong>for</strong> <strong>AIX</strong> Version 5 and the<br />

<strong>Fortran</strong> 90 standard <strong>for</strong> certain aspects of the <strong>Fortran</strong> language.<br />

Defaults<br />

The default suboptions <strong>for</strong> -qxlf90 depend on the invocation command that you<br />

specify. For the xlf95, xlf95_r , or xlf95_r7 command, the default suboptions are<br />

signedzero and autodealloc. For all other invocation commands, the defaults are<br />

nosignedzero and noautodealloc.<br />

Arguments<br />

signedzero | nosignedzero<br />

Determines how the SIGN(A,B) function handles signed real 0.0. Prior to<br />

<strong>XL</strong> <strong>Fortran</strong> Version 6.1, SIGN(A,B) returned |A| when B=-0.0. This<br />

behavior con<strong>for</strong>med with the <strong>Fortran</strong> 90 standard. Now, if you specify the<br />

-qxlf90=signedzero compiler option, SIGN(A,B) returns -|A| when<br />

B=-0.0. This behavior con<strong>for</strong>ms to the <strong>Fortran</strong> 95 standard and is consistent<br />

with the IEEE standard <strong>for</strong> binary floating-point arithmetic. Note that <strong>for</strong><br />

the REAL(16) data type, <strong>XL</strong> <strong>Fortran</strong> never treats zero as negative zero.<br />

This suboption also determines whether a minus sign is printed in the<br />

following cases:<br />

v<br />

For a negative zero in <strong>for</strong>matted output. Again, note that <strong>for</strong> the<br />

REAL(16) data type, <strong>XL</strong> <strong>Fortran</strong> never treats zero as negative zero.<br />

v For negative values that have an output <strong>for</strong>m of zero (that is, where<br />

trailing non-zero digits are truncated from the output so that the<br />

resulting output looks like zero). Note that in this case, the signedzero<br />

suboption does affect the REAL(16) data type; non-zero negative values<br />

that have an output <strong>for</strong>m of zero will be printed with a minus sign.<br />

autodealloc | noautodealloc<br />

Determines whether the compiler deallocates allocatable objects that are<br />

declared locally without either the SAVE or the STATIC attribute and have<br />

a status of currently allocated when the subprogram terminates. This<br />

behavior con<strong>for</strong>ms with the <strong>Fortran</strong> 95 standard and did not exist in <strong>XL</strong><br />

<strong>Fortran</strong> prior to Version 6.1. If you are certain that you are deallocating all<br />

local allocatable objects explicitly, you may wish to turn off this suboption<br />

to avoid possible per<strong>for</strong>mance degradation.<br />

<strong>XL</strong> <strong>Fortran</strong> Compiler-Option Reference 263

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!