From f47404b012d66ed0b411a2b3742931a14e85c80b Mon Sep 17 00:00:00 2001 From: Alex Bradbury Date: Tue, 14 Mar 2023 19:52:32 +0000 Subject: [PATCH] [clang][docs] Clarify the semantics of -fexceptions As noted in , 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 --- clang/docs/CommandGuide/clang.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clang/docs/CommandGuide/clang.rst b/clang/docs/CommandGuide/clang.rst index 7fae1b5..e076818 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 -- 2.7.4