diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-07-05 07:51:07 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-07-05 07:51:07 +0000 |
commit | eb6f47fb90994bc9021b42119a51f56aa706fe14 (patch) | |
tree | d03fee8436802cd55820f4aa8cc8096a090c3417 /gcc/explow.c | |
parent | 134b044daf0999cee9f85203be3fa35c48051da1 (diff) | |
download | gcc-eb6f47fb90994bc9021b42119a51f56aa706fe14.tar.gz |
target-insns.def (trap): New targetm instruction pattern.
gcc/
* target-insns.def (trap): New targetm instruction pattern.
* builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
interface.
* explow.c (allocate_dynamic_stack_space): Likewise.
* ifcvt.c (find_if_header): Likewise.
From-SVN: r225425
Diffstat (limited to 'gcc/explow.c')
-rw-r--r-- | gcc/explow.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/explow.c b/gcc/explow.c index adc17a31a3a..c2158f35f28 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -1422,11 +1422,9 @@ allocate_dynamic_stack_space (rtx size, unsigned size_align, emit_cmp_and_jump_insns (available, size, GEU, NULL_RTX, Pmode, 1, space_available); -#ifdef HAVE_trap - if (HAVE_trap) - emit_insn (gen_trap ()); + if (targetm.have_trap ()) + emit_insn (targetm.gen_trap ()); else -#endif error ("stack limits not supported on this target"); emit_barrier (); emit_label (space_available); |