This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: vector stabs info


This changes the stabs info for vectors to look like an array instead of
a struct containing an array. (The analogous change was already in
dwarf2out.c.) Bootstrapped on darwin and verified that vector debug
info works as expected.

Index: dbxout.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dbxout.c,v
retrieving revision 1.128
diff -u -d -b -w -c -3 -p -r1.128 dbxout.c
cvs server: conflicting specifications of output style
*** dbxout.c 27 Sep 2002 03:08:37 -0000 1.128
--- dbxout.c 8 Nov 2002 20:25:38 -0000
*************** dbxout_type (type, full)
*** 1052,1058 ****
static int anonymous_type_number = 0;

if (TREE_CODE (type) == VECTOR_TYPE)
! type = 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
--- 1077,1085 ----
static int anonymous_type_number = 0;

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]