24.05.2014 Views

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

-qsigtrap Option<br />

Syntax<br />

-qsigtrap[=trap_handler]<br />

When you are compiling a file that contains a main program, this option sets up<br />

the specified trap handler to catch SIGTRAP exceptions. This option enables you<br />

to install a handler <strong>for</strong> SIGTRAP signals without calling the SIGNAL subprogram<br />

in the program.<br />

Arguments<br />

To enable the xl__trce trap handler, specify -qsigtrap without a handler name. To<br />

use a different trap handler, specify its name with the -qsigtrap option.<br />

If you specify a different handler, ensure that the object module that contains it is<br />

linked with the program.<br />

Related In<strong>for</strong>mation<br />

The possible causes of exceptions are described in “<strong>XL</strong> <strong>Fortran</strong> Run-Time<br />

Exceptions” on page 66. “Detecting and Trapping Floating-Point Exceptions” on<br />

page 296 describes a number of methods <strong>for</strong> dealing with exceptions that result<br />

from floating-point computations. “Installing an Exception Handler” on page 298<br />

lists the exception handlers that <strong>XL</strong> <strong>Fortran</strong> supplies.<br />

232 <strong>XL</strong> <strong>Fortran</strong> <strong>Enterprise</strong> <strong>Edition</strong> <strong>for</strong> <strong>AIX</strong> : User’s <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!