diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-01 22:31:08 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-01 22:31:08 +0000 |
commit | 153b06824fd2b26934eb1dd79ac5c53ff4a9e750 (patch) | |
tree | 7bf4b209e1421fb803d3095adc88d127d799b7c1 /gcc/dbxout.c | |
parent | 84690ae2b343e536540376c461794ef63a18f8f0 (diff) | |
download | gcc-153b06824fd2b26934eb1dd79ac5c53ff4a9e750.tar.gz |
* dbxout.c (dbxout_type): Emit size information for range types,
as well, but only when using GDB extensions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53023 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index da3c8421ee4..383f469f253 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -1219,7 +1219,20 @@ dbxout_type (type, full) write it as a subtype. */ else if (TREE_TYPE (type) != 0 && TREE_CODE (TREE_TYPE (type)) == INTEGER_TYPE) - dbxout_range_type (type); + { + /* If the size is non-standard, say what it is if we can use + GDB extensions. */ + + if (use_gnu_debug_info_extensions + && TYPE_PRECISION (type) != TYPE_PRECISION (integer_type_node)) + { + have_used_extensions = 1; + fprintf (asmfile, "@s%d;", TYPE_PRECISION (type)); + CHARS (5); + } + + dbxout_range_type (type); + } else { |