* config/i386/i386.c (ix86_emit_leave): Call ix86_add_cfa_restore_note
unconditionally.
* gcc.c-torture/compile/pr51354.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182056
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
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.
+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
--- /dev/null
+/* 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;
+}