]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Make sure -fexceptions is enabled when -fnon-call-exceptions is
authorRichard Biener <rguenther@suse.de>
Mon, 30 Aug 2021 07:55:59 +0000 (09:55 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 30 Aug 2021 12:03:56 +0000 (14:03 +0200)
This makes -fexceptions enabled by -fnon-call-exceptions, removing
the odd state of !flag_exceptions && flag_non_call_exceptions from
middle-end consideration.

2021-08-30  Richard Biener  <rguenther@suse.de>

* common.opt (fexceptions): Mark
EnabledBy(fnon-call-exceptions).
* doc/invoke.texi (fnon-call-exceptions): Document this
enables -fexceptions.

gcc/common.opt
gcc/doc/invoke.texi

index ed8ab5fbe13d4009f1d8be4adbe1f19ef457daf1..7d69ab5ef7c3de146af697c18e6aba79f529c127 100644 (file)
@@ -1509,7 +1509,7 @@ Common Var(flag_emit_class_debug_always) Init(0)
 Do not suppress C++ class debug information.
 
 fexceptions
-Common Var(flag_exceptions) Optimization
+Common Var(flag_exceptions) Optimization EnabledBy(fnon-call-exceptions)
 Enable exception handling.
 
 fexpensive-optimizations
index b83bd902cec81004d44489da7bcc716b21904ce4..f7bb193b51d9c9ed64bf94e71573697d1b506c90 100644 (file)
@@ -16410,7 +16410,8 @@ Note that this requires platform-specific runtime support that does
 not exist everywhere.  Moreover, it only allows @emph{trapping}
 instructions to throw exceptions, i.e.@: memory references or floating-point
 instructions.  It does not allow exceptions to be thrown from
-arbitrary signal handlers such as @code{SIGALRM}.
+arbitrary signal handlers such as @code{SIGALRM}.  This enables
+@option{-fexceptions}.
 
 @item -fdelete-dead-exceptions
 @opindex fdelete-dead-exceptions