Commit 292c8018 by Nathan Sidwell Committed by Nathan Sidwell

iq2000.c (abort_with_insn): Use fancy_abort.

	* config/iq2000/iq2000.c (abort_with_insn): Use fancy_abort.
	(gen_int_relational): Use gcc_unreachable and gcc_assert as necessary.
	(function_arg_advance, function_arg, save_restore_insns,
	iq2000_expand_prologue, iq2000_output_conditional_branch,
	expand_one_builtin, print_operand):
	* config/iq2000/iq2000.md (tablejump): Likewise.

From-SVN: r99432
parent f2710bea
2005-05-09 Nathan Sidwell <nathan@codesourcery.com>
* config/iq2000/iq2000.c (abort_with_insn): Use fancy_abort.
(gen_int_relational): Use gcc_unreachable and gcc_assert as necessary.
(function_arg_advance, function_arg, save_restore_insns,
iq2000_expand_prologue, iq2000_output_conditional_branch,
expand_one_builtin, print_operand):
* config/iq2000/iq2000.md (tablejump): Likewise.
2005-05-09 David Ung <davidu@mips.com> 2005-05-09 David Ung <davidu@mips.com>
* config/mips/mips.h (processor_type): Add names for the 24K. * config/mips/mips.h (processor_type): Add names for the 24K.
......
...@@ -500,7 +500,7 @@ abort_with_insn (rtx insn, const char * reason) ...@@ -500,7 +500,7 @@ abort_with_insn (rtx insn, const char * reason)
{ {
error (reason); error (reason);
debug_rtx (insn); debug_rtx (insn);
abort (); fancy_abort (__FILE__, __LINE__, __FUNCTION__);
} }
/* Return the appropriate instructions to move one operand to another. */ /* Return the appropriate instructions to move one operand to another. */
...@@ -872,8 +872,7 @@ gen_int_relational (enum rtx_code test_code, rtx result, rtx cmp0, rtx cmp1, ...@@ -872,8 +872,7 @@ gen_int_relational (enum rtx_code test_code, rtx result, rtx cmp0, rtx cmp1,
rtx reg2; rtx reg2;
test = map_test_to_internal_test (test_code); test = map_test_to_internal_test (test_code);
if (test == ITEST_MAX) gcc_assert (test != ITEST_MAX);
abort ();
p_info = &info[(int) test]; p_info = &info[(int) test];
eqne_p = (p_info->test_code == XOR); eqne_p = (p_info->test_code == XOR);
...@@ -1136,9 +1135,8 @@ function_arg_advance (CUMULATIVE_ARGS *cum, enum machine_mode mode, tree type, ...@@ -1136,9 +1135,8 @@ function_arg_advance (CUMULATIVE_ARGS *cum, enum machine_mode mode, tree type,
break; break;
default: default:
if (GET_MODE_CLASS (mode) != MODE_COMPLEX_INT gcc_assert (GET_MODE_CLASS (mode) == MODE_COMPLEX_INT
&& GET_MODE_CLASS (mode) != MODE_COMPLEX_FLOAT) || GET_MODE_CLASS (mode) == MODE_COMPLEX_FLOAT);
abort ();
cum->gp_reg_found = 1; cum->gp_reg_found = 1;
cum->arg_words += ((GET_MODE_SIZE (mode) + UNITS_PER_WORD - 1) cum->arg_words += ((GET_MODE_SIZE (mode) + UNITS_PER_WORD - 1)
...@@ -1218,9 +1216,8 @@ function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode, tree type, ...@@ -1218,9 +1216,8 @@ function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode, tree type,
break; break;
default: default:
if (GET_MODE_CLASS (mode) != MODE_COMPLEX_INT gcc_assert (GET_MODE_CLASS (mode) == MODE_COMPLEX_INT
&& GET_MODE_CLASS (mode) != MODE_COMPLEX_FLOAT) || GET_MODE_CLASS (mode) == MODE_COMPLEX_FLOAT);
abort ();
/* Drops through. */ /* Drops through. */
case BLKmode: case BLKmode:
...@@ -1250,8 +1247,7 @@ function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode, tree type, ...@@ -1250,8 +1247,7 @@ function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode, tree type,
} }
else else
{ {
if (regbase == -1) gcc_assert (regbase != -1);
abort ();
if (! type || TREE_CODE (type) != RECORD_TYPE if (! type || TREE_CODE (type) != RECORD_TYPE
|| ! named || ! TYPE_SIZE_UNIT (type) || ! named || ! TYPE_SIZE_UNIT (type)
...@@ -1781,9 +1777,8 @@ save_restore_insns (int store_p) ...@@ -1781,9 +1777,8 @@ save_restore_insns (int store_p)
HOST_WIDE_INT gp_offset; HOST_WIDE_INT gp_offset;
HOST_WIDE_INT end_offset; HOST_WIDE_INT end_offset;
if (frame_pointer_needed gcc_assert (!frame_pointer_needed
&& ! BITSET_P (mask, HARD_FRAME_POINTER_REGNUM - GP_REG_FIRST)) || BITSET_P (mask, HARD_FRAME_POINTER_REGNUM - GP_REG_FIRST));
abort ();
if (mask == 0) if (mask == 0)
{ {
...@@ -1923,8 +1918,7 @@ iq2000_expand_prologue (void) ...@@ -1923,8 +1918,7 @@ iq2000_expand_prologue (void)
{ {
int words; int words;
if (GET_CODE (entry_parm) != REG) gcc_assert (GET_CODE (entry_parm) == REG);
abort ();
/* Passed in a register, so will get homed automatically. */ /* Passed in a register, so will get homed automatically. */
if (GET_MODE (entry_parm) == BLKmode) if (GET_MODE (entry_parm) == BLKmode)
...@@ -2430,7 +2424,7 @@ iq2000_output_conditional_branch (rtx insn, rtx * operands, int two_operands_p, ...@@ -2430,7 +2424,7 @@ iq2000_output_conditional_branch (rtx insn, rtx * operands, int two_operands_p,
} }
default: default:
abort (); gcc_unreachable ();
} }
/* NOTREACHED */ /* NOTREACHED */
...@@ -2637,7 +2631,7 @@ expand_one_builtin (enum insn_code icode, rtx target, tree arglist, ...@@ -2637,7 +2631,7 @@ expand_one_builtin (enum insn_code icode, rtx target, tree arglist,
pat = GEN_FCN (icode) (op[0], op[1], op[2], op[3]); pat = GEN_FCN (icode) (op[0], op[1], op[2], op[3]);
break; break;
default: default:
abort (); gcc_unreachable ();
} }
if (! pat) if (! pat)
...@@ -3142,15 +3136,7 @@ print_operand (FILE *file, rtx op, int letter) ...@@ -3142,15 +3136,7 @@ print_operand (FILE *file, rtx op, int letter)
else if (letter == 'Z') else if (letter == 'Z')
{ {
int regnum; gcc_unreachable ();
if (code != REG)
abort ();
regnum = REGNO (op);
abort ();
fprintf (file, "%s,", reg_names[regnum]);
} }
else if (code == REG || code == SUBREG) else if (code == REG || code == SUBREG)
......
...@@ -1729,8 +1729,7 @@ ...@@ -1729,8 +1729,7 @@
{ {
if (operands[0]) /* eliminate unused code warnings */ if (operands[0]) /* eliminate unused code warnings */
{ {
if (GET_MODE (operands[0]) != Pmode) gcc_assert (GET_MODE (operands[0]) == Pmode);
abort ();
if (!(Pmode == DImode)) if (!(Pmode == DImode))
emit_jump_insn (gen_tablejump_internal1 (operands[0], operands[1])); emit_jump_insn (gen_tablejump_internal1 (operands[0], operands[1]));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment