gimplify_parameters
Richard Henderson
rth@redhat.com
Tue Dec 21 02:40:00 GMT 2004
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~
More information about the Gcc
mailing list