Don't abort for invalid input, print an error message instead.
authorJim Wilson <wilson@tuliptree.org>
Tue, 6 Feb 2001 03:49:29 +0000 (03:49 +0000)
committerJim Wilson <wilson@tuliptree.org>
Tue, 6 Feb 2001 03:49:29 +0000 (03:49 +0000)
* config/tc-ia64.c (errata_nop_necessary_p): Return 0 instead of
aborting for invalid operands.

gas/ChangeLog
gas/config/tc-ia64.c

index c50ced7220b8214a7573653240d09bd2e1adc847..0732f6ae24cf3f03f54ccc9a0a406a4c060107f8 100644 (file)
@@ -1,3 +1,8 @@
+2001-02-05  Jim Wilson  <wilson@redhat.com>
+
+       * config/tc-ia64.c (errata_nop_necessary_p): Return 0 instead of
+       aborting for invalid operands.
+
 2001-02-06  Alan Modra  <alan@linuxcare.com.au>
 
        * config/tc-hppa.c (fix_new_hppa): Pass in unwind directly rather
index 4f761e2e8362970b488254c6c7b4585042d7da29..b9050951f969102055f0fb60ea561b39deb415e6 100644 (file)
@@ -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