dbxout.c (dbxout_type): Fix typo.
authorJeffrey A Law <law@cygnus.com>
Fri, 24 Apr 1998 20:53:53 +0000 (20:53 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 24 Apr 1998 20:53:53 +0000 (14:53 -0600)
        * dbxout.c (dbxout_type): Fix typo.
        (dbxout_range_type): Another HOST_WIDE_INT_PRINT_DEC fix.

From-SVN: r19407

gcc/ChangeLog
gcc/dbxout.c

index 2fedf73ed2107a0b3693d306f5efdfe89748538d..118c16b07199caf186c1c94a0497eccd4076771d 100644 (file)
@@ -1,5 +1,8 @@
 Fri Apr 24 15:57:02 1998  Jeffrey A Law  (law@cygnus.com)
 
+       * dbxout.c (dbxout_type): Fix typo.
+       (dbxout_range_type): Another HOST_WIDE_INT_PRINT_DEC fix.
+
        * configure.in: Use CC_FOR_BUILD, not BUILD_CC.
 
 Fri Apr 24 16:11:47 1998  John Carr  <jfc@mit.edu>
index 79c1ba774642359eaa0029bc7629172dec6d3075..cb0220cd1126289d15e4a4bb854aa3f5e4752497 100644 (file)
@@ -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.  */