[Bug target/91472] gmp testsuite segfaults with gcc-8 and gcc-9, works fine with gcc-7

2019-08-16 Thread matorola at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91472

--- Comment #1 from Anatoly Pugachev  ---
compiling under gcc-8 but without "-O2" in CFLAGS makes it PASS instead of FAIL
(segfault).

[Bug target/91472] gmp testsuite segfaults with gcc-8 and gcc-9, works fine with gcc-7

2019-08-18 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91472

Eric Botcazou  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2019-08-18
 Ever confirmed|0   |1

--- Comment #2 from Eric Botcazou  ---
We need a reproducer (or at least instructions to reproduce).

[Bug target/91472] gmp testsuite segfaults with gcc-8 and gcc-9, works fine with gcc-7

2019-08-18 Thread glaubitz at physik dot fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91472

--- Comment #3 from John Paul Adrian Glaubitz  ---
It can reproduced by simply cloning the gmp repo, building it and running the
testsuite:

$ hg clone https://gmplib.org/repo/gmp
$ cd gmp
$ ./.bootstrap && ./configure --enable-cxx --enable-fat --build
sparc64-linux-gnu && make -j32 && make check

Switching gcc versions can be achieved by just setting the CC variable, e.g.:

$ export CC=gcc-8

[Bug target/91472] gmp testsuite segfaults with gcc-8 and gcc-9, works fine with gcc-7

2019-08-18 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91472

Mikael Pettersson  changed:

   What|Removed |Added

 CC||mikpelinux at gmail dot com

--- Comment #4 from Mikael Pettersson  ---
I can reproduce the SEGV with the gmp-6.1.2 release tarball and gcc-8.3 on
sparc64-linux, making either a 32-bit or a 64-bit build of gmp, using gmp's
defaults (not overriding CC or CFLAGS).

[Bug target/91472] gmp testsuite segfaults with gcc-8 and gcc-9, works fine with gcc-7

2019-08-18 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91472

Eric Botcazou  changed:

   What|Removed |Added

 Status|WAITING |NEW

--- Comment #5 from Eric Botcazou  ---
OK, I can reproduce, thanks.