This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/70216] [SH] Implement __builtin_trap


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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]