[PATCH] powerpc: Fix inline feraiseexcept, feclearexcept macros
Joseph Myers
joseph@codesourcery.com
Sat Jan 24 02:21:00 GMT 2015
On Fri, 23 Jan 2015, Adhemerval Zanella wrote:
> This patch fixes the inline feraiseexcept and feclearexcept macros for
> powerpc by casting the input argument to integer before operation on it.
>
> It fixes BZ#17776.
This should add an (architecture-independent) testcase (probably covering
such arguments to all <fenv.h> functions that accept an integer argument,
not just those with the bug).
> + if (__builtin_constant_p (__e) \
Have you made sure __builtin_constant_p works for variables assigned like
this from a macro argument?
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list