https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84146
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Feb 6 20:32:45 2018 New Revision: 257431 URL: https://gcc.gnu.org/viewcvs?rev=257431&root=gcc&view=rev Log: PR target/84146 * config/i386/i386.c (rest_of_insert_endbranch): Only skip NOTE_INSN_CALL_ARG_LOCATION after a call, not anything else, and skip it regardless of bb boundaries. Use CALL_P macro, don't test INSN_P (insn) together with CALL_P or JUMP_P check unnecessarily, formatting fix. * gcc.target/i386/pr84146.c: New test. Added: trunk/gcc/testsuite/gcc.target/i386/pr84146.c Modified: trunk/gcc/ChangeLog trunk/gcc/config/i386/i386.c trunk/gcc/testsuite/ChangeLog