1 2017-09-25 Thomas Koenig <tkoenig@gcc.gnu.org>
3 * lang.opt: Add -Wdo-subscript.
4 * frontend-passes.c (do_t): New type.
5 (doloop_list): Use variable of do_type.
6 (if_level): Variable to track if levels.
7 (select_level): Variable to track select levels.
8 (gfc_run_passes): Initialize i_level and select_level.
9 (doloop_code): Record current level of if + select
10 level in doloop_list. Add seen_goto if there could
11 be a branch outside the loop. Use different type for
13 (doloop_function): Call do_intent and do_subscript; move
14 functionality of checking INTENT to do_intent.
15 (insert_index_t): New type, for callback_insert_index.
16 (callback_insert_index): New function.
17 (insert_index): New function.
18 (do_subscript): New function.
19 (do_intent): New function.
20 (gfc_code_walker): Keep track of if_level and select_level.
21 * invoke.texi: Document -Wdo-subscript.
23 2017-09-25 Janne Blomqvist <jb@gcc.gnu.org>
25 * trans.c (gfc_unlikely): Remove unnecessary fold_convert.
26 (gfc_likely): Likewise.
28 2017-09-24 Thomas Koenig <tkoenig@gcc.gnu.org>
29 Steven G. Kargl <kargl@gcc.gnu.org>
32 * expr.c (gfc_get_full_arrayspec_from_expr): If there is
33 no symtree, set array spec to NULL.
35 2017-09-23 Janus Weil <janus@gcc.gnu.org>
38 * lang.opt: Add the options -fdefault-real-10 and -fdefault-real-16.
39 Rename flag_default_real to flag_default_real_8.
40 * invoke.texi: Add documentation.
41 * module.c (use_iso_fortran_env_module): flag_default_real is renamed.
42 * trans-types.c (gfc_init_kinds): Implement the flags
43 -fdefault-real-10 and -fdefault-real-16. Make -fdefault-double-8 work
44 without -fdefault-real-8.
46 2017-09-21 Paul Thomas <pault@gcc.gnu.org>
49 * match.c (gfc_match_associate): Before failing the association
50 try again, allowing a proc pointer selector.
55 * primary.c (gfc_match_varspec): Introduce 'tgt_expr', which
56 points to the associate selector, if any. Go through selector
57 references, after resolution for variables, to catch any full
58 or section array references. If a class associate name does
59 not have the same declared type as the selector, resolve the
60 selector and copy the declared type to the associate name.
61 Before throwing a no implicit type error, resolve all allowed
62 selector expressions, and copy the resulting typespec.
65 * resolve.c (resolve_assoc_var): Selector must cannot be the
66 NULL expression and it must have a type.
69 * resolve.c (resolve_symbol): Allow associate names to be
72 2017-09-21 Cesar Philippidis <cesar@codesourcery.com>
74 * openmp.c (gfc_match_oacc_wait): Don't restrict wait directive
75 arguments to constant integers.
77 2017-09-17 Paul Thomas <pault@gcc.gnu.org>
80 * decl.c (gfc_get_pdt_instance): Use the component initializer
81 expression for the default, rather than the parameter value.
82 * resolve.c (resolve_pdt): New function.
83 (resolve_symbol): Call it. Remove false error, prohibiting
84 deferred type parameters for dummy arguments.
87 * primary.c (gfc_match_varspec): If the type of an associate
88 name is unknown and yet there is a match, try resolving the
89 target expression and using its type.
91 2017-09-15 Paul Thomas <pault@gcc.gnu.org>
94 trans-decl.c (gfc_trans_deferred_vars): Do not null the 'span'
95 field if the symbol is either implicitly or explicitly saved.
97 2017-09-13 Paul Thomas <pault@gcc.gnu.org>
100 * decl.c (match_char_kind): If the kind expression is
101 parameterized, save it in saved_kind_expr and set kind = 0.
102 (gfc_get_pdt_instance): Resolve and simplify before emitting
103 error on expression kind. Insert a missing simplification after
104 insertion of kind expressions.
106 2017-09-12 Paul Thomas <pault@gcc.gnu.org>
110 * decl.c (variable_decl): Check pdt template components for
111 appearance of KIND/LEN components in the type parameter name
112 list, that components corresponding to type parameters have
113 either KIND or LEN attributes and that KIND or LEN components
114 are scalar. Copy the initializer to the parameter value.
115 (gfc_get_pdt_instance): Add a label 'error_return' and follow
116 it with repeated code, while replacing this code with a jump.
117 Check if a parameter appears as a component in the template.
118 Make sure that the parameter expressions are integer. Validate
120 (gfc_match_decl_type_spec): Search for pdt_types in the parent
121 namespace since they are instantiated in the template ns.
122 * expr.c (gfc_extract_int): Use a KIND parameter if it
123 appears as a component expression.
124 (gfc_check_init_expr): Allow expressions with the pdt_kind
126 *primary.c (gfc_match_actual_arglist): Make sure that the first
127 keyword argument is recognised when 'pdt' is set.
129 2017-09-10 Paul Thomas <pault@gcc.gnu.org>
137 * expr.c (is_subref_array): Add class pointer array dummies
138 to the list of expressions that return true.
139 * trans-array.c: Add SPAN_FIELD and update indices for
141 (gfc_conv_descriptor_span, gfc_conv_descriptor_span_get,
142 gfc_conv_descriptor_span_set, is_pointer_array,
143 get_array_span): New functions.
144 (gfc_get_descriptor_offsets_for_info): New function to preserve
145 API for access to descriptor fields for trans-types.c.
146 (gfc_conv_scalarized_array_ref): If the expression is a subref
147 array, make sure that info->descriptor is a descriptor type.
148 Otherwise, if info->descriptor is a pointer array, set 'decl'
149 and fix it if it is a component reference.
150 (build_array_ref): Simplify handling of class array refs by
151 passing the vptr to gfc_build_array_ref rather than generating
152 the pointer arithmetic in this function.
153 (gfc_conv_array_ref): As in gfc_conv_scalarized_array_ref, set
155 (gfc_array_allocate): Set the span field if this is a pointer
156 array. Use the expr3 element size if it is available, so that
157 the dynamic type element size is used.
158 (gfc_conv_expr_descriptor): Set the span field for pointer
160 * trans-array.h: Prototypes for gfc_conv_descriptor_span_get
161 gfc_conv_descriptor_span_set and
162 gfc_get_descriptor_offsets_for_info added.
163 trans-decl.c (gfc_get_symbol_decl): If a non-class pointer
164 array, mark the declaration as a GFC_DECL_PTR_ARRAY_P. Remove
165 the setting of GFC_DECL_SPAN.
166 (gfc_trans_deferred_vars): Set the span field to zero in thge
168 * trans-expr.c (gfc_conv_procedure_call): Do not use copy-in/
169 copy-out to pass subref expressions to a pointer dummy.
170 (gfc_trans_pointer_assignment): Remove code for setting of
171 GFC_DECL_SPAN. Set the 'span' field for non-class pointers to
172 class function results. Likewise for rank remap. In the case
173 that the target is not a whole array, use the target array ref
174 for remap and, since the 'start' indices are missing, set the
175 lbounds to one, as required by the standard.
176 * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Pick up the
177 'token' offset from the field decl in the descriptor.
178 (conv_isocbinding_subroutine): Set the 'span' field.
179 * trans-io.c (gfc_trans_transfer): Always scalarize pointer
181 * trans-stmt.c (trans_associate_var): Set the 'span' field.
182 * trans-types.c (gfc_get_array_descriptor_base): Add the 'span'
183 field to the array descriptor.
184 (gfc_get_derived_type): Pointer array components are marked as
185 GFC_DECL_PTR_ARRAY_P.
186 (gfc_get_array_descr_info): Replaced API breaking code for
187 descriptor offset calling gfc_get_descriptor_offsets_for_info.
188 * trans.c (get_array_span): New function.
189 (gfc_build_array_ref): Simplify by calling get_array_span and
190 obtain 'span' if 'decl' or 'vptr' present.
191 * trans.h : Rename DECL_LANG_FLAG_6, GFC_DECL_SUBREF_ARRAY_P,
192 as GFC_DECL_PTR_ARRAY_P.
194 2017-09-09 Paul Thomas <pault@gcc.gnu.org>
196 * decl.c : Add decl_type_param_list, type_param_spec_list as
197 static variables to hold PDT spec lists.
198 (build_sym): Copy 'type_param_spec_list' to symbol spec_list.
199 (build_struct): Copy the 'saved_kind_expr' to the component
200 'kind_expr'. Check that KIND or LEN components appear in the
201 decl_type_param_list. These should appear as symbols in the
202 f2k_derived namespace. If the component is itself a PDT type,
203 copy the decl_type_param_list to the component param_list.
204 (gfc_match_kind_spec): If the KIND expression is parameterized
205 set KIND to zero and store the expression in 'saved_kind_expr'.
206 (insert_parameter_exprs): New function.
207 (gfc_insert_kind_parameter_exprs): New function.
208 (gfc_insert_parameter_exprs): New function.
209 (gfc_get_pdt_instance): New function.
210 (gfc_match_decl_type_spec): Match the decl_type_spec_list if it
211 is present. If it is, call 'gfc_get_pdt_instance' to obtain the
212 specific instance of the PDT.
213 (match_attr_spec): Match KIND and LEN attributes. Check for the
214 standard and for type/kind of the parameter. They are also not
215 allowed outside a derived type definition.
216 (gfc_match_data_decl): Null the decl_type_param_list and the
217 type_param_spec_list on entry and free them on exit.
218 (gfc_match_formal_arglist): If 'typeparam' is true, add the
219 formal symbol to the f2k_derived namespace.
220 (gfc_match_derived_decl): Register the decl_type_param_list
221 if this is a PDT. If this is a type extension, gather up all
222 the type parameters and put them in the right order.
223 *dump-parse-tree.c (show_attr): Signal PDT templates and the
224 parameter attributes.
225 (show_components): Output parameter atrributes and component
227 (show_symbol): Show variable parameter lists.
228 * expr.c (expr.c): Copy the expression parameter list.
229 (gfc_is_constant_expr): Pass on symbols representing PDT
231 (gfc_check_init_expr): Break on PDT KIND parameters and
232 PDT parameter expressions.
233 (gfc_check_assign): Assigning to KIND or LEN components is an
235 (derived_parameter_expr): New function.
236 (gfc_derived_parameter_expr): New function.
237 (gfc_spec_list_type): New function.
238 * gfortran.h : Add enum gfc_param_spec_type. Add the PDT attrs
239 to the structure symbol_attr. Add the 'kind_expr' and
240 'param_list' field to the gfc_component structure. Comment on
241 the reuse of the gfc_actual_arglist structure as storage for
242 type parameter spec lists. Add the new field 'spec_type' to
243 this structure. Add 'param_list' fields to gfc_symbol and
244 gfc_expr. Add prototypes for gfc_insert_kind_parameter_exprs,
245 gfc_insert_parameter_exprs, gfc_add_kind, gfc_add_len,
246 gfc_derived_parameter_expr and gfc_spec_list_type.
247 * interface.c (gfc_compare_derived_types): Treat PDTs in the
248 same way as sequence types.
249 * match.c : Add variable 'type_param_spec_list'.
250 (gfc_op2string, gfc_match_member_sep, gfc_match_label): Remove
252 (match_derived_type_spec): Match PDTs and find specific
254 (gfc_match_type_spec): Remove more trailing whitespace.
255 (gfc_match_allocate): Assumed or deferred parameters cannot
256 appear here. Copy the type parameter spec list to the expr for
257 the allocatable entity. Free 'type_param_spec_list'.
258 (gfc_match_common, gfc_match_namelist, gfc_match_module): Still
259 more trailing whitespace to remove.
260 (gfc_match_type_is): Allow PDT typespecs.
261 * match.h : Modify prototypes for gfc_match_formal_arglist and
262 gfc_match_actual_arglist.
263 * module.c (ab_attribute, mstring attr_bits): PDT attributes
265 (mio_symbol_attribute): PDT attributes handled.
266 (mio_component): Deal with 'kind_expr' field.
267 (mio_full_f2k_derived): For PDT templates, transfer the formal
268 namespace symroot to the f2k_derived namespace.
269 *primary.c (match_keyword_arg, gfc_match_actual_arglist): Add
270 modifications to handle PDT spec lists. These are flagged in
271 both cases by new boolean arguments, whose prototype defaults
273 (gfc_match_structure_constructor, match_variable): Remove yet
274 more trailing whitespace.
275 * resolve.c (get_pdt_spec_expr, get_pdt_constructor): New
277 (resolve_structure_cons): If the constructor is a PDT template,
278 call get_pdt_constructor to build it using the parameter lists
279 and then get the specific instance of the PDT.
280 (resolve_component): PDT strings need a hidden string length
281 component like deferred characters.
282 (resolve_symbol): Dummy PDTs cannot have deferred parameters.
283 * symbol.c (gfc_add_kind, gfc_add_len): New functions.
284 (free_components): Free 'kind_expr' and 'param_list' fields.
285 (gfc_free_symbol): Free the 'param_list' field.
286 (gfc_find_sym_tree): If the current state is a PDT template,
287 look for the symtree in the f2k_derived namspaces.
288 trans-array.c (structure_alloc_comps): Allocate and deallocate
289 PDTs. Check dummy arguments for compliance of LEN parameters.
290 Add the new functions to the preceeding enum.
291 (gfc_allocate_pdt_comp, gfc_deallocate_pdt_comp and
292 gfc_check_pdt_dummy): New functions calling above.
293 * trans-array.h : Add prototypes for these functions.
294 trans-decl.c (gfc_get_symbol_decl): Call gfc_defer_symbol_init
295 as appropriate for PDT symbols.
296 (gfc_trans_deferred_vars): Allocate/deallocate PDT entities as
297 they come into and out of scope. Exclude pdt_types from being
299 (gfc_trans_subcomponent_assign): PDT array components must be
300 handles as if they are allocatable.
301 * trans-stmt.c (gfc_trans_allocate): Handle initialization of
303 (gfc_trans_deallocate): Likewise.
304 * trans-types.c (gfc_get_derived_type): PDT templates must not
305 arrive here. PDT string components are handles as if deferred.
306 Similarly, PDT arrays are treated as if allocatable. PDT
307 strings are pointer types.
308 * trans.c (gfc_deferred_strlen): Handle PDT strings in the same
309 way as deferred characters.
311 2017-09-01 Jakub Jelinek <jakub@redhat.com>
314 * parse.c (decode_omp_directive): Use matchs instead of matcho for
315 end ordered and ordered directives, except for ordered depend. For
316 -fopenmp-simd and ordered depend, reject the stmt.
317 * trans-openmp.c (gfc_trans_omp_ordered): For -fopenmp-simd ignore
318 threads clause and if simd clause isn't present, just translate the
321 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
322 Alan Hayward <alan.hayward@arm.com>
323 David Sherwood <david.sherwood@arm.com>
325 * trans-types.c (gfc_init_kinds): Use opt_scalar_int_mode for
328 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
329 Alan Hayward <alan.hayward@arm.com>
330 David Sherwood <david.sherwood@arm.com>
332 * target-memory.c (size_integer): Use SCALAR_INT_TYPE_MODE.
333 (size_logical): Likewise.
335 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
336 Alan Hayward <alan.hayward@arm.com>
337 David Sherwood <david.sherwood@arm.com>
339 * trans-types.c (gfc_type_for_mode): Use is_a <scalar_int_mode>.
341 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
342 Alan Hayward <alan.hayward@arm.com>
343 David Sherwood <david.sherwood@arm.com>
345 * trans-types.c (gfc_init_kinds): Use opt_scalar_float_mode
346 and FOR_EACH_MODE_IN_CLASS.
348 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
349 Alan Hayward <alan.hayward@arm.com>
350 David Sherwood <david.sherwood@arm.com>
352 * target-memory.c (size_float): Use SCALAR_FLOAT_TYPE_MODE
353 instead of TYPE_MODE.
355 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
356 Alan Hayward <alan.hayward@arm.com>
357 David Sherwood <david.sherwood@arm.com>
359 * trans-types.c (gfc_init_kinds): Use machine_mode instead of int
362 2017-08-28 Janus Weil <janus@gcc.gnu.org>
365 * expr.c (gfc_check_pointer_assign): Improve the check whether pointer
366 may outlive pointer target.
368 2017-08-27 Thomas Koenig <tkoenig@gcc.gnu.org>
371 * frontend-passes (inline_matumul_assign): Explicity
372 set typespec for call to CONJG.
374 2017-08-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
377 * trans-io.c (get_dtio_proc): Add check for format label and set
378 formatted flag accordingly. Reorganize the code a little.
380 2017-08-16 Thomas Koenig <tkoenig@gcc.gnu.org>
383 * frontend-passes.c (realloc_string_callback): If expression is a
384 concatenation, also check for dependency.
385 (constant_string_length): Check for presence of symtree.
387 2017-08-13 Thomas Koenig <tkoenig@gcc.gnu.org>
389 * gfortran.texi: Document format of unformatted sequential files.
391 2017-08-11 Thomas Koenig <tkoenig@gcc.gnu.org>
393 * invoke.texi: Actually commit change about -Ofast.
395 2017-08-11 Thomas Koenig <tkoenig@gcc.gnu.org>
398 * resolve.c (resolve_symbol): Adjust (and reformat)
399 comment. Perform check if a BIND(C) is declared
400 at module level regardless of whether it is typed
403 2017-08-10 Fritz Reese <fritzoreese@gmail.com>
405 * options.c (set_dec_flags): Only set legacy standards when value
408 2017-08-10 Fritz Reese <fritzoreese@gmail.com>
410 * options.c (set_dec_flags, gfc_post_options): Only set flag_d_lines
411 with -fdec when not set by user.
413 2017-08-10 Fritz Reese <fritzoreese@gmail.com>
415 * decl.c (attr_seen): New static variable.
416 * decl.c (variable_decl): Match %FILL in STRUCTURE body.
417 * gfortran.texi: Update documentation.
419 2017-08-08 Martin Liska <mliska@suse.cz>
421 * trans-types.c: Include header files.
423 2017-08-07 Thomas Koenig <tkoenig@gcc.gnu.org>
427 * options.c: Make -Ofast honor -fmax-stack-var-size.
428 * invoke.texi: Document change.
430 2017-08-01 Thomas König <tkoenig@gcc.gnu.org>
433 * intrisic.c (gfc_convert_type_warn): Only set typespec for
434 empty array constructors which don't have it already.
436 2017-08-01 Thomas Koenig <tkoenig@gcc.gnu.org>
439 * lang.opt (fc-prototypes): Add option.
440 * gfortran.h (gfc_typespec): Add interop_kind to struct.
441 (gfc_dump_c_prototypes): Add prototype.
442 * decl.c (gfc_match_kind_spec): Copy symbol used for kind to typespec.
443 * parse.c (gfc_parse_file): Call gfc_dump_prototypes.
444 * dump-parse-tree.c (gfc_dump_c_prototypes): New function.
445 (type_return): New enum.
446 (get_c_type_name): New function.
447 (write_decl): New function.
448 (write_type): New function.
449 (write_variable): New function.
450 (write_proc): New function.
451 (write_interop_decl): New function.
452 * invoke.texi: Document -fc-prototypes.
454 2017-08-01 Dominique d'Humieres <dominiq@lps.ens.fr>
457 * expr.c (gfc_check_init_expr): Use the renamed name.
459 2017-07-31 Jakub Jelinek <jakub@redhat.com>
461 * check.c (gfc_check_num_images): Fix a pasto.
463 2017-07-29 Jakub Jelinek <jakub@redhat.com>
465 * trans-decl.c (gfc_trans_use_stmts): Pass false as new argument to
466 the imported_module_or_decl debug hook.
468 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
470 * resolve.c (find_reachable_labels): Adjust.
472 2017-07-25 Jakub Jelinek <jakub@redhat.com>
474 * ioparm.def: Use 1U << 31 instead of 1 << 31 as flags2 mask.
476 2017-07-24 Thomas Koenig <tkoenig@gcc.gnu.org>
478 * dump-parse-tree.c (show_symbol): Show binding label if present.
480 2017-07-24 Thomas Koenig <tkoenig@gcc.gnu.org>
481 Mikael Morin <mikael@gcc.gnu.org>
484 * fortran/trans-array.c (gfc_conv_resolve_dependencies):
485 Break if dependency has been found.
487 2017-07-23 Alexander Monakov <amonakov@ispras.ru>
489 * interface.c (pair_cmp): Fix gfc_symbol comparison. Adjust comment.
491 2017-07-18 Nathan Sidwell <nathan@acm.org>
493 * trans.c (gfc_build_array_ref): Use TYPE_MAX_VALUE.
495 2017-07-09 Dominique d'Humieres <dominiq@lps.ens.fr>
498 * class.c (class_array_ref_detected): Remove a redundant
501 2017-07-06 Harald Anlauf <anlauf@gmx.de>
504 * array.c (gfc_ref_dimen_size): Handle bad subscript triplets.
506 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
509 * resolve.c (resolve_symbol): Fix typo.
511 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
514 * symbol.c (check_conflict): Add missing "conflicts".
516 2017-06-29 Cesar Philippidis <cesar@codesourcery.com>
519 * openmp.c (gfc_match_oacc_routine): Check if proc_name exist before
520 comparing the routine name against it.
522 2017-06-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
525 * trans-stmt.c (gfc_trans_call): If no code expr, use code->loc
526 as warning/error locus.
528 2017-06-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
531 * arith.c (wprecision_int_real): Set return value before
532 mpz_clear and then return after it.
534 2017-06-15 Janus Weil <janus@gcc.gnu.org>
537 * trans-expr.c (gfc_conv_procedure_call): Deallocate the result of
538 scalar allocatable procedure-pointer components.
540 2017-06-10 Thomas Koenig <tkoenig@gcc.gnu.org>
543 * frontend-passes.c (traverse_io_block): Also
544 check for variables occurring as indices multiple
545 time in a single implied DO loop.
547 2017-06-05 Janus Weil <janus@gcc.gnu.org>
550 * trans-expr.c (gfc_conv_procedure_call): Fix detection of allocatable
553 2017-06-05 Nicolas Koenig <koenigni@student.ethz.ch>
556 * frontend-passes.c (traverse_io_block): New function.
557 (simplify_io_impl_do): New function.
558 (optimize_namespace): Invoke gfc_code_walker with
561 2017-06-02 Jakub Jelinek <jakub@redhat.com>
564 * openmp.c (resolve_omp_clauses): Fix a typo.
566 2017-05-30 David Malcolm <dmalcolm@redhat.com>
568 * error.c (gfc_format_decoder): Update for new bool and
569 const char ** params.
571 2017-05-29 Thomas Koenig <tkoenig@gcc.gnu.org>
574 * frontend-passes.c (check_conjg_transpose_variable):
576 (has_dimen_vector_ref): Likewise
577 (matmul_temp_args): New function. Add prototype.
578 (optimize_namespace): Call matmul_temp_args.
580 2017-05-28 Thomas Koenig <tkoenig@gcc.gnu.org>
582 * frontend-passes.c (matmul_lhs_realloc): Correct
583 allocation size for case A1B2.
585 2017-05-25 Thomas Koenig <tkoenig@gcc.gnu.org>
587 * dump-parse-tree.c (show_expr): Also replace
588 with dumpfile for showing values for forgotten
591 2017-05-24 Thomas Koenig <tkoenig@gcc.gnu.org>
593 * dump-parse-tree.c (show_expr): Replace stdout
594 with dumpfile for showing values.
596 2017-05-24 Thomas Koenig <tkoenig@gcc.gnu.org>
599 * frontend-passes.c (matrix_case): Add A2TB2.
600 (inline_limit_check): Handle MATMUL(TRANSPOSE(A),B)
601 (inline_matmul_assign): Likewise.
603 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
605 * openmp.c (OACC_KERNELS_CLAUSES): Add "OMP_CLAUSE_NUM_GANGS",
606 "OMP_CLAUSE_NUM_WORKERS", "OMP_CLAUSE_VECTOR_LENGTH".
608 2017-05-22 Janus Weil <janus@gcc.gnu.org>
611 * resolve.c (resolve_fl_derived): Make sure that vtype symbols are
614 2017-05-19 Paul Thomas <pault@gcc.gnu.org>
617 * trans-io.c (nml_get_addr_expr): If we are dealing with class
618 type data set tmp tree to get that address.
619 (transfer_namelist_element): Set the array spec to point to the
622 2017-05-19 David Malcolm <dmalcolm@redhat.com>
625 * bbt.c (insert): Remove trailing exclamation mark from message.
626 * decl.c (gfc_match_final_decl): Likewise.
627 * dump-parse-tree.c (show_expr): Likewise.
628 * module.c (gfc_use_module): Likewise.
629 * primary.c (build_actual_constructor): Likewise.
630 (gfc_convert_to_structure_constructor): Likewise.
632 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
634 * gfortran.h (enum gfc_omp_default_sharing): Add
635 "OMP_DEFAULT_PRESENT".
636 * dump-parse-tree.c (show_omp_clauses): Handle it.
637 * openmp.c (gfc_match_omp_clauses): Likewise.
638 * trans-openmp.c (gfc_trans_omp_clauses): Likewise.
640 2017-05-18 Fritz Reese <fritzoreese@gmail.com>
643 * decl.c (match_attr_spec, gfc_match_automatic,
644 gfc_match_static, gfc_match_structure_decl): Unify diagnostic
645 errors regarding -fdec options.
646 * io.c (match_dec_etag, match_dec_vtag, match_dec_ftag): Ditto.
648 2017-05-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
651 * trans-io.c (transfer_namelist_element): Change check from
652 NULL_TREE to null_pointer_node.
654 2017-05-17 Fritz Reese <fritzoreese@gmail.com>
657 * expr.c (component_initializer): Don't generate initializers for
659 * invoke.texi (-finit-derived): Document.
661 2017-05-16 Paul Thomas <pault@gcc.gnu.org>
664 * decl.c (build_sym): In a submodule allow overriding of host
665 associated symbols from the ancestor module with a new
668 2017-05-15 Steven G. Kargl <kargl@gcc.gnu.org>
671 * trans-stmt.c (gfc_trans_integer_select): Remove redundant condition.
673 2017-05-15 Steven G. Kargl <kargl@gcc.gnu.org>
676 * expr.c (gfc_generate_initializer): If type conversion fails,
677 check for error and return NULL.
679 2017-05-14 Nicolas Koenig <koenigni@student.ethz.ch>
682 * array.c (gfc_ref_dimen_size): Simplify stride
684 * data.c (gfc_advance_section): Simplify start,
685 end and stride expressions
686 (gfc_advance_section): Simplify start and end
688 (gfc_get_section_index): Simplify start expression
690 2017-05-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
692 * io.c (gfc_resolve_dt): Fix returns to bool type.
694 2017-05-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
697 * io.c (dtio_procs_present): Add new function to check for DTIO
698 procedures relative to I/O statement READ or WRITE.
699 (gfc_resolve_dt): Add namelist checks using the new function.
700 * resolve.c (dtio_procs_present): Remove function and related
701 namelist checks. (resolve_fl_namelist): Add check specific to
702 Fortran 95 restriction on namelist objects.
704 2017-05-11 Nathan Sidwell <nathan@acm.org>
706 * trans-decl.c: Include dumpfile.h not tree-dump.h,
708 2017-05-09 Janus Weil <janus@gcc.gnu.org>
711 * resolve.c (gfc_resolve_finalizers): Ensure that derived-type
712 components have a their finalizers resolved, also if the superordinate
713 type itself has a finalizer.
715 2017-05-08 Thomas Koenig <tkoenig@gcc.gnu.org>
718 * frontend-passes.c (matmul_to_var_expr): New function,
720 (matmul_to_var_code): Likewise.
721 (optimize_namespace): Use them from gfc_code_walker.
723 2017-05-05 David Malcolm <dmalcolm@redhat.com>
725 * cpp.c (cb_cpp_error): Replace report_diagnostic
726 with diagnostic_report_diagnostic.
727 * error.c (gfc_warning): Likewise.
728 (gfc_warning_now_at): Likewise.
729 (gfc_warning_now): Likewise.
730 (gfc_warning_internal): Likewise.
731 (gfc_error_now): Likewise.
732 (gfc_fatal_error): Likewise.
733 (gfc_error_opt): Likewise.
734 (gfc_internal_error): Likewise.
736 2017-05-01 Thomas Koenig <tkoenig@gcc.gnu.org>
739 * frontend-passes.c (inline_matmul_assign): Also check bounds
740 for allocatable lhs and matrix-vector-multiplication.
742 2017-04-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
745 * io.c (format_lex): Check for '/' and set token to FMT_SLASH.
746 (check_format): Move FMT_DT checking code to data_desc section.
747 * module.c (gfc_match_use): Include the case of INTERFACE_DTIO.
749 2017-04-22 Janus Weil <janus@gcc.gnu.org>
752 * trans-types.c (gfc_conv_procedure_call): Deallocate the components
753 of allocatable intent(out) arguments.
755 2017-04-21 Janus Weil <janus@gcc.gnu.org>
758 * trans-types.c (gfc_get_derived_type): Prevent an infinite loop when
759 building a derived type that includes a procedure pointer component
760 with a polymorphic result.
762 2017-04-17 Paul Thomas <pault@gcc.gnu.org>
765 * module.c (find_symtree_for_symbol): Delete.
766 (read_module): Remove the call to the above.
768 2017-04-14 Janus Weil <janus@gcc.gnu.org>
771 * class.c (generate_finalization_wrapper): Give the finalization wrapper
772 the recursive attribute.
774 2017-04-10 Nicolas Koenig <koenigni@student.ethz.ch>
775 Paul Thomas <pault@gcc.gnu.org>
778 * module.c (gfc_match_submodule): Add error
779 if function is called in the wrong state.
781 2017-04-10 Janus Weil <janus@gcc.gnu.org>
784 * expr.c (gfc_check_pointer_assign): Check if procedure pointer
785 components in a pointer assignment need an explicit interface.
787 2017-03-18 Nicolas Koenig <koenigni@student.ethz.ch>
790 * symbol.c (gfc_delete_symtree): If there is a period in the name, ignore
791 everything before it.
793 2017-03-28 Janus Weil <janus@gcc.gnu.org>
796 * trans-io.c (transfer_namelist_element): Perform a polymorphic call
797 to a DTIO procedure if necessary.
799 2017-03-25 Paul Thomas <pault@gcc.gnu.org>
803 * decl.c (access_attr_decl): Remove the error for an absent
804 generic DTIO interface and ensure that symbol has the flavor
807 2017-03-22 Dominique d'Humieres <dominiq@lps.ens.fr>
810 * module.c: Remove trailing period.
812 2017-03-22 Dominique d'Humieres <dominiq@lps.ens.fr>
815 * decl.c: Replace '%s' with %qs.
817 * interface.c: Likewise.
819 * primary.c: Likewise.
820 * resolve.c: Likewise.
824 * io.c: Remove trailing spaces.
826 * openmp.c: Likewise.
827 * resolve.c: Likewise.
828 * trans-intrinsic.c: Likewise.
831 * expr.c: Remove a double spaces.
834 * primary.c: Remove spurious quotes around %qs.
836 2017-03-22 Thomas Koenig <tkoenig@gcc.gnu.org>
839 * frontend-passes.c (combine_array_constructor): Take
840 location of new expression from constructor expression instead
843 2017-03-20 Nicolas Koenig <koenigni@student.ethz.ch>
846 * symbol.c (check_conflict): Report an error if an EQUIVALENCE
849 2017-03-18 Nicolas Koenig <koenigni@student.ethz.ch>
852 * decl.c (add_hidden_procptr_result): Fixed Refs count of the
853 created "ppr@" symbol.
855 2017-03-18 Paul Thomas <pault@gcc.gnu.org>
858 * module.c (mio_symbol_attribute): Remove reset of the flag
859 'no_module_procedures'.
860 (check_for_module_procedures): New function. Move declaration
861 of 'no_module_procedures' to above it.
862 (gfc_dump_module): Traverse namespace calling new function.
864 2017-03-18 Paul Thomas <pault@gcc.gnu.org>
867 * symbol.c (check_conflict): A dummy procedure in a submodule,
868 module procedure is not an error.
869 (gfc_add_flavor): Ditto.
871 2017-03-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
874 * openmp.c (check_symbol_not_pointer): Adjust diagnostics.
876 2017-03-16 Jakub Jelinek <jakub@redhat.com>
879 * parse.c (gfc_ascii_statement): Use !$ACC for ST_OACC_ATOMIC
880 and ST_OACC_END_ATOMIC, instead of !ACC.
881 * trans-decl.c (finish_oacc_declare): Use !$ACC instead of $!ACC.
882 * openmp.c (gfc_match_oacc_declare, gfc_match_oacc_wait,
883 gfc_resolve_oacc_declare): Likewise.
886 * error.c (gfc_format_decoder): Rename plus argument to set_locus,
887 remove ATTRIBUTE_UNUSED from all arguments, call default_tree_printer
888 if not a Fortran specific spec.
889 * trans-io.c: Include options.h.
890 (gfc_build_st_parameter): Temporarily disable -Wpadded around layout
891 of artificial IO data structures.
893 2017-03-15 David Malcolm <dmalcolm@redhat.com>
896 * resolve.c (resolve_contained_fntype): Make error messages more
897 amenable to translation.
899 2017-03-06 Richard Biener <rguenther@suse.de>
902 * trans.c (gfc_add_modify_loc): Weaken assert.
904 2017-03-05 Andre Vehreschild <vehre@gcc.gnu.org>,
905 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
907 * check.c (positive_check): Add new function checking constant for
908 being greater then zero.
909 (gfc_check_image_status): Add checking of image_status arguments.
910 (gfc_check_failed_or_stopped_images): Same but for failed_- and
911 stopped_images function.
912 * dump-parse-tree.c (show_code_node): Added output of FAIL IMAGE.
913 * gfortran.h (enum gfc_statement): Added FAIL_IMAGE_ST.
914 (enum gfc_isym_id): Added new intrinsic symbols.
915 (enum gfc_exec_op): Added EXEC_FAIL_IMAGE.
916 * gfortran.texi: Added description for the new API functions. Updated
917 coverage of gfortran of TS18508.
918 * intrinsic.c (add_functions): Added symbols to resolve new intrinsic
920 * intrinsic.h: Added prototypes.
921 * iresolve.c (gfc_resolve_failed_images): Resolve the failed_images
923 (gfc_resolve_image_status): Same for image_status.
924 (gfc_resolve_stopped_images): Same for stopped_images.
925 * libgfortran.h: Added prototypes.
926 * match.c (gfc_match_if): Added matching of FAIL IMAGE statement.
927 (gfc_match_fail_image): Match a FAIL IMAGE statement.
928 * match.h: Added prototype.
929 * parse.c (decode_statement): Added matching for FAIL IMAGE.
930 (next_statement): Same.
931 (gfc_ascii_statement): Same.
933 * simplify.c (gfc_simplify_failed_or_stopped_images): For COARRAY=
934 single a constant result can be returne.d
935 (gfc_simplify_image_status): For COARRAY=single the result is constant.
936 * st.c (gfc_free_statement): Added FAIL_IMAGE handling.
937 * trans-decl.c (gfc_build_builtin_function_decls): Added decls of the
939 * trans-expr.c (gfc_conv_procedure_call): This is first time all
940 arguments of a function are optional, which is now handled here
942 * trans-intrinsic.c (conv_intrinsic_image_status): Translate
944 (gfc_conv_intrinsic_function): Add support for image_status.
945 (gfc_is_intrinsic_libcall): Add support for the remaining new
947 * trans-stmt.c (gfc_trans_fail_image): Trans a fail image.
948 * trans-stmt.h: Add the prototype for the above.
949 * trans.c (trans_code): Dispatch for fail_image.
950 * trans.h: Add the trees for the new intrinsics.
952 2017-03-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
955 * openmp.c (check_symbol_not_pointer): Adjust diagnostic.
957 2017-02-28 Paul Thomas <pault@gcc.gnu.org>
960 * resolve.c (resolve_fl_procedure): Deal with the case where
961 'submodule_name' is NULL so that gfc_error does not ICE.
962 Reformat the error message to make it more consistent.
964 2017-02-28 Jakub Jelinek <jakub@redhat.com>
966 * parse.c (parse_critical_block): Use cond ? G_("...") : G_("...")
967 instead of just cond ? "..." : "...".
968 * scanner.c (gfc_next_char_literal): Likewise.
969 * match.c (match_exit_cycle): Likewise.
971 2017-02-26 Thomas Koenig <tkoenig@gcc.gnu.org>
974 * options.c (gfc_post_options): Set default limit for matmul
976 * invoke.texi: Document change.
978 2017-02-25 Dominique d'Humieres <dominiq@lps.ens.fr>
981 * interface.c (check_dtio_arg_TKR_intent): Change 'intent'
984 2017-02-25 Dominique d'Humieres <dominiq@lps.ens.fr>
987 * interface.c (gfc_match_end_interface): Remove spurious comma
988 and space, replace 'got %s' with 'got %qs'.
990 2017-02-20 Paul Thomas <pault@gcc.gnu.org>
993 * interface.c (check_dtio_arg_TKR_intent): Supply 'must'
994 missing from error message.
996 2017-02-20 Paul Thomas <pault@gcc.gnu.org>
999 * interface.c (gfc_find_typebound_dtio_proc): Guard test for
1000 flavor attribute by checking that symbol is resolved.
1002 2017-02-16 Paul Thomas <pault@gcc.gnu.org>
1005 * decl.c (access_attr_decl): Test for presence of generic DTIO
1006 interface and emit error if not present.
1008 2017-02-20 Paul Thomas <pault@gcc.gnu.org>
1011 * parse.c (check_component, parse_union): Whitespace.
1012 (set_syms_host_assoc): For a derived type, check if the module
1013 in which it was declared is one of the submodule ancestors. If
1014 it is, make the components public. Otherwise, reset attribute
1015 'host_assoc' and set 'use-assoc' so that encapsulation is
1018 2017-02-19 Paul Thomas <pault@gcc.gnu.org>
1021 * decl.c (gfc_set_constant_character_len): Whitespace.
1022 (gfc_match_end): Catch case where a procedure is contained in
1023 a module procedure and ensure that 'end procedure' is the
1024 correct termination.
1026 2017-02-19 Paul Thomas <pault@gcc.gnu.org>
1029 * resolve.c (fixup_unique_dummy): New function.
1030 (gfc_resolve_expr): Call it for dummy variables with a unique
1033 2017-02-19 Andre Vehreschild <vehre@gcc.gnu.org>
1036 * trans-expr.c (gfc_trans_assignment_1): Deref indirect refs when
1037 compiling with -fcheck=mem to check the pointer and not the data.
1039 2017-02-19 Andre Vehreschild <vehre@gcc.gnu.org>
1042 * trans-array.c (duplicate_allocatable_coarray): Ensure attributes
1043 passed are properly initialized.
1044 (structure_alloc_comps): Same.
1045 * trans-expr.c (gfc_trans_structure_assign): Same.
1047 2017-02-13 Jakub Jelinek <jakub@redhat.com>
1049 * trans-expr.c (gfc_conv_substring): Add missing space in diagnostics.
1051 2017-02-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1054 * intrinsic.c (gfc_intrinsic_func_interface): Return an error
1055 for -std=f95 for disallowed transformational functions in
1056 initialization expressions.
1058 2017-02-09 Cesar Philippidis <cesar@codesourcery.com>
1059 Joseph Myers <joseph@codesourcery.com>
1061 * openmp.c (resolve_omp_clauses): Error on directives
1062 containing both tile and collapse clauses.
1063 (resolve_oacc_loop_blocks): Represent '*' tile arguments as zero.
1064 * trans-openmp.c (gfc_trans_omp_do): Lower tiled loops like
1067 2017-02-07 Steven G. Kargl <kargl@gcc.gnu.org>
1069 * trans-types.c (gfc_get_int_kind_from_width_isofortranen): Choose
1070 REAL type with the widest precision if two (or more) have the same
1073 2017-02-05 Andre Vehreschild <vehre@gcc.gnu.org>
1076 * trans-stmt.c (gfc_trans_allocate): Only deallocate the components of
1077 the temporary, when a new object was created for the temporary. Not
1078 when it is just an alias to an existing object.
1080 2017-02-05 Andre Vehreschild <vehre@gcc.gnu.org>
1083 * trans-decl.c (generate_coarray_sym_init): Retrieve the symbol's
1084 attributes before using them.
1086 2017-02-05 Andre Vehreschild <vehre@gcc.gnu.org>
1089 * trans-stmt.c (gfc_trans_allocate): Add the multiplying the _len
1090 component of unlimited polymorphic objects when source-allocating.
1092 2017-02-05 Andre Vehreschild <vehre@gcc.gnu.org>
1095 * trans-array.c (structure_alloc_comps): Ignore pointer components when
1098 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
1101 * f95-lang.c (gfc_create_decls): Include stringpool.h.
1102 Pass main_input_filename to build_translation_unit_decl.
1104 2017-01-23 Thomas Koenig <tkoenig@netcologne.de>
1106 * arith.c (arith_power): If simplifying integer power expression
1107 to zero, warn if -Winteger-division is given.
1109 2017-01-22 Jakub Jelinek <jakub@redhat.com>
1112 * parse.c (matchs, matcho, matchds, matchdo): Replace return st;
1113 with { ret = st; goto finish; }.
1114 (decode_omp_directive): Allow declare simd, declare target and
1115 simd directives in PURE/ELEMENTAL procedures. Only call
1116 gfc_unset_implicit_pure on successful match of other procedures.
1118 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
1120 * gfc-internals.texi (Symbol Versioning): Change references
1121 to www.akkadia.org to https.
1123 2017-01-21 Jakub Jelinek <jakub@redhat.com>
1125 * gfortran.h (gfc_extract_int): Change return type to bool. Add
1126 int argument with = 0.
1127 * decl.c (gfc_match_kind_spec): Adjust gfc_extract_int caller, pass
1128 1 as new last argument to it, don't emit gfc_error.
1129 (match_char_kind): Likewise.
1130 (gfc_match_decl_type_spec): Use gfc_get_string ("%s", x) instead of
1132 (gfc_match_derived_decl, match_binding_attributes): Likewise.
1133 (gfc_match_structure_decl): Don't sprintf back to name, call
1134 get_struct_decl directly with gfc_dt_upper_string (name) result.
1135 * trans-stmt.c (gfc_trans_allocate): Use gfc_get_string ("%s", x)
1136 instead of gfc_get_string (x).
1137 * module.c (gfc_dt_lower_string, gfc_dt_upper_string,
1138 gfc_match_use, gfc_match_submodule, find_true_name, mio_pool_string,
1139 mio_symtree_ref, mio_expr, mio_omp_udr_expr, load_generic_interfaces,
1140 load_omp_udrs, load_needed, read_module, dump_module,
1141 create_intrinsic_function, import_iso_c_binding_module,
1142 create_int_parameter, create_int_parameter_array, create_derived_type,
1143 use_iso_fortran_env_module): Likewise.
1144 * error.c (gfc_diagnostic_starter, gfc_diagnostic_start_span): Use
1145 pp_verbatim (context->printer, "%s", x) instead of
1146 pp_verbatim (context->printer, x).
1147 * match.c (gfc_match_small_int): Adjust gfc_extract_int caller, pass
1148 1 as new last argument to it, don't emit gfc_error.
1149 (gfc_match_small_int_expr): Likewise.
1150 * iresolve.c (gfc_get_string): Optimize format "%s" case.
1151 (resolve_bound): Use gfc_get_string ("%s", x) instead of
1153 (resolve_transformational): Formatting fix.
1154 (gfc_resolve_char_achar): Change name argument to bool is_achar,
1155 use a single format string and if is_achar add "a" before "char".
1156 (gfc_resolve_achar, gfc_resolve_char): Adjust callers.
1157 * expr.c (gfc_extract_int): Change return type to bool, return true
1158 if some error occurred. Add REPORT_ERROR argument, if non-zero
1159 call either gfc_error or gfc_error_now depending on its sign.
1160 * arith.c (arith_power): Adjust gfc_extract_int caller.
1161 * symbol.c (gfc_add_component): Use gfc_get_string ("%s", x) instead
1162 of gfc_get_string (x).
1163 (gfc_new_symtree, gfc_delete_symtree, gfc_get_uop, gfc_new_symbol,
1164 gfc_get_gsymbol, generate_isocbinding_symbol): Likewise.
1165 * openmp.c (gfc_match_omp_clauses): Adjust gfc_extract_int caller, pass
1166 -1 as new last argument to it, don't emit gfc_error_now.
1167 (gfc_match_omp_declare_reduction): Use gfc_get_string ("%s", x)
1168 instead of gfc_get_string (x).
1169 * check.c (kind_check): Adjust gfc_extract_int caller.
1170 * intrinsic.c (add_sym, find_sym, make_alias): Use
1171 gfc_get_string ("%s", x) instead of gfc_get_string (x).
1172 * simplify.c (get_kind, gfc_simplify_btest, gfc_simplify_maskr,
1173 gfc_simplify_maskl, gfc_simplify_poppar, gfc_simplify_repeat,
1174 gfc_simplify_selected_int_kind, gfc_simplify_selected_real_kind):
1175 Adjust gfc_extract_int callers.
1176 * trans-decl.c (gfc_find_module): Use gfc_get_string ("%s", x)
1177 instead of gfc_get_string (x).
1178 * matchexp.c (expression_syntax): Add const.
1179 * primary.c (match_kind_param, match_hollerith_constant,
1180 match_string_constant): Adjust gfc_extract_int callers.
1181 (match_keyword_arg): Use gfc_get_string ("%s", x) instead of
1183 * frontend-passes.c (optimize_minmaxloc): Likewise.
1185 2017-01-19 Andre Vehreschild <vehre@gcc.gnu.org>
1188 * trans-decl.c (gfc_build_qualified_array): Add static decl to parent
1189 function only, when the decl-context is not the translation unit.
1191 2017-01-18 Louis Krupp <louis.krupp@zoho.com>
1195 * trans-expr.c (gfc_conv_variable): Don't treat temporary variables
1196 as function arguments.
1197 * trans-stmt.c (forall_make_variable_temp,
1198 generate_loop_for_temp_to_lhs, gfc_trans_assign_need_temp,
1199 gfc_trans_forall_1): Don't adjust offset of forall temporary
1200 for array sections, make forall temporaries work for substring
1201 expressions, improve test coverage by adding -ftest-forall-temp
1202 option to request usage of temporary array in forall code.
1203 * lang.opt: Add -ftest-forall-temp option.
1204 * invoke.texi: Add -ftest-forall-temp option.
1206 2017-01-18 Andre Vehreschild <vehre@gcc.gnu.org>
1208 * primary.c (caf_variable_attr): Improve figuring whether the current
1209 component is the last one refed.
1210 * trans-stmt.c (gfc_trans_allocate): Do not generate sync_all calls
1211 when allocating pointer or allocatable components.
1213 2017-01-18 Andre Vehreschild <vehre@gcc.gnu.org>
1215 * gfortran.texi: Add missing parameters to caf-API functions. Correct
1216 typos and clarify some descriptions.
1218 2017-01-18 Andre Vehreschild <vehre@gcc.gnu.org>
1221 Missed some cases, here they are:
1222 * trans-decl.c (gfc_build_qualified_array): Add static tokens to the
1223 parent function's scope.
1224 * trans-expr.c (gfc_get_tree_for_caf_expr): Shorten code. Remove
1227 2017-01-13 Andre Vehreschild <vehre@gcc.gnu.org>
1230 * resolve.c (resolve_lock_unlock_event): Resolve the expression for
1231 event's until_count.
1233 2017-01-13 Andre Vehreschild <vehre@gcc.gnu.org>
1236 * trans-expr.c (gfc_get_tree_for_caf_expr): Ensure the backend_decl
1237 is valid before accessing it.
1239 2017-01-09 Jakub Jelinek <jakub@redhat.com>
1241 PR translation/79019
1242 PR translation/79020
1243 * decl.c (attr_decl1): Fix spelling in translatable string.
1244 * intrinsic.texi: Fix spelling - invokation -> invocation.
1245 * lang.opt (faggressive-function-elimination, gfc_convert): Fix
1246 typos in descriptions.
1247 * openmp.c (resolve_omp_clauses): Add missing whitespace to
1248 translatable strings.
1250 2017-01-08 Martin Sebor <msebor@redhat.com>
1252 PR tree-optimization/78913
1254 * trans-common.c (build_equiv_decl): Increase buffer size to avoid
1255 truncation for any argument.
1256 * trans-types.c (gfc_build_logical_type): Same.
1258 2017-01-07 Andre Vehreschild <vehre@gcc.gnu.org>
1262 * expr.c (gfc_check_pointer_assign): Return the same error message for
1263 rewritten coarray pointer assignments like for plain ones.
1264 * gfortran.h: Change prototype.
1265 * primary.c (caf_variable_attr): Set attributes used ones only only
1266 ones. Add setting of pointer_comp attribute.
1267 (gfc_caf_attr): Add setting of pointer_comp attribute.
1268 * trans-array.c (gfc_array_allocate): Add flag that the component to
1269 allocate is not an ultimate coarray component. Add allocation of
1271 (structure_alloc_comps): Extend nullify to treat pointer components in
1272 coarrays correctly. Restructure nullify to remove redundant code.
1273 (gfc_nullify_alloc_comp): Allow setting caf_mode flags.
1274 * trans-array.h: Change prototype of gfc_nullify_alloc_comp ().
1275 * trans-decl.c (generate_coarray_sym_init): Call nullify_alloc_comp for
1276 derived type coarrays with pointer components.
1277 * trans-expr.c (gfc_trans_structure_assign): Also treat pointer
1279 (trans_caf_token_assign): Handle assignment of token of scalar pointer
1281 (gfc_trans_pointer_assignment): Call above routine.
1282 * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Add treating pointer
1284 (gfc_conv_intrinsic_caf_get): Likewise.
1285 (conv_caf_send): Likewise.
1286 * trans-stmt.c (gfc_trans_allocate): After allocating a derived type in
1287 a coarray pre-register the tokens.
1288 (gfc_trans_deallocate): Simply determining the coarray type (scalar or
1289 array) and deregistering it correctly.
1290 * trans-types.c (gfc_typenode_for_spec): Replace in_coarray flag by the
1291 actual codim to allow lookup of array types in the cache.
1292 (gfc_build_array_type): Likewise.
1293 (gfc_get_array_descriptor_base): Likewise.
1294 (gfc_get_array_type_bounds): Likewise.
1295 (gfc_get_derived_type): Likewise.
1296 * trans-types.h: Likewise.
1297 * trans.c (gfc_deallocate_with_status): Enable deregistering of all kind
1298 of coarray components.
1299 (gfc_deallocate_scalar_with_status): Use free() in fcoarray_single mode
1300 instead of caf_deregister.
1302 2017-01-06 Jakub Jelinek <jakub@redhat.com>
1304 * simplify.c (simplify_transformation_to_array): Use
1305 GCC_DIAGNOSTIC_PUSH_IGNORED and GCC_DIAGNOSTIC_POP instead of
1306 #pragma GCC diagnostic {push,ignored,pop}.
1308 2017-01-06 Alexandre Oliva <aoliva@redhat.com>
1310 * simplify.c (simplify_transformation_to_array): Silence
1311 array bounds warning. Fix whitespace.
1313 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
1315 * module.c (load_omp_udrs): Initialize name.
1317 2017-01-02 Janne Blomqvist <jb@gcc.gnu.org>
1320 * trans-expr.c (gfc_trans_string_copy): Rework string copy
1321 algorithm to avoid -Wstringop-overflow warning.
1323 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1325 Update copyright years.
1327 * gfortranspec.c (lang_specific_driver): Update copyright notice
1329 * gfc-internals.texi: Bump @copying's copyright year.
1330 * gfortran.texi: Ditto.
1331 * intrinsic.texi: Ditto.
1332 * invoke.texi: Ditto.
1334 Copyright (C) 2017 Free Software Foundation, Inc.
1336 Copying and distribution of this file, with or without modification,
1337 are permitted in any medium without royalty provided the copyright
1338 notice and this notice are preserved.