HP Fortran Programmer Guide (766160-001, March 2014)
+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.
+[no]extend_source
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.
+externals=file
+f2003 enables FORTRAN 2003 features supported by the compiler.+f2003
+fastallocatable enables a different representation for allocatable arrays in the
object code produced by the compiler. This alternate representation avoids problems
+fastallocatable
in optimizing code containing allocatable array references. Additionally, this alternate
representation for allocatable arrays is binary compatible with the old representation.
Uses a strict power table for converting floating constants with exponents. Use of strict
power table provides a more accurate floating point representation.
+fltconst_strict
+FP initializes the flagsthat specify how runtime floating-point exceptions should
be trapped; uppercase flags enable traps, lowercase flags disable traps. flags
+FPflags
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
MeaningValue
Trap on invalid floating-point operations. Examples of invalid floating-point operations include the following:V
• 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
Trap on floating-point divide by zero.Z
Trap on floating-point overflow.O
Trap on floating-point underflow.U
Command-line options 27