From a71a498df01ba32349bed4e72631433be1ff4a2a Mon Sep 17 00:00:00 2001 From: Adrian Straetling Date: Wed, 25 May 2005 11:52:13 +0000 Subject: loop-doloop.c: Include "target.h". 2005-05-25 Adrian Straetling * loop-doloop.c: Include "target.h". (doloop_valid_p): Move tests to function in targhooks.c. * target.h (struct gcc_target): New target hook "insn_valid_within_doloop". * target-def.h: Define default value for "insn_valid_within_doloop". (TARGET_INITIALIZER): Insert new target hook into initializer. * targhooks.c (default_insn_valid_within_doloop): New function. * targhooks.h (default_insn_valid_within_doloop): Declare. * hooks.c (hook_bool_rtx_true): New function. * hooks.h (hook_bool_rtx_true): Declare. * doc/tm.texi: Add documentation for new target hook. From-SVN: r100143 --- gcc/target-def.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/target-def.h') diff --git a/gcc/target-def.h b/gcc/target-def.h index 27e8511..49e25a1 100644 --- a/gcc/target-def.h +++ b/gcc/target-def.h @@ -137,6 +137,10 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define TARGET_HAVE_NAMED_SECTIONS false #endif +#ifndef TARGET_INSN_VALID_WITHIN_DOLOOP +#define TARGET_INSN_VALID_WITHIN_DOLOOP default_insn_valid_within_doloop +#endif + #ifndef TARGET_HAVE_TLS #define TARGET_HAVE_TLS false #endif @@ -553,6 +557,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. TARGET_DWARF_CALLING_CONVENTION, \ TARGET_DWARF_HANDLE_FRAME_UNSPEC, \ TARGET_STDARG_OPTIMIZE_HOOK, \ + TARGET_INSN_VALID_WITHIN_DOLOOP, \ TARGET_CALLS, \ TARGET_CXX, \ TARGET_HAVE_NAMED_SECTIONS, \ -- cgit v1.1