This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fix for strct-pack-1.c regressions


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]