aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2001-11-10 01:04:39 +0000
committerJeff Law <law@redhat.com>2001-11-10 01:04:39 +0000
commitecdadc4a4a3e074c8ee0753783ca036ec2fe58d6 (patch)
treebfd5090dd039cdac651e68d5669dcf254992d76a /binutils
parent917702709eb7be386d647829b4124c4b0bb8cf80 (diff)
downloadgdb-ecdadc4a4a3e074c8ee0753783ca036ec2fe58d6.zip
gdb-ecdadc4a4a3e074c8ee0753783ca036ec2fe58d6.tar.gz
gdb-ecdadc4a4a3e074c8ee0753783ca036ec2fe58d6.tar.bz2
* unwind-ia64.c (unw_print_brmask): Fix ISO C portability glitch.
(unw_print_grmask, unw_print_frmask, unw_print_abreg): Likewise. (unw_print_xyreg, unw_decode_x1, unw_decode_x2): Likewise. (unw_decode_x3, unw_decode_r1, unw_decode_r2): Likewise. (unw_decode_r3, unw_decode_p1, unw_decode_p2_p5): Likewise. (unw_decode_p6, unw_decode_p7_p10, unw_decode_b1): Likewise. (unw_decode_b2, unw_decode_b3_b4): Likewise.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog8
-rw-r--r--binutils/unwind-ia64.c78
2 files changed, 47 insertions, 39 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 5fb38df..64e141f 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,13 @@
Fri Nov 9 17:55:39 2001 Jeffrey A Law (law@cygnus.com)
+ * unwind-ia64.c (unw_print_brmask): Fix ISO C portability glitch.
+ (unw_print_grmask, unw_print_frmask, unw_print_abreg): Likewise.
+ (unw_print_xyreg, unw_decode_x1, unw_decode_x2): Likewise.
+ (unw_decode_x3, unw_decode_r1, unw_decode_r2): Likewise.
+ (unw_decode_r3, unw_decode_p1, unw_decode_p2_p5): Likewise.
+ (unw_decode_p6, unw_decode_p7_p10, unw_decode_b1): Likewise.
+ (unw_decode_b2, unw_decode_b3_b4): Likewise.
+
* readelf.c (get_elf_class): Fix ISO portability glitch.
(get_data_encoding, get_osabi_name, request_dump): Likewise.
diff --git a/binutils/unwind-ia64.c b/binutils/unwind-ia64.c
index 8910ebb..d3f4b61 100644
--- a/binutils/unwind-ia64.c
+++ b/binutils/unwind-ia64.c
@@ -33,16 +33,16 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
static bfd_vma unw_rlen = 0;
-static void unw_print_brmask PARAMS ((char *, unsigned char));
-static void unw_print_grmask PARAMS ((char *, unsigned char));
-static void unw_print_frmask PARAMS ((char *, long unsigned int));
-static void unw_print_abreg PARAMS ((char *, unsigned char));
-static void unw_print_xyreg PARAMS ((char *, unsigned char, unsigned char));
+static void unw_print_brmask PARAMS ((char *, unsigned int));
+static void unw_print_grmask PARAMS ((char *, unsigned int));
+static void unw_print_frmask PARAMS ((char *, unsigned int));
+static void unw_print_abreg PARAMS ((char *, unsigned int));
+static void unw_print_xyreg PARAMS ((char *, unsigned int, unsigned int));
static void
unw_print_brmask (cp, mask)
char * cp;
- unsigned char mask;
+ unsigned int mask;
{
char *sep = "";
int i;
@@ -62,7 +62,7 @@ unw_print_brmask (cp, mask)
static void
unw_print_grmask (cp, mask)
char * cp;
- unsigned char mask;
+ unsigned int mask;
{
char *sep = "";
int i;
@@ -82,7 +82,7 @@ unw_print_grmask (cp, mask)
static void
unw_print_frmask (cp, mask)
char * cp;
- unsigned long mask;
+ unsigned int mask;
{
char *sep = "";
int i;
@@ -102,7 +102,7 @@ unw_print_frmask (cp, mask)
static void
unw_print_abreg (cp, abreg)
char * cp;
- unsigned char abreg;
+ unsigned int abreg;
{
static const char *special_reg[16] =
{
@@ -134,8 +134,8 @@ unw_print_abreg (cp, abreg)
static void
unw_print_xyreg (cp, x, ytreg)
char * cp;
- unsigned char x;
- unsigned char ytreg;
+ unsigned int x;
+ unsigned int ytreg;
{
switch ((x << 1) | ((ytreg >> 7) & 1))
{
@@ -528,33 +528,33 @@ typedef bfd_vma unw_word;
static unw_word unw_decode_uleb128 PARAMS ((const unsigned char **));
static const unsigned char *unw_decode_x1 PARAMS ((const unsigned char *,
- unsigned char, void *));
+ unsigned int, void *));
static const unsigned char *unw_decode_x2 PARAMS ((const unsigned char *,
- unsigned char, void *));
+ unsigned int, void *));
static const unsigned char *unw_decode_x3 PARAMS ((const unsigned char *,
- unsigned char, void *));
+ unsigned int, void *));
static const unsigned char *unw_decode_x4 PARAMS ((const unsigned char *,
- unsigned char, void *));
+ unsigned int, void *));
static const unsigned char *unw_decode_r1 PARAMS ((const unsigned char *,
- unsigned char, void *));
+ unsigned int, void *));
static const unsigned char *unw_decode_r2 PARAMS ((const unsigned char *,
- unsigned char, void *));
+ unsigned int, void *));
static const unsigned char *unw_decode_r3 PARAMS ((const unsigned char *,
- unsigned char, void *));
+ unsigned int, void *));
static const unsigned char *unw_decode_p1 PARAMS ((const unsigned char *,
- unsigned char, void *));
+ unsigned int, void *));
static const unsigned char *unw_decode_p2_p5 PARAMS ((const unsigned char *,
- unsigned char, void *));
+ unsigned int, void *));
static const unsigned char *unw_decode_p6 PARAMS ((const unsigned char *,
- unsigned char, void *));
+ unsigned int, void *));
static const unsigned char *unw_decode_p7_p10 PARAMS ((const unsigned char *,
- unsigned char, void *));
+ unsigned int, void *));
static const unsigned char *unw_decode_b1 PARAMS ((const unsigned char *,
- unsigned char, void *));
+ unsigned int, void *));
static const unsigned char *unw_decode_b2 PARAMS ((const unsigned char *,
- unsigned char, void *));
+ unsigned int, void *));
static const unsigned char *unw_decode_b3_x4 PARAMS ((const unsigned char *,
- unsigned char, void *));
+ unsigned int, void *));
static unw_word
unw_decode_uleb128 (dpp)
@@ -583,7 +583,7 @@ unw_decode_uleb128 (dpp)
static const unsigned char *
unw_decode_x1 (dp, code, arg)
const unsigned char * dp;
- unsigned char code ATTRIBUTE_UNUSED;
+ unsigned int code ATTRIBUTE_UNUSED;
void * arg ATTRIBUTE_UNUSED;
{
unsigned char byte1, abreg;
@@ -603,7 +603,7 @@ unw_decode_x1 (dp, code, arg)
static const unsigned char *
unw_decode_x2 (dp, code, arg)
const unsigned char * dp;
- unsigned char code ATTRIBUTE_UNUSED;
+ unsigned int code ATTRIBUTE_UNUSED;
void * arg ATTRIBUTE_UNUSED;
{
unsigned char byte1, byte2, abreg, x, ytreg;
@@ -625,7 +625,7 @@ unw_decode_x2 (dp, code, arg)
static const unsigned char *
unw_decode_x3 (dp, code, arg)
const unsigned char * dp;
- unsigned char code ATTRIBUTE_UNUSED;
+ unsigned int code ATTRIBUTE_UNUSED;
void * arg ATTRIBUTE_UNUSED;
{
unsigned char byte1, byte2, abreg, qp;
@@ -649,7 +649,7 @@ unw_decode_x3 (dp, code, arg)
static const unsigned char *
unw_decode_x4 (dp, code, arg)
const unsigned char * dp;
- unsigned char code ATTRIBUTE_UNUSED;
+ unsigned int code ATTRIBUTE_UNUSED;
void * arg ATTRIBUTE_UNUSED;
{
unsigned char byte1, byte2, byte3, qp, abreg, x, ytreg;
@@ -675,7 +675,7 @@ unw_decode_x4 (dp, code, arg)
static const unsigned char *
unw_decode_r1 (dp, code, arg)
const unsigned char *dp;
- unsigned char code;
+ unsigned int code;
void *arg;
{
int body = (code & 0x20) != 0;
@@ -689,7 +689,7 @@ unw_decode_r1 (dp, code, arg)
static const unsigned char *
unw_decode_r2 (dp, code, arg)
const unsigned char *dp;
- unsigned char code;
+ unsigned int code;
void *arg;
{
unsigned char byte1, mask, grsave;
@@ -707,7 +707,7 @@ unw_decode_r2 (dp, code, arg)
static const unsigned char *
unw_decode_r3 (dp, code, arg)
const unsigned char *dp;
- unsigned char code;
+ unsigned int code;
void *arg;
{
unw_word rlen;
@@ -720,7 +720,7 @@ unw_decode_r3 (dp, code, arg)
static const unsigned char *
unw_decode_p1 (dp, code, arg)
const unsigned char * dp;
- unsigned char code;
+ unsigned int code;
void * arg ATTRIBUTE_UNUSED;
{
unsigned char brmask = (code & 0x1f);
@@ -732,7 +732,7 @@ unw_decode_p1 (dp, code, arg)
static const unsigned char *
unw_decode_p2_p5 (dp, code, arg)
const unsigned char * dp;
- unsigned char code;
+ unsigned int code;
void * arg ATTRIBUTE_UNUSED;
{
if ((code & 0x10) == 0)
@@ -813,7 +813,7 @@ unw_decode_p2_p5 (dp, code, arg)
static const unsigned char *
unw_decode_p6 (dp, code, arg)
const unsigned char * dp;
- unsigned char code;
+ unsigned int code;
void * arg ATTRIBUTE_UNUSED;
{
int gregs = (code & 0x10) != 0;
@@ -829,7 +829,7 @@ unw_decode_p6 (dp, code, arg)
static const unsigned char *
unw_decode_p7_p10 (dp, code, arg)
const unsigned char *dp;
- unsigned char code;
+ unsigned int code;
void *arg;
{
unsigned char r, byte1, byte2;
@@ -1005,7 +1005,7 @@ unw_decode_p7_p10 (dp, code, arg)
static const unsigned char *
unw_decode_b1 (dp, code, arg)
const unsigned char * dp;
- unsigned char code;
+ unsigned int code;
void * arg ATTRIBUTE_UNUSED;
{
unw_word label = (code & 0x1f);
@@ -1020,7 +1020,7 @@ unw_decode_b1 (dp, code, arg)
static const unsigned char *
unw_decode_b2 (dp, code, arg)
const unsigned char * dp;
- unsigned char code;
+ unsigned int code;
void * arg ATTRIBUTE_UNUSED;
{
unw_word t;
@@ -1033,7 +1033,7 @@ unw_decode_b2 (dp, code, arg)
static const unsigned char *
unw_decode_b3_x4 (dp, code, arg)
const unsigned char *dp;
- unsigned char code;
+ unsigned int code;
void *arg;
{
unw_word t, ecount, label;