This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] turn quick_stack into a VEC
- From: Andrew Haley <aph at redhat dot com>
- To: Nathan Froyd <froydnj at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Mon, 24 May 2010 09:40:31 +0100
- Subject: Re: [PATCH] turn quick_stack into a VEC
- References: <20100524030907.GA5834@codesourcery.com>
On 05/24/2010 04:09 AM, Nathan Froyd wrote:
> The patch below converts java/expr.c:quick_stack into a VEC instead of a
> TREE_LIST. We get to use the intuitive push and pop methods and
> flush_quick_stack becomes somewhat more straightforward.
>
> Tested on x86_64-unknown-linux-gnu. OK to commit?
>
> -Nathan
>
> * expr.c (quick_stack): Change type to a VEC. Update comment.
> (tree_list_free_list): Delete.
> (flush_quick_stack): Update for quick_stack type change.
> (push_value): Likewise.
> (pop_value): Likewise.
Gosh, that's quite some improvement. Thanks.
Andrew.