https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70628
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Jul 7 12:39:40 2016 New Revision: 238092 URL: https://gcc.gnu.org/viewcvs?rev=238092&root=gcc&view=rev Log: Backported from mainline 2016-04-13 Jakub Jelinek <ja...@redhat.com> PR debug/70628 * explow.c (convert_memory_address_addr_space_1): Formatting fix. PR debug/70628 * rtl.h (convert_memory_address_addr_space_1): New prototype. * explow.c (convert_memory_address_addr_space_1): No longer static, add NO_EMIT argument and don't call convert_modes if true, pass it down recursively, remove break after return. (convert_memory_address_addr_space): Adjust caller. * simplify-rtx.c (simplify_unary_operation_1): Call convert_memory_address_addr_space_1 instead of convert_memory_address, if it returns NULL, don't simplify. * gcc.dg/torture/pr70628.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr70628.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/explow.c branches/gcc-5-branch/gcc/rtl.h branches/gcc-5-branch/gcc/simplify-rtx.c branches/gcc-5-branch/gcc/testsuite/ChangeLog