------- Comment #9 from kargl at gcc dot gnu dot org  2009-03-29 00:14 -------
(In reply to comment #7)
> > NetBSD seems to be using jemalloc. which is the memory allocator
> > from FreeBSD.  Perhaps, your memory is defective.
> > 
> 
> Where would this be?  I can't find jemalloc in the fortran directory.
> 

Steven is correct.  I am talking about malloc, which comes with your
system.  It was written by Jason Evans as in the je of jemalloc.
You can see the source code at www.netbsd.org in src/lib/libc/stdlib.

What happens when you compile the following:

#include <stdio.h>
#include <gmp.h>
int main(void) {
        unsigned int u = 268435472u;
        mpz_t x;
        mpz_init(x);
        mpz_set_ui(x, 2);
        mpz_out_str (stdout, 10, x);
        printf(" %u\n", u);
        mpz_pow_ui (x, x, u);
        mpz_clear(x);
        return 0;
}


-- 


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

Reply via email to