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 09:25:39PM -0500, Richard Kenner wrote:
> This isn't necessarily going to ICE, but it's going to show the case
> that occurs in s-fileio.adb: where gimplify_type_sizes is getting
> called twice.

Yes, but I can't see why you think this is a Real Bug rather than
a possible inefficiency.

> int f (int a)
> {
>   typedef struct {int b[a]; int d;} c;
>   c cs;
> 
>   int g (c c) {return c.d;};
> 
>   return g (cs) + cs.d;
> }

I do see an ICE here, due to SRA exposing a new variable in the nested
function that hadn't been seen previously, and thus tree-nested.c wasn't
given a chance to mutate it properly.  Which *is* a bug.

But this still isn't related to calling gimplify_type_sizes twice.


r~


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