From Brad Lucier <lucier@math.purdue.edu>:
authorIan Lance Taylor <ian@airs.com>
Tue, 22 Feb 2000 07:25:46 +0000 (07:25 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 22 Feb 2000 07:25:46 +0000 (07:25 +0000)
* i386.c (i386_find_call): Add cast to ensure that printf argument
matches format.
* tahoe.c (tahoe_find_call): Likewise.
* vax.c (vax_find_call): Likewise.

gprof/ChangeLog
gprof/i386.c
gprof/tahoe.c
gprof/vax.c

index d121301027daf365919e0e0a8f15b2ecad9c13b7..e921ffc6c888a0383938417a5ad21606e369a57a 100644 (file)
@@ -1,3 +1,11 @@
+2000-02-22  Ian Lance Taylor  <ian@zembu.com>
+
+       From Brad Lucier <lucier@math.purdue.edu>:
+       * i386.c (i386_find_call): Add cast to ensure that printf argument
+       matches format.
+       * tahoe.c (tahoe_find_call): Likewise.
+       * vax.c (vax_find_call): Likewise.
+
 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
 
        * utils.c (print_name_only): Don't pass error strings to
index 2abf2dc8fa8bac667680c18095a90429acd1c217..760d5516fe8fd75b55bb730b8b865e48f777382a 100644 (file)
@@ -67,8 +67,8 @@ i386_find_call (parent, p_lowpc, p_highpc)
       if (i386_iscall (instructp))
        {
          DBG (CALLDEBUG,
-              printf ("[findcall]\t0x%x:call",
-                      instructp - (unsigned char *) delta));
+              printf ("[findcall]\t0x%lx:call",
+                      (unsigned long) (instructp - (unsigned char *) delta)));
          /*
           *  regular pc relative addressing
           *    check that this is the address of 
index 414b3589359a165f506c0f107438f0bdfe0f7085..5981bc5278bbca9fde1d7f17f2d3048861e826fb 100644 (file)
@@ -260,8 +260,10 @@ tahoe_find_call (parent, p_lowpc, p_highpc)
           *    maybe a callf, better check it out.
           *      skip the count of the number of arguments.
           */
-         DBG (CALLDEBUG, printf ("[findcall]\t0x%x:callf",
-                                 instructp - (unsigned char *) core_text_space));
+         DBG (CALLDEBUG, printf ("[findcall]\t0x%lx:callf",
+                                 ((unsigned long)
+                                  (instructp
+                                   - (unsigned char *) core_text_space))));
          firstmode = tahoe_operandmode (instructp + length);
          switch (firstmode)
            {
index 33fdf43d460f4efe54cef73f1d06bc289b49d971..58e7de3820becba8e903eef037e5f5b32824b2e6 100644 (file)
@@ -264,8 +264,9 @@ vax_find_call (parent, p_lowpc, p_highpc)
           *      skip the count of the number of arguments.
           */
          DBG (CALLDEBUG,
-              printf ("[findcall]\t0x%x:calls",
-                      instructp - (unsigned char *) core_text_space));
+              printf ("[findcall]\t0x%lx:calls",
+                      ((unsigned long)
+                       (instructp - (unsigned char *) core_text_space))));
          firstmode = vax_operandmode ((struct modebyte *) (instructp + length));
          switch (firstmode)
            {