summaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authordalej <dalej@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-08 23:12:24 +0000
committerdalej <dalej@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-08 23:12:24 +0000
commit5efc251caf1a6bb833677c72fde4d4a352ee6be0 (patch)
tree394da303a4af97d1faa41f627c9cae47e12d0517 /gcc/dbxout.c
parent60757a559817841470a83f3f8ec87916e684b49c (diff)
downloadgcc-5efc251caf1a6bb833677c72fde4d4a352ee6be0.tar.gz
fix stabs info for vector types
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58939 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 9d27fa7c72a..932e0760c69 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -1052,7 +1052,9 @@ dbxout_type (type, full)
static int anonymous_type_number = 0;
if (TREE_CODE (type) == VECTOR_TYPE)
- type = TYPE_DEBUG_REPRESENTATION_TYPE (type);
+ /* The frontend feeds us a representation for the vector as a struct
+ containing an array. Pull out the array type. */
+ type = TREE_TYPE (TYPE_FIELDS (TYPE_DEBUG_REPRESENTATION_TYPE (type)));
/* If there was an input error and we don't really have a type,
avoid crashing and write something that is at least valid