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] Fix strtold on 32-bit sparc (and probably others) (BZ #16965)


On Tue, 20 May 2014, Aurelien Jarno wrote:

> This patch fixes an issue observed running the tst-strtod-round test on
> 32 bit sparc. In some conditions, strtold calls round_and_return, which in
> turn calls __mpn_rshift with cnt = 0, while stdlib/rshift.c explicitly says
> that cnts should satisfy 0 < CNT < BITS_PER_MP_LIMB. In this case, the code
> end up doing a logical shift right of the same amount than the register,
> which is undefined in the C standard.

OK (presuming you at least ran the stdlib tests on 32-bit sparc, and that 
you include the usual NEWS update and bug closing when committing).

-- 
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]