This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gfortran patch for PR28974 Slow compilation of data statements.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]