This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix PR2758
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Subject: Re: PATCH: Fix PR2758
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Wed, 13 Jun 2001 03:22:37 -0800
- cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
> 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.