This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] for PR 18040
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: zack at codesourcery dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 17 Oct 04 22:42:07 EDT
- Subject: Re: [patch] for PR 18040
Also, I just now thought of an alternative: whenever you have a chain
of *_REF expressions which requires a type conversion somewhere along
the way, construct a modified version of the *outermost* type which
will give the field in question the effective type that it needs.
That construction operation is linear in the number of fields in the
record. If you have a program that access each field, doing that
construction produces quadratic behavior (we have such a program in
the testsuite for simple field accesses).