aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-score7.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-score7.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-score7.c')
-rw-r--r--gas/config/tc-score7.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/gas/config/tc-score7.c b/gas/config/tc-score7.c
index aba8b6c..bd4923a 100644
--- a/gas/config/tc-score7.c
+++ b/gas/config/tc-score7.c
@@ -5369,14 +5369,9 @@ s7_build_reg_hsh (struct s7_reg_map *map)
{
const struct s7_reg_entry *r;
- if ((map->htab = str_htab_create ()) == NULL)
- {
- as_fatal (_("virtual memory exhausted"));
- }
+ map->htab = str_htab_create ();
for (r = map->names; r->name != NULL; r++)
- {
- s7_insert_reg (r, map->htab);
- }
+ s7_insert_reg (r, map->htab);
}
@@ -6116,13 +6111,11 @@ s7_begin (void)
segT seg;
subsegT subseg;
- if ((s7_score_ops_hsh = str_htab_create ()) == NULL)
- as_fatal (_("virtual memory exhausted"));
+ s7_score_ops_hsh = str_htab_create ();
s7_build_score_ops_hsh ();
- if ((s7_dependency_insn_hsh = str_htab_create ()) == NULL)
- as_fatal (_("virtual memory exhausted"));
+ s7_dependency_insn_hsh = str_htab_create ();
s7_build_dependency_insn_hsh ();