diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2004-09-20 14:47:20 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2004-09-20 14:47:20 +0000 |
commit | c2dda19b3b1e6e53a807ef3446c6fd8a38be93e5 (patch) | |
tree | 16c237419acab4d9dc03318e2a6013538f78d3ee /gcc/target.h | |
parent | bb9be5eb9c3c40851cf8db6d00ebe1ac4f04944b (diff) | |
download | gcc-c2dda19b3b1e6e53a807ef3446c6fd8a38be93e5.zip gcc-c2dda19b3b1e6e53a807ef3446c6fd8a38be93e5.tar.gz gcc-c2dda19b3b1e6e53a807ef3446c6fd8a38be93e5.tar.bz2 |
builtins.c (fold_builtin): Call the new omonymous target hook for machine-dependent built-ins.
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.
From-SVN: r87756
Diffstat (limited to 'gcc/target.h')
-rw-r--r-- | gcc/target.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h index a6d69e1..6824c13 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. */ |