Compilation Diagnostics Options

The compilation diagnostics options let you specify the kinds of diagnostic messages (warnings and errors) you want to receive.

Descriptions of Compilation Diagnostics Options

-e90 or -e95

Default: Off

Alternate syntax: -w90 or -w95

Issues errors for nonstandard Fortran 90 (-e90) or nonstandard Fortran 95 (-e95). This option issues compile-time errors for language elements that are not standard in the Fortran language that can be identified at compile time.00

See also -[no]stand.

-[no]error_limit n

Default: -error_limit 30

Specifies the maximum number of error-level or fatal-level compiler errors allowed for a given file before compilation aborts. If you specify -noerror_limit  on the command line, there is no limit on the number of errors that are allowed. If the maximum number of errors is reached, a warning message is issued and the next file (if any) on the command line is compiled.

-openmp_report{0|1|2}

Default: Off. -openmp_report1 is the default if -openmp_report is specified without an argument.

Specifies the OpenMP parallelizer's diagnostic level, where n is:

For more information, see "Parallelization with OpenMP* Overview" (and related sections) in the User's Guide Volume II: Optimizing Applications.

-par_report{0|1|2|3}

Default: Off. -par_report1 is the default if -par_report is specified without an argument.

Specifies the autoparallelizer's diagnostic level, where n is:

See also these topics in Volume II:

Auto-Parallelization Overview
Auto-Parallelization: Enabling, Options, Directives, and Environment Variables

-std, -std90, -std95

Default: Off ((no messages are issued)

Alternate syntax: -[no]stand or -w90 or -stand90 (for Fortran 90) or -w95 or -stand95 (for Fortran 95)

-std and -stand and -std95 and -stand95 (which are equivalent) warn for nonstandard Fortran 95. -std90 and -stand90 (which are equivalent) warn for nonstandard Fortran 90.

This option issues compile-time messages for language elements that are not standard in the Fortran language that can be identified at compile time.

-w90 and -w95 turn off warnings for nonstardard Fortran for Fortran 90 and Fortran 95, respectively.

-stand is set if you specify -warn stderrors.

-vec_report{0|1|2|3|4|5} (IA-32 systems only)

Default: Off. -vec_report1 is the default if -vec_report is specified without an argument.

Specifies the vectorizer's diagnostic level, where n is:

For more information, see "Vectorization Overview" (and related sections) in the User's Guide Volume II: Optimizing Applications.

-warn all or -warn none or -nowarn

Default: Custom (individually specified). 

Specifies the compiler diagnostics level. Choices are:

Specifying -warn all requests all possible warning messages, but does not set -warn errors or -warn stderrors. To enable all the additional checking to be performed and force the severity of the diagnostics to be severe enough to not generate an object file, specify -warn all -warn errors or -warn all -warn stderrors.

Specifying -warn is the same as specifying -warn all.

Specifying -nowarn is the same as specifying -warn none.

-warn [no]alignments

Default: -warn alignments

Issues warning messages for data that is not naturally aligned.

-warn [no]declarations

Default: -warn nodeclarations

Issues an error message for any undeclared symbols. This option makes the default type of a variable undefined (IMPLICIT NONE) rather than using the implicit Fortran rules. See also -u.

-warn [no]errors

Default: -warn noerrors

Treats all warnings as errors by changing the severity of all warning diagnostics into error diagnostics, including standards warnings.

-warn [no]general

Default: -warn general

Alternate syntax: -W1 (to display all warnings) or -W0 or -w (to suppress all warnings)

Displays all informational-level and warning-level diagnostic messages from the compiler.

Use -warn nogeneral or -nowarn or -W0 or -w to suppress all warnings.

-warn [no]ignore_loc

Default: -warn noignore_loc

Issues warning messages when %LOC is stripped from an argument.

-warn [no]stderrors

Default: -warn nostderrors

Treats warnings about Fortran standards violations as errors, not warnings.

Specifying -warn stderrors sets -stand f95.

If you want to make Fortran 90 standards violations become errors, set this option as well as -stand f90.

-warn [no]truncated_source

Default: -warn notruncated_source

Issues warning messages when reading a source line with a statement field that exceeds the maximum column width in fixed-format source files. The maximum column width for fixed-format files is 72, 80, or 132, depending on the setting of the -extend_source option. The -warn truncated_source option has no effect on truncation; lines that exceed the maximum column width are always truncated. The -warn truncated_source option does not apply to free-format source files.

-warn [no]uncalled

Default: -warn uncalled

Issues warning messages when a statement function is never called.

-warn [no]unused

Default: -warn nounused

Issues warning messages for variables that are declared but never used.

-warn [no]usage

Default: -warn usage

Alternate syntax: -cm (which is equivalent to -warn nousage)

Suppresses messages about questionable programming practices.

Questionable programming practices, although allowed, often are the result of programming errors. For example, the default value, -warn usage, detects a continued character or Hollerith literal whose first part ends before the statement field ends and appears to end with trailing spaces.