From d72040f508bfc01489f0fca666cbb6e8ddfae896 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 30 Apr 2001 16:59:10 -0700 Subject: 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/c-decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/c-decl.c') diff --git a/gcc/c-decl.c b/gcc/c-decl.c index a386ecd..9d63d06 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -5999,7 +5999,7 @@ start_function (declspecs, declarator, prefix_attributes, attributes) restype = TREE_TYPE (TREE_TYPE (current_function_decl)); /* Promote the value to int before returning it. */ - if (C_PROMOTING_INTEGER_TYPE_P (restype)) + if (c_promoting_integer_type_p (restype)) { /* It retains unsignedness if traditional or if not really getting wider. */ -- cgit v1.1