summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2010-06-25 13:23:08 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2010-06-25 13:23:08 +0000
commit212580ffb8305e6da025fd873f1732879b835de1 (patch)
treec0a9cb6371cbdb80ae09c30da11d25c4cc262d09 /gcc
parent3e485f6245f4ebac030eed59be23c5553069da52 (diff)
downloadgcc-212580ffb8305e6da025fd873f1732879b835de1.tar.gz
invoke.texi (-Wsuggest-attribute): Add item for noreturn.
2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org> * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn. From-SVN: r161383
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/doc/invoke.texi5
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b77b914a324..54faa83f186 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
+
+ * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
+
2010-06-25 Jan Hubicka <jh@suse.cz>
* tree-pass.h (pass_split_functions): Declare.
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 8c51387ae25..aafff446a38 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -258,7 +258,7 @@ Objective-C and Objective-C++ Dialects}.
-Wsign-compare -Wsign-conversion -Wstack-protector @gol
-Wstrict-aliasing -Wstrict-aliasing=n @gol
-Wstrict-overflow -Wstrict-overflow=@var{n} @gol
--Wsuggest-attribute=@r{[}const@r{|}pure@r{]} @gol
+-Wsuggest-attribute=@r{[}pure@r{|}const@r{|}noreturn@r{]} @gol
-Wswitch -Wswitch-default -Wswitch-enum -Wsync-nand @gol
-Wsystem-headers -Wtrigraphs -Wtype-limits -Wundef -Wuninitialized @gol
-Wunknown-pragmas -Wno-pragmas @gol
@@ -3669,7 +3669,7 @@ comparisons, so this warning level will give a very large number of
false positives.
@end table
-@item -Wsuggest-attribute=@r{[}const@r{|}pure@r{|}noreturn@r{]}
+@item -Wsuggest-attribute=@r{[}pure@r{|}const@r{|}noreturn@r{]}
@opindex Wsuggest-attribute=
@opindex Wno-suggest-attribute=
Warn for cases where adding an attribute may be beneficial. The
@@ -3678,6 +3678,7 @@ attributes currently supported are listed below.
@table @gcctabopt
@item -Wsuggest-attribute=pure
@itemx -Wsuggest-attribute=const
+@itemx -Wsuggest-attribute=noreturn
@opindex Wsuggest-attribute=pure
@opindex Wno-suggest-attribute=pure
@opindex Wsuggest-attribute=const