Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/bfd Pick up warning fixes from rev 1.115 ...



details:   https://anonhg.NetBSD.org/src/rev/2f99f759c1e6
branches:  trunk
changeset: 515734:2f99f759c1e6
user:      rafal <rafal%NetBSD.org@localhost>
date:      Thu Oct 04 04:03:50 2001 +0000

description:
Pick up warning fixes from rev 1.115 of bintutils cvs.  Part of the following
change, though I'm only picking up elf32-mips.c here.

2001-09-21  Nick Clifton  <nickc%cambridge.redhat.com@localhost>

        * elfxx-ia64.c: Fix compile time warning messages.
        * coff-mcore.c: Fix compile time warning messages.
        * coff-ppc.c: Fix compile time warning messages.
        * coffcode.h: Fix compile time warning messages.
        * elf32-mips.c: Fix compile time warning messages.
        * elf64-alpha.c: Fix compile time warning messages.
        * libbfd.c: Fix compile time warning messages.
        * bfd-in2.h: Regenerate.

diffstat:

 gnu/dist/toolchain/bfd/elf32-mips.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (45 lines):

diff -r db9fd8655165 -r 2f99f759c1e6 gnu/dist/toolchain/bfd/elf32-mips.c
--- a/gnu/dist/toolchain/bfd/elf32-mips.c       Thu Oct 04 00:45:19 2001 +0000
+++ b/gnu/dist/toolchain/bfd/elf32-mips.c       Thu Oct 04 04:03:50 2001 +0000
@@ -310,7 +310,7 @@
 #else
 #define MIPS_ELF_ADD_DYNAMIC_ENTRY(info, tag, val) \
   (ABI_64_P (elf_hash_table (info)->dynobj)       \
-   ? (abort (), false)                             \
+   ? (boolean) (abort (), false)                  \
    : bfd_elf32_add_dynamic_entry (info, tag, val))
 #endif
 
@@ -6557,7 +6557,7 @@
   bfd_byte *location = contents + relocation->r_offset;
 
   /* Obtain the bytes.  */
-  x = bfd_get (8 * bfd_get_reloc_size (howto), input_bfd, location);
+  x = bfd_get (((bfd_vma)(8 * bfd_get_reloc_size (howto))), input_bfd, location);
 
   if ((ELF32_R_TYPE (relocation->r_info) == R_MIPS16_26
        || ELF32_R_TYPE (relocation->r_info) == R_MIPS16_GPREL)
@@ -6976,7 +6976,11 @@
                  bfd_vma high_bits;
 
                  if (addend & ((bfd_vma) 1 << 31))
+#ifdef BFD64
                    sign_bits = ((bfd_vma) 1 << 32) - 1;
+#else
+                   sign_bits = -1;
+#endif
                  else
                    sign_bits = 0;
 
@@ -7098,7 +7102,11 @@
          bfd_vma high_bits;
 
          if (value & ((bfd_vma) 1 << 31))
+#ifdef BFD64
            sign_bits = ((bfd_vma) 1 << 32) - 1;
+#else
+           sign_bits = -1;
+#endif
          else
            sign_bits = 0;
 



Home | Main Index | Thread Index | Old Index