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

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

• --remarks on page 2-111<br />

• -W on page 2-134<br />

• --wrap_diagnostics, --no_wrap_diagnostics on page 2-137<br />

• Chapter 6 Diagnostic Messages in the Compiler User Guide.<br />

2.1.64 --exceptions, --no_exceptions<br />

This option enables or disables exception handling.<br />

In C++, the --exceptions option enables the use of throw and try/catch, causes function<br />

exception specifications to be respected, and causes the compiler to emit unwinding<br />

tables to support exception propagation at runtime.<br />

In C++, when the --no_exceptions option is specified, throw and try/catch are not<br />

permitted in source code. However, function exception specifications are still parsed,<br />

but most of their meaning is ignored.<br />

In C, the behavior of code compiled with --no_exceptions is undefined if an exception<br />

is thrown through the compiled functions. You must use --exceptions, if you want<br />

exceptions to propagate correctly though C functions.<br />

Default<br />

The default is --no_exceptions. However, if you specify an <strong>ARM</strong> Linux configuration<br />

file on the command line and you use --translate_g++, the default changes to<br />

--exceptions.<br />

See also<br />

• --arm_linux_config_file=path on page 2-10<br />

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

• --exceptions_unwind, --no_exceptions_unwind.<br />

2.1.65 --exceptions_unwind, --no_exceptions_unwind<br />

This option enables or disables function unwinding for exception-aware code. This<br />

option is only effective if --exceptions is enabled.<br />

When you use --no_exceptions_unwind and --exceptions then no exception can<br />

propagate through the compiled functions. std::terminate is called instead.<br />

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