This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [rfc] coalesce stack slots
- From: "Giovanni Bajo" <rasky at develer dot com>
- To: "Nathan Myers" <ncm at cantrip dot org>,<gcc-patches at gcc dot gnu dot org>
- Cc: <rth at redhat dot com>,<nathan at codesourcery dot com>
- Date: Tue, 7 Sep 2004 19:52:28 +0200
- Subject: Re: [rfc] coalesce stack slots
- References: <1094577729.29347.863.camel@ipc>
Nathan Myers wrote:
> Richard Henderson wrote:
>> That and Nathan [Sidwell]'s VEC's appear to only be able to
>> "add N to the current size" rather than "set total size to N".
>> At which point I quit looking.
>
> If you can explain it, posterity might benefit.
Since we are at it, I still don't understand where the patch needs "set
total size to N". There is a function (add_stack_var) which adds an element
to the array and resizes it when needed. This semantic is provided by
VEC_safe_push, which internally reallocates the size of the vector if
needed.
Giovanni Bajo