fix stabs info for vector types
authorDale Johannesen <dalej@apple.com>
Fri, 8 Nov 2002 23:12:24 +0000 (23:12 +0000)
committerDale Johannesen <dalej@gcc.gnu.org>
Fri, 8 Nov 2002 23:12:24 +0000 (23:12 +0000)
From-SVN: r58939

gcc/ChangeLog
gcc/dbxout.c

index 5f5fee4ea6eb103c294a900cce0744687a2110d6..58448c2b2f2e0790d9acb4f85b1e803aee5d3ed0 100644 (file)
@@ -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
index 9d27fa7c72afe4efff738001c291681526cf48b5..932e0760c697d8892ba99220c4f94df22b877e53 100644 (file)
@@ -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