]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/c-typeck.c
c-common.c (c_promoting_integer_type_p): New function, from the corpse of old macro.
authorRichard Henderson <rth@redhat.com>
Mon, 30 Apr 2001 23:59:10 +0000 (16:59 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 30 Apr 2001 23:59:10 +0000 (16:59 -0700)
commitd72040f508bfc01489f0fca666cbb6e8ddfae896
tree1e7389002ae91d660ddd3c0a718444a33765d0ae
parent901d43bcd00712e558ce9d408c788980b6823c13
c-common.c (c_promoting_integer_type_p): New function, from the corpse of old macro.

        * c-common.c (c_promoting_integer_type_p): New function, from the
        corpse of old macro.  Properly promote too-small enumerations and
        booleans.  Adjust all callers.
        * c-common.h (C_PROMOTING_INTEGER_TYPE_P): Remove.
        (c_promoting_integer_type_p): Declare.
        * c-decl.c: Adjust C_PROMOTING_INTEGER_TYPE_P invocations.
        * c-typeck.c: Likewise.
        (default_conversion): Remove now redundant boolean check.

        * cvt.c: Downcase C_PROMOTING_INTEGER_TYPE_P invocations.
        * decl.c: Likewise.

From-SVN: r41709
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-decl.c
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/cvt.c
gcc/cp/decl.c