[Bug target/113321] x86-64: Make __attribute__((interrupt)) more robust

2024-01-10 Thread hpa at zytor dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113321 --- Comment #2 from H. Peter Anvin --- Right. The only thing I'm suggesting is that for the cost of one extra instruction we can make it robust against the programmer picking the wrong type, or wanting to use the same handler. It isn't a necess

[Bug target/113321] x86-64: Make __attribute__((interrupt)) more robust

2024-01-10 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113321 --- Comment #1 from H.J. Lu --- (In reply to H. Peter Anvin from comment #0) > __attribute__((interrupt)) on x86 has two prototypes, and picking the wrong > type "probably will cause a system crash." It turns out that this is > unavoidable on i3