r147440 - in /branches/gcc-4_4-branch/gcc: Chan...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Tue May 12 16:19:00 GMT 2009


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



More information about the Gcc-cvs mailing list