-
- Downloads
trans.c (gfc_allocate_with_status): Split into two functions...
trans.c (gfc_allocate_with_status): Split into two functions gfc_allocate_using_malloc and gfc_allocate_usig_lib. 2011-07-21 Daniel Carrera <dcarrera@gmail.com> * trans.c (gfc_allocate_with_status): Split into two functions gfc_allocate_using_malloc and gfc_allocate_usig_lib. (gfc_allocate_using_malloc): The status parameter is now the actual status rather than a pointer. Code cleanup. (gfc_allocate_using_lib): Ditto. Add new parametrs errmsg and errlen. Pass these to the coarray lib. * trans-openmp.c (gfc_omp_clause_default_ctor): Update calls to gfc_allocate_allocatable. (gfc_omp_clause_copy_ctor): Ditto. (gfc_trans_omp_array_reduction): Ditto. * trans-stmt.c (gfc_trans_allocate): Ditto. Update call to gfc_allocate_using_malloc. Pass stat rather than pstat to the allocate fuctions. If using coarray lib, pass errmsg and errlen to the allocate functions. Move error checking outside the if (!gfc_array_allocate) block so that it also affects trees produced by gfc_array_allocate. * trans-array.c (gfc_array_allocate): Add new parameters errmsg and errlen. Replace parameter pstat by status. Code cleanup. Update calls to gfc_allocate_allocatable and gfc_allocate_using_malloc. * trans-array.h (gfc_array_allocate): Update signature of gfc_array_allocate. From-SVN: r176606
Showing
- gcc/fortran/ChangeLog 23 additions, 0 deletionsgcc/fortran/ChangeLog
- gcc/fortran/trans-array.c 14 additions, 19 deletionsgcc/fortran/trans-array.c
- gcc/fortran/trans-array.h 1 addition, 1 deletiongcc/fortran/trans-array.h
- gcc/fortran/trans-openmp.c 9 additions, 9 deletionsgcc/fortran/trans-openmp.c
- gcc/fortran/trans-stmt.c 71 additions, 33 deletionsgcc/fortran/trans-stmt.c
- gcc/fortran/trans.c 102 additions, 86 deletionsgcc/fortran/trans.c
- gcc/fortran/trans.h 4 additions, 3 deletionsgcc/fortran/trans.h
Loading
Please register or sign in to comment