re PR target/91472 (gmp testsuite segfaults with gcc-8 and gcc-9, works fine with...
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 1 Sep 2019 12:55:22 +0000 (12:55 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 1 Sep 2019 12:55:22 +0000 (12:55 +0000)
commit2dae2123477fb0c04b62b313a60ba83254ba27e1
tree63766c621dbcbcff02e92170ef9557e1d69ff3c9
parent70570ec1927450952efc5baa4de3254507352f09
re PR target/91472 (gmp testsuite segfaults with gcc-8 and gcc-9, works fine with gcc-7)

PR target/91472
* config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
during LRA/reload in PIC mode if the PIC register hasn't been used yet.
(sparc_pic_register_p): Test reload_in_progress for consistency's sake.

From-SVN: r275270
gcc/ChangeLog
gcc/config/sparc/sparc.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20190901-1.c [new file with mode: 0644]