gfortran patch for PR28974 Slow compilation of data statements.

Steve Kargl sgk@troutmask.apl.washington.edu
Tue Nov 14 20:30:00 GMT 2006


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



More information about the Gcc-patches mailing list