1 2017-01-19 Andre Vehreschild <vehre@gcc.gnu.org>
4 * trans-decl.c (gfc_build_qualified_array): Add static decl to parent
5 function only, when the decl-context is not the translation unit.
7 2017-01-18 Louis Krupp <louis.krupp@zoho.com>
11 * trans-expr.c (gfc_conv_variable): Don't treat temporary variables
12 as function arguments.
13 * trans-stmt.c (forall_make_variable_temp,
14 generate_loop_for_temp_to_lhs, gfc_trans_assign_need_temp,
15 gfc_trans_forall_1): Don't adjust offset of forall temporary
16 for array sections, make forall temporaries work for substring
17 expressions, improve test coverage by adding -ftest-forall-temp
18 option to request usage of temporary array in forall code.
19 * lang.opt: Add -ftest-forall-temp option.
20 * invoke.texi: Add -ftest-forall-temp option.
22 2017-01-18 Andre Vehreschild <vehre@gcc.gnu.org>
24 * primary.c (caf_variable_attr): Improve figuring whether the current
25 component is the last one refed.
26 * trans-stmt.c (gfc_trans_allocate): Do not generate sync_all calls
27 when allocating pointer or allocatable components.
29 2017-01-18 Andre Vehreschild <vehre@gcc.gnu.org>
31 * gfortran.texi: Add missing parameters to caf-API functions. Correct
32 typos and clarify some descriptions.
34 2017-01-18 Andre Vehreschild <vehre@gcc.gnu.org>
37 Missed some cases, here they are:
38 * trans-decl.c (gfc_build_qualified_array): Add static tokens to the
39 parent function's scope.
40 * trans-expr.c (gfc_get_tree_for_caf_expr): Shorten code. Remove
43 2017-01-13 Andre Vehreschild <vehre@gcc.gnu.org>
46 * resolve.c (resolve_lock_unlock_event): Resolve the expression for
49 2017-01-13 Andre Vehreschild <vehre@gcc.gnu.org>
52 * trans-expr.c (gfc_get_tree_for_caf_expr): Ensure the backend_decl
53 is valid before accessing it.
55 2017-01-09 Jakub Jelinek <jakub@redhat.com>
59 * decl.c (attr_decl1): Fix spelling in translatable string.
60 * intrinsic.texi: Fix spelling - invokation -> invocation.
61 * lang.opt (faggressive-function-elimination, gfc_convert): Fix
62 typos in descriptions.
63 * openmp.c (resolve_omp_clauses): Add missing whitespace to
66 2017-01-08 Martin Sebor <msebor@redhat.com>
68 PR tree-optimization/78913
70 * trans-common.c (build_equiv_decl): Increase buffer size to avoid
71 truncation for any argument.
72 * trans-types.c (gfc_build_logical_type): Same.
74 2017-01-07 Andre Vehreschild <vehre@gcc.gnu.org>
78 * expr.c (gfc_check_pointer_assign): Return the same error message for
79 rewritten coarray pointer assignments like for plain ones.
80 * gfortran.h: Change prototype.
81 * primary.c (caf_variable_attr): Set attributes used ones only only
82 ones. Add setting of pointer_comp attribute.
83 (gfc_caf_attr): Add setting of pointer_comp attribute.
84 * trans-array.c (gfc_array_allocate): Add flag that the component to
85 allocate is not an ultimate coarray component. Add allocation of
87 (structure_alloc_comps): Extend nullify to treat pointer components in
88 coarrays correctly. Restructure nullify to remove redundant code.
89 (gfc_nullify_alloc_comp): Allow setting caf_mode flags.
90 * trans-array.h: Change prototype of gfc_nullify_alloc_comp ().
91 * trans-decl.c (generate_coarray_sym_init): Call nullify_alloc_comp for
92 derived type coarrays with pointer components.
93 * trans-expr.c (gfc_trans_structure_assign): Also treat pointer
95 (trans_caf_token_assign): Handle assignment of token of scalar pointer
97 (gfc_trans_pointer_assignment): Call above routine.
98 * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Add treating pointer
100 (gfc_conv_intrinsic_caf_get): Likewise.
101 (conv_caf_send): Likewise.
102 * trans-stmt.c (gfc_trans_allocate): After allocating a derived type in
103 a coarray pre-register the tokens.
104 (gfc_trans_deallocate): Simply determining the coarray type (scalar or
105 array) and deregistering it correctly.
106 * trans-types.c (gfc_typenode_for_spec): Replace in_coarray flag by the
107 actual codim to allow lookup of array types in the cache.
108 (gfc_build_array_type): Likewise.
109 (gfc_get_array_descriptor_base): Likewise.
110 (gfc_get_array_type_bounds): Likewise.
111 (gfc_get_derived_type): Likewise.
112 * trans-types.h: Likewise.
113 * trans.c (gfc_deallocate_with_status): Enable deregistering of all kind
114 of coarray components.
115 (gfc_deallocate_scalar_with_status): Use free() in fcoarray_single mode
116 instead of caf_deregister.
118 2017-01-06 Jakub Jelinek <jakub@redhat.com>
120 * simplify.c (simplify_transformation_to_array): Use
121 GCC_DIAGNOSTIC_PUSH_IGNORED and GCC_DIAGNOSTIC_POP instead of
122 #pragma GCC diagnostic {push,ignored,pop}.
124 2017-01-06 Alexandre Oliva <aoliva@redhat.com>
126 * simplify.c (simplify_transformation_to_array): Silence
127 array bounds warning. Fix whitespace.
129 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
131 * module.c (load_omp_udrs): Initialize name.
133 2017-01-02 Janne Blomqvist <jb@gcc.gnu.org>
136 * trans-expr.c (gfc_trans_string_copy): Rework string copy
137 algorithm to avoid -Wstringop-overflow warning.
139 2017-01-01 Jakub Jelinek <jakub@redhat.com>
141 Update copyright years.
143 * gfortranspec.c (lang_specific_driver): Update copyright notice
145 * gfc-internals.texi: Bump @copying's copyright year.
146 * gfortran.texi: Ditto.
147 * intrinsic.texi: Ditto.
148 * invoke.texi: Ditto.
150 Copyright (C) 2017 Free Software Foundation, Inc.
152 Copying and distribution of this file, with or without modification,
153 are permitted in any medium without royalty provided the copyright
154 notice and this notice are preserved.