More detailed information on the compiler message output can be found in the C/C++ User Guide [4] in the section “Structure of the compiler messages”.
-R diagnose_to_listing
This option allows you to sort diagnostic information (normally sent to stderr
) as a special “result listing” and to copy this to the end of the listing file. Note: the messages are sorted according to their message weighting.
-R limit,
n
This option defines the maximum number of errors tolerated by the compiler before it aborts the compilation run. Notes and warnings are counted separately. The default value is n = 50. If n = 0, the compiler will attempt to continue compiling as long as possible, regardless of the number of errors that have occurred.
-R min_weight,
min_weight
This option defines the minimum error weight (i.e. severity code) as of which diagnostic messages from the compiler are to be output to the standard error output stderr
.-R min_weight,warnings
is the default setting. The following entries are possible for
min_weight:
| All messages are output, i.e. even the notes. |
| The output of notes is suppressed (default). |
| The output of notes and warnings is suppressed. |
| The output of notes, warnings and errors is suppressed. |
-R note,
msgid,[msgid...]-R warning,
msgid,[msgid...]-R error,
msgid,[msgid...]
These options can be used to change the default severity code of diagnostic messages. msgid is the corresponding message number. The severity code for fatal errors cannot be changed. This also applies to errors, unless they have been explicitly marked in the original message with an asterisk: [*error]
. Depending on the language mode or the position in the code, the same message ID msgid can have a different severity code (warning or error).
-R show_column
-R no_show_column
This option determines whether the diagnostic messages of the compiler are generated in short or long form.-R show_column
is the default setting, which means that the original source program line is shown with the error location marked (with ^
) in addition to the diagnostic message itself.
If -R no_show_column
is specified, the marked source program line is not output.
-R strict_errors
-R strict_warnings
This option can only be used meaningfully in the strict language modes (-X strict
). -K strict_warnings
is the default, which means that warnings are issued for language constructs that deviate from the ANSI/ISO standard, but do not represent a serious violation of the semantic rules defined therein (e.g. implementation-dependent language extensions; see the C/C++ User Guide [4]).
If -K strict_errors
is specified, such cases are treated as errors with corresponding messages.
Serious violations automatically lead to errors.
-R suppress,
msgid,[msgid...]
Suppresses the output of the message with the message ID msgid. Some messages (e.g. fatal errors) cannot be suppressed. The message is still counted for the summary message. When an error is detected, no module will be generated. This is also the case when the output of the error is suppressed.
-R use_before_set
-R no_use_before_set
-R use_before_set
is the default setting and causes warnings to be issued if local auto
variables are used in the program before being assigned a value.
If -R no_use_before_set
is specified, the output of such warnings is suppressed.
-v
The output of messages with this option is the same as for the option combination-R min_weight,notes
and -K verbose
.
-w
This option is a synonym for -R min_weight,errors
.