sh-protos.h (sh_cbranch_distance): Declare new function.
authorOleg Endo <olegendo@gcc.gnu.org>
Sat, 7 May 2016 01:43:12 +0000 (01:43 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Sat, 7 May 2016 01:43:12 +0000 (01:43 +0000)
commite22daa4bb5154115b93f2e7b86a7d1ae74203eab
tree019549dc5101b56c3c0979da4c612e4f8e3c5791
parent02ceba4404cb60d30370aebccf110b1240a69e12
sh-protos.h (sh_cbranch_distance): Declare new function.

gcc/
* config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
* config/sh/sh.c (sh_cbranch_distance): Implement it.
* config/sh/sh.md (branch_zero): Remove define_attr.
(define_delay): Disable delay slot if branch distance is one insn.

From-SVN: r235993
gcc/ChangeLog
gcc/config/sh/sh-protos.h
gcc/config/sh/sh.c
gcc/config/sh/sh.md