diff options
author | Devang Patel <dpatel@apple.com> | 2005-04-25 13:26:00 -0700 |
---|---|---|
committer | Devang Patel <dpatel@gcc.gnu.org> | 2005-04-25 13:26:00 -0700 |
commit | 1f4ea3f2fa3915f2c576a8748c9067e49f35057f (patch) | |
tree | 13f5787cb2580f9ba8ab759bf090d2d7e368fb21 /gcc/dbxout.c | |
parent | 23a58ffe2b888bd57772480cc351db8415d961d0 (diff) | |
download | gcc-1f4ea3f2fa3915f2c576a8748c9067e49f35057f.zip gcc-1f4ea3f2fa3915f2c576a8748c9067e49f35057f.tar.gz gcc-1f4ea3f2fa3915f2c576a8748c9067e49f35057f.tar.bz2 |
dbxout.c (dbxout_type): Emit attribute vector.
* dbxout.c (dbxout_type): Emit attribute vector.
* gcc.dg/stabs-attrib-vect-darwin.c: New test.
From-SVN: r98737
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 4cbe16b..6ad3b62 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -1652,11 +1652,15 @@ dbxout_type (tree type, int full) tree tem; tree main_variant; static int anonymous_type_number = 0; + bool vector_type = false; 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))); + { + /* 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))); + vector_type = true; + } /* If there was an input error and we don't really have a type, avoid crashing and write something that is at least valid @@ -1991,6 +1995,12 @@ dbxout_type (tree type, int full) break; } + if (vector_type) + { + have_used_extensions = 1; + stabstr_S ("@V;"); + } + /* Output "a" followed by a range type definition for the index type of the array followed by a reference to the target-type. |