From eca80b047f10ba60a94634a9cbc2e41eef1c7d7a Mon Sep 17 00:00:00 2001
From: kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Fri, 14 Apr 2000 11:37:24 +0000
Subject: [PATCH] 	* dbxout.c (dbxout_type, case INTEGER_TYPE): Don't
 call 	print_int_cst_octal with something that's not an INTEGER_CST.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33147 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog | 3 +++
 gcc/dbxout.c  | 8 ++++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f37a9205ead5..cc5919eea094 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
 Fri Apr 14 07:40:32 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
+	* dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
+	print_int_cst_octal with something that's not an INTEGER_CST.
+
 	* config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
 	and not a SUBREG to a FLOAT rtl.
 
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 7af36a1b441c..c34d1a1d541b 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -1176,6 +1176,10 @@ dbxout_type (type, full, show_arg_types)
 	     and hence they can't span same size unsigned types.  */
 
  	  if (use_gnu_debug_info_extensions
+	      && TYPE_MIN_VALUE (type) != 0
+	      && TREE_CODE (TYPE_MIN_VALUE (type)) == INTEGER_CST
+	      && TYPE_MAX_VALUE (type) != 0
+	      && TREE_CODE (TYPE_MAX_VALUE (type)) == INTEGER_CST
 	      && (TYPE_PRECISION (type) > TYPE_PRECISION (integer_type_node)
 		  || (TYPE_PRECISION (type) == TYPE_PRECISION (integer_type_node)
 		      && TREE_UNSIGNED (type))
@@ -1650,7 +1654,7 @@ print_int_cst_octal (c)
 		  << (HOST_BITS_PER_WIDE_INT / 3 * 3))
 		 - 1);
 
-      fprintf (asmfile, "%o%01o", (int)beg, (int)middle);
+      fprintf (asmfile, "%o%01o", (int) beg, (int) middle);
       print_octal (end, HOST_BITS_PER_WIDE_INT / 3);
     }
 }
@@ -1663,7 +1667,7 @@ print_octal (value, digits)
   int i;
 
   for (i = digits - 1; i >= 0; i--)
-    fprintf (asmfile, "%01o", (int)((value >> (3 * i)) & 7));
+    fprintf (asmfile, "%01o", (int) ((value >> (3 * i)) & 7));
 }
 
 /* Output the name of type TYPE, with no punctuation.
-- 
GitLab