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/11492] Bogus warning with -Wsign-compare



------- Comment #7 from manu at gcc dot gnu dot org  2008-10-29 17:17 -------
Subject: Bug 11492

Author: manu
Date: Wed Oct 29 17:16:46 2008
New Revision: 141434

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141434
Log:
2008-10-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

        PR 11492
        * c-common.c (min_precision): Move to...
        * tree.c (tree_int_cst_min_precision): ... to here. Renamed.
        * tree.h (tree_int_cst_min_precision): Declare.
        * c-common.h (min_precision): Delete declaration.
        * fold-const.c (tree_binary_nonnegative_warnv_p): Handle
        multiplication of non-negative integer constants.
        * c-decl.c (check_bitfield_type_and_width): Rename min_precision to
        tree_int_cst_min_precision.
        (finish_enum): Likewise.
cp/
        * class.c (check_bitfield_decl): Rename min_precision to
        tree_int_cst_min_precision.
        * decl.c (finish_enum): Likewise.
testsuite/
        * gcc.dg/pr11492.c: New.
        * g++.dg/warn/pr11492.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/warn/pr11492.C
    trunk/gcc/testsuite/gcc.dg/pr11492.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-common.c
    trunk/gcc/c-common.h
    trunk/gcc/c-decl.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/class.c
    trunk/gcc/cp/decl.c
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c
    trunk/gcc/tree.h


-- 


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


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