This is the mail archive of the gcc-bugs@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]

[Bug fortran/28974] Extremely slow compilation of enumerated DATA statements.



------- Comment #6 from bdavis at gcc dot gnu dot org  2006-11-15 05:10 -------
Subject: Bug 28974

Author: bdavis
Date: Wed Nov 15 05:10:22 2006
New Revision: 118844

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118844
Log:
2006-11-15  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): Delete splay tree when deleting gfc_expr.



Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/data.c
    trunk/gcc/fortran/expr.c
    trunk/gcc/fortran/gfortran.h


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28974


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