aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-05-15 22:27:02 -0400
committerJason Merrill <jason@gcc.gnu.org>2010-05-15 22:27:02 -0400
commit9feb3d6aca21781464d2759fcef34bd471d85628 (patch)
tree699ab721514cf76b302460b68157f29fee95d298 /gcc/doc
parente05e5c083b711a62699bb6c1f41b476bd257f709 (diff)
downloadgcc-9feb3d6aca21781464d2759fcef34bd471d85628.zip
gcc-9feb3d6aca21781464d2759fcef34bd471d85628.tar.gz
gcc-9feb3d6aca21781464d2759fcef34bd471d85628.tar.bz2
c.opt: Add -fnothrow-opt.
gcc: * c.opt: Add -fnothrow-opt. gcc/cp: * cp-tree.h (TYPE_NOEXCEPT_P): New macro. * except.c (begin_eh_spec_block): Use MUST_NOT_THROW_EXPR if TYPE_NOEXCEPT_P. (finish_eh_spec_block): Adjust. From-SVN: r159450
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 98f97cc..81c2d03 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -1929,6 +1929,15 @@ Disable built-in declarations of functions that are not mandated by
ANSI/ISO C@. These include @code{ffs}, @code{alloca}, @code{_exit},
@code{index}, @code{bzero}, @code{conjf}, and other related functions.
+@item -fnothrow-opt
+@opindex fnothrow-opt
+Treat a @code{throw()} exception specification as though it were a
+@code{noexcept} specification to reduce or eliminate the text size
+overhead relative to a function with no exception specification. The
+semantic effect is that an exception thrown out of a function with
+such an exception specification will result in a call to
+@code{terminate} rather than @code{unexpected}.
+
@item -fno-operator-names
@opindex fno-operator-names
Do not treat the operator name keywords @code{and}, @code{bitand},