diff options
author | Mike Stump <mikestump@comcast.net> | 2012-01-25 00:06:27 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2012-01-25 00:06:27 +0000 |
commit | 7a4217067df071eba42abdd0193c70aca8b9bff6 (patch) | |
tree | 92cbb3990b9d8309ce036b45faef5bda11889b86 /gcc/c-family/c-common.c | |
parent | efcf639fab17cac5437f70e3a59795ac320ddc37 (diff) | |
download | gcc-7a4217067df071eba42abdd0193c70aca8b9bff6.tar.gz |
c-common.c (c_common_type_for_mode): Match signed/unsigned types exactly.
* c-common.c (c_common_type_for_mode): Match signed/unsigned types
exactly.
From-SVN: r183503
Diffstat (limited to 'gcc/c-family/c-common.c')
-rw-r--r-- | gcc/c-family/c-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index 013c71a6420..8dbf6cc2d75 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family/c-common.c @@ -3089,7 +3089,8 @@ c_common_type_for_mode (enum machine_mode mode, int unsignedp) } for (t = registered_builtin_types; t; t = TREE_CHAIN (t)) - if (TYPE_MODE (TREE_VALUE (t)) == mode) + if (TYPE_MODE (TREE_VALUE (t)) == mode + && !!unsignedp == !!TYPE_UNSIGNED (TREE_VALUE (t))) return TREE_VALUE (t); return 0; |