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-arm.c | |
parent | f3da8a96ee360c98a94b47835e8f238e61cf5f11 (diff) | |
download | gdb-f16c3d4f137ae02fab0982782b2e1c2b2afc8583.zip gdb-f16c3d4f137ae02fab0982782b2e1c2b2afc8583.tar.gz gdb-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-arm.c')
-rw-r--r-- | gas/config/tc-arm.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 3eb7e96..1cc0cea 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -30717,16 +30717,15 @@ md_begin (void) unsigned mach; unsigned int i; - if ( (arm_ops_hsh = str_htab_create ()) == NULL - || (arm_cond_hsh = str_htab_create ()) == NULL - || (arm_vcond_hsh = str_htab_create ()) == NULL - || (arm_shift_hsh = str_htab_create ()) == NULL - || (arm_psr_hsh = str_htab_create ()) == NULL - || (arm_v7m_psr_hsh = str_htab_create ()) == NULL - || (arm_reg_hsh = str_htab_create ()) == NULL - || (arm_reloc_hsh = str_htab_create ()) == NULL - || (arm_barrier_opt_hsh = str_htab_create ()) == NULL) - as_fatal (_("virtual memory exhausted")); + arm_ops_hsh = str_htab_create (); + arm_cond_hsh = str_htab_create (); + arm_vcond_hsh = str_htab_create (); + arm_shift_hsh = str_htab_create (); + arm_psr_hsh = str_htab_create (); + arm_v7m_psr_hsh = str_htab_create (); + arm_reg_hsh = str_htab_create (); + arm_reloc_hsh = str_htab_create (); + arm_barrier_opt_hsh = str_htab_create (); for (i = 0; i < sizeof (insns) / sizeof (struct asm_opcode); i++) if (str_hash_find (arm_ops_hsh, insns[i].template_name) == NULL) |