mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-12 19:55:45 +08:00
re PR c/21160 (documentation for -Wuninitialized out of date)
PR c/21160 * doc/invoke.texi (-Wuninitialized): Update documentation. From-SVN: r99478
This commit is contained in:
parent
604b08d75b
commit
8ceac9f8f4
@ -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>
|
2005-05-09 Richard Earnshaw <richard.earnshaw@arm.com>
|
||||||
|
|
||||||
* arm.c (const_ok_for_arm): Use a faster algorithm.
|
* arm.c (const_ok_for_arm): Use a faster algorithm.
|
||||||
|
@ -2565,11 +2565,13 @@ get these warnings.
|
|||||||
If you want to warn about code which uses the uninitialized value of the
|
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.
|
variable in its own initializer, use the @option{-Winit-self} option.
|
||||||
|
|
||||||
These warnings occur only for variables that are candidates for
|
These warnings occur for individual uninitialized or clobbered
|
||||||
register allocation. Therefore, they do not occur for a variable that
|
elements of structure, union or array variables as well as for
|
||||||
is declared @code{volatile}, or whose address is taken, or whose size
|
variables which are uninitialized or clobbered as a whole. They do
|
||||||
is other than 1, 2, 4 or 8 bytes. Also, they do not occur for
|
not occur for variables or elements declared @code{volatile}. Because
|
||||||
structures, unions or arrays, even when they are in registers.
|
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
|
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
|
to compute a value that itself is never used, because such
|
||||||
|
Loading…
Reference in New Issue
Block a user