[PATCH] D145564: [clang][docs] Clarify the semantics of -fexceptions

Alex Bradbury via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 8 02:52:59 PST 2023


asb created this revision.
asb added a reviewer: efriedma.
Herald added subscribers: wingo, pmatos, sameer.abuasal.
Herald added a project: All.
asb requested review of this revision.

As noted in #6126 <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.


https://reviews.llvm.org/D145564

Files:
  clang/docs/CommandGuide/clang.rst


Index: clang/docs/CommandGuide/clang.rst
===================================================================
--- clang/docs/CommandGuide/clang.rst
+++ clang/docs/CommandGuide/clang.rst
@@ -473,8 +473,8 @@
 
 .. 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.
+  Enable generation of unwind information for functions that might have an
+  exception through through them. This is on by default in x86-64.
 
 .. option:: -ftrapv
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145564.503286.patch
Type: text/x-patch
Size: 558 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230308/683cde97/attachment.bin>


More information about the cfe-commits mailing list