diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-04 22:34:52 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-04 22:34:52 +0000 |
commit | bdeba923ca1bac9d42860835ee76dc764c56db29 (patch) | |
tree | f417bb102919c8c97a1e2254cf237747021b5095 /gcc/dbxout.c | |
parent | fd7729c5dd5fc66c424518828b6a8b41aea7ac0f (diff) | |
download | gcc-bdeba923ca1bac9d42860835ee76dc764c56db29.tar.gz |
* dbxout.c (dbxout_type): When printing type index of range type
whose bounds are printed in octal format, print type of parent type if
it exists so enumerated type descriptions are not transformed
into unsigned types.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65252 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 683745fc56b..58208fffad2 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -1330,7 +1330,17 @@ dbxout_type (type, full) { fprintf (asmfile, "r"); CHARS (1); - dbxout_type_index (type); + + /* If this type derives from another type, output type index of + parent type. This is particularly important when parent type + is an enumerated type, because not generating the parent type + index would transform the definition of this enumerated type + into a plain unsigned type. */ + if (TREE_TYPE (type) != 0) + dbxout_type_index (TREE_TYPE (type)); + else + dbxout_type_index (type); + fprintf (asmfile, ";"); CHARS (1); print_int_cst_octal (TYPE_MIN_VALUE (type)); |