https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91472
--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- Author: ebotcazou Date: Sun Sep 1 12:59:09 2019 New Revision: 275273 URL: https://gcc.gnu.org/viewcvs?rev=275273&root=gcc&view=rev Log: 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. Added: branches/gcc-8-branch/gcc/testsuite/gcc.c-torture/execute/20190901-1.c - copied unchanged from r275271, trunk/gcc/testsuite/gcc.c-torture/execute/20190901-1.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/config/sparc/sparc.c branches/gcc-8-branch/gcc/testsuite/ChangeLog