This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28974] Extremely slow compilation of enumerated DATA statements.
- From: "bdavis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Nov 2006 05:10:32 -0000
- Subject: [Bug fortran/28974] Extremely slow compilation of enumerated DATA statements.
- References: <bug-28974-6552@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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