From 1e2041330fd0997c734a1a8d48ebaadb2037cb32 Mon Sep 17 00:00:00 2001 From: Rafael Avila de Espindola Date: Thu, 24 May 2007 04:38:27 +0000 Subject: c-common.c (c_common_signed_or_unsigned_type): Delay the check for INTEGRAL_TYPE_P and TYPE_UNSIGNED. * 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. From-SVN: r125012 --- gcc/langhooks.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/langhooks.c') diff --git a/gcc/langhooks.c b/gcc/langhooks.c index ebd20b9..dc816ba 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); } -- cgit v1.1