summaryrefslogtreecommitdiff
path: root/gcc/dwarfout.c
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1998-01-22 23:48:22 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1998-01-22 23:48:22 +0000
commit399f9b5a96675b4b511f7def5bb81b13dadb0047 (patch)
tree11c69908271d715bc0166d1b45a6e03d47fd0eaf /gcc/dwarfout.c
parent696f1132c85db98ed359773741a0ff7b1a91d8ff (diff)
downloadgcc-399f9b5a96675b4b511f7def5bb81b13dadb0047.tar.gz
8
* dwarfout.c (byte_size_attribute): Simplify and fix - don't need special (and incomplete) handling for Chill arrays. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17456 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarfout.c')
-rw-r--r--gcc/dwarfout.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c
index 46815239ecb..34527a34a4a 100644
--- a/gcc/dwarfout.c
+++ b/gcc/dwarfout.c
@@ -2666,6 +2666,7 @@ byte_size_attribute (tree_node)
case RECORD_TYPE:
case UNION_TYPE:
case QUAL_UNION_TYPE:
+ case ARRAY_TYPE:
size = int_size_in_bytes (tree_node);
break;
@@ -2678,17 +2679,6 @@ byte_size_attribute (tree_node)
/ BITS_PER_UNIT;
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:
abort ();
}