The feupdateenv function is supposed to raise exceptions after
installing the environment represented by its envp argument.
This was accidentally missed on hppa.
The failure to raise exceptions was noticed by the failure of
the math/test-narrowing-trap test.
Signed-off-by: John David Anglin <dave.anglin@bell.net>
{
union { unsigned long long l; unsigned int sw[2]; } s;
fenv_t temp;
+
/* Get the current exception status */
__asm__ ("fstd %%fr0,0(%1) \n\t"
"fldd 0(%1),%%fr0 \n\t"
/* Install new environment. */
__fesetenv (&temp);
+
+ /* Raise exceptions. */
+ __feraiseexcept (temp.__status_word >> 27);
+
/* Success. */
return 0;
}