diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 1999-04-02 06:46:46 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-04-02 06:46:46 -0700 |
commit | 09b893bba75609fa03a01600d46b001c288ba2f8 (patch) | |
tree | 774afedb09cf6fee1ca69d6d228d22f94f627f9c /gcc/config/pdp11/pdp11.md | |
parent | 8b9243df2730d2a30ea55ee3e254134026cfce4c (diff) | |
download | gcc-09b893bba75609fa03a01600d46b001c288ba2f8.tar.gz |
pdp11.c: Include "recog.h".
* pdp11.c: Include "recog.h".
(output_functip', `notice_update_cc_on_set', `output_ascii',
`output_function_epilogue', `output_function_prologue',
`print_operand_address', `register_move_cost',
`simple_memory_operand'.
(HARD_REGNO_MODE_OK): Parenthesise `REGNO' arg.
(REGNO_REG_CLASS): Likewise.
* pdp11.md: Add explicit `int' to `static count' (in two places).
(addhi3): Add explicit braces to avoid ambiguous else.
(addqi3): Likewise.
(ashlhi3): Likewise.
From-SVN: r26125
Diffstat (limited to 'gcc/config/pdp11/pdp11.md')
-rw-r--r-- | gcc/config/pdp11/pdp11.md | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/gcc/config/pdp11/pdp11.md b/gcc/config/pdp11/pdp11.md index 621b8743e89..1980e45e6ac 100644 --- a/gcc/config/pdp11/pdp11.md +++ b/gcc/config/pdp11/pdp11.md @@ -878,7 +878,7 @@ "(! TARGET_40_PLUS)" "* { - static count = 0; + static int count = 0; char buf[100]; rtx lateoperands[2]; @@ -1041,10 +1041,12 @@ "* { if (GET_CODE (operands[2]) == CONST_INT) - if (INTVAL(operands[2]) == 1) - return \"inc %0\"; - else if (INTVAL(operands[2]) == -1) - return \"dec %0\"; + { + if (INTVAL(operands[2]) == 1) + return \"inc %0\"; + else if (INTVAL(operands[2]) == -1) + return \"dec %0\"; + } return \"add %2, %0\"; }" @@ -1058,10 +1060,12 @@ "* { if (GET_CODE (operands[2]) == CONST_INT) - if (INTVAL(operands[2]) == 1) - return \"incb %0\"; - else if (INTVAL(operands[2]) == -1) - return \"decb %0\"; + { + if (INTVAL(operands[2]) == 1) + return \"incb %0\"; + else if (INTVAL(operands[2]) == -1) + return \"decb %0\"; + } return \"addb %2, %0\"; }" @@ -1520,10 +1524,12 @@ "* { if (GET_CODE(operands[2]) == CONST_INT) - if (INTVAL(operands[2]) == 1) - return \"asl %0\"; - else if (INTVAL(operands[2]) == -1) - return \"asr %0\"; + { + if (INTVAL(operands[2]) == 1) + return \"asl %0\"; + else if (INTVAL(operands[2]) == -1) + return \"asr %0\"; + } return \"ash %2,%0\"; }" @@ -1563,7 +1569,7 @@ "TARGET_ABSHI_BUILTIN" "* { - static count = 0; + static int count = 0; char buf[200]; output_asm_insn(\"tst %0\", operands); |