------- Comment #5 from zimmerma+gcc at loria dot fr  2009-07-16 07:52 -------
Created an attachment (id=18203)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18203&action=view)
preprocessed version of the file mpn_exp.c from mpfr-2.4.1

Note that replacing line 74:
   MPN_ZERO (a, n - 1);
by:
   { int n1 = n - 1; MPN_ZERO (a, n1); }
fixes the problem, where MPN_ZERO is defined as:
#define MPN_ZERO(dst, n) memset((dst), 0, (n)*BYTES_PER_MP_LIMB)
and BYTES_PER_MP_LIMB is 4.

If I write "size_t n1" or "unsigned int n1" above instead of "int n1",
the bug reappears.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40757

Reply via email to