As mentioned in http://gcc.gnu.org/ml/gcc-patches/2013-11/msg02228.html, this 
implements the trap pattern according to what was decided which brk should be 
used.

OK?  Built and tested on aarch64-elf with no regressions.  Also built a glibc 
for aarch64-linux-gnu with this patch included (LP64).

Thanks,
Andrew Pinski

        * config/aarch64/aarch64.md (trap): New pattern.
---
 gcc/ChangeLog                 |    9 +++++++++
 gcc/config/aarch64/aarch64.md |    5 +++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md
index 8b3dbd7..313517f 100644
--- a/gcc/config/aarch64/aarch64.md
+++ b/gcc/config/aarch64/aarch64.md
@@ -290,6 +290,11 @@
   [(set_attr "type" "no_insn")]
 )
 
+(define_insn "trap"
+  [(trap_if (const_int 1) (const_int 8))]
+  ""
+  "brk #1000")
+
 (define_expand "prologue"
   [(clobber (const_int 0))]
   ""
-- 
1.7.2.5

Reply via email to