OSDN Git Service

PR java/11996
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Aug 2003 22:36:08 +0000 (22:36 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Aug 2003 22:36:08 +0000 (22:36 +0000)
Revert this change:
2003-08-19  Mark Mitchell  <mark@codesourcery.com>
* c-common.c (c_common_signed_or_unsigned_type): Correctly handle
types with precisions other than those given by native machine
modes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70625 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-common.c

index a93e264..4fa7456 100644 (file)
@@ -1,3 +1,12 @@
+2003-08-20  Mark Mitchell  <mark@codesourcery.com>
+
+       PR java/11996
+       Revert this change:
+       2003-08-19  Mark Mitchell  <mark@codesourcery.com>
+       * 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  <gni@gecko.de>
 
        * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
index 8f9e0bf..3089e5d 100644 (file)
@@ -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;
 }
 \f
 /* Return the minimum number of bits needed to represent VALUE in a