Author: Alex Bradbury Date: 2023-03-14T19:52:32Z New Revision: f47404b012d66ed0b411a2b3742931a14e85c80b
URL: https://github.com/llvm/llvm-project/commit/f47404b012d66ed0b411a2b3742931a14e85c80b DIFF: https://github.com/llvm/llvm-project/commit/f47404b012d66ed0b411a2b3742931a14e85c80b.diff LOG: [clang][docs] Clarify the semantics of -fexceptions As noted in <https://github.com/llvm/llvm-project/issues/61216>, the documentation for -fexceptions appears to imply that unwind information is always generated, which isn't the case. Differential Revision: https://reviews.llvm.org/D145564 Added: Modified: clang/docs/CommandGuide/clang.rst Removed: ################################################################################ diff --git a/clang/docs/CommandGuide/clang.rst b/clang/docs/CommandGuide/clang.rst index 7fae1b5cec53c..e076818697eb1 100644 --- a/clang/docs/CommandGuide/clang.rst +++ b/clang/docs/CommandGuide/clang.rst @@ -473,8 +473,10 @@ Code Generation Options .. option:: -fexceptions - Enable generation of unwind information. This allows exceptions to be thrown - through Clang compiled stack frames. This is on by default in x86-64. + Allow exceptions to be thrown through Clang compiled stack frames (on many + targets, this will enable unwind information for functions that might have + an exception thrown through them). For most targets, this is enabled by + default for C++. .. option:: -ftrapv _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits