1.3.10. Diagnostic Options

1.3.10.1. Controlling Error, Warning, and Remark Diagnostics

The tiarmclang compiler provides the following options to assist with controlling what errors, warnings, and remarks are emitted during compilation:

-R<remark>

Enable the specified remark category.

-Wall

Enable most warning categories.

-Wextra

Enable the diagnostics that are enabled by -Wall plus a number of additional warning types.

-Werror

Treat detected warnings as errors.

-Werror=<warning-category>

Treat detected warnings in the specified category as errors.

-W<warning-category>

Enable the specified warning category.

-Wno-<warning-category>

Disable the specified warning category.

-w

Disable all warnings.

In addition to enabling and disabling diagnostics on the command line, pragmas can be used control specific diagnostics in a section of code. See clang diagnostic for details and examples.

1.3.10.2. Optimization Feedback Options

The following options can be used to instruct the tiarmclang compiler to emit information about the different optimizations and code transformations that are performed during compilation:

-Rpass-analysis=<arg>

Report transformation analysis from optimization passes whose name matches the given POSIX regular expression.

-Rpass-missed=<arg>

Report missed transformations by optimization passes whose name matches the given POSIX regular expression.

-Rpass=<arg>

Report transformations performed by optimization passes whose name matches the given POSIX regular expression.