This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gimplify_parameters
- From: Richard Henderson <rth at redhat dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 20 Dec 2004 17:43:31 -0800
- Subject: Re: gimplify_parameters
- References: <10412210013.AA26063@vlsi1.ultra.nyu.edu>
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~