Skip to content

Commit

Permalink
[clang][docs] Clarify the semantics of -fexceptions
Browse files Browse the repository at this point in the history
As noted in <#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
  • Loading branch information
asb committed Mar 14, 2023
1 parent a4d3bc6 commit f47404b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clang/docs/CommandGuide/clang.rst
Expand Up @@ -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

Expand Down

0 comments on commit f47404b

Please sign in to comment.