Revert yesterday's change (adding casts) at gnu's request.
authorIan Lance Taylor <ian@airs.com>
Wed, 20 Jan 1993 15:35:50 +0000 (15:35 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 20 Jan 1993 15:35:50 +0000 (15:35 +0000)
bfd/ChangeLog
bfd/coff-msym.c

index 1d32cb1778a01b5bf1dc398178ddb283470a9030..27c94e0abf04eb01dfe4358d026126be48bc97ee 100644 (file)
@@ -1,12 +1,5 @@
 Tue Jan 19 09:06:14 1993  Ian Lance Taylor  (ian@cygnus.com)
 
-       * aoutx.h (swap_ext_reloc_in, swap_std_reloc_in),
-       bout.c (b_out_slurp_reloc_table),
-       coff-mips.c (ecoff_swap_reloc_in),
-       coff-msym.c (ecoff_swap_sym_in, ecoff_swap_rndx_in,
-       ecoff_swap_opt_in): Added casts to int to avoid muttering by
-       MIPS compiler.
-
        * bfd-in.h (bfd_asymbol_value): Add needed parentheses.
 
        * libcoff-in.h: Update prototype for coff_count_linenumbers.
index ca2d69b9f7caa02fb7005dcdbd0bf1ed62728f36..0a746c17dd9440250d48bf64206e1ce8b6f42970 100644 (file)
@@ -330,12 +330,10 @@ DEFUN (ecoff_swap_sym_in, (abfd, ext_copy, intern),
                        | ((ext->s_bits2[0] & SYM_BITS2_SC_BIG)
                                           >> SYM_BITS2_SC_SH_BIG);
     intern->reserved    = 0 != (ext->s_bits2[0] & SYM_BITS2_RESERVED_BIG);
-    intern->index       = (((int) ext->s_bits2[0] & SYM_BITS2_INDEX_BIG)
+    intern->index       = ((ext->s_bits2[0] & SYM_BITS2_INDEX_BIG)
                                           << SYM_BITS2_INDEX_SH_LEFT_BIG)
-                       | ((int) ext->s_bits3[0]
-                                          << SYM_BITS3_INDEX_SH_LEFT_BIG)
-                       | ((int) ext->s_bits4[0]
-                                          << SYM_BITS4_INDEX_SH_LEFT_BIG);
+                       | (ext->s_bits3[0] << SYM_BITS3_INDEX_SH_LEFT_BIG)
+                       | (ext->s_bits4[0] << SYM_BITS4_INDEX_SH_LEFT_BIG);
   } else {
     intern->st          =  (ext->s_bits1[0] & SYM_BITS1_ST_LITTLE)
                                           >> SYM_BITS1_ST_SH_LITTLE;
@@ -344,12 +342,10 @@ DEFUN (ecoff_swap_sym_in, (abfd, ext_copy, intern),
                        | ((ext->s_bits2[0] & SYM_BITS2_SC_LITTLE)
                                           << SYM_BITS2_SC_SH_LEFT_LITTLE);
     intern->reserved    = 0 != (ext->s_bits2[0] & SYM_BITS2_RESERVED_LITTLE);
-    intern->index       = (((int) ext->s_bits2[0] & SYM_BITS2_INDEX_LITTLE)
+    intern->index       = ((ext->s_bits2[0] & SYM_BITS2_INDEX_LITTLE)
                                           >> SYM_BITS2_INDEX_SH_LITTLE)
-                       | ((int) ext->s_bits3[0]
-                                          << SYM_BITS3_INDEX_SH_LEFT_LITTLE)
-                       | ((int) ext->s_bits4[0]
-                                          << SYM_BITS4_INDEX_SH_LEFT_LITTLE);
+                       | (ext->s_bits3[0] << SYM_BITS3_INDEX_SH_LEFT_LITTLE)
+                       | (ext->s_bits4[0] << SYM_BITS4_INDEX_SH_LEFT_LITTLE);
   }
 
 #ifdef TEST
@@ -547,18 +543,18 @@ DEFUN (ecoff_swap_rndx_in, (bigend, ext_copy, intern),
     intern->rfd   = (ext->r_bits[0] << RNDX_BITS0_RFD_SH_LEFT_BIG)
                  | ((ext->r_bits[1] & RNDX_BITS1_RFD_BIG)
                                    >> RNDX_BITS1_RFD_SH_BIG);
-    intern->index = (((int) ext->r_bits[1] & RNDX_BITS1_INDEX_BIG)
+    intern->index = ((ext->r_bits[1] & RNDX_BITS1_INDEX_BIG)
                                    << RNDX_BITS1_INDEX_SH_LEFT_BIG)
-                 | ((int) ext->r_bits[2] << RNDX_BITS2_INDEX_SH_LEFT_BIG)
-                 | ((int) ext->r_bits[3] << RNDX_BITS3_INDEX_SH_LEFT_BIG);
+                 | (ext->r_bits[2] << RNDX_BITS2_INDEX_SH_LEFT_BIG)
+                 | (ext->r_bits[3] << RNDX_BITS3_INDEX_SH_LEFT_BIG);
   } else {
     intern->rfd   = (ext->r_bits[0] << RNDX_BITS0_RFD_SH_LEFT_LITTLE)
                  | ((ext->r_bits[1] & RNDX_BITS1_RFD_LITTLE)
                                    << RNDX_BITS1_RFD_SH_LEFT_LITTLE);
-    intern->index = (((int) ext->r_bits[1] & RNDX_BITS1_INDEX_LITTLE)
+    intern->index = ((ext->r_bits[1] & RNDX_BITS1_INDEX_LITTLE)
                                    >> RNDX_BITS1_INDEX_SH_LITTLE)
-                 | ((int) ext->r_bits[2] << RNDX_BITS2_INDEX_SH_LEFT_LITTLE)
-                 | ((int) ext->r_bits[3] << RNDX_BITS3_INDEX_SH_LEFT_LITTLE);
+                 | (ext->r_bits[2] << RNDX_BITS2_INDEX_SH_LEFT_LITTLE)
+                 | (ext->r_bits[3] << RNDX_BITS3_INDEX_SH_LEFT_LITTLE);
   }
 
 #ifdef TEST
@@ -653,22 +649,16 @@ DEFUN (ecoff_swap_opt_in, (abfd, ext_copy, intern),
   if (abfd->xvec->header_byteorder_big_p != false)
     {
       intern->ot = ext->o_bits1[0];
-      intern->value = (((int) ext->o_bits2[0]
-                       << OPT_BITS2_VALUE_SH_LEFT_BIG)
-                      | ((int) ext->o_bits3[0]
-                         << OPT_BITS2_VALUE_SH_LEFT_BIG)
-                      | ((int) ext->o_bits4[0]
-                         << OPT_BITS2_VALUE_SH_LEFT_BIG));
+      intern->value = ((ext->o_bits2[0] << OPT_BITS2_VALUE_SH_LEFT_BIG)
+                      | (ext->o_bits3[0] << OPT_BITS2_VALUE_SH_LEFT_BIG)
+                      | (ext->o_bits4[0] << OPT_BITS2_VALUE_SH_LEFT_BIG));
     }
   else
     {
       intern->ot = ext->o_bits1[0];
-      intern->value = (((int) ext->o_bits2[0]
-                       << OPT_BITS2_VALUE_SH_LEFT_LITTLE)
-                      | ((int) ext->o_bits3[0]
-                         << OPT_BITS2_VALUE_SH_LEFT_LITTLE)
-                      | ((int) ext->o_bits4[0]
-                         << OPT_BITS2_VALUE_SH_LEFT_LITTLE));
+      intern->value = ((ext->o_bits2[0] << OPT_BITS2_VALUE_SH_LEFT_LITTLE)
+                      | (ext->o_bits3[0] << OPT_BITS2_VALUE_SH_LEFT_LITTLE)
+                      | (ext->o_bits4[0] << OPT_BITS2_VALUE_SH_LEFT_LITTLE));
     }
 
   ecoff_swap_rndx_in (abfd->xvec->header_byteorder_big_p != false,