(print_operand): Use output_operand_lossage, not abort.
authorJim Wilson <wilson@gcc.gnu.org>
Tue, 2 Mar 1993 21:13:35 +0000 (13:13 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 2 Mar 1993 21:13:35 +0000 (13:13 -0800)
From-SVN: r3610

gcc/config/sparc/sparc.c

index 4ec5b085a11f5daf652eb7d33cf8defb5a986524..8c15009907f132f228e289f61b4e82e43938b895 100644 (file)
@@ -2659,13 +2659,13 @@ print_operand (file, x, code)
     case 'Y':
       /* Adjust the operand to take into account a RESTORE operation.  */
       if (GET_CODE (x) != REG)
-       abort ();
-      if (REGNO (x) < 8)
+       output_operand_lossage ("Invalid %%Y operand");
+      else if (REGNO (x) < 8)
        fputs (reg_names[REGNO (x)], file);
       else if (REGNO (x) >= 24 && REGNO (x) < 32)
        fputs (reg_names[REGNO (x)-16], file);
       else
-       abort ();
+       output_operand_lossage ("Invalid %%Y operand");
       return;
     case 'R':
       /* Print out the second register name of a register pair or quad.
@@ -2704,7 +2704,7 @@ print_operand (file, x, code)
        case IOR: fputs ("or", file); break;
        case AND: fputs ("and", file); break;
        case XOR: fputs ("xor", file); break;
-       default: abort ();
+       default: output_operand_lossage ("Invalid %%A operand");
        }
       return;
 
@@ -2714,7 +2714,7 @@ print_operand (file, x, code)
        case IOR: fputs ("orn", file); break;
        case AND: fputs ("andn", file); break;
        case XOR: fputs ("xnor", file); break;
-       default: abort ();
+       default: output_operand_lossage ("Invalid %%B operand");
        }
       return;