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: [rfc] coalesce stack slots


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


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