29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Compiler</strong> Command-line Options<br />

Syntax<br />

--diag_suppress=tag[,tag,...]<br />

Where:<br />

tag[,tag,...]<br />

is a comma-separated list of diagnostic message numbers<br />

specifying the messages to be suppressed.<br />

See also<br />

• --diag_error=tag[,tag,...] on page 2-26<br />

• --diag_remark=tag[,tag,... ] on page 2-27<br />

• --diag_warning=tag[,tag,...] on page 2-30<br />

• #pragma diag_suppress tag[,tag,...] on page 4-54<br />

• Suppressing diagnostic messages on page 5-6 in the <strong>Compiler</strong> User <strong>Guide</strong>.<br />

2.1.34 --diag_suppress=optimizations<br />

This option suppresses diagnostic messages for high-level optimizations.<br />

Default<br />

By default, optimization messages have Remark severity. Specifying<br />

--diag_suppress=optimizations suppresses optimization messages.<br />

Note<br />

Use the --remarks option to see optimization messages having Remark severity.<br />

Usage<br />

The compiler performs certain high-level vector and scalar optimizations when<br />

compiling at the optimization level -O3, for example, loop unrolling. Use this option to<br />

suppress diagnostic messages relating to these high-level optimizations.<br />

Example<br />

/*int*/ factorial(int n)<br />

{<br />

int result=1;<br />

while (n > 0)<br />

result *= n--;<br />

<strong>ARM</strong> DUI 0348A Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. 2-29<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!