aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-crx.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-08-24 13:21:31 +0930
committerAlan Modra <amodra@gmail.com>2020-08-24 13:29:33 +0930
commitf16c3d4f137ae02fab0982782b2e1c2b2afc8583 (patch)
tree3654e162f82240f4a44cddc6d03b99865c773d82 /gas/config/tc-crx.c
parentf3da8a96ee360c98a94b47835e8f238e61cf5f11 (diff)
downloadgdb-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-crx.c')
-rw-r--r--gas/config/tc-crx.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/gas/config/tc-crx.c b/gas/config/tc-crx.c
index 10f3880..03a5e6e 100644
--- a/gas/config/tc-crx.c
+++ b/gas/config/tc-crx.c
@@ -530,8 +530,7 @@ md_begin (void)
int i = 0;
/* Set up a hash table for the instructions. */
- if ((crx_inst_hash = str_htab_create ()) == NULL)
- as_fatal (_("Virtual memory exhausted"));
+ crx_inst_hash = str_htab_create ();
while (crx_instruction[i].mnemonic != NULL)
{
@@ -553,9 +552,7 @@ md_begin (void)
}
/* Initialize reg_hash hash table. */
- if ((reg_hash = str_htab_create ()) == NULL)
- as_fatal (_("Virtual memory exhausted"));
-
+ reg_hash = str_htab_create ();
{
const reg_entry *regtab;
@@ -566,9 +563,7 @@ md_begin (void)
}
/* Initialize copreg_hash hash table. */
- if ((copreg_hash = str_htab_create ()) == NULL)
- as_fatal (_("Virtual memory exhausted"));
-
+ copreg_hash = str_htab_create ();
{
const reg_entry *copregtab;