diff options
author | Jason Merrill <jason@redhat.com> | 2005-09-26 23:11:28 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2005-09-26 23:11:28 -0400 |
commit | 4381020e03767cd344c2656ce7e901ea3420d6a6 (patch) | |
tree | 8c3cc26038562befa5150f70f6c06cedd844acac /gcc | |
parent | 4bd2f9d6a1cd4577e9713c2257ab0557d9288427 (diff) | |
download | gcc-4381020e03767cd344c2656ce7e901ea3420d6a6.zip gcc-4381020e03767cd344c2656ce7e901ea3420d6a6.tar.gz gcc-4381020e03767cd344c2656ce7e901ea3420d6a6.tar.bz2 |
* doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
From-SVN: r104681
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 11 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 318e35b..de070de 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 5c8f51a..814d9d8 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -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 |