From: Mark Mitchell Date: Wed, 20 Aug 2003 22:36:08 +0000 (+0000) Subject: re PR middle-end/11996 (Compiling libjava ICE's.) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6343a3395b83445977a58f32c462ed0d8101734;p=gcc.git re PR middle-end/11996 (Compiling libjava ICE's.) PR java/11996 Revert this change: 2003-08-19 Mark Mitchell * c-common.c (c_common_signed_or_unsigned_type): Correctly handle types with precisions other than those given by native machine modes. From-SVN: r70625 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a93e264a6dc..4fa74567bb5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2003-08-20 Mark Mitchell + + PR java/11996 + Revert this change: + 2003-08-19 Mark Mitchell + * c-common.c (c_common_signed_or_unsigned_type): Correctly handle + types with precisions other than those given by native machine + modes. + 2003-08-20 Gunther Nikl * config/m68k/m68k.md (anonymous define_insn): remove obsolete code diff --git a/gcc/c-common.c b/gcc/c-common.c index 8f9e0bfb5fc..3089e5dbed8 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -1969,8 +1969,6 @@ c_common_signed_type (tree type) tree c_common_signed_or_unsigned_type (int unsignedp, tree type) { - tree new_type; - if (! INTEGRAL_TYPE_P (type) || TREE_UNSIGNED (type) == unsignedp) return type; @@ -2003,14 +2001,7 @@ c_common_signed_or_unsigned_type (int unsignedp, tree type) if (TYPE_PRECISION (type) == TYPE_PRECISION (intQI_type_node)) return unsignedp ? unsigned_intQI_type_node : intQI_type_node; - new_type = (unsignedp - ? make_unsigned_type (TYPE_PRECISION (type)) - : make_signed_type (TYPE_PRECISION (type))); - TYPE_SIZE (new_type) = TYPE_SIZE (type); - TYPE_SIZE_UNIT (new_type) = TYPE_SIZE_UNIT (type); - TYPE_MODE (new_type) = TYPE_MODE (type); - - return new_type; + return type; } /* Return the minimum number of bits needed to represent VALUE in a