https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104117
--- Comment #14 from Sergey Fedorov <vital.had at gmail dot com> --- (In reply to Vladimir Makarov from comment #13) > I think there are two code spots whose pitfalls resulted in the PR. > > The first one is in rs6000.cc::legitimate_lo_sum_address_p which permits > wrong pic low-sum address. > > Another one is in lra-constraints.cc::process_address_1 which permits put > wrong low-sum address in reg and use the reg in memory. > > The following patch solves the problem: Does this also address Bug 104118? https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104118