------- Comment #3 from manu at gcc dot gnu dot org 2008-08-13 10:03 ------- Subject: Bug 35635
Author: manu Date: Wed Aug 13 10:01:52 2008 New Revision: 139049 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139049 Log: 2008-08-13 Manuel Lopez-Ibanez <[EMAIL PROTECTED]> PR 35635 * c-common.c (conversion_warning): Use a switch. Ignore boolean expressions except for conversions to signed:1 bitfields. Handle COND_EXPR with constant operands. testsuite/ * gcc.dg/pr35635.c: New. * gcc.dg/Wconversion-integer.c: Update. * gcc.dg/Wconversion-integer-no-sign.c: Update. * gcc.dg/Wsign-conversion.c: Update. * g++.dg/warn/pr35635.C: New. * g++.dg/warn/Wconversion-integer.C: Update. * g++.dg/warn/Wsign-conversion.C: Update. Added: trunk/gcc/testsuite/g++.dg/warn/pr35635.C trunk/gcc/testsuite/gcc.dg/pr35635.c Modified: trunk/gcc/ChangeLog trunk/gcc/c-common.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/warn/Wconversion-integer.C trunk/gcc/testsuite/g++.dg/warn/Wsign-conversion.C trunk/gcc/testsuite/gcc.dg/Wconversion-integer-no-sign.c trunk/gcc/testsuite/gcc.dg/Wconversion-integer.c trunk/gcc/testsuite/gcc.dg/Wsign-conversion.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35635