This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 0/5] obstacks again
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Alan Modra <amodra at gmail dot com>
- Cc: "Gary V. Vaughan" <gary at gnu dot org>, Eric Blake <eblake at redhat dot com>, Paul Eggert <eggert at cs dot ucla dot edu>, libc-alpha at sourceware dot org, bug-gnulib at gnu dot org
- Date: Sat, 06 Dec 2014 10:48:07 +0100
- Subject: Re: [PATCH 0/5] obstacks again
- Authentication-results: sourceware.org; auth=none
- References: <20141029033201 dot GI4267 at bubble dot grove dot modra dot org> <5450983F dot 3030608 at cs dot ucla dot edu> <20141029220223 dot GP4267 at bubble dot grove dot modra dot org> <5451B1F6 dot 7060305 at cs dot ucla dot edu> <548203C3 dot 6040601 at redhat dot com> <6D396292-DE8A-4632-9EBA-AE7C58E0BC41 at gnu dot org> <20141206014944 dot GF20383 at bubble dot grove dot modra dot org>
Alan Modra <amodra@gmail.com> writes:
> The alternative is to do as Paul suggested and make obstack_blank
> accept a negative length argument, but that would
> - kill >2G obstacks on 32-bit targets,
> - lose the nice symmetry with other obstack functions,
> and obstack_blank_fast is the right interface to use for shrinking.
It would reintroduce the nice symmetry that the *_fast functions are
just optimisations of the non-fast functions (if you know that the
obstack has enough space), without surprising behaviour change.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."