diff options
author | Kaz Kojima <kkojima@gcc.gnu.org> | 2004-09-01 00:28:30 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@gcc.gnu.org> | 2004-09-01 00:28:30 +0000 |
commit | 8b9ed3039f0e73dac1812dec5a21bdc19754ece0 (patch) | |
tree | 83d32c32178e97a707be3a49f5818bbf52bf55eb /gcc | |
parent | 2eaf2333209452408bdb8ddab8d78f4c64b36d59 (diff) |
* config/sh/sh.c (output_branch): Check the insn length possibly
in the delayed slot.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@86858 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/sh/sh.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d357130ab70..ff6249eefef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-08-31 Kaz Kojima <kkojima@gcc.gnu.org> + + * config/sh/sh.c (output_branch): Check the insn length possibly + in the delayed slot. + 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 31104e5fbe3..087bb7fd47f 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -1379,7 +1379,8 @@ output_branch (int logic, rtx insn, rtx *operands) place for it is after the label. final will do that by default. */ if (final_sequence - && ! INSN_ANNULLED_BRANCH_P (XVECEXP (final_sequence, 0, 0))) + && ! INSN_ANNULLED_BRANCH_P (XVECEXP (final_sequence, 0, 0)) + && get_attr_length (XVECEXP (final_sequence, 0, 1))) { asm_fprintf (asm_out_file, "\tb%s%ss\t%LLF%d\n", logic ? "f" : "t", ASSEMBLER_DIALECT ? "/" : ".", label); |