Sun Studio 12: Fortran User's Guide

3.3.3 Backward Compatibility and Legacy Options

The following options are provided for backward compatibility with earlier compiler releases, and certain Fortran legacy capabilities.

Table 3–6 Backward Compatibility Options

Action  

Option  

Allow assignment to constant arguments. 

–copyargs

Treat hollerith constant as character or typeless in call argument lists. 

-xhasc[={yes|no}]

Support Fortran 77 extensions and conventions 

-f77

Nonstandard arithmetic—allow nonstandard arithmetic. 

–fnonstd

Optimize performance for the host system. 

–native

DO loops—use one trip DO loops.

–onetrip

Allow legacy aliasing situations 

-xalias=keywords

Use of these option flags is not recommended for producing portable Fortran 95 programs.