aboutsummaryrefslogtreecommitdiff
path: root/gcc/hooks.c
diff options
context:
space:
mode:
authorUros Bizjak <uros@gcc.gnu.org>2012-09-01 16:26:28 +0200
committerUros Bizjak <uros@gcc.gnu.org>2012-09-01 16:26:28 +0200
commit78e4f1ad4e4842af9897bd6ee6fb19fc33fe7762 (patch)
tree0eab0625a3fd56f7d03f4a8eed4bd72c645aec56 /gcc/hooks.c
parentcb7dba8ebfd6592061706c136dced23e547a72b2 (diff)
downloadgcc-78e4f1ad4e4842af9897bd6ee6fb19fc33fe7762.zip
gcc-78e4f1ad4e4842af9897bd6ee6fb19fc33fe7762.tar.gz
gcc-78e4f1ad4e4842af9897bd6ee6fb19fc33fe7762.tar.bz2
target.def (legitimate_combined_insn): New target hook.
* target.def (legitimate_combined_insn): New target hook. * doc/tm.texi.in (TARGET_LEGITIMATE_COMBINED_INSN): New hook. * doc/tm.texi: Regenerated. * combine.c (recog_for_combine): Call targetm.legitimate_combined_insn to allow targets to reject combined insn. * hooks.h (hook_bool_rtx_true): New. * hooks.c (hook_bool_rtx_true): Ditto. From-SVN: r190846
Diffstat (limited to 'gcc/hooks.c')
-rw-r--r--gcc/hooks.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/hooks.c b/gcc/hooks.c
index ae59c33..c004639 100644
--- a/gcc/hooks.c
+++ b/gcc/hooks.c
@@ -269,6 +269,12 @@ hook_bool_tree_bool_false (tree a ATTRIBUTE_UNUSED, bool b ATTRIBUTE_UNUSED)
}
bool
+hook_bool_rtx_true (rtx a ATTRIBUTE_UNUSED)
+{
+ return true;
+}
+
+bool
hook_bool_rtx_false (rtx a ATTRIBUTE_UNUSED)
{
return false;