summaryrefslogtreecommitdiffstats
path: root/clang/docs/UsersManual.html
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-04-08 22:18:01 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-04-08 22:18:01 +0000
commitfbbacc92416fff90aee2734ff02f0cb5e5de15a4 (patch)
tree74911f6a0778cfcd891f218168a3eb12698daa2b /clang/docs/UsersManual.html
parent1f1b269bbe32641e100c97860e9cf93e529e85f4 (diff)
downloadbcm5719-llvm-fbbacc92416fff90aee2734ff02f0cb5e5de15a4.tar.gz
bcm5719-llvm-fbbacc92416fff90aee2734ff02f0cb5e5de15a4.zip
Document -ftrap-function= option
llvm-svn: 129162
Diffstat (limited to 'clang/docs/UsersManual.html')
-rw-r--r--clang/docs/UsersManual.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/docs/UsersManual.html b/clang/docs/UsersManual.html
index 2b7b1489750..661be80f9d9 100644
--- a/clang/docs/UsersManual.html
+++ b/clang/docs/UsersManual.html
@@ -767,6 +767,18 @@ Don't assume that the C++'s new operator is sane.</dt>
<dd>This option tells the compiler to do not assume that C++'s global new
operator will always return a pointer that does not
alias any other pointer when the function returns.</dd>
+
+<dt id="opt_ftrap-function=<name>"><b>-ftrap-function=<name></b>: Instruct code
+generator to emit a function call to the specified function name for
+<tt>__builtin_trap()</tt>.</dt>
+
+<dd>LLVM code generator translates <tt>__builtin_trap()</tt> to a trap
+instruction if it is supported by the target ISA. Otherwise, the builtin is
+translated into a call to <tt>abort</tt>. If this option is set, then the code
+generator will always lower the builtin to a call to the specified function
+regardless of whether the target ISA has a trap instruction. This option is
+useful for environements (e.g. deeply embedded) where a trap cannot be properly
+handled.
</dl>
<!-- ======================================================================= -->
OpenPOWER on IntegriCloud