On Fri, Dec 01, 2017 at 05:33:39PM -0600, Segher Boessenkool wrote: > Okay for trunk. Further improvements welcome ;-) Thanks! Here is the patch for GCC 7 (the bug shows up in GCC 7). It is slightly different due to the surrounding lines in rs6000.c being different. Is it ok to apply? There were no regressions in the build. This patch will not be needed in GCC 6. [gcc] 2017-12-04 Michael Meissner Back port from trunk 2017-12-01 Michael Meissner PR target/81959 * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Check for whether we can allocate pseudos before trying to fix an address. * config/rs6000/rs6000.md (float_si2_hw): Make sure the memory address is indexed or indirect. (floatuns_si2_hw2): Likewise. [gcct/testsuite] 2017-12-04 Michael Meissner Back port from trunk 2017-12-01 Michael Meissner PR target/81959 * gcc.target/powerpc/pr81959.c: New test. -- Michael Meissner, IBM IBM, M/S 2506R, 550 King Street, Littleton, MA 01460-6245, USA email: meissner@linux.vnet.ibm.com, phone: +1 (978) 899-4797