https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70460
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Mar 31 13:13:13 2016 New Revision: 234617 URL: https://gcc.gnu.org/viewcvs?rev=234617&root=gcc&view=rev Log: PR rtl-optimization/70460 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF with operand from REG_LABEL_OPERAND, instead substitute SET_SRC or REG_EQUAL note content if it is a LABEL_REF. Don't do anything for REG_NON_LOCAL_GOTO jumps. * gcc.c-torture/execute/pr70460.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr70460.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/ira.c branches/gcc-5-branch/gcc/testsuite/ChangeLog