sh.opt (mcbranch-force-delay-slot): New option.
commitf05911fb07ef21bd158da44d8618b7be84f11b21
authorOleg Endo <olegendo@gcc.gnu.org>
Tue, 17 Feb 2015 21:38:12 +0000 (17 21:38 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Tue, 17 Feb 2015 21:38:12 +0000 (17 21:38 +0000)
tree685fc20a708ab8624e9861230b4a7db17dc300a5
parent3c99176a7f968bdb8b7a3225265246f643551c80
sh.opt (mcbranch-force-delay-slot): New option.

gcc/
* config/sh/sh.opt (mcbranch-force-delay-slot): New option.
* doc/invoke.texi (SH options): Document it.
* config/sh/sh.c (sh_insn_length_adjustment): Check
TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.

gcc/testsuite/
* gcc.target/sh/sh.exp (check_effective_target_sh1): New.
* gcc.target/sh/force-cbranch-delay-slot.c: New.

From-SVN: r220774
gcc/ChangeLog
gcc/config/sh/sh.c
gcc/config/sh/sh.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/sh/force-cbranch-delay-slot.c [new file with mode: 0644]
gcc/testsuite/gcc.target/sh/sh.exp