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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Compiler Command-line Options<br />

2.1.76 --friend_injection, --no_friend_injection<br />

This option controls the visibility of friend declarations in C++.<br />

In C++, it controls whether or not the name of a class or function that is declared only<br />

in friend declarations is visible when using the normal lookup mechanisms.<br />

When friend names are declared, they are visible to these lookups. When friend names<br />

are not declared as required by the standard, function names are visible only when using<br />

argument-dependent lookup, and class names are never visible.<br />

Note<br />

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

code 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_friend_injection.<br />

See also<br />

• friend on page 3-15.<br />

2.1.77 -g<br />

This option enables the generation of debug tables for the current compilation.<br />

The compiler produces the same code regardless of whether -g is used. The only<br />

difference is the existence of debug tables.<br />

Using -g does not affect optimization settings. By default, using the -g option alone is<br />

equivalent to:<br />

-g --dwarf3 --debug_macros<br />

See also<br />

• --debug, --no_debug on page 2-37<br />

• --debug_macros, --no_debug_macros on page 2-37<br />

• --dwarf2 on page 2-51<br />

• --dwarf3 on page 2-51<br />

2-66 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!