]> gcc.gnu.org Git - gcc.git/commitdiff
re PR c/21160 (documentation for -Wuninitialized out of date)
authorJoseph Myers <joseph@codesourcery.com>
Mon, 9 May 2005 23:51:49 +0000 (00:51 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 9 May 2005 23:51:49 +0000 (00:51 +0100)
PR c/21160
* doc/invoke.texi (-Wuninitialized): Update documentation.

From-SVN: r99478

gcc/ChangeLog
gcc/doc/invoke.texi

index 4f0f8598093b8ef6c2ecdfab22ba4ad242bce09a..44126a221f8015fe57550443afc109dc0faace9c 100644 (file)
@@ -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.
index 52d879cdd53acb45a1d365ed7de0b71bc2befbbe..656a5d4618dcd7b075d6d6ca9b016d31f9cd3465 100644 (file)
@@ -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
This page took 0.109841 seconds and 5 git commands to generate.