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 />

Example<br />

--gnu_version=30401 makes the compiler compatible with GCC 3.4.1 as far as possible.<br />

See also<br />

• --arm_linux_configure on page 2-12<br />

• --gnu on page 2-67.<br />

2.1.83 --guiding_decls, --no_guiding_decls<br />

This option enables or disables the recognition of guiding declarations for template<br />

functions in C++.<br />

A guiding declaration is a function declaration that matches an instance of a function<br />

template but has no explicit definition because its definition derives from the function<br />

template.<br />

If --no_guiding_decls is combined with --old_specializations, a specialization of a<br />

non-member template function is not recognized. It is treated as a definition of an<br />

independent function.<br />

Note<br />

The option --guiding_decls is provided only as a migration aid for legacy source code<br />

that does not conform to the C++ standard. Its use is not recommended.<br />

Mode<br />

This option is effective only if the source language is C++.<br />

Default<br />

The default is --no_guiding_decls.<br />

Example<br />

template void f(T)<br />

{<br />

...<br />

}<br />

void f(int);<br />

When regarded as a guiding declaration, f(int) is an instance of the template.<br />

Otherwise, it is an independent function so you must supply a definition.<br />

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

Non-Confidential,<br />

ID101213

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

Saved successfully!

Ooh no, something went wrong!