aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ia64.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@tuliptree.org>2001-02-06 03:49:29 +0000
committerJim Wilson <wilson@tuliptree.org>2001-02-06 03:49:29 +0000
commit3557da92098df83ddd2b11e519882ff4af3e01fb (patch)
tree32a496420b1ad98ae723268f8a4eb94e79693555 /gas/config/tc-ia64.c
parentda6c73e0803ae9831f64aa81ffebcb8851208c39 (diff)
downloadfsf-binutils-gdb-3557da92098df83ddd2b11e519882ff4af3e01fb.zip
fsf-binutils-gdb-3557da92098df83ddd2b11e519882ff4af3e01fb.tar.gz
fsf-binutils-gdb-3557da92098df83ddd2b11e519882ff4af3e01fb.tar.bz2
Don't abort for invalid input, print an error message instead.
* config/tc-ia64.c (errata_nop_necessary_p): Return 0 instead of aborting for invalid operands.
Diffstat (limited to 'gas/config/tc-ia64.c')
-rw-r--r--gas/config/tc-ia64.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c
index 4f761e2..b905095 100644
--- a/gas/config/tc-ia64.c
+++ b/gas/config/tc-ia64.c
@@ -5223,8 +5223,9 @@ errata_nop_necessary_p (slot, insn_unit)
|| idesc->operands[i] == IA64_OPND_P2)
{
int regno = slot->opnd[i].X_add_number - REG_P;
+ /* Ignore invalid operands; they generate errors elsewhere. */
if (regno >= 64)
- abort ();
+ return 0;
this_group->p_reg_set[regno] = 1;
}
}
@@ -5239,8 +5240,9 @@ errata_nop_necessary_p (slot, insn_unit)
|| idesc->operands[i] == IA64_OPND_R3)
{
int regno = slot->opnd[i].X_add_number - REG_GR;
+ /* Ignore invalid operands; they generate errors elsewhere. */
if (regno >= 128)
- abort ();
+ return 0;
if (strncmp (idesc->name, "add", 3) != 0
&& strncmp (idesc->name, "sub", 3) != 0
&& strncmp (idesc->name, "shladd", 6) != 0
@@ -5270,8 +5272,9 @@ errata_nop_necessary_p (slot, insn_unit)
|| idesc->operands[i] == IA64_OPND_MR3)
{
int regno = slot->opnd[i].X_add_number - REG_GR;
+ /* Ignore invalid operands; they generate errors elsewhere. */
if (regno >= 128)
- abort ();
+ return 0;
if (idesc->operands[i] == IA64_OPND_R3)
{
if (strcmp (idesc->name, "fc") != 0