diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-30 23:59:10 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-30 23:59:10 +0000 |
commit | d7aeef064b119c2cf94d12caee985d48906522ee (patch) | |
tree | 1e7389002ae91d660ddd3c0a718444a33765d0ae /gcc/cp/cvt.c | |
parent | 050a74c94d4a1b15c519caf043001f58fb84295e (diff) | |
download | ppe42-gcc-d7aeef064b119c2cf94d12caee985d48906522ee.tar.gz ppe42-gcc-d7aeef064b119c2cf94d12caee985d48906522ee.zip |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41709 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/cvt.c')
-rw-r--r-- | gcc/cp/cvt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index 1f74eb463ab..f247699d22c 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -1258,7 +1258,7 @@ type_promotes_to (type) else type = totype; } - else if (C_PROMOTING_INTEGER_TYPE_P (type)) + else if (c_promoting_integer_type_p (type)) { /* Retain unsignedness if really not getting bigger. */ if (TREE_UNSIGNED (type) |