aboutsummaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2002-05-01 22:31:08 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2002-05-01 18:31:08 -0400
commitea619b46b171183a410173ae69eaa7d7c6cf07eb (patch)
tree7bf4b209e1421fb803d3095adc88d127d799b7c1 /gcc/dbxout.c
parent9a06dc7d3f66b876b03598fb9e32d7ace8c89f13 (diff)
downloadgcc-ea619b46b171183a410173ae69eaa7d7c6cf07eb.zip
gcc-ea619b46b171183a410173ae69eaa7d7c6cf07eb.tar.gz
gcc-ea619b46b171183a410173ae69eaa7d7c6cf07eb.tar.bz2
dbxout.c (dbxout_type): Emit size information for range types, as well, but only when using GDB extensions.
* dbxout.c (dbxout_type): Emit size information for range types, as well, but only when using GDB extensions. From-SVN: r53023
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index da3c8421..383f469 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
{