--diag_suppress=optimizations

This option suppresses diagnostic messages for high-level optimizations.

Show/hideDefault

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.

Show/hideUsage

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.

Show/hideExample

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.

Show/hideSee also

Copyright © 2010-2011 ARM. All rights reserved.ARM DUI 0491F
Non-ConfidentialID091611