This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gfortran patch for PR28974 Slow compilation of data statements.
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Bud Davis <bdavis9659 at sbcglobal dot net>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 14 Nov 2006 12:22:57 -0800
- Subject: Re: gfortran patch for PR28974 Slow compilation of data statements.
- References: <20061106040648.89612.qmail@web81214.mail.mud.yahoo.com>
On Sun, Nov 05, 2006 at 08:06:48PM -0800, Bud Davis wrote:
>
> 2006-11-06 Bud Davis <bdavis9659@sbcglobal.net>
>
> PR fortran/28974
> * gfortran.h (gfc_expr): Add element which holds a splay-tree
> for the exclusive purpose of quick access to a constructor by
> offset.
> * data.c (find_con_by_offset): Use the splay tree for the search.
> (gfc_assign_data_value): Use the splay tree.
> (gfc_assign_data_value_range): ditto.
> *expr.c (gfc_get_expr): Initialize new element to null.
> (gfc_free_expr): Delet splay tree when deleting gfc_expr.
The patch is OK after the comments are fixed. Use proper
punctuation and two spaces before the closing */
--
steve