aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-04-30 16:59:10 -0700
committerRichard Henderson <rth@gcc.gnu.org>2001-04-30 16:59:10 -0700
commitd72040f508bfc01489f0fca666cbb6e8ddfae896 (patch)
tree1e7389002ae91d660ddd3c0a718444a33765d0ae /gcc/c-decl.c
parent901d43bcd00712e558ce9d408c788980b6823c13 (diff)
downloadgcc-d72040f508bfc01489f0fca666cbb6e8ddfae896.zip
gcc-d72040f508bfc01489f0fca666cbb6e8ddfae896.tar.gz
gcc-d72040f508bfc01489f0fca666cbb6e8ddfae896.tar.bz2
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
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c2
1 files changed, 1 insertions, 1 deletions
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. */