aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wswitch-default.c
AgeCommit message (Collapse)AuthorFilesLines
2004-05-13Merge tree-ssa-20020619-branch into mainline.Diego Novillo1-8/+8
From-SVN: r81764
2003-03-04re PR c/9262 (ICE on false case label)Eric Botcazou1-2/+2
PR c/9262 * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY. (c_finish_case): Rechain the next statements to the SWITCH_STMT. From-SVN: r63783
2002-03-23[multiple changes]Andrew Cagney1-0/+62
2002-03-23 Andrew Cagney <ac131313@redhat.com> * doc/invoke.texi (Option Summary): Mention -Wswitch-default. (Warning Options): Document -Wswitch-default. * toplev.c (W_options): Add -Wswitch-default. Update comment on -Wswitch. (warn_switch_default): Define variable. (warn_switch): Update comment. * flags.h (warn_switch_default): Declare variable. (warn_switch): Update comment. * stmt.c (expand_end_case): Check for and, when warn_switch_no_default, warn of a missing default case. Index: f/ChangeLog Sat Mar 23 11:18:17 2002 Andrew Cagney <ac131313@redhat.com> * invoke.texi (Warning Options): Mention -Wswitch-default. Index: testsuite/ChangeLog 2002-03-23 Andrew Cagney <ac131313@redhat.com> * gcc.dg/Wswitch-default.c: New test. From-SVN: r51238