Commit b6343a33 by Mark Mitchell Committed by Mark Mitchell

re PR middle-end/11996 (Compiling libjava ICE's.)

	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.

From-SVN: r70625
parent ca26ffe0
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> 2003-08-20 Gunther Nikl <gni@gecko.de>
* config/m68k/m68k.md (anonymous define_insn): remove obsolete code * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
......
...@@ -1969,8 +1969,6 @@ c_common_signed_type (tree type) ...@@ -1969,8 +1969,6 @@ c_common_signed_type (tree type)
tree tree
c_common_signed_or_unsigned_type (int unsignedp, tree type) c_common_signed_or_unsigned_type (int unsignedp, tree type)
{ {
tree new_type;
if (! INTEGRAL_TYPE_P (type) if (! INTEGRAL_TYPE_P (type)
|| TREE_UNSIGNED (type) == unsignedp) || TREE_UNSIGNED (type) == unsignedp)
return type; return type;
...@@ -2003,14 +2001,7 @@ c_common_signed_or_unsigned_type (int unsignedp, tree type) ...@@ -2003,14 +2001,7 @@ c_common_signed_or_unsigned_type (int unsignedp, tree type)
if (TYPE_PRECISION (type) == TYPE_PRECISION (intQI_type_node)) if (TYPE_PRECISION (type) == TYPE_PRECISION (intQI_type_node))
return unsignedp ? unsigned_intQI_type_node : intQI_type_node; return unsignedp ? unsigned_intQI_type_node : intQI_type_node;
new_type = (unsignedp return type;
? 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 the minimum number of bits needed to represent VALUE in a /* Return the minimum number of bits needed to represent VALUE in a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment