This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] eliminate calls to build_constructor_from_list in Fortran FE
- From: Tobias Burnus <burnus at net-b dot de>
- To: Nathan Froyd <froydnj at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Mon, 17 May 2010 10:40:10 +0200
- Subject: Re: [PATCH] eliminate calls to build_constructor_from_list in Fortran FE
- References: <20100516014208.GI5834@codesourcery.com>
On 05/16/2010 03:42 AM, Nathan Froyd wrote:
> The patch below eliminates calls to build_constructor_from_list from the
> Fortran FE. The benefit is less consing during compilation and one less
> obstacle to getting rid of TREE_LIST.
>
> Tested on x86_64-unknown-linux-gnu. OK?
>
OK.
Tobias
> * trans-array.c (gfc_trans_array_constructor_value): Use
> build_constructor instead of build_constructor_from_list.
> (gfc_build_constant_array_constructor): Likewise.
> * trans-decl.c (create_main_function): Likewise.
> * trans-stmt.c (gfc_trans_character_select): Likewise.