Makefile.in (TARGET_DEF): Add target-insns.def.
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 25 Jun 2015 17:18:12 +0000 (17:18 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 25 Jun 2015 17:18:12 +0000 (17:18 +0000)
commit4bccb39ebaecc3c91ea8aee58dc0c71d5a7e3b95
treed4c2043c4d2fe1765f3dec6cc791fa7b0f3a1899
parentd58627a0c75748b24e1c182d0c4cc1d5136cb42c
Makefile.in (TARGET_DEF): Add target-insns.def.

gcc/
* Makefile.in (TARGET_DEF): Add target-insns.def.
(.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
(build/gentarget-def.o): New rule.
(genprogrtl): Add target-def.
* target-insns.def, gentarget-def.c: New files.
* target.def: Add targetm.have_* and targetm.gen_* hooks,
based on the contents of target-insns.def.
* defaults.h (HAVE_simple_return, gen_simple_return): Delete.
(HAVE_return, gen_return): Delete.
* target-def.h: Include insn-target-def.h.
* cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
instead of direct calls.  Rely on them to do the appropriate assertions.
* function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
(convert_jumps_to_returns): Use targetm interface instead of
direct calls.
(thread_prologue_and_epilogue_insns): Likewise.
* reorg.c (find_end_label, dbr_schedule): Likewise.
* shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
* shrink-wrap.c (convert_to_simple_return): Likewise.
(try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.

From-SVN: r224979
12 files changed:
gcc/ChangeLog
gcc/Makefile.in
gcc/cfgrtl.c
gcc/defaults.h
gcc/function.c
gcc/gentarget-def.c [new file with mode: 0644]
gcc/reorg.c
gcc/shrink-wrap.c
gcc/shrink-wrap.h
gcc/target-def.h
gcc/target-insns.def [new file with mode: 0644]
gcc/target.def