diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-01-06 06:09:22 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-01-06 06:09:22 +0000 |
commit | 13fe1379a61beab847dc4fa81ba300f9ef3657b9 (patch) | |
tree | f08af532261870d8a7dbdf9408ef07a51d2c2622 | |
parent | 70dbc7514f36e82a637e9338e8960737e4d146b4 (diff) | |
download | gdb-13fe1379a61beab847dc4fa81ba300f9ef3657b9.zip gdb-13fe1379a61beab847dc4fa81ba300f9ef3657b9.tar.gz gdb-13fe1379a61beab847dc4fa81ba300f9ef3657b9.tar.bz2 |
* config/tc-mips.c (mips_ip): Warn about using $1 as well as $at
without .set noat.
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-mips.c | 72 |
2 files changed, 14 insertions, 63 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index a808758..0e268dc 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 d5b5cb9..24805de 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 (); |