https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77377
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Sep 1 11:42:22 2016 New Revision: 239929 URL: https://gcc.gnu.org/viewcvs?rev=239929&root=gcc&view=rev Log: Backported from mainline 2016-08-30 Jakub Jelinek <ja...@redhat.com> PR middle-end/77377 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds constant pool reference return x instead of c. * gcc.target/i386/pr77377.c: New test. Added: branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr77377.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/simplify-rtx.c branches/gcc-6-branch/gcc/testsuite/ChangeLog