summaryrefslogtreecommitdiff
path: root/gcc/config/pdp11/pdp11.md
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2005-05-09 15:58:56 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2005-05-09 15:58:56 +0000
commitd35d92239a4601ae04575301d856d7d14472f41e (patch)
treeec7afc29607b68bc05bb68569514abdc99ff8249 /gcc/config/pdp11/pdp11.md
parent47d96c3ea96e5811601f9a546f6464f4600eb51e (diff)
downloadgcc-d35d92239a4601ae04575301d856d7d14472f41e.tar.gz
pdp11.c (pdp11_output_function_prologue): Use gcc_assert and gcc_unreachable as appropriate.
* config/pdp11/pdp11.c (pdp11_output_function_prologue): Use gcc_assert and gcc_unreachable as appropriate. (pdp11_output_function_epilogue, output_move_double, output_move_quad, print_operand_address, output_jump, output_addr_const_pdp11): Likewise. * config/pdp11/pdp11.h (FUNCTION_PROFILER, ASM_OUTPUT_ALIGN): Likewise. * config/pdp11/pdp11.md: Likewise. (extendhisi2, subhi3, subqi3): Likewise. From-SVN: r99446
Diffstat (limited to 'gcc/config/pdp11/pdp11.md')
-rw-r--r--gcc/config/pdp11/pdp11.md13
1 files changed, 5 insertions, 8 deletions
diff --git a/gcc/config/pdp11/pdp11.md b/gcc/config/pdp11/pdp11.md
index 52d3937a39c..ebf486352fb 100644
--- a/gcc/config/pdp11/pdp11.md
+++ b/gcc/config/pdp11/pdp11.md
@@ -124,8 +124,7 @@
rtx br_insn = NEXT_INSN (insn);
RTX_CODE br_code;
- if (GET_CODE (br_insn) != JUMP_INSN)
- abort();
+ gcc_assert (GET_CODE (br_insn) == JUMP_INSN);
br_code = GET_CODE (XEXP (XEXP (PATTERN (br_insn), 1), 0));
switch(br_code)
@@ -148,7 +147,7 @@
default:
- abort();
+ gcc_unreachable ();
}
}"
[(set_attr "length" "4")])
@@ -872,7 +871,7 @@
default:
- abort();
+ gcc_unreachable ();
}
}"
[(set_attr "length" "5,3,3")])
@@ -1131,8 +1130,7 @@
""
"*
{
- if (GET_CODE (operands[2]) == CONST_INT)
- abort();
+ gcc_assert (GET_CODE (operands[2]) != CONST_INT);
return \"sub %2, %0\";
}"
@@ -1145,8 +1143,7 @@
""
"*
{
- if (GET_CODE (operands[2]) == CONST_INT)
- abort();
+ gcc_assert (GET_CODE (operands[2]) != CONST_INT);
return \"sub %2, %0\";
}"