r136035 - in /trunk/gcc: ChangeLog c.opt cp/Cha...

matz@gcc.gnu.org matz@gcc.gnu.org
Tue May 27 14:59:00 GMT 2008


Author: matz
Date: Tue May 27 14:59:53 2008
New Revision: 136035

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136035
Log:
        Fix c++/27975.

        * c.opt (Wenum-compare): New warning option.
        * doc/invoke.texi (Warning Options): Document -Wenum-compare.

cp/
        * call.c (build_new_op): Make warning conditional on OPT_Wenum_compare.

testsuite/
        * g++.dg/warn/Wenum-compare.C: New testcase.
        * g++.dg/warn/Wenum-compare-no.C: Ditto.


Added:
    trunk/gcc/testsuite/g++.dg/warn/Wenum-compare-no.C
    trunk/gcc/testsuite/g++.dg/warn/Wenum-compare.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c.opt
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/doc/invoke.texi
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list