This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fix for strct-pack-1.c regressions
- From: Richard Henderson <rth at redhat dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: aldyh at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 12 Mar 2002 21:56:18 -0800
- Subject: Re: fix for strct-pack-1.c regressions
- References: <10203130349.AA26428@vlsi1.ultra.nyu.edu>
On Tue, Mar 12, 2002 at 10:49:52PM -0500, Richard Kenner wrote:
> This looks wrong to me. Shouldn't the alias set be that of the record
> type, not set 0?
No. We may access memory outside the structure entirely.
Agreed that a more comprehensive solution is to examine exactly
the kinds of memory references we're going to produce and determine
whether or not they fall outside the field and/or structure. Such
changes are not appropriate for 3.1; I suggested to Aldy that he
might want to look into this for mainline, but he's under a bit o
deadline pressure at the moment.
> Indeed, thinking about it more, why is the alias set being changed from
> that of the type?
Please examine the test case.
r~