public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3221] Make sure -fexceptions is enabled when -fnon-call-exceptions is
@ 2021-08-30 12:04 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2021-08-30 12:04 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1313111fdec0d0de4228b5e839ca728b3e4b106e
commit r12-3221-g1313111fdec0d0de4228b5e839ca728b3e4b106e
Author: Richard Biener <rguenther@suse.de>
Date: Mon Aug 30 09:55:59 2021 +0200
Make sure -fexceptions is enabled when -fnon-call-exceptions is
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.
Diff:
---
gcc/common.opt | 2 +-
gcc/doc/invoke.texi | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/gcc/common.opt b/gcc/common.opt
index ed8ab5fbe13..7d69ab5ef7c 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -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
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index b83bd902cec..f7bb193b51d 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-30 12:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-30 12:04 [gcc r12-3221] Make sure -fexceptions is enabled when -fnon-call-exceptions is Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).