https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70216
Bug ID: 70216 Summary: [SH] Implement __builtin_trap Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: olegendo at gcc dot gnu.org Target Milestone: --- Target: sh*-*-* Debian folks have noted that __builtin_trap is not implemented on SH, which causes some inconveniences when building glibc. https://lists.debian.org/debian-superh/2016/03/msg00000.html Other targets seem to implement __builtin_trap via unconditional trap, e.g. ARM: https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=205749 We could do something similar on SH.