diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1993-04-13 06:47:33 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1993-04-13 06:47:33 -0400 |
commit | c1b98a9573da874bdfc9a0d4fa2a1b1445488e01 (patch) | |
tree | 5ad42eb845fd1c1c368c84f41be43d6d958f7941 /gcc/dbxout.c | |
parent | e7f3c83f0e1066c2a772ecefb1e3ae644204eccd (diff) | |
download | gcc-c1b98a9573da874bdfc9a0d4fa2a1b1445488e01.zip gcc-c1b98a9573da874bdfc9a0d4fa2a1b1445488e01.tar.gz gcc-c1b98a9573da874bdfc9a0d4fa2a1b1445488e01.tar.bz2 |
Treat QUAL_UNION_TYPE like UNION_TYPE when seeing if aggregate.
From-SVN: r4118
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 27b996e..02a937c 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -568,6 +568,7 @@ dbxout_type_fields (type) /* For nameless subunions and subrecords, treat their fields as ours. */ if (DECL_NAME (tem) == NULL_TREE && (TREE_CODE (TREE_TYPE (tem)) == UNION_TYPE + || TREE_CODE (TREE_TYPE (tem)) == QUAL_UNION_TYPE || TREE_CODE (TREE_TYPE (tem)) == RECORD_TYPE)) dbxout_type_fields (TREE_TYPE (tem)); /* Omit here local type decls until we know how to support them. */ @@ -952,6 +953,7 @@ dbxout_type (type, full, show_arg_types) leave the type-number completely undefined rather than output a cross-reference. */ if (TREE_CODE (type) == RECORD_TYPE || TREE_CODE (type) == UNION_TYPE + || TREE_CODE (type) == QUAL_UNION_TYPE || TREE_CODE (type) == ENUMERAL_TYPE) if ((TYPE_NAME (type) != 0 && !full) @@ -1093,6 +1095,7 @@ dbxout_type (type, full, show_arg_types) case RECORD_TYPE: case UNION_TYPE: + case QUAL_UNION_TYPE: { int i, n_baseclasses = 0; @@ -1505,7 +1508,8 @@ dbxout_symbol (decl, local) which gives both a typedef name and a tag. */ /* dbx requires the tag first and the typedef second. */ if ((TREE_CODE (type) == RECORD_TYPE - || TREE_CODE (type) == UNION_TYPE) + || TREE_CODE (type) == UNION_TYPE + || TREE_CODE (type) == QUAL_UNION_TYPE) && TYPE_NAME (type) == decl && !(use_gnu_debug_info_extensions && have_used_extensions) && !TREE_ASM_WRITTEN (TYPE_NAME (type)) @@ -1534,7 +1538,8 @@ dbxout_symbol (decl, local) /* Short cut way to output a tag also. */ if ((TREE_CODE (type) == RECORD_TYPE - || TREE_CODE (type) == UNION_TYPE) + || TREE_CODE (type) == UNION_TYPE + || TREE_CODE (type) == QUAL_UNION_TYPE) && TYPE_NAME (type) == decl) { if (use_gnu_debug_info_extensions && have_used_extensions) |