diff options
author | Tobias Burnus <burnus@net-b.de> | 2011-05-31 20:25:51 +0200 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2011-05-31 20:25:51 +0200 |
commit | 9f3761c527c003969c4f18497876c4d18b5f2305 (patch) | |
tree | 59427254682f41e38c3837a5da77e001222c18ee /gcc/fortran/trans-array.h | |
parent | 4ed2ca85c2b04527c59ec3e4bc7d88770c60dee2 (diff) | |
download | gcc-9f3761c527c003969c4f18497876c4d18b5f2305.zip gcc-9f3761c527c003969c4f18497876c4d18b5f2305.tar.gz gcc-9f3761c527c003969c4f18497876c4d18b5f2305.tar.bz2 |
re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays])
2011-05-31 Tobias Burnus <burnus@net-b.de>
PR fortran/18918
* resolve.c (resolve_fl_variable): Handle static coarrays
with non-constant cobounds.
(resolve_symbol): Handle SAVE statement without arguments
for coarrays.
* trans-array.c (gfc_trans_array_cobounds): New function.
(gfc_trans_array_bounds): Place code by call to it.
* trans-array.h (gfc_trans_array_cobounds): New prototype.
* trans-decl.c (gfc_get_symbol_decl, gfc_trans_deferred_vars):
Handle static coarrays with nonconstant cobounds.
2011-05-31 Tobias Burnus <burnus@net-b.de>
PR fortran/18918
* gfortran.dg/coarray/save_1.f90: New.
* gfortran.dg/coarray_4.f90: Update dg-error.
From-SVN: r174503
Diffstat (limited to 'gcc/fortran/trans-array.h')
-rw-r--r-- | gcc/fortran/trans-array.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/fortran/trans-array.h b/gcc/fortran/trans-array.h index fef56ae..f29162e 100644 --- a/gcc/fortran/trans-array.h +++ b/gcc/fortran/trans-array.h @@ -132,6 +132,9 @@ tree gfc_conv_array_stride (tree, int); tree gfc_conv_array_lbound (tree, int); tree gfc_conv_array_ubound (tree, int); +/* Set cobounds of an array. */ +void gfc_trans_array_cobounds (tree, stmtblock_t *, const gfc_symbol *); + /* Build expressions for accessing components of an array descriptor. */ tree gfc_conv_descriptor_data_get (tree); tree gfc_conv_descriptor_data_addr (tree); |