diff options
-rw-r--r-- | gcc/fortran/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/fortran/trans-decl.c | 4 |
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 215c321..a469ac9 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,5 +1,10 @@ 2011-07-18 Tobias Burnus <burnus@net-b.de> + * trans-decl.c (gfc_build_qualified_array): Make coarray's + token TYPE_QUAL_RESTRICT. + +2011-07-18 Tobias Burnus <burnus@net-b.de> + * resolve.c (resolve_transfer): Mention defined I/O in the diagnostic for alloc_comp/pointer_comp. @@ -1075,7 +1080,7 @@ * f95-lang.c (build_builtin_fntypes): Swap frexp parameter types. -2010-04-04 Thomas Koenig <tkoenig@gcc.gnu.org> +2011-04-04 Thomas Koenig <tkoenig@gcc.gnu.org> * frontend-passes: (optimize_lexical_comparison): New function. (optimize_expr): Call it. @@ -1211,7 +1216,7 @@ * trans-types.c (gfc_get_function_type): Don't use varargs if the procedure is known to have no arguments. -2010-03-21 Thomas Koenig <tkoenig@gcc.gnu.org> +2011-03-21 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/22572 * gfortran.h (gfc_option_t) : Add diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c index 96aefa3..65a8efa 100644 --- a/gcc/fortran/trans-decl.c +++ b/gcc/fortran/trans-decl.c @@ -759,7 +759,9 @@ gfc_build_qualified_array (tree decl, gfc_symbol * sym) { tree token; - token = gfc_create_var_np (pvoid_type_node, "caf_token"); + token = gfc_create_var_np (build_qualified_type (pvoid_type_node, + TYPE_QUAL_RESTRICT), + "caf_token"); GFC_TYPE_ARRAY_CAF_TOKEN (type) = token; DECL_ARTIFICIAL (token) = 1; TREE_STATIC (token) = 1; |