re PR target/51354 (ICE in maybe_record_trace_start)
PR target/51354 * config/i386/i386.c (ix86_emit_leave): Call ix86_add_cfa_restore_note unconditionally. * gcc.c-torture/compile/pr51354.c: New test. From-SVN: r182056
This commit is contained in:
parent
66403b3862
commit
762f777039
4 changed files with 30 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2011-12-06 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR target/51354
|
||||
* config/i386/i386.c (ix86_emit_leave): Call ix86_add_cfa_restore_note
|
||||
unconditionally.
|
||||
|
||||
2011-12-06 Georg-Johann Lay <avr@gjlay.de>
|
||||
|
||||
Forward-port from gcc-4_6-branch r181936 2011-12-02.
|
||||
|
|
|
@ -10545,9 +10545,9 @@ ix86_emit_leave (void)
|
|||
add_reg_note (insn, REG_CFA_DEF_CFA,
|
||||
plus_constant (stack_pointer_rtx, m->fs.sp_offset));
|
||||
RTX_FRAME_RELATED_P (insn) = 1;
|
||||
ix86_add_cfa_restore_note (insn, hard_frame_pointer_rtx,
|
||||
m->fs.fp_offset);
|
||||
}
|
||||
ix86_add_cfa_restore_note (insn, hard_frame_pointer_rtx,
|
||||
m->fs.fp_offset);
|
||||
}
|
||||
|
||||
/* Emit code to restore saved registers using MOV insns.
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2011-12-06 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR target/51354
|
||||
* gcc.c-torture/compile/pr51354.c: New test.
|
||||
|
||||
2011-12-06 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/51431
|
||||
|
|
17
gcc/testsuite/gcc.c-torture/compile/pr51354.c
Normal file
17
gcc/testsuite/gcc.c-torture/compile/pr51354.c
Normal file
|
@ -0,0 +1,17 @@
|
|||
/* PR target/51354 */
|
||||
|
||||
extern void abort (void);
|
||||
|
||||
typedef int __attribute__ ((aligned (32))) ai;
|
||||
|
||||
void foo (int *x, ai * y);
|
||||
|
||||
int
|
||||
bar (int x)
|
||||
{
|
||||
if (x == 12346)
|
||||
return 24;
|
||||
ai i;
|
||||
foo (__builtin_alloca (x), &i);
|
||||
return 128;
|
||||
}
|
Loading…
Add table
Reference in a new issue