PING: PATCH: PR middle-end/45234: [4.4/4.5/4.6 Regression] ICE in expand_call, at calls.c:2845 when passing aligned function argument from unaligned stack after alloca

Jakub Jelinek jakub@redhat.com
Wed Sep 22 22:55:00 GMT 2010


On Tue, Sep 21, 2010 at 09:30:16PM +0200, Eric Botcazou wrote:
> > > OK to backport it to 4.4/4.5 branches?
> >
> > Yeah, sure.
> 
> This badly breaks on i586 though.  On the 4.5 branch:

Here is a shorter testcase:

/* { dg-do compile } */
/* { dg-options "-march=i586" { target ilp32 } } */

struct S { union { double b[4]; } a[18]; } s, a[5];
void foo (struct S);
struct S bar (struct S, struct S *, struct S);

void
foo (struct S arg)
{
}

void
baz (void)
{
  foo (bar (s, &a[1], a[2]));
}

Unless this is resolved soon, I think the 4.5/4.4 backports of this patch
should be reverted.

	Jakub



More information about the Gcc-patches mailing list