aboutsummaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2007-10-16 09:13:47 +0000
committerMaxim Kuvyrkov <mkuvyrkov@gcc.gnu.org>2007-10-16 09:13:47 +0000
commit215b063c9d8700616d5c189cd12eef4e748de5fe (patch)
treef33444e9bf6a5e0115d66e6ac3261973224f32ca /gcc/target.h
parent50f2fe3ad42ccf45a62d3bc899f55d5c068891ac (diff)
downloadgcc-215b063c9d8700616d5c189cd12eef4e748de5fe.zip
gcc-215b063c9d8700616d5c189cd12eef4e748de5fe.tar.gz
gcc-215b063c9d8700616d5c189cd12eef4e748de5fe.tar.bz2
target.h (unspec_may_trap_p): New target hook.
2007-10-16 Paolo Bonzini <bonzini@gnu.org> Maxim Kuvyrkov <maxim@codesourcery.com> * target.h (unspec_may_trap_p): New target hook. * target-def.h (TARGET_UNSPEC_MAY_TRAP_P): New macro. * targhooks.c (default_unspec_may_trap_p): Default implementation of the hook. * targhooks.h (default_unspec_may_trap_p): Declare it. * doc/tm.texi (TARGET_UNSPEC_MAY_TRAP_P): Document new hook. * rtlanal.c (may_trap_p_1): Use new hook. Make global. * rtl.h (may_trap_p_1): Declare. * config/ia64/ia64.c (ia64_unspec_may_trap_p): New function to override default hook implementation. (TARGET_UNSPEC_MAY_TRAP_P): Override default implementation of the hook. * gcc.target/ia64/20040709-2.c: New test. Co-Authored-By: Maxim Kuvyrkov <maxim@codesourcery.com> From-SVN: r129378
Diffstat (limited to 'gcc/target.h')
-rw-r--r--gcc/target.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h
index 4d8cd01..27f5d5e 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -652,6 +652,10 @@ struct gcc_target
value. */
rtx (* allocate_initial_value) (rtx x);
+ /* Return nonzero if evaluating UNSPEC[_VOLATILE] X might cause a trap.
+ FLAGS has the same meaning as in rtlanal.c: may_trap_p_1. */
+ int (* unspec_may_trap_p) (const_rtx x, unsigned flags);
+
/* Given a register, this hook should return a parallel of registers
to represent where to find the register pieces. Define this hook
if the register and its mode are represented in Dwarf in