This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gimplify_parameters


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]