This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] powerpc: Fix inline feraiseexcept, feclearexcept macros


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]