On Tue, Jan 29, 2019 at 08:46:40PM +0100, Uros Bizjak wrote: > > When changing trap masks, it is necessary to clear pending traps to > prevent firing spurious interrupts. Attached patch also optimizes > set_fpu_trap_exceptions function considerably to only call > feenableexcept and fedisableexcept functions each once. > > 2019-01-29 Uroš Bizjak <ubiz...@gmail.com>
s/Uro/Uros ? > * config/fpu-glibc.h (set_fpu_trap_exceptions): Clear stalled > exception flags before changing trap mode. Optimize to call > feenableexcept and fedisableexcept only once. > > Patch was bootstrapped and regression tested on alphaev68-linux-gnu, > where it fixes gfortran.dg/ieee/ieee_10.f90 failures. > > OK for mainline? > Uros, Your decription suggests that this fixes PR fortran/88678. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88678 I managed to identify that the issue was traceable to fpu-glibc.h, but I got stuck going any further. In any event, the patch looks good to me. Thanks. -- steve