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]

Re: PATCH: Fix PR2758


> The problem, though, is that the address computations for them would
> not get properly optimized, depending on when they get instantiated into
> real stack slots.

I don't think there's nothing mutually exclusive about the two ideas.  You 
just optimize the address calculations later.

> This is very wrong.  Stack slots *do not* get reused for objects of
> different alias sets, or at least there is code to prevent that.

Yup, I wrote it.  But, here we have structures, and they are
in alias set zero, so the slots do get reused.

It is possible that the check could be made less conservative,
by checking to see that the containing stucture is in alias
set zero.

As you say, let's not go there on the branch.  If you can
tighten the check on the mainline, that's fine.


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