diff options
author | Ian Lance Taylor <iant@google.com> | 2009-06-08 04:00:50 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2009-06-08 04:00:50 +0000 |
commit | cdb884681d2b2f835e4457d84648b82d55e71262 (patch) | |
tree | 4bd535229794d01698a0f16070f3eb455edc1fcf /gcc/doc | |
parent | 36b31e072b92b7ba2c91b01a49b370abe6b12498 (diff) | |
download | gcc-cdb884681d2b2f835e4457d84648b82d55e71262.zip gcc-cdb884681d2b2f835e4457d84648b82d55e71262.tar.gz gcc-cdb884681d2b2f835e4457d84648b82d55e71262.tar.bz2 |
dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
./: * dwarf2.h (enum dwarf_location_atom): Add
INTERNAL_DW_OP_tls_addr.
* dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
* c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
with no default node. Change warning with %H to warning_at.
Don't clear warn_switch around case checking.
* doc/invoke.texi (Warning Options): Clarify distinction between
-Wswitch and -Wswitch-enum.
java/:
* jcf-parse.c (handle_constant): Change local variable 'kind' to
unsigned int.
testsuite/:
* g++.dg/warn/Wswitch-3.C: New testcase.
* gcc.dg/Wswitch.c: Adjust for -Wswitch change.
* gcc.dg/Wswitch-enum-error.c: Likewise.
* gcc.dg/Wswitch-error.c: Likewise.
From-SVN: r148270
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/invoke.texi | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 9771eff..c669c21 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -3174,7 +3174,8 @@ Warn whenever a @code{switch} statement has an index of enumerated type and lacks a @code{case} for one or more of the named codes of that enumeration. (The presence of a @code{default} label prevents this warning.) @code{case} labels outside the enumeration range also -provoke warnings when this option is used. +provoke warnings when this option is used (even if there is a +@code{default} label). This warning is enabled by @option{-Wall}. @item -Wswitch-default @@ -3189,7 +3190,10 @@ case. Warn whenever a @code{switch} statement has an index of enumerated type and lacks a @code{case} for one or more of the named codes of that enumeration. @code{case} labels outside the enumeration range also -provoke warnings when this option is used. +provoke warnings when this option is used. The only difference +between @option{-Wswitch} and this option is that this option gives a +warning about an omitted enumeration code even if there is a +@code{default} label. @item -Wsync-nand @r{(C and C++ only)} @opindex Wsync-nand |