7.48 --diag_suppress=optimizations

Suppresses diagnostic messages for high-level optimizations.

Default

By default, optimization messages have Remark severity. Specifying --diag_suppress=optimizations suppresses optimization messages.

Note

Use the --remarks option to see optimization messages having Remark severity.

Usage

The compiler performs certain high-level vector and scalar optimizations when compiling at the optimization level -O3 -Otime, for example, loop unrolling. Use this option to suppress diagnostic messages relating to these high-level optimizations.

Example

int factorial(int n)
{
    int result=1;
    while (n > 0)
        result *= n--;
    return result;
}
Compiling this code with the options -O3 -Otime --remarks --diag_suppress=optimizations suppresses optimization messages.
Related reference
7.15 --brief_diagnostics, --no_brief_diagnostics
7.44 --diag_error=tag[,tag,...]
7.45 --diag_remark=tag[,tag,...]
7.46 --diag_style=arm|ide|gnu compiler option
7.47 --diag_suppress=tag[,tag,...]
7.49 --diag_warning=tag[,tag,...]
7.178 --wrap_diagnostics, --no_wrap_diagnostics
7.50 --diag_warning=optimizations
7.58 --errors=filename
7.173 -W
9.77 #pragma diag_error tag[,tag,...]
9.78 #pragma diag_remark tag[,tag,...]
9.79 #pragma diag_suppress tag[,tag,...]
7.143 --remarks
Chapter 5 Compiler Diagnostic Messages
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.