The compilation diagnostics options let you specify the kinds of diagnostic messages (warnings and errors) you want to receive.
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.
See also -[no]stand.
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.
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:
0 No information
1 Loops, regions, and sections parallelized
2 Same as 1 plus master construct, single construct, and so forth
For more information, see "Parallelization with OpenMP* Overview" (and related sections) in the User's Guide Volume II: Optimizing Applications.
Default: Off. -par_report1 is the default if -par_report is specified without an argument.
Specifies the autoparallelizer's diagnostic level, where n is:
0 No information
1 Loops successfully parallelized
2 Loops successfully and unsuccessfully parallelized
3 Same as 2plus dependency information
See also these topics in Volume II:
Auto-Parallelization: Enabling, Options, Directives, and Environment Variables
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.
Default: Off. -vec_report1 is the default if -vec_report is specified without an argument.
Specifies the vectorizer's diagnostic level, where n is:
0 No information
1 Indicate vectorizer loops
2 Indicate vectorizer and nonvectorizer loops
3 Indicate vectorizer loops plus dependence information
4 Indicate nonvectorized loops
5 Indicate nonvectorized loops plus the reason why they were not vectorized
For more information, see "Vectorization Overview" (and related sections) in the User's Guide Volume II: Optimizing Applications.
Default: Custom (individually specified).
Specifies the compiler diagnostics level. Choices are:
-warn all (show all diagnostics)
-warn none (show no diagnostics)
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.
Default: -warn alignments
Issues warning messages for data that is not naturally aligned.
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.
Default: -warn noerrors
Treats all warnings as errors by changing the severity of all warning diagnostics into error diagnostics, including standards warnings.
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.
Default: -warn noignore_loc
Issues warning messages when %LOC is stripped from an argument.
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.
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.
Default: -warn uncalled
Issues warning messages when a statement function is never called.
Default: -warn nounused
Issues warning messages for variables that are declared but never used.
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.