From 13fe1379a61beab847dc4fa81ba300f9ef3657b9 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 6 Jan 1994 06:09:22 +0000 Subject: [PATCH] * config/tc-mips.c (mips_ip): Warn about using $1 as well as $at without .set noat. --- gas/ChangeLog | 5 +++ gas/config/tc-mips.c | 72 ++++++-------------------------------------- 2 files changed, 14 insertions(+), 63 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index a808758c35a..0e268dca2e3 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index d5b5cb946a0..24805dedd9d 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -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 (); -- 2.30.2