diff options
author | Joseph Myers <joseph@codesourcery.com> | 2005-05-10 00:51:49 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2005-05-10 00:51:49 +0100 |
commit | 8ceac9f8f4075b8a4c11c03afa23b846e8b52198 (patch) | |
tree | f5ba0b638985208934d9a6674e8691830aa6352e /gcc | |
parent | 604b08d75ba12d41ebe0ae1feb8e072ccfe7bb96 (diff) | |
download | gcc-8ceac9f8f4075b8a4c11c03afa23b846e8b52198.zip gcc-8ceac9f8f4075b8a4c11c03afa23b846e8b52198.tar.gz gcc-8ceac9f8f4075b8a4c11c03afa23b846e8b52198.tar.bz2 |
re PR c/21160 (documentation for -Wuninitialized out of date)
PR c/21160
* doc/invoke.texi (-Wuninitialized): Update documentation.
From-SVN: r99478
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 12 |
2 files changed, 12 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4f0f859..44126a2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-05-09 Joseph S. Myers <joseph@codesourcery.com> + + PR c/21160 + * doc/invoke.texi (-Wuninitialized): Update documentation. + 2005-05-09 Richard Earnshaw <richard.earnshaw@arm.com> * arm.c (const_ok_for_arm): Use a faster algorithm. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 52d879c..656a5d4 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -2565,11 +2565,13 @@ get these warnings. If you want to warn about code which uses the uninitialized value of the variable in its own initializer, use the @option{-Winit-self} option. -These warnings occur only for variables that are candidates for -register allocation. Therefore, they do not occur for a variable that -is declared @code{volatile}, or whose address is taken, or whose size -is other than 1, 2, 4 or 8 bytes. Also, they do not occur for -structures, unions or arrays, even when they are in registers. +These warnings occur for individual uninitialized or clobbered +elements of structure, union or array variables as well as for +variables which are uninitialized or clobbered as a whole. They do +not occur for variables or elements declared @code{volatile}. Because +these warnings depend on optimization, the exact variables or elements +for which there are warnings will depend on the precise optimization +options and version of GCC used. Note that there may be no warning about a variable that is used only to compute a value that itself is never used, because such |