gimplify_parameters
Richard Henderson
rth@redhat.com
Tue Dec 21 01:43:00 GMT 2004
On Mon, Dec 20, 2004 at 07:13:02PM -0500, Richard Kenner wrote:
> The following C test case shows what's going wrong here and causes an ICE.
...
> void f (int a)
> {
> typedef struct {int b[a];} c;
> c cs;
>
> void g (c c) {};
>
> g (cs);
> }
No, it doesn't show what you think it does. The ICE happens because
there's apparently a mismatch between cgraph and the inliner about
what's legal to inline. So we abort trying to remove the cgraph call
edge from f to g.
Which happens because I removed some bits from c-common that previously
prevented inlining in this case.
Which wouldn't have affected Ada at all, so it can't be the same problem.
r~
More information about the Gcc
mailing list