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 13:11:29 +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
--- Comment #3 from Oleg Endo <olegendo at gcc dot gnu.org> ---
(In reply to Kazumoto Kojima from comment #2)
>
> I think that # less than 0x20 are reserved by kernel, gdb uses 0x20
> and 0xc3 and gcc uses 0x33 for profiling. Perhaps 0x54 (ascii 'T')
> or something?
If there are no other opinions, I guess I'll just do that. I don't have any
better idea.
Basically it's the same question as in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54272#c2
Emitting a function call into libgcc for __builtin_trap could also be an option
(-mbuiltin-trap=libcall)