opcode |= reg << 16;
continue;
}
- abort();
+ as_fatal("failed sanity check.");
break;
case 'x': /* 16 bit constant, zero-extended */
break;
default:
- abort();
+ as_fatal("failed sanity check.");
}
return;
}
fixP->fx_addnumber = val; /* Remember value for emit_reloc */
if (fixP->fx_r_type == NO_RELOC) {
- abort(); /* FIXME-SOON, if this is never used, remove */
+ as_fatal("failed sanity check."); /* FIXME-SOON, if this is never used, remove */
switch (fixP->fx_size) {
case 1:
*buf = val;
*buf = val;
break;
default:
- abort();
+ as_fatal("failed sanity check.");
}
return;
}
fragS *frag;
symbolS *to_symbol;
{
- fprintf(stderr, "a29k_create_short_jmp\n");
- abort();
+ as_fatal("a29k_create_short_jmp\n");
}
/* should never be called for 29k */
object_headers *headers;
register fragS *fragP;
{
- fprintf(stderr, "sparc_convert_frag\n");
- abort();
+ as_fatal("sparc_convert_frag\n");
}
/* should never be called for 29k */
fragS *frag;
symbolS *to_symbol;
{
- fprintf(stderr, "sparc_create_long_jump\n");
- abort();
+ as_fatal("sparc_create_long_jump\n");
}
/* should never be called for sparc */
register fragS *fragP;
segT segtype;
{
- fprintf(stderr, "sparc_estimate_size_before_relax\n");
- abort();
- return 0;
+ as_fatal("sparc_estimate_size_before_relax\n");
}
#if 0
opP->error="Invalid indirect register";
return FAIL;
}
- if(*str!='@')
- abort();
+ know(*str == '@');
+
str++;
switch(*str) {
case '\0':
}
/* We've got the operands. Find an opcode that'll
accept them */
- for(losing=0;;) {
- if(opsfound!=opcode->m_opnum)
+ for (losing = 0; ; ) {
+ if (opsfound != opcode->m_opnum)
losing++;
- else for(s=opcode->m_operands,opP= &the_ins.operands[0];*s && !losing;s+=2,opP++) {
+ else for (s=opcode->m_operands,opP= &the_ins.operands[0];*s && !losing;s+=2,opP++) {
/* Warning: this switch is huge! */
/* I've tried to organize the cases into this order:
non-alpha first, then alpha by letter. lower-case goes directly
case 2: nextword|=0x200; break;
case 4: nextword|=0x400; break;
case 8: nextword|=0x600; break;
- default: abort();
+ default: as_fatal("failed sanity check.");
}
/* IF its simple,
GET US OUT OF HERE! */
tmpreg=0x804;
break;
default:
- abort();
+ as_fatal("failed sanity check.");
}
install_operand(s[1],tmpreg);
break;
if(opP->reg==FPI) tmpreg=0x1;
else if(opP->reg==FPS) tmpreg=0x2;
else if(opP->reg==FPC) tmpreg=0x4;
- else abort();
+ else as_fatal("failed sanity check.");
install_operand(s[1],tmpreg);
break;
tmpreg=1;
break;
default:
- abort();
+ as_fatal("failed sanity check.");
}
install_operand(s[1],tmpreg);
break;
tmpreg=7;
break;
default:
- abort();
+ as_fatal("failed sanity check.");
}
install_operand(s[1],tmpreg);
break;
case 'V':
if (opP->reg == VAL)
break;
- abort();
+ as_fatal("failed sanity check.");
case 'W':
switch(opP->reg) {
tmpreg=3;
break;
default:
- abort();
+ as_fatal("failed sanity check.");
}
install_operand(s[1],tmpreg);
break;
break;
default:
- abort();
+ as_fatal("failed sanity check.");
}
install_operand(s[1], tmpreg);
break;
case 'Y':
if (opP->reg == PSR)
break;
- abort();
+ as_fatal("failed sanity check.");
case 'Z':
if (opP->reg == PCSR)
break;
- abort();
+ as_fatal("failed sanity check.");
#endif /* m68851 */
default:
as_fatal("Internal error: Operand type %c unknown in line %s of file \"%s\"", s[0], __LINE__, __FILE__);
break;
case 'c':
default:
- abort();
+ as_fatal("failed sanity check.");
}
} /* install_operand() */
break;
/* more stuff goes here */
default:
- abort();
+ as_fatal("failed sanity check.");
}
} /* install_gen_operand() */
*buf++=val;
break;
default:
- abort();
+ as_fatal("failed sanity check.");
}
}
}
break;
default:
- abort();
+ as_fatal("failed sanity check.");
}
if(input_line_pointer!=exp->e_end+1)
as_bad("Ignoring junk after expression");
return;
default:
- abort();
+ as_fatal("failed sanity check.");
}
} /* md_assemble() */
continue;
default:
- abort();
+ as_fatal("failed sanity check.");
} /* switch on arg code */
break;
} /* for each arg that we expect */
break;
default:
- abort();
+ as_fatal("failed sanity check.");
}
return;
} /* md_number_to_chars() */
fragS *frag;
symbolS *to_symbol;
{
- fprintf(stderr, "sparc_create_short_jmp\n");
- abort();
+ as_fatal("sparc_create_short_jmp\n");
} /* md_create_short_jump() */
/* Translate internal representation of relocation info to target format.
object_headers *headers;
register fragS *fragP;
{
- fprintf(stderr, "sparc_convert_frag\n");
- abort();
+ as_fatal("sparc_convert_frag\n");
} /* md_convert_frag() */
/* should never be called for sparc */
fragS *frag;
symbolS *to_symbol;
{
- fprintf(stderr, "sparc_create_long_jump\n");
- abort();
+ as_fatal("sparc_create_long_jump\n");
} /* md_create_long_jump() */
/* should never be called for sparc */
fragS *fragP;
segT segtype;
{
- fprintf(stderr, "sparc_estimate_size_before_relax\n");
- abort();
- return 0;
+ as_fatal("sparc_estimate_size_before_relax\n");
} /* md_estimate_size_before_relax() */
#if 0
for (; fixP; fixP = fixP->fx_next) {
if (fixP->fx_r_type >= NO_RELOC) {
- fprintf(stderr, "fixP->fx_r_type = %d\n", fixP->fx_r_type);
- abort();
+ as_fatal("fixP->fx_r_type = %d\n", fixP->fx_r_type);
}
if ((symbolP = fixP->fx_addsy) != NULL) {