This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/70216] [SH] Implement __builtin_trap
- From: "olegendo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 13 Mar 2016 02:38:55 +0000
- Subject: [Bug target/70216] [SH] Implement __builtin_trap
- Auto-submitted: auto-generated
- References: <bug-70216-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70216
Oleg Endo <olegendo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aurelien at aurel32 dot net,
| |glaubitz at physik dot fu-berlin.d
| |e, kkojima at gcc dot gnu.org
--- Comment #1 from Oleg Endo <olegendo at gcc dot gnu.org> ---
I'm thinking to add a new -m option to enable the generation of the SH trap
insn for __builtin_trap.
For example: -mbuiltin_trap=123 would emit "trap #123".
For sh4-linux this option should be enabled by default with some useful trap
number value. Which trap number should be used in this case?