Re: failure with Clang's memory sanitizer: use-of-uninitialized-value

2019-03-28 Thread Niels Möller
Marc Glisse writes: > Just recompiling GMP with CC='clang-7 -fsanitize=memory' (and > --disable-shared) gives the more specific > > ==28897==WARNING: MemorySanitizer: use-of-uninitialized-value > #0 0x498856 in mpn_bc_get_str /tmp/g/mpn/get_str.c:239:7 Looks like the branch on rp[1] here,

Re: failure with Clang's memory sanitizer: use-of-uninitialized-value

2019-03-28 Thread Marc Glisse
On Thu, 28 Mar 2019, Niels Möller wrote: Vincent Lefevre writes: On my Debian/unstable x86_64 machine (with GMP 6.1.2): #include int main (void) { mpz_t z; mpz_init (z); mpz_set_ui (z, 1); mpz_dump (z); mpz_clear (z); return 0; } compiled with: clang-7 -fsanitize=memory -o

Re: configure sometimes misses passing LDFLAGS when testing linker

2019-03-28 Thread Niels Möller
Jameson Nash writes: > OK, here's take 2, where I use that approach instead. You're right, this > seems to a bit more precise about which calls to the compiler are using the > linker. This patch to acinclude.m4 (quoted below) looks good to me. I'm not that familiar with gmp's compiler tests,