johannes 02/11/21 15:41:18
Modified: live/gcc3/gcc dbxout.c
Log:
roll in FSF-approved fix
Revision Changes Path
1.35 +4 -2 src/live/gcc3/gcc/dbxout.c
Index: dbxout.c
===================================================================
RCS file: /cvs/Darwin/src/live/gcc3/gcc/dbxout.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- dbxout.c 2002/10/24 23:42:53 1.34
+++ dbxout.c 2002/11/21 23:41:17 1.35
@@ -1354,8 +1354,10 @@
tree main_variant;
static int anonymous_type_number = 0;
- if (TREE_CODE (type) == VECTOR_TYPE)
- type = TYPE_DEBUG_REPRESENTATION_TYPE (type);
+ if (TREE_CODE (type) == VECTOR_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