-
- Downloads
Fortran: implement vector sections in DATA statements [PR49588]
gcc/fortran/ChangeLog: PR fortran/49588 * data.cc (gfc_advance_section): Derive next index set and next offset into DATA variable also for array references using vector sections. Use auxiliary array to keep track of offsets into indexing vectors. (gfc_get_section_index): Set up initial indices also for DATA variables with array references using vector sections. * data.h (gfc_get_section_index): Adjust prototype. (gfc_advance_section): Likewise. * resolve.cc (check_data_variable): Pass vector offsets. gcc/testsuite/ChangeLog: PR fortran/49588 * gfortran.dg/data_vector_section.f90: New test.
Showing
- gcc/fortran/data.cc 103 additions, 58 deletionsgcc/fortran/data.cc
- gcc/fortran/data.h 2 additions, 2 deletionsgcc/fortran/data.h
- gcc/fortran/resolve.cc 3 additions, 2 deletionsgcc/fortran/resolve.cc
- gcc/testsuite/gfortran.dg/data_vector_section.f90 26 additions, 0 deletionsgcc/testsuite/gfortran.dg/data_vector_section.f90
Loading
Please register or sign in to comment