https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88678

--- Comment #8 from Uroš Bizjak <ubizjak at gmail dot com> ---
This PR is probably fixed by [1]. It looks that on powerpc feenableexcept fires
exception on stalled exception flags (these were raised when certain exception
was disabled).

Other than that, exception may fire in ieee_procedure_exit, where we enable
state we had on entry (that may have enabled various exceptions), and directly
re-raise possibly stalled exceptions.

Both these issues can be solved by clearing stalled interrupts in
set_fpu_trap_exceptions. This is the solution we have in fpu-387.h.

[1] https://gcc.gnu.org/ml/gcc-patches/2019-01/msg01685.html

Reply via email to