* doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
authorJason Merrill <jason@redhat.com>
Tue, 27 Sep 2005 03:11:28 +0000 (23:11 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 27 Sep 2005 03:11:28 +0000 (23:11 -0400)
From-SVN: r104681

gcc/ChangeLog
gcc/doc/invoke.texi

index 318e35be23a17912235f3467687c22f6b465b988..de070de522b68aa5178d8e7f69aa2740ec99ee06 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-26  Jason Merrill  <jason@redhat.com>
+
+       * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
+
 2005-09-26  James E Wilson  <wilson@specifix.com>
 
        * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
index 5c8f51ac595832c08520dd10c4c71cea80dce07b..814d9d879585211bc8970d4070ab584fc485083c 100644 (file)
@@ -1460,10 +1460,13 @@ call the copy constructor in all cases.
 
 @item -fno-enforce-eh-specs
 @opindex fno-enforce-eh-specs
-Don't check for violation of exception specifications at runtime.  This
-option violates the C++ standard, but may be useful for reducing code
-size in production builds, much like defining @samp{NDEBUG}.  The compiler
-will still optimize based on the exception specifications.
+Don't generate code to check for violation of exception specifications
+at runtime.  This option violates the C++ standard, but may be useful
+for reducing code size in production builds, much like defining
+@samp{NDEBUG}.  This does not give user code permission to throw
+exceptions in violation of the exception specifications; the compiler
+will still optimize based on the specifications, so throwing an
+unexpected exception will result in undefined behavior.
 
 @item -ffor-scope
 @itemx -fno-for-scope