dwarfout.c (byte_size_attribute): Simplify and fix - don't need special (and incomplete) handling for Chill arrays.
8 * dwarfout.c (byte_size_attribute): Simplify and fix - don't need special (and incomplete) handling for Chill arrays. From-SVN: r17456
This commit is contained in:
parent
6eef3189b8
commit
fa4056256a
|
@ -2666,6 +2666,7 @@ byte_size_attribute (tree_node)
|
||||||
case RECORD_TYPE:
|
case RECORD_TYPE:
|
||||||
case UNION_TYPE:
|
case UNION_TYPE:
|
||||||
case QUAL_UNION_TYPE:
|
case QUAL_UNION_TYPE:
|
||||||
|
case ARRAY_TYPE:
|
||||||
size = int_size_in_bytes (tree_node);
|
size = int_size_in_bytes (tree_node);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -2678,17 +2679,6 @@ byte_size_attribute (tree_node)
|
||||||
/ BITS_PER_UNIT;
|
/ BITS_PER_UNIT;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* This goes with the hack for case ARRAY_TYPE in output_type() since
|
|
||||||
the Chill front end represents strings using ARRAY_TYPE. */
|
|
||||||
case ARRAY_TYPE:
|
|
||||||
{
|
|
||||||
/* The lower bound is zero, so the length is the upper bound + 1. */
|
|
||||||
register tree upper;
|
|
||||||
upper = TYPE_MAX_VALUE (TYPE_DOMAIN (tree_node));
|
|
||||||
size = upper ? (unsigned) TREE_INT_CST_LOW (upper) + 1 : -1;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
abort ();
|
abort ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue