]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* config/tc-mips.c (mips_ip): Warn about using $1 as well as $at
authorIan Lance Taylor <ian@airs.com>
Thu, 6 Jan 1994 06:09:22 +0000 (06:09 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 6 Jan 1994 06:09:22 +0000 (06:09 +0000)
without .set noat.

gas/ChangeLog
gas/config/tc-mips.c

index a808758c35a784ebb77e79ceae795e8cacc398b2..0e268dca2e3cf80fc03c408d652ec2514ded821d 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jan  6 01:06:40 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * config/tc-mips.c (mips_ip): Warn about using $1 as well as $at
+       without .set noat.
+
 Wed Jan  5 14:22:22 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
 
        * literal.c: New file.
index d5b5cb946a01fbd4e562027b968720fabe5dc8d8..24805dedd9d752decff7f65bd52e2a5f0b68ef96 100644 (file)
@@ -454,10 +454,8 @@ md_begin ()
   if (! ok)
     as_warn ("Could not set architecture and machine");
 
-  if ((op_hash = hash_new ()) == NULL)
-    {
-      as_fatal ("Virtual memory exhausted");
-    }
+  op_hash = hash_new ();
+
   for (i = 0; i < NUMOPCODES;)
     {
       const char *name = mips_opcodes[i].name;
@@ -545,7 +543,7 @@ md_begin ()
 }
 
 void
-md_end ()
+md_mips_end ()
 {
 #ifndef ECOFF_DEBUGGING
   md_obj_end ();
@@ -3892,9 +3890,9 @@ mips_ip (str, ip)
                        }
                      else
                        goto notreg;
-                     if (regno == AT && ! mips_noat)
-                       as_warn ("Used $at without \".set noat\"");
                    }
+                 if (regno == AT && ! mips_noat)
+                   as_warn ("Used $at without \".set noat\"");
                  c = *args;
                  if (*s == ' ')
                    s++;
@@ -4446,64 +4444,12 @@ md_number_to_chars (buf, val, n)
   switch (byte_order)
     {
     case LITTLE_ENDIAN:
-      switch (n)
-       {
-       case 8:
-         *buf++ = val;
-         val >>= 8;
-         *buf++ = val;
-         val >>= 8;
-         *buf++ = val;
-         val >>= 8;
-         *buf++ = val;
-         val >>= 8;
-         /* FALLTHROUGH */
-       case 4:
-         *buf++ = val;
-         val >>= 8;
-         *buf++ = val;
-         val >>= 8;
-         /* FALLTHROUGH */
-       case 2:
-         *buf++ = val;
-         val >>= 8;
-         /* FALLTHROUGH */
-       case 1:
-         *buf = val;
-         return;
-
-       default:
-         internalError ();
-       }
+      number_to_chars_littleendian (buf, val, n);
+      break;
 
     case BIG_ENDIAN:
-      switch (n)
-       {
-       case 8:
-         {
-           valueT hi;
-
-           hi = val;
-           hi >>= 16;
-           hi >>= 16;
-           md_number_to_chars (buf, hi, 4);
-           buf += 4;
-         }
-         /* FALLTHROUGH */
-       case 4:
-         *buf++ = val >> 24;
-         *buf++ = val >> 16;
-         /* FALLTHROUGH */
-       case 2:
-         *buf++ = val >> 8;
-         /* FALLTHROUGH */
-       case 1:
-         *buf = val;
-         return;
-
-       default:
-         internalError ();
-       }
+      number_to_chars_bigendian (buf, val, n);
+      break;
 
     default:
       internalError ();