From: Mike Stump
Date: Mon, 14 Dec 2009 23:53:10 +0000 (+0000)
Subject: Add documentation for recently added code. WIP.
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53664ca7bee0cb1e203c60969fde37191fee1620;p=clang
Add documentation for recently added code. WIP.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91367 91177308-0d34-0410-b5e6-96231b3b80d8
---
diff --git a/docs/UsersManual.html b/docs/UsersManual.html
index cfaa071083..b5aa6a8dcd 100644
--- a/docs/UsersManual.html
+++ b/docs/UsersManual.html
@@ -40,6 +40,7 @@ td {
Controlling Diagnostics via Pragmas
Precompiled Headers
+ Controlling Code Generation
C Language Features
@@ -562,6 +563,29 @@ at the time of PCH use requires one of the PCH optimizations,
stat()
caching, to be disabled. However, this change is only
likely to affect PCH files that reference a large number of headers.
+
+Controlling Code Generation
+
+
+Clang provides a number of ways to control code generation. The options are listed below.
+
+
+-fcatch-undefined-behavior: Turn
+on runtime code generation to check for undefined behavior.
+
+This option, which defaults to off, controls whether or not Clang
+adds runtime checks for undefined runtime behavior. If the check fails,
+__builtin_trap() is used to indicate failure.
+The checks are:
+
+
Subscripting where the static type of one operand is decayed from an
+ array type and the other operand is greater than the size of the array or
+ less than zero.
+Shift operators where the amount shifted is greater or equal to the
+ promoted bit-width of the left-hand-side or less than zero.
+
+
+
C Language Features