Fix value of SHORT_A1.
[binutils-gdb.git] / gprof / sym_ids.c
index efee6ef30a1d9d8a54649414c6f5803ad897f770..412c8d482791c6726bdd61ac9eda52c1283317c6 100644 (file)
@@ -1,3 +1,5 @@
+#include <ctype.h>
+
 #include "libiberty.h"
 #include "cg_arcs.h"
 #include "sym_ids.h"
@@ -44,7 +46,7 @@ static Sym_Table right_ids;
 
 static Source_File non_existent_file =
 {
-  0, "<non-existent-file>"
+  0, "<non-existent-file>", 0, 0, 0, NULL
 };
 
 
@@ -99,7 +101,7 @@ DEFUN (parse_spec, (spec, sym), char *spec AND Sym * sym)
       spec = colon + 1;
       if (strlen (spec))
        {
-         if (isdigit (spec[0]))
+         if (isdigit ((unsigned char) spec[0]))
            {
              sym->line_num = atoi (spec);
            }
@@ -120,7 +122,7 @@ DEFUN (parse_spec, (spec, sym), char *spec AND Sym * sym)
              sym->file = &non_existent_file;
            }
        }
-      else if (isdigit (*spec))
+      else if (isdigit ((unsigned char) *spec))
        {
          sym->line_num = atoi (spec);
        }
@@ -321,13 +323,15 @@ DEFUN_VOID (sym_id_parse)
                       printf (
                                "[sym_id_parse]: arc %s:%s(%lx-%lx) -> %s:%s(%lx-%lx) to %s\n",
                                left->file ? left->file->name : "*",
-                               left->name ? left->name : "*", left->addr,
-                               left->end_addr,
+                               left->name ? left->name : "*",
+                               (unsigned long) left->addr,
+                               (unsigned long) left->end_addr,
                                right->file ? right->file->name : "*",
-                               right->name ? right->name : "*", right->addr,
-                               right->end_addr,
+                               right->name ? right->name : "*",
+                               (unsigned long) right->addr,
+                               (unsigned long) right->end_addr,
                                table_name[id->which_table]));
-                 arc_add (left, right, 0);
+                 arc_add (left, right, (unsigned long) 0);
                }
            }
        }