+2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
+
+ * gmon_io.c (gmon_io_read_64, gmon_io_write_64): Define only if
+ BFD_HOST_U_64_BIT is defined.
+ (gmon_io_read_vma, gmon_io_write_vma): Add ifdefs.
+
2002-07-30 Nick Clifton <nickc@redhat.com>
* po/tr.po: Updated Turkish translation.
#include "hist.h"
#include "libiberty.h"
+#ifdef BFD_HOST_U_64_BIT
static int gmon_io_read_64 PARAMS ((FILE *, BFD_HOST_U_64_BIT *));
static int gmon_io_write_64 PARAMS ((FILE *, BFD_HOST_U_64_BIT));
+#endif
static int gmon_read_raw_arc
PARAMS ((FILE *, bfd_vma *, bfd_vma *, unsigned long *));
static int gmon_write_raw_arc
return 0;
}
+#ifdef BFD_HOST_U_64_BIT
static int
gmon_io_read_64 (ifp, valp)
FILE *ifp;
*valp = bfd_get_64 (core_bfd, buf);
return 0;
}
+#endif
int
gmon_io_read_vma (ifp, valp)
bfd_vma *valp;
{
unsigned int val32;
+#ifdef BFD_HOST_U_64_BIT
BFD_HOST_U_64_BIT val64;
+#endif
switch (bfd_arch_bits_per_address (core_bfd))
{
*valp = val32;
break;
+#ifdef BFD_HOST_U_64_BIT
case 64:
if (gmon_io_read_64 (ifp, &val64))
return 1;
*valp = val64;
break;
+#endif
default:
fprintf (stderr, _("%s: bits per address has unexpected value of %u\n"),
return 0;
}
+#ifdef BFD_HOST_U_64_BIT
static int
gmon_io_write_64 (ofp, val)
FILE *ofp;
return 1;
return 0;
}
+#endif
int
gmon_io_write_vma (ofp, val)
return 1;
break;
+#ifdef BFD_HOST_U_64_BIT
case 64:
if (gmon_io_write_64 (ofp, (BFD_HOST_U_64_BIT) val))
return 1;
break;
+#endif
default:
fprintf (stderr, _("%s: bits per address has unexpected value of %u\n"),
bfd_vma *spc;
unsigned long *cnt;
{
+#ifdef BFD_HOST_U_64_BIT
BFD_HOST_U_64_BIT cnt64;
+#endif
unsigned int cnt32;
if (gmon_io_read_vma (ifp, fpc)
*cnt = cnt32;
break;
+#ifdef BFD_HOST_U_64_BIT
case 64:
if (gmon_io_read_64 (ifp, &cnt64))
return 1;
*cnt = cnt64;
break;
+#endif
default:
fprintf (stderr, _("%s: bits per address has unexpected value of %u\n"),
return 1;
break;
+#ifdef BFD_HOST_U_64_BIT
case 64:
if (gmon_io_write_64 (ofp, (BFD_HOST_U_64_BIT) cnt))
return 1;
break;
+#endif
default:
fprintf (stderr, _("%s: bits per address has unexpected value of %u\n"),