This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/39666] [4.3/4.4/4.5 Regression] spurious warning with ranged-switch statements



------- Comment #7 from jakub at gcc dot gnu dot org  2009-05-12 16:19 -------
Subject: Bug 39666

Author: jakub
Date: Tue May 12 16:19:29 2009
New Revision: 147440

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147440
Log:
        PR middle-end/39666
        * gimplify.c (gimplify_switch_expr): If case labels cover the whole
        range of the type, but default label is missing, add it with one
        of the existing labels instead of adding a new label for it.

        * gcc.dg/pr39666-1.c: New test.
        * gcc.dg/pr39666-2.c: Likewise.
        * g++.dg/warn/Wuninitialized-4.C: Likewise.
        * g++.dg/warn/Wuninitialized-5.C: Likewise.
        * gfortran.dg/pr39666-1.f90: Likewise.
        * gfortran.dg/pr39666-2.f90: Likewise.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/warn/Wuninitialized-4.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/warn/Wuninitialized-5.C
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr39666-1.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr39666-2.c
    branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/pr39666-1.f90
    branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/pr39666-2.f90
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/gimplify.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39666


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]