04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Compiler Command-line Options<br />

Note<br />

This option has the #pragma equivalent #pragma diag_warning.<br />

Syntax<br />

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

Where:<br />

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

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

specifying the messages whose severities are to be changed.<br />

See also<br />

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

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

• --diag_suppress=tag[,tag,...] on page 2-47<br />

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

• Changing the severity of diagnostic messages on page 6-5 in the Compiler User<br />

Guide.<br />

2.1.54 --diag_warning=optimizations<br />

This option sets high-level optimization diagnostic messages to have Warning severity.<br />

Default<br />

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

Usage<br />

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

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

option to display 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 />

<strong>ARM</strong> DUI 0348C Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. 2-49<br />

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!