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 18:40:00 -0800
- Subject: Re: gimplify_parameters
- References: <10412210225.AA26544@vlsi1.ultra.nyu.edu>
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~