------- Comment #7 from ubizjak at gmail dot com 2008-06-10 13:33 ------- Here is a short explanation from config/i386/i386.md on this matter:
--cut here-- ;; We used to use "int $5", in honor of #BR which maps to interrupt vector 5. ;; That, however, is usually mapped by the OS to SIGSEGV, which is often ;; caught for use by garbage collectors and the like. Using an insn that ;; maps to SIGILL makes it more likely the program will rightfully die. ;; Keeping with tradition, "6" is in honor of #UD. (define_insn "trap" [(trap_if (const_int 1) (const_int 6))] "" { return ASM_SHORT "0x0b0f"; } [(set_attr "length" "2")]) --cut here-- -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36484