aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-cris.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-cris.c
parentf3da8a96ee360c98a94b47835e8f238e61cf5f11 (diff)
downloadbinutils-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-cris.c')
-rw-r--r--gas/config/tc-cris.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gas/config/tc-cris.c b/gas/config/tc-cris.c
index 873f28b..92cb64a 100644
--- a/gas/config/tc-cris.c
+++ b/gas/config/tc-cris.c
@@ -1190,8 +1190,6 @@ md_begin (void)
/* Set up a hash table for the instructions. */
op_hash = str_htab_create ();
- if (op_hash == NULL)
- as_fatal (_("Virtual memory exhausted"));
/* Enable use of ".if ..asm.arch.cris.v32"
and ".if ..asm.arch.cris.common_v10_v32" and a few others. */