8.60 --diag_suppress=optimizations

Suppresses diagnostic messages for high-level optimizations.


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


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


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.


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
8.19 --brief_diagnostics, --no_brief_diagnostics
8.56 --diag_error=tag[,tag,...]
8.57 --diag_remark=tag[,tag,...]
8.58 --diag_style=arm|ide|gnu compiler option
8.59 --diag_suppress=tag[,tag,...]
8.61 --diag_warning=tag[,tag,...]
8.203 --wrap_diagnostics, --no_wrap_diagnostics
8.62 --diag_warning=optimizations
8.72 --errors=filename
8.196 -W
10.79 #pragma diag_error tag[,tag,...]
10.80 #pragma diag_remark tag[,tag,...]
10.81 #pragma diag_suppress tag[,tag,...]
8.160 --remarks
6 Compiler Diagnostic Messages
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.