re PR fortran/13465 (Data statement for large arrays compiles verrrry slllowwwly...
authorRichard Henderson <rth@redhat.com>
Mon, 23 Aug 2004 21:53:14 +0000 (14:53 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 23 Aug 2004 21:53:14 +0000 (14:53 -0700)
commitb85024359a4c487de04d6de688036eff93addfa2
tree2b929849a4b3cd5fcb35dec69633cf9d3c308c77
parent9a870e6c4c561ad318a320c2bcc9618c7f600865
re PR fortran/13465 (Data statement for large arrays compiles verrrry slllowwwly and shows quadratic behaviour.)

        PR 13465
        * data.c (find_con_by_offset): Search ordered list; handle
        elements with repeat counts.
        (gfc_assign_data_value_range): New.
        * gfortran.h (struct gfc_data_value): Make repeat unsigned.
        (gfc_assign_data_value_range): Declare.
        * match.c (top_val_list): Extract repeat count into a temporary.
        * resolve.c (values): Make left unsigned.
        (next_data_value): Don't decrement left.
        (check_data_variable): Use gfc_assign_data_value_range.

From-SVN: r86443
gcc/fortran/ChangeLog
gcc/fortran/data.c
gcc/fortran/gfortran.h
gcc/fortran/match.c
gcc/fortran/resolve.c