aboutsummaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-04-24 20:53:53 +0000
committerJeff Law <law@gcc.gnu.org>1998-04-24 14:53:53 -0600
commitfb2c5c00b8f4917f22e3d1ccd3575a2d12aa9360 (patch)
treecb24c4280ef61abc761d022102b7ede52576013a /gcc/dbxout.c
parentfe81dd695d4f49444de0114ee69b219c8d6aa45c (diff)
downloadgcc-fb2c5c00b8f4917f22e3d1ccd3575a2d12aa9360.zip
gcc-fb2c5c00b8f4917f22e3d1ccd3575a2d12aa9360.tar.gz
gcc-fb2c5c00b8f4917f22e3d1ccd3575a2d12aa9360.tar.bz2
dbxout.c (dbxout_type): Fix typo.
* dbxout.c (dbxout_type): Fix typo. (dbxout_range_type): Another HOST_WIDE_INT_PRINT_DEC fix. From-SVN: r19407
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 79c1ba7..cb0220c 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -956,14 +956,21 @@ dbxout_range_type (type)
dbxout_type_index (type);
}
if (TREE_CODE (TYPE_MIN_VALUE (type)) == INTEGER_CST)
- fprintf (asmfile, ";%d",
- TREE_INT_CST_LOW (TYPE_MIN_VALUE (type)));
+ {
+ fputc (';', asmfile);
+ fprintf (asmfile, HOST_WIDE_INT_PRINT_DEC,
+ TREE_INT_CST_LOW (TYPE_MIN_VALUE (type)));
+ }
else
fprintf (asmfile, ";0");
if (TYPE_MAX_VALUE (type)
&& TREE_CODE (TYPE_MAX_VALUE (type)) == INTEGER_CST)
- fprintf (asmfile, ";%d;",
- TREE_INT_CST_LOW (TYPE_MAX_VALUE (type)));
+ {
+ fputc (';', asmfile);
+ fprintf (asmfile, HOST_WIDE_INT_PRINT_DEC,
+ TREE_INT_CST_LOW (TYPE_MAX_VALUE (type)));
+ fputc (';', asmfile);
+ }
else
fprintf (asmfile, ";-1;");
}
@@ -1140,7 +1147,7 @@ dbxout_type (type, full, show_arg_types)
long (it has no concept of HOST_BITS_PER_WIDE_INT). */
else if (use_gnu_debug_info_extensions
&& (TYPE_PRECISION (type) > TYPE_PRECISION (integer_type_node)
- || TYPE_PRECISION (type) > HOST_BITS_PER_LONG))
+ || TYPE_PRECISION (type) >= HOST_BITS_PER_LONG))
{
/* This used to say `r1' and we used to take care
to make sure that `int' was type number 1. */