* sparc.c (sparc_find_call): Warning fix.
authorAlan Modra <amodra@gmail.com>
Tue, 18 Sep 2001 11:12:25 +0000 (11:12 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 18 Sep 2001 11:12:25 +0000 (11:12 +0000)
* alpha.c (alpha_find_call): Likewise.

gprof/ChangeLog
gprof/alpha.c
gprof/sparc.c

index 72ab53e170011e071c65b236bcc2fe0a98821325..dc9839842748ecc549e2af43d34a61f409d14751 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-18  Alan Modra  <amodra@bigpond.net.au>
+
+       * sparc.c (sparc_find_call): Warning fix.
+       * alpha.c (alpha_find_call): Likewise.
+
 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
 
        * alpha.c: Add missing prototypes.
index edf244b0c58ce7d43d5b746186ab071e7cb2ea77..4fa917ea551cf7bedcf63f228691539b7fc3f642 100644 (file)
@@ -127,7 +127,7 @@ alpha_find_call (parent, p_lowpc, p_highpc)
            {
              DBG (CALLDEBUG,
                   printf (_("[find_call] 0x%lx: jsr%s <indirect_child>\n"),
-                          (unsigned long) pc - delta,
+                          (unsigned long) pc - (unsigned long) delta,
                           pc->j.func == Jxx_FUNC_JSR ? "" : "_coroutine"));
              arc_add (parent, &indirect_child, (unsigned long) 0);
            }
@@ -136,7 +136,7 @@ alpha_find_call (parent, p_lowpc, p_highpc)
        case OP_BSR:
          DBG (CALLDEBUG,
               printf (_("[find_call] 0x%lx: bsr"),
-                      (unsigned long) pc - delta));
+                      (unsigned long) pc - (unsigned long) delta));
          /*
           * Regular PC relative addressing.  Check that this is the
           * address of a function.  The linker sometimes redirects
index 9ffdeb092b49d5ec181194b1b292732af8a0130c..1fbeae78fbd282332a6f75acf2c553861de533a7 100644 (file)
@@ -64,7 +64,7 @@ sparc_find_call (parent, p_lowpc, p_highpc)
        {
          DBG (CALLDEBUG,
               printf ("[find_call] 0x%lx: callf",
-                      (unsigned long) instr - delta));
+                      (unsigned long) instr - (unsigned long) delta));
          /*
           * Regular pc relative addressing check that this is the
           * address of a function.