summaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-20 14:47:20 +0000
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-20 14:47:20 +0000
commitb0160cb4a801854674765bc7f224fa818b30df0f (patch)
tree16c237419acab4d9dc03318e2a6013538f78d3ee /gcc/target.h
parent003153a143b32d8cd6d6dd1c36be054238f64e75 (diff)
downloadgcc-b0160cb4a801854674765bc7f224fa818b30df0f.tar.gz
2004-09-20 Paolo Bonzini <bonzini@gnu.org>
* builtins.c (fold_builtin): Call the new omonymous target hook for machine-dependent built-ins. * target-def.h (TARGET_FOLD_BUILTIN): New. * target.h (struct gcc_target): Add the fold_builtin hook. * targhooks.c (default_fold_builtin): New. * targhooks.h (default_fold_builtin): Declare it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87756 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target.h')
-rw-r--r--gcc/target.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h
index a6d69e1938e..6824c13562e 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -324,6 +324,9 @@ struct gcc_target
rtx (* expand_builtin) (tree exp, rtx target, rtx subtarget,
enum machine_mode mode, int ignore);
+ /* Fold a target-specific builtin. */
+ tree (* fold_builtin) (tree exp, bool ignore);
+
/* For a vendor-specific fundamental TYPE, return a pointer to
a statically-allocated string containing the C++ mangling for
TYPE. In all other cases, return NULL. */