RFA: alignment computed by get_inner_reference

Jason Merrill jason@redhat.com
Sun Aug 27 18:25:00 GMT 2000


>>>>> Richard Kenner <kenner@vlsi1.ultra.nyu.edu> writes:

 >     I have no idea.  The test case looks like this:
 >       typedef struct _foo foo;
 >       extern foo bar;
 >       struct _foo { int a; };
 >       void baz (void) { bar.a = 0; }

 > I remember seeing a discussion of this before, but no solution.

 > The problem is that all the layout attibutes of "bar" (mode,
 > alignment, size, etc) get initialized to that of the incomplete type.
 > When the type is completed, they don't get updated.

 > I'm not sure how this is supposed to work.  Does anybody?  I think this
 > is a C front-end problem, not a problem in RTL generation.

finish_struct should handle this; search for n_incomplete.

Jason


More information about the Gcc-patches mailing list