summaryrefslogtreecommitdiff
path: root/gcc/langhooks.c
diff options
context:
space:
mode:
authorespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-24 04:38:27 +0000
committerespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-24 04:38:27 +0000
commitac265864e9519ec494b62731f97ba738ca7bf835 (patch)
treee16321ac90dcddb5bd7344617b086ff07f74195a /gcc/langhooks.c
parent13804e826171001da9094ef2ca00842a5adfe8d2 (diff)
downloadgcc-ac265864e9519ec494b62731f97ba738ca7bf835.tar.gz
* c-common.c (c_common_signed_or_unsigned_type): Delay the check for
INTEGRAL_TYPE_P and TYPE_UNSIGNED. * langhooks.c (get_signed_or_unsigned_type): Don't check for INTEGRAL_TYPE_P or TYPE_UNSIGNED. (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and TYPE_UNSIGNED. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125012 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r--gcc/langhooks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c
index ebd20b9ee72..dc816ba37c5 100644
--- a/gcc/langhooks.c
+++ b/gcc/langhooks.c
@@ -579,9 +579,6 @@ lhd_builtin_function (tree decl)
tree
get_signed_or_unsigned_type (int unsignedp, tree type)
{
- if (!INTEGRAL_TYPE_P (type) || TYPE_UNSIGNED (type) == unsignedp)
- return type;
-
return lang_hooks.types.signed_or_unsigned_type(unsignedp, type);
}
@@ -590,5 +587,8 @@ get_signed_or_unsigned_type (int unsignedp, tree type)
tree
lhd_signed_or_unsigned_type (int unsignedp, tree type)
{
+ if (!INTEGRAL_TYPE_P (type) || TYPE_UNSIGNED (type) == unsignedp)
+ return type;
+
return lang_hooks.types.type_for_size (TYPE_PRECISION (type), unsignedp);
}