Created attachment 34389 [details] reduced testcase Compiler output: $ gcc -O2 -mstack-arg-probe testcase.c testcase.c: In function 'bar': testcase.c:19:1: internal compiler error: in maybe_record_trace_start, at dwarf2cfi.c:2302 } ^ 0x879e5c maybe_record_trace_start /mnt/svn/gcc-trunk/gcc/dwarf2cfi.c:2302 0x87aa53 scan_trace /mnt/svn/gcc-trunk/gcc/dwarf2cfi.c:2480 0x87c20a create_cfi_notes /mnt/svn/gcc-trunk/gcc/dwarf2cfi.c:2634 0x87c20a execute_dwarf2_frame /mnt/svn/gcc-trunk/gcc/dwarf2cfi.c:2990 0x87c20a execute /mnt/svn/gcc-trunk/gcc/dwarf2cfi.c:3470 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r219255 - ICE 4_9 r219040 - ICE 4_8 r219093 - ICE 4_7 r211571 - ICE 4_6 r197894 - OK
Started with r179553.
Created attachment 34424 [details] gcc5-pr64513.patch Untested fix.
Author: jakub Date: Mon Jan 12 20:45:38 2015 New Revision: 219492 URL: https://gcc.gnu.org/viewcvs?rev=219492&root=gcc&view=rev Log: PR target/64513 * config/i386/i386.c (ix86_expand_prologue): Add REG_FRAME_RELATED_EXPR to %rax and %r10 pushes. * gcc.target/i386/pr64513.c: New test. Added: trunk/gcc/testsuite/gcc.target/i386/pr64513.c Modified: trunk/gcc/ChangeLog trunk/gcc/config/i386/i386.c trunk/gcc/testsuite/ChangeLog
Fixed on the trunk so far.
Author: jakub Date: Wed Jan 14 22:04:49 2015 New Revision: 219618 URL: https://gcc.gnu.org/viewcvs?rev=219618&root=gcc&view=rev Log: Backported from mainline 2015-01-12 Jakub Jelinek <jakub@redhat.com> PR target/64513 * config/i386/i386.c (ix86_expand_prologue): Add REG_FRAME_RELATED_EXPR to %rax and %r10 pushes. * gcc.target/i386/pr64513.c: New test. Added: branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/pr64513.c Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/config/i386/i386.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
Author: jakub Date: Sun Feb 1 21:49:47 2015 New Revision: 220331 URL: https://gcc.gnu.org/viewcvs?rev=220331&root=gcc&view=rev Log: Backported from mainline 2015-01-12 Jakub Jelinek <jakub@redhat.com> PR target/64513 * config/i386/i386.c (ix86_expand_prologue): Add REG_FRAME_RELATED_EXPR to %rax and %r10 pushes. * gcc.target/i386/pr64513.c: New test. Added: branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr64513.c Modified: branches/gcc-4_8-branch/gcc/ChangeLog branches/gcc-4_8-branch/gcc/config/i386/i386.c branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
Fixed.