+[no]extend_source

+extend_source allows extended source lines, which may contain up to 254

 

characters. The default, +noextend_source, restricts fixed-format source lines to

 

72 characters and free-format source lines to 132 characters.

 

Programs that depend on the compiler’s ignoring characters past column 72 will not

 

compile correctly with the +extend_source option.

+externals=file

Specifies a file that contains a list of procedure names to be considered external as

 

opposed to intrinsic. Using this option causes the routines whose names appear in

 

file to be treated as if they were declared with theEXTERNAL attribute.

+f2003

+f2003 enables FORTRAN 2003 features supported by the compiler.

+fastallocatable

+fastallocatable enables a different representation for allocatable arrays in the

 

object code produced by the compiler. This alternate representation avoids problems

 

in optimizing code containing allocatable array references. Additionally, this alternate

 

representation for allocatable arrays is binary compatible with the old representation.

+fltconst_strict

Uses a strict power table for converting floating constants with exponents. Use of strict

 

power table provides a more accurate floating point representation.

+FPflags

+FP initializes the flagsthat specify how runtime floating-point exceptions should

 

be trapped; uppercase flags enable traps, lowercase flags disable traps. flags

 

can be concatenated to specify a desired behavior and may not contain spaces or

 

tabs. Valid values for flags are identified in Table 2-4.

 

By default, all traps are disabled. However, you can specifically disable a behavior

 

either by excluding the upper-case letter from flags or by including the equivalent

 

lower-case letter (v,z,o,u,i,d) in flags. For example, the following command

 

lines are equivalent:

 

$

f90 +FPvZI test.f90

 

$

f90 +FPZI test.f90

 

If you are using PA1.1 libraries, you can dynamically change these settings at run

 

time by using thefpsetdefaults or fpsetmask routines. For more information

 

about these routines, see the fpgetround (3M) man page and the HP-UX

 

Floating-Point Guide.

Enabling sudden underflow may cause the same program to compute different results on different implementations of the PA-RISC 1.1and 2.0architectures. This is because some hardware implementations have sudden underflow available, while others do not. The +FPDoption enables the hardware to flush denormalized values to zero, but it does not require that it do so.

Table 10 Values for the +FP option

Value Meaning

VTrap on invalid floating-point operations. Examples of invalid floating-point operations include the following:

Arithmetic operation on NaNs

Operations such as (+inf) + (-inf) and (+inf) - (+inf)

Multiplication of 0 and infinity

Division operations 0/0 and inf/inf

Certain floating-point remainder operations

Square root of a negative value

Certain kinds of comparisons of unordered values Z

Z Trap on floating-point divide by zero.

O Trap on floating-point overflow.

U Trap on floating-point underflow.

Command-line options 27

Page 27
Image 27
HP UX Fortran Software manual Values for the +FP option