This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [rfc] coalesce stack slots
- From: Richard Henderson <rth at redhat dot com>
- To: Nathan Myers <ncm at cantrip dot org>
- Cc: gcc-patches at gcc dot gnu dot org, rasky at develer dot com, dberlin dot dberlin dot org at itasoftware dot com, nathan at codesourcery dot com
- Date: Tue, 7 Sep 2004 12:46:09 -0700
- Subject: Re: [rfc] coalesce stack slots
- References: <1094577729.29347.863.camel@ipc>
On Tue, Sep 07, 2004 at 01:22:09PM -0400, Nathan Myers wrote:
> I "won", but I still find it hard to articulate precisely why it
> was right. If you can explain it, posterity might benefit.
Because if I'd wanted a stack, I'd have used an abstract
data structure named "stack", not one named "vector".
Or at least that's me.
Dunno about libstdc++, but vec.h isn't a replacement for an
array. The *primary* thing that's missing is that there's
no way to set vec->num to an arbitrary value. I.e. the
equivalent of malloc(nelt * size).
r~