diff options
author | Alan Modra <amodra@gmail.com> | 2020-08-24 13:21:31 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-08-24 13:29:33 +0930 |
commit | f16c3d4f137ae02fab0982782b2e1c2b2afc8583 (patch) | |
tree | 3654e162f82240f4a44cddc6d03b99865c773d82 /gas/config/tc-cr16.c | |
parent | f3da8a96ee360c98a94b47835e8f238e61cf5f11 (diff) | |
download | binutils-f16c3d4f137ae02fab0982782b2e1c2b2afc8583.zip binutils-f16c3d4f137ae02fab0982782b2e1c2b2afc8583.tar.gz binutils-f16c3d4f137ae02fab0982782b2e1c2b2afc8583.tar.bz2 |
Remove "memory exhausted" messages
Since we use xcalloc to set up hash table memory, htab_create won't
ever return a failure.
* config/tc-aarch64.c (md_begin): Don't bother checking for
out of memory failure from str_htab_create.
* config/tc-arc.c (arc_insert_opcode, md_begin): Likewise.
(arc_extcorereg, arc_stralloc): Likewise.
* config/tc-arm.c (md_begin): Likewise.
* config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
* config/tc-cris.c (md_begin): Likewise.
* config/tc-crx.c (md_begin): Likewise.
* config/tc-pdp11.c (md_begin): Likewise.
* config/tc-score.c (s3_build_reg_hsh, s3_begin): Likewise.
* config/tc-score7.c (s7_build_reg_hsh, s7_begin): Likewise.
Diffstat (limited to 'gas/config/tc-cr16.c')
-rw-r--r-- | gas/config/tc-cr16.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gas/config/tc-cr16.c b/gas/config/tc-cr16.c index c0627ff..e85e5fa 100644 --- a/gas/config/tc-cr16.c +++ b/gas/config/tc-cr16.c @@ -801,8 +801,6 @@ initialise_reg_hash_table (htab_t *hash_table, const reg_entry *rreg; *hash_table = str_htab_create (); - if (*hash_table == NULL) - as_fatal (_("Virtual memory exhausted")); for (rreg = register_table; rreg < (register_table + num_entries); @@ -820,8 +818,7 @@ md_begin (void) int i = 0; /* Set up a hash table for the instructions. */ - if ((cr16_inst_hash = str_htab_create ()) == NULL) - as_fatal (_("Virtual memory exhausted")); + cr16_inst_hash = str_htab_create (); while (cr16_instruction[i].mnemonic != NULL) { |