aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2002-11-08 23:12:24 +0000
committerDale Johannesen <dalej@gcc.gnu.org>2002-11-08 23:12:24 +0000
commit489d6e8e101e3d59826323794886e5ca21c3c46e (patch)
tree394da303a4af97d1faa41f627c9cae47e12d0517
parenta4b1e6535fbb88329a7ab2073cb49465560c2573 (diff)
downloadgcc-489d6e8e101e3d59826323794886e5ca21c3c46e.zip
gcc-489d6e8e101e3d59826323794886e5ca21c3c46e.tar.gz
gcc-489d6e8e101e3d59826323794886e5ca21c3c46e.tar.bz2
fix stabs info for vector types
From-SVN: r58939
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/dbxout.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5f5fee4..58448c2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-11-08 Dale Johannesen <dalej@apple.com>
+
+ * dbxout.c (dbxout_type): Fix stabs info for vector types.
+
2002-11-08 Neil Booth <neil@daikokuya.co.uk>
PR preprocessor/8497
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 9d27fa7..932e076 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