Patchwork [i386] : Fix PR target/48723

login
register
mail settings
Submitter Uros Bizjak
Date April 23, 2011, 7:35 a.m.
Message ID <BANLkTimxOUvQUXLCynHA8rCf7mNsh10i8w@mail.gmail.com>
Download mbox | patch
Permalink /patch/92607/
State New
Headers show

Comments

Uros Bizjak - April 23, 2011, 7:35 a.m.
On Fri, Apr 22, 2011 at 11:38 PM, Eric Botcazou <ebotcazou@adacore.com> wrote:
>> Attached one-liner fixes PR target/48723, ICE in
>> ix86_expand_prologue() with -fstack-check + function returning struct,
>> on corei7-avx. The problem was, that we forgot to update accounting
>> info when ix86_adjust_stack_and_probe adjusted stack pointer (in this
>> particular case, m->fs.sp_offset was set by stack realignment code for
>> AVX 32byte stack alignment.
>
> Take a look at line 10165 of config/i386/i386.c.



Uros.

Patch

Index: i386.c
===================================================================
--- i386.c	(revision 172866)
+++ i386.c	(working copy)
@@ -10149,7 +10149,7 @@  ix86_adjust_stack_and_probe (const HOST_
   /* Even if the stack pointer isn't the CFA register, we need to correctly
      describe the adjustments made to it, in particular differentiate the
      frame-related ones from the frame-unrelated ones.  */
-  if (size > 0)
+  if (size != 0)
     {
       rtx expr = gen_rtx_SEQUENCE (VOIDmode, rtvec_alloc (2));
       XVECEXP (expr, 0, 0)