aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-arc.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-arc.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-arc.c')
-rw-r--r--gas/config/tc-arc.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c
index 36a0898..32369a5 100644
--- a/gas/config/tc-arc.c
+++ b/gas/config/tc-arc.c
@@ -772,9 +772,6 @@ arc_insert_opcode (const struct arc_opcode *opcode)
entry->opcode = XRESIZEVEC (const struct arc_opcode *, entry->opcode,
entry->count + 1);
- if (entry->opcode == NULL)
- as_fatal (_("Virtual memory exhausted"));
-
entry->opcode[entry->count] = opcode;
entry->count++;
}
@@ -2611,8 +2608,6 @@ md_begin (void)
/* Set up a hash table for the instructions. */
arc_opcode_hash = str_htab_create ();
- if (arc_opcode_hash == NULL)
- as_fatal (_("Virtual memory exhausted"));
/* Initialize the hash table with the insns. */
do
@@ -2629,8 +2624,6 @@ md_begin (void)
/* Register declaration. */
arc_reg_hash = str_htab_create ();
- if (arc_reg_hash == NULL)
- as_fatal (_("Virtual memory exhausted"));
declare_register_set ();
declare_register ("gp", 26);
@@ -2682,8 +2675,6 @@ md_begin (void)
/* Aux register declaration. */
arc_aux_hash = str_htab_create ();
- if (arc_aux_hash == NULL)
- as_fatal (_("Virtual memory exhausted"));
const struct arc_aux_reg *auxr = &arc_aux_regs[0];
unsigned int i;
@@ -2702,8 +2693,6 @@ md_begin (void)
/* Address type declaration. */
arc_addrtype_hash = str_htab_create ();
- if (arc_addrtype_hash == NULL)
- as_fatal (_("Virtual memory exhausted"));
declare_addrtype ("bd", ARC_NPS400_ADDRTYPE_BD);
declare_addrtype ("jid", ARC_NPS400_ADDRTYPE_JID);
@@ -4904,8 +4893,6 @@ arc_extcorereg (int opertype)
ext_condcode.arc_ext_condcode =
XRESIZEVEC (struct arc_flag_operand, ext_condcode.arc_ext_condcode,
ext_condcode.size + 1);
- if (ext_condcode.arc_ext_condcode == NULL)
- as_fatal (_("Virtual memory exhausted"));
ccode = ext_condcode.arc_ext_condcode + ext_condcode.size - 1;
ccode->name = ereg.name;
@@ -4971,8 +4958,6 @@ arc_stralloc (char * s1, const char * s2)
len += strlen (s2) + 1;
p = (char *) xmalloc (len);
- if (p == NULL)
- as_fatal (_("Virtual memory exhausted"));
if (s1)
{