poly_int: emit_group_load/store
[official-gcc.git] / gcc / fortran / ChangeLog
bloba601cfaf0cfed4bd1c891b746259887e9e75e4a8
1 2017-12-19  Jakub Jelinek  <jakub@redhat.com>
3         * scanner.c (preprocessor_line): Replace Yoda conditions with typical
4         order conditions.
5         * dependency.c (check_section_vs_section): Likewise.
6         * trans-array.c (gfc_conv_expr_descriptor): Likewise.
8 2017-12-17  Janne Blomqvist  <jb@gcc.gnu.org>
10         * decl.c (gfc_match_implicit_none): Use GFC_STD_F2018 instead of
11         GFC_STD_F2015.
12         * error.c (gfc_notify_std): Add GFC_STD_F2018{_DEL,_OBS} to
13         switch.
14         * gfortran.texi: Document -std=f2018.
15         * interface.c (compare_parameter): Fix comment.
16         * invoke.texi: Document -std=f2018.
17         * lang.opt: Add -std=f2018 argumnet.
18         * libgfortran.h (GFC_STD_F2015): Rename to GFC_STD_F0218, use
19         separate flag bit.
20         (GFC_STD_F2018_DEL): New macro.
21         (GFC_STD_F2018_OBS): Likewise.
22         * match.c (gfc_match_stopcode): Use GFC_STD_F2018.
23         * options.c (set_default_std_flags): Add F2018 flags to defaults.
24         (gfc_handle_option): Set options for -std=f2018.
26 2017-12-15  Jakub Jelinek  <jakub@redhat.com>
28         * f95-lang.c (gfc_attribute_table): Swap affects_type_identity
29         and handler fields, adjust comments.
31 2017-12-14  Qing Zhao  <qing.zhao@oracle.com>
33         PR middle_end/79538
34         * class.c (gfc_build_class_symbol): Replace call to
35         sprintf with xasprintf to avoid format-overflow warning.
36         (generate_finalization_wrapper): Likewise.
37         (gfc_find_derived_vtab): Likewise.
38         (find_intrinsic_vtab): Likewise.
40 2017-12-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
42         * intrinsic.texi (MAXLOC): Remove double description
43         of return value.
44         (MINLOC): Likewise.
46 2017-12-11  Thomas Koenig  <tkoenig@gcc.gnu.org>
48         * intrinsic.texi (MAXLOC): Update documentation for
49         character arrays and KIND argument.
50         (MINLOC): Likewise.
52 2017-12-11  Thomas Koenig  <tkoenig@gcc.gnu.org>
54         PR fortran/45689
55         * simplify.c (min_max_choose): Add prototype.
56         (gfc_count): Format correctly.
57         (simplify_transformation): Pass array argument to init_result_expr.
58         (gfc_simplify_minval_maxval): Remove.
59         (gfc_min): New function.
60         (gfc_simplify_minval): Call simplify_transformation.
61         (gfc_max): New function.
62         (gfc_simplify_maxval): Call simplify_transformation.
64 2017-12-10  Dominique d'Humieres  <dominiq@lps.ens.fr>
66         PR fortran/53478
67         * gfortran.h (gfc_find_case_gsymbol): New prototype.
68         * symbol.c (gfc_find_case_gsymbol): New procedure, case
69         insensistive version of gfc_find_gsymbol.
70         * resolve.c (resolve_common_blocks): Use it.
71         Replace %s with %qs where needed.
73 2017-12-09  Steven G. Kargl  <kargl@gcc.gnu.org>
75         PR fortran/82934
76         PR fortran/83318
77         * match.c (gfc_match_allocate): Enforce F2008:C631.
79 2017-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
81         PR fortran/83316
82         * arith.c (gfc_character2character): New function.
83         * arith.h: Add prototype.
84         * simplify.c (gfc_convert_constant): Handle character type.
86 2017-12-07  Martin Sebor  <msebor@redhat.com>
88         PR c/81544
89         * f95-lang.c (gfc_attribute_table): Initialize new member of struct
90         attribute_spec.
92 2017-12-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
94         PR fortran/36313
95         * check.c (gfc_check_minval_maxval): Use
96         int_orLreal_or_char_check_f2003 for array argument.
97         * iresolve.c (gfc_resolve_maxval): Insert number in
98         function name for character arguments.
99         (gfc_resolve_minval): Likewise.
100         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc):
101         Fix comment.
102         (gfc_conv_intrinsic_minmaxval): Resort arguments and call library
103         function if dealing with a character function.
105 2017-12-01  Qing Zhao  <qing.zhao@oracle.com>
107         * decl.c (gfc_get_pdt_instance): Adjust the call to sprintf
108         to avoid the same buffer being both source and destination.
110 2017-12-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
112         PR fortran/83224
113         * frontend-passes.c (create_var): Also handle
114         character arrays, handling deferred lenghts.
116 2017-12-01  Paul Thomas  <pault@gcc.gnu.org>
118         PR fortran/82605
119         * resolve.c (get_pdt_constructor): Initialize 'cons' to NULL.
120         (resolve_pdt): Correct typo in prior comment. Emit an error if
121         any parameters are deferred and the object is neither pointer
122         nor allocatable.
124         PR fortran/82606
125         * decl.c (gfc_get_pdt_instance): Continue if the parameter sym
126         is not present or has no name. Select the parameter by name
127         of component, rather than component order. Remove all the other
128         manipulations of 'tail' when building the pdt instance.
129         (gfc_match_formal_arglist): Emit and error if a star is picked
130         up in a PDT decl parameter list.
132         PR fortran/82622
133         * trans-array.c (set_loop_bounds): If a GFC_SS_COMPONENT has an
134         info->end, use it rather than falling through to
135         gcc_unreachable.
136         (structure_alloc_comps): Check that param->name is non-null
137         before comparing with the component name.
138         * trans-decl.c (gfc_get_symbol_decl): Do not use the static
139         initializer for PDT symbols.
140         (gfc_init_default_dt): Do nothing for PDT symbols.
141         * trans-io.c (transfer_array_component): Parameterized array
142         components use the descriptor ubound since the shape is not
143         available.
145         PR fortran/82719
146         PR fortran/82720
147         * trans-expr.c (gfc_conv_component_ref): Do not use the charlen
148         backend_decl of pdt strings. Use the hidden component instead.
149         * trans-io.c (transfer_expr): Do not do IO on "hidden" string
150         lengths. Use the hidden string length for pdt string transfers
151         by adding it to the se structure. When finished nullify the
152         se string length.
154         PR fortran/82866
155         * decl.c (gfc_match_formal_arglist): If a name is not found or
156         star is found, while reading a type parameter list, emit an
157         immediate error.
158         (gfc_match_derived_decl): On reading a PDT parameter list, on
159         failure to match call gfc_error_recovery.
161         PR fortran/82978
162         * decl.c (build_struct): Character kind defaults to 1, so use
163         kind_expr whatever is the set value.
164         (gfc_get_pdt_instance): Ditto.
165         * trans-array.c (structure_alloc_comps): Copy the expression
166         for the PDT string length before parameter substitution. Use
167         this expression for evaluation and free it after use.
169 2017-12-01  Jakub Jelinek  <jakub@redhat.com>
171         PR c/79153
172         * match.c (gfc_match): Add FALLTHRU comment to avoid
173         -Wimplicit-fallthrough warning.
175 2017-12-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
177         PR fortran/83224
178         * frontend-passes.c (realloc_string_callback): Handle
179         case for which the RHS is an array expression.
181 2017-11-28  Janne Blomqvist  <jb@gcc.gnu.org>
183         PR fortran/53796
184         * gfortran.texi: Remove mentions of GFORTRAN_DEFAULT_RECL.
186 2017-11-28  Paul Thomas  <pault@gcc.gnu.org>
188         PR fortran/83021
189         * resolve.c (resolve_component): Only escape for use assciated
190         vtypes if the current namespace has no proc_name and is most
191         particularly block data.
193 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
195         * trans-decl.c (gfc_trans_entry_master_switch): Build SWITCH_EXPR
196         using fold_build2_loc instead of fold_build3_loc.
197         * trans-io.c (io_result): Likewise.
198         * trans-stmt.c (gfc_trans_integer_select, gfc_trans_character_select):
199         Likewise.
201 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
203         PR fortran/81304
204         * trans-openmp.c (gfc_trans_omp_array_reduction_or_udr): Set
205         attr.implicit_type in intrinsic_sym to avoid undesirable warning.
207 2017-11-23  Dirk Broemmel  <d.broemmel@fz-juelich.de>
208             Jakub Jelinek  <jakub@redhat.com>
210         PR fortran/81841
211         * parse.c (parse_spec): Allow ST_OMP_THREADPRIVATE inside of
212         BLOCK DATA.
214 2017-11-23  Mike Stump  <mikestump@comcast.net>
215             Eric Botcazou  <ebotcazou@adacore.com>
217         * trans-stmt.c (gfc_trans_forall_loop): Pass 3rd operand to
218         ANNOTATE_EXPR.
220 2017-11-23  Paul Thomas  <pault@gcc.gnu.org>
222         PR fortran/82814
223         * trans-types.c (gfc_sym_type): If a character function result
224         is missing the charlen backend_decl, use the one from the name-
225         space procedure symbol, if present.
227 2017-11-22  David Malcolm  <dmalcolm@redhat.com>
229         PR c++/62170
230         * error.c (gfc_notify_std): Convert "quoted" param from bool to
231         bool *.
233 2017-11-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
235         PR fortran/36313
236         * check.c (int_or_real_or_char_check_f2003): New function.
237         * iresolve.c (gfc_resolve_maxloc): Add number "2" for
238         character arguments and rank-zero return value.
239         (gfc_resolve_minloc): Likewise.
240         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Handle case of
241         character arguments and rank-zero return value by removing
242         unneeded arguments and calling the library function.
244 2017-11-22  Paul Thomas  <pault@gcc.gnu.org>
246         PR fortran/79072
247         * trans-stmt.c (trans_associate_var): Weaken the over strong
248         condition for using the fake result decl.
250 2017-11-20  Paul Thomas  <pault@gcc.gnu.org>
252         PR fortran/79072
253         * trans-expr.c (trans_class_vptr_len_assignment): Set from_len
254         if the temporary is unlimited polymorphic.
255         * trans-stmt.c (trans_associate_var): Use the fake result decl
256         to obtain the 'len' field from an explicit function result when
257         in that function scope.
259 2017-11-19  Paul Thomas  <pault@gcc.gnu.org>
261         PR fortran/78990
262         * expr.c (gfc_is_class_array_function): Renamed from
263         'gfc_is_alloc_class_array_function' and modified to return true
264         for pointers as well as allocatable results.
265         * gfortran.h : Change of name for prototype of above function.
266         * trans-array.c (gfc_add_loop_ss_code): Force finalization of
267         class array results.
268         (build_class_array_ref): Change assertion into a condition.
269         (build_class_array_ref): Set the se class_vptr for class array
270         function results.
271         (gfc_walk_function_expr): Reference gfc_is_class_array_function
272         as above.
273         * trans-decl.c (get_proc_result): Move it up before
274         gfc_trans_deferred_vars.
275         (gfc_trans_deferred_vars): Nullify explicit return class arrays
276         on entry.
277         * trans-expr.c (gfc_conv_class_to_class): Allow conversion of
278         class array functions that have an se class_vptr and use it
279         for the result vptr.
280         (gfc_conv_subref_array_arg): Rename reference to the above
281         function.
282         (gfc_conv_procedure_call): Ditto. Add the se pre block to the
283         loop pre block before the function is evaluated. Do not
284         finalize class pointer results.
285         (arrayfunc_assign_needs_temporary, gfc_trans_assignment_1) More
286         renamed references.
287         * trans-intrinsic.c (gfc_conv_intrinsic_size): Ditto.
289 2017-11-18  Janne Blomqvist  <jb@gcc.gnu.org>
291         PR fortran/83036
292         * ioparm.def (IOPARM): Make nextrec a pintio.
294 2017-11-18  Janne Blomqvist  <jb@gcc.gnu.org>
296         PR fortran/44292
297         * ioparm.def (IOPARM): Make recl_in intio, and recl_out pintio.
299 2017-11-18  Thomas Koenig  <tkoenig@gcc.gnu.org>
301         PR fortran/83012
302         * expr.c (gfc_is_simply_contiguous): If a function call through a
303         class variable is done through a reference, check the function's
304         interface.
306 2017-11-17  Richard Biener  <rguenther@suse.de>
308         PR fortran/83017
309         * trans-stmt.c (gfc_trans_forall_loop): Annotate DO CONCURRENT
310         loops with annot_expr_parallel_kind instead of just
311         annot_expr_ivdep_kind.
313 2017-11-15  Martin Liska  <mliska@suse.cz>
315         * options.c (gfc_post_options):
316         Do not set default value of warn_return_type.
317         * trans-decl.c (gfc_trans_deferred_vars):
318         Compare warn_return_type for greater than zero.
319         (generate_local_decl): Likewise
320         (gfc_generate_function_code): Likewise.
322 2017-11-13  Fritz Reese <fritzoreese@gmail.com>
324         PR fortran/78240
325         * decl.c (match_clist_expr): Replace gcc_assert with proper
326         handling of bad result from spec_size().
327         * resolve.c (check_data_variable): Avoid NULL dereference when passing
328         locus to gfc_error.
330 2017-11-11  Janus Weil  <janus@gcc.gnu.org>
332         PR fortran/82932
333         * resolve.c (update_compcall_arglist): Improve error recovery,
334         remove a gcc_assert.
336 2017-11-10  Fritz Reese <fritzoreese@gmail.com>
338         PR fortran/82886
339         * gfortran.h (gfc_build_init_expr): New prototype.
340         * invoke.texi (finit-derived): Update documentation.
341         * expr.c (gfc_build_init_expr): New, from gfc_build_default_init_expr.
342         (gfc_build_default_init_expr): Redirect to gfc_build_init_expr(,,false)
343         (component_initializer): Force building initializers using
344         gfc_build_init_expr(,,true).
346 2017-11-10  Martin Sebor  <msebor@redhat.com>
348         PR c/81117
349         * gcc/fortran/decl.c (build_sym): Use strcpy instead of strncpy.
351 2017-11-10  Paul Thomas  <pault@gcc.gnu.org>
353         PR fortran/82934
354         * trans-stmt.c (gfc_trans_allocate): Remove the gcc_assert on
355         null string length for assumed length typespec and set
356         expr3_esize to NULL_TREE;
358 2017-11-09  Paul Thomas  <pault@gcc.gnu.org>
360         PR fortran/78619
361         * check.c (same_type_check): Introduce a new argument 'assoc'
362         with default value false. If this is true, use the symbol type
363         spec of BT_PROCEDURE expressions.
364         (gfc_check_associated): Set 'assoc' true in the call to
365         'same_type_check'.
367 2017-11-09  Steven G. Kargl  <kargl@gcc.gnu.org>
369         PR fortran/78814
370         * interface.c (symbol_rank): Check for NULL pointer.
372 2017-11-08  Steven G. Kargl  <kargl@kgcc.gnu.org>
374         PR Fortran/82841
375         * simplify.c(gfc_simplify_transfer): Do not dereference a NULL pointer.
376         Unwrap a short line.
378 2017-11-08  Steven G. Kargl  <kargl@gcc.gnu.org>
380         PR fortran/82884
381         * arith.c (gfc_hollerith2character): Clear pad.
383 2017-11-08  Janne Blomqvist  <jb@gcc.gnu.org>
385         PR 82869
386         * convert.c (truthvalue_conversion): Use logical_type_node.
387         * trans-array.c (gfc_trans_allocate_array_storage): Likewise.
388         (gfc_trans_create_temp_array): Likewise.
389         (gfc_trans_array_ctor_element): Likewise.
390         (gfc_trans_array_constructor_value): Likewise.
391         (trans_array_constructor): Likewise.
392         (trans_array_bound_check): Likewise.
393         (gfc_conv_array_ref): Likewise.
394         (gfc_trans_scalarized_loop_end): Likewise.
395         (gfc_conv_array_extent_dim): Likewise.
396         (gfc_array_init_size): Likewise.
397         (gfc_array_allocate): Likewise.
398         (gfc_trans_array_bounds): Likewise.
399         (gfc_trans_dummy_array_bias): Likewise.
400         (gfc_conv_array_parameter): Likewise.
401         (duplicate_allocatable): Likewise.
402         (duplicate_allocatable_coarray): Likewise.
403         (structure_alloc_comps): Likewise
404         (get_std_lbound): Likewise
405         (gfc_alloc_allocatable_for_assignment): Likewise
406         * trans-decl.c (add_argument_checking): Likewise
407         (gfc_generate_function_code): Likewise
408         * trans-expr.c (gfc_copy_class_to_class): Likewise
409         (gfc_trans_class_array_init_assign): Likewise
410         (gfc_trans_class_init_assign): Likewise
411         (gfc_conv_expr_present): Likewise
412         (gfc_conv_substring): Likewise
413         (gfc_conv_cst_int_power): Likewise
414         (gfc_conv_expr_op): Likewise
415         (gfc_conv_procedure_call): Likewise
416         (fill_with_spaces): Likewise
417         (gfc_trans_string_copy): Likewise
418         (gfc_trans_alloc_subarray_assign): Likewise
419         (gfc_trans_pointer_assignment): Likewise
420         (gfc_trans_scalar_assign): Likewise
421         (fcncall_realloc_result): Likewise
422         (alloc_scalar_allocatable_for_assignment): Likewise
423         (trans_class_assignment): Likewise
424         (gfc_trans_assignment_1): Likewise
425         * trans-intrinsic.c (build_fixbound_expr): Likewise
426         (gfc_conv_intrinsic_aint): Likewise
427         (gfc_trans_same_strlen_check): Likewise
428         (conv_caf_send): Likewise
429         (trans_this_image): Likewise
430         (conv_intrinsic_image_status): Likewise
431         (trans_image_index): Likewise
432         (gfc_conv_intrinsic_bound): Likewise
433         (conv_intrinsic_cobound): Likewise
434         (gfc_conv_intrinsic_mod): Likewise
435         (gfc_conv_intrinsic_dshift): Likewise
436         (gfc_conv_intrinsic_dim): Likewise
437         (gfc_conv_intrinsic_sign): Likewise
438         (gfc_conv_intrinsic_ctime): Likewise
439         (gfc_conv_intrinsic_fdate): Likewise
440         (gfc_conv_intrinsic_ttynam): Likewise
441         (gfc_conv_intrinsic_minmax): Likewise
442         (gfc_conv_intrinsic_minmax_char): Likewise
443         (gfc_conv_intrinsic_anyall): Likewise
444         (gfc_conv_intrinsic_arith): Likewise
445         (gfc_conv_intrinsic_minmaxloc): Likewise
446         (gfc_conv_intrinsic_minmaxval): Likewise
447         (gfc_conv_intrinsic_btest): Likewise
448         (gfc_conv_intrinsic_bitcomp): Likewise
449         (gfc_conv_intrinsic_shift): Likewise
450         (gfc_conv_intrinsic_ishft): Likewise
451         (gfc_conv_intrinsic_ishftc): Likewise
452         (gfc_conv_intrinsic_leadz): Likewise
453         (gfc_conv_intrinsic_trailz): Likewise
454         (gfc_conv_intrinsic_mask): Likewise
455         (gfc_conv_intrinsic_spacing): Likewise
456         (gfc_conv_intrinsic_rrspacing): Likewise
457         (gfc_conv_intrinsic_size): Likewise
458         (gfc_conv_intrinsic_sizeof): Likewise
459         (gfc_conv_intrinsic_transfer): Likewise
460         (gfc_conv_allocated): Likewise
461         (gfc_conv_associated): Likewise
462         (gfc_conv_same_type_as): Likewise
463         (gfc_conv_intrinsic_trim): Likewise
464         (gfc_conv_intrinsic_repeat): Likewise
465         (conv_isocbinding_function): Likewise
466         (conv_intrinsic_ieee_is_normal): Likewise
467         (conv_intrinsic_ieee_is_negative): Likewise
468         (conv_intrinsic_ieee_copy_sign): Likewise
469         (conv_intrinsic_move_alloc): Likewise
470         * trans-io.c (set_parameter_value_chk): Likewise
471         (set_parameter_value_inquire): Likewise
472         (set_string): Likewise
473         * trans-openmp.c (gfc_walk_alloc_comps): Likewise
474         (gfc_omp_clause_default_ctor): Likewise
475         (gfc_omp_clause_copy_ctor): Likewise
476         (gfc_omp_clause_assign_op): Likewise
477         (gfc_omp_clause_dtor): Likewise
478         (gfc_omp_finish_clause): Likewise
479         (gfc_trans_omp_clauses): Likewise
480         (gfc_trans_omp_do): Likewise
481         * trans-stmt.c (gfc_trans_goto): Likewise
482         (gfc_trans_sync): Likewise
483         (gfc_trans_arithmetic_if): Likewise
484         (gfc_trans_simple_do): Likewise
485         (gfc_trans_do): Likewise
486         (gfc_trans_forall_loop): Likewise
487         (gfc_trans_where_2): Likewise
488         (gfc_trans_allocate): Likewise
489         (gfc_trans_deallocate): Likewise
490         * trans-types.c (gfc_init_types): Initialize logical_type_node and
491         their true/false trees.
492         (gfc_get_array_descr_info): Use logical_type_node.
493         * trans-types.h (logical_type_node): New tree.
494         (logical_true_node): Likewise.
495         (logical_false_node): Likewise.
496         * trans.c (gfc_trans_runtime_check): Use logical_type_node.
497         (gfc_call_malloc): Likewise
498         (gfc_allocate_using_malloc): Likewise
499         (gfc_allocate_allocatable): Likewise
500         (gfc_add_comp_finalizer_call): Likewise
501         (gfc_add_finalizer_call): Likewise
502         (gfc_deallocate_with_status): Likewise
503         (gfc_deallocate_scalar_with_status): Likewise
504         (gfc_call_realloc): Likewise
506 2017-11-06  Paul Thomas  <pault@gcc.gnu.org>
508         PR fortran/69739
509         * trans-expr.c (gfc_map_intrinsic_function): Return false for
510         bounds without the DIM argument instead of ICEing.
512 2017-11-06  Martin Liska  <mliska@suse.cz>
514         PR middle-end/82404
515         * options.c (gfc_post_options): Set default value of
516         -Wreturn-type to false.
518 2017-11-05  Thomas Koenig  <tkoenig@gcc.gnu.org>
520         PR fortran/82471
521         * lang.opt (ffrontend-loop-interchange): New option.
522         (Wfrontend-loop-interchange): New option.
523         * options.c (gfc_post_options): Handle ffrontend-loop-interchange.
524         * frontend-passes.c (gfc_run_passes): Run
525         optimize_namespace if flag_frontend_optimize or
526         flag_frontend_loop_interchange are set.
527         (optimize_namespace): Run functions according to flags set;
528         also call index_interchange.
529         (ind_type): New function.
530         (has_var): New function.
531         (index_cost): New function.
532         (loop_comp): New function.
534 2017-11-05  Paul Thomas  <pault@gcc.gnu.org>
536         PR fortran/78641
537         * resolve.c (resolve_ordinary_assign): Do not add the _data
538         component for class valued array constructors being assigned
539         to derived type arrays.
540         * trans-array.c (gfc_trans_array_ctor_element): Take the _data
541         of class valued elements for assignment to derived type arrays.
543 2017-11-05  Paul Thomas  <pault@gcc.gnu.org>
545         PR fortran/81447
546         PR fortran/82783
547         * resolve.c (resolve_component): There is no need to resolve
548         the components of a use associated vtype.
549         (resolve_fl_derived): Unconditionally generate a vtable for any
550         module derived type, as long as the standard is F2003 or later
551         and it is not a vtype or a PDT template.
553 2017-11-05  Tom de Vries  <tom@codesourcery.com>
555         PR other/82784
556         * parse.c (match, matcha, matchs, matcho, matchds, matchdo): Remove
557         semicolon after "do {} while (0)".
559 2017-11-04  Andre Vehreschild  <vehre@gcc.gnu.org>
561         * trans-expr.c (gfc_trans_assignment_1): Character kind conversion may
562         create a loop variant temporary, too.
563         * trans-intrinsic.c (conv_caf_send): Treat char arrays as arrays and
564         not as scalars.
565         * trans.c (get_array_span): Take the character kind into account when
566         doing pointer arithmetic.
568 2017-11-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
570         PR fortran/29600
571         * gfortran.h (gfc_check_f): Replace fm3l with fm4l.
572         * intrinsic.h (gfc_resolve_maxloc): Add gfc_expr * to argument
573         list in protoytpe.
574         (gfc_resolve_minloc): Likewise.
575         * check.c (gfc_check_minloc_maxloc): Handle kind argument.
576         * intrinsic.c (add_sym_3_ml): Rename to
577         (add_sym_4_ml): and handle kind argument.
578         (add_function): Replace add_sym_3ml with add_sym_4ml and add
579         extra arguments for maxloc and minloc.
580         (check_specific): Change use of check.f3ml with check.f4ml.
581         * iresolve.c (gfc_resolve_maxloc): Handle kind argument. If
582         the kind is smaller than the smallest library version available,
583         use gfc_default_integer_kind and convert afterwards.
584         (gfc_resolve_minloc): Likewise.
586 2017-11-04  Paul Thomas  <pault@gcc.gnu.org>
588         PR fortran/81735
589         * trans-decl.c (gfc_trans_deferred_vars): Do a better job of a
590         case where 'tmp' was used unititialized and remove TODO.
592 2017-11-03  Steven G. Kargl  <kargl@gcc.gnu.org>
594         PR fortran/82796
595         * resolve.c (resolve_equivalence): An entity in a common block within
596         a module cannot appear in an equivalence statement if the entity is
597         with a pure procedure.
599 2017-10-31  Jim Wilson  <wilson@tuliptree.org>
601         * parse.c (unexpected_eof): Call gcc_unreachable before return.
603 2017-10-30  Paul Thomas  <pault@gcc.gnu.org>
605         PR fortran/80850
606         * trans_expr.c (gfc_conv_procedure_call): When passing a class
607         argument to an unlimited polymorphic dummy, it is wrong to cast
608         the passed expression as unlimited, unless it is unlimited. The
609         correct way is to assign to each of the fields and set the _len
610         field to zero.
612 2017-10-30  Steven G. Kargl   <kargl@gcc.gnu.org>
614         * resolve.c (resolve_transfer): Set derived to correct symbol for
615         BT_CLASS.
617 2017-10-29  Jim Wilson  <wilson@tuliptree.org>
619         * invoke.texi: Delete adb and sdb references.
621 2017-10-28  Andre Vehreschild  <vehre@gcc.gnu.org>
623         * check.c (gfc_check_co_reduce): Clarify error message.
625 2017-10-28  Paul Thomas  <pault@gcc.gnu.org>
627         PR fortran/81758
628         * trans-expr.c (trans_class_vptr_len_assignment): 'vptr_expr'
629         must only be set if the right hand side expression is of type
630         class.
632 2017-10-27  Steven G. Kargl  <kargl@gcc.gnu.org>
634         PR fortran/82620
635         * match.c (gfc_match_allocate): Exit early on syntax error.
637 2017-10-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
639         PR fortran/56342
640         * simplify.c (is_constant_array_expr): If the expression is
641         a parameter array, call gfc_simplify_expr.
643 2017-10-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
645         * match.c (gfc_match_type_is): Fix typo in error message.
647 2017-10-21  Paul Thomas  <pault@gcc.gnu.org>
649         PR fortran/82586
650         * decl.c (gfc_get_pdt_instance): Remove the error message that
651         the parameter does not have a corresponding component since
652         this is now taken care of when the derived type is resolved. Go
653         straight to error return instead.
654         (gfc_match_formal_arglist): Make the PDT relevant errors
655         immediate so that parsing of the derived type can continue.
656         (gfc_match_derived_decl): Do not check the match status on
657         return from gfc_match_formal_arglist for the same reason.
658         * resolve.c (resolve_fl_derived0): Check that each type
659         parameter has a corresponding component.
661         PR fortran/82587
662         * resolve.c (resolve_generic_f): Check that the derived type
663         can be used before resolving the struture constructor.
665         PR fortran/82589
666         * symbol.c (check_conflict): Add the conflicts involving PDT
667         KIND and LEN attributes.
669 2017-10-19  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
671         * interface.c (check_sym_interfaces, check_uop_interfaces,
672         gfc_check_interfaces): Base interface_name buffer off
673         GFC_MAX_SYMBOL_LEN.
675 2017-10-19  Jakub Jelinek  <jakub@redhat.com>
677         PR fortran/82568
678         * gfortran.h (gfc_resolve_do_iterator): Add a bool arg.
679         (gfc_resolve_omp_local_vars): New declaration.
680         * openmp.c (omp_current_ctx): Make static.
681         (gfc_resolve_omp_parallel_blocks): Handle EXEC_OMP_TASKLOOP
682         and EXEC_OMP_TASKLOOP_SIMD.
683         (gfc_resolve_do_iterator): Add ADD_CLAUSE argument, if false,
684         don't actually add any clause.  Move omp_current_ctx test
685         earlier.
686         (handle_local_var, gfc_resolve_omp_local_vars): New functions.
687         * resolve.c (gfc_resolve_code): Call gfc_resolve_omp_parallel_blocks
688         instead of just gfc_resolve_omp_do_blocks for EXEC_OMP_TASKLOOP
689         and EXEC_OMP_TASKLOOP_SIMD.
690         (gfc_resolve_code): Adjust gfc_resolve_do_iterator caller.
691         (resolve_codes): Call gfc_resolve_omp_local_vars.
693 2017-10-19  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
695         * gfortran.h (gfc_lookup_function_fuzzy): New declaration.
696         (gfc_closest_fuzzy_match): New declaration.
697         (vec_push): New definition.
698         * misc.c (gfc_closest_fuzzy_match): New definition.
699         * resolve.c: Include spellcheck.h.
700         (lookup_function_fuzzy_find_candidates): New static function.
701         (lookup_uop_fuzzy_find_candidates): Likewise.
702         (lookup_uop_fuzzy): Likewise.
703         (resolve_operator) <INTRINSIC_USER>: Call lookup_uop_fuzzy.
704         (gfc_lookup_function_fuzzy): New definition.
705         (resolve_unknown_f): Call gfc_lookup_function_fuzzy.
706         * interface.c (check_interface0): Likewise.
707         (lookup_arg_fuzzy_find_candidates): New static function.
708         (lookup_arg_fuzzy ): Likewise.
709         (compare_actual_formal): Call lookup_arg_fuzzy.
710         * symbol.c: Include spellcheck.h.
711         (lookup_symbol_fuzzy_find_candidates): New static function.
712         (lookup_symbol_fuzzy): Likewise.
713         (gfc_set_default_type): Call lookup_symbol_fuzzy.
714         (lookup_component_fuzzy_find_candidates): New static function.
715         (lookup_component_fuzzy): Likewise.
716         (gfc_find_component): Call lookup_component_fuzzy.
718 2017-10-18  Thomas Koenig  <tkoenig@gcc.gnu.org>
720         PR fortran/82567
721         * frontend-passes.c (combine_array_constructor): If an array
722         constructor is all constants and has more elements than a small
723         constant, don't convert a*[b,c] to [a*b,a*c] to reduce compilation
724         times.
726 2017-10-18  Thomas Koenig  <tkoenig@gcc.gnu.org>
728         PR fortran/79795
729         * resolve.c (resovle_symbol): Change gcc_assert to
730         sensible error message.
732 2017-10-18  Paul Thomas  <pault@gcc.gnu.org>
734         PR fortran/82550
735         * trans_decl.c (gfc_get_symbol_decl): Procedure symbols that
736         have the 'used_in_submodule' attribute should be processed by
737         'gfc_get_extern_function_decl'.
739 2017-10-16  Fritz Reese <fritzoreese@gmail.com>
741         PR fortran/82511
742         * trans-io.c (transfer_expr): Treat BT_UNION as BT_DERIVED.
744 2017-10-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
746         PR fortran/82372
747         * fortran/scanner.c (last_error_char):  New global variable.
748         (gfc_scanner_init_1): Set last_error_char to NULL.
749         (gfc_gobble_whitespace): If a character not printable or
750         not newline, issue an error.
752 2017-10-13  Paul Thomas  <pault@gcc.gnu.org>
754         PR fortran/81048
755         * resolve.c (resolve_symbol): Ensure that derived type array
756         results get default initialization.
758 2017-10-11  Nathan Sidwell  <nathan@acm.org>
760         * cpp.c (gfc_cpp_add_include_path): Update incpath_e names.
761         (gfc_cpp_add_include_path_after): Likewise.
763 2017-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
765         * target-memory.c (gfc_interpret_logical): Use wi::to_wide when
766         operating on trees as wide_ints.
767         * trans-const.c (gfc_conv_tree_to_mpz): Likewise.
768         * trans-expr.c (gfc_conv_cst_int_power): Likewise.
769         * trans-intrinsic.c (trans_this_image): Likewise.
770         (gfc_conv_intrinsic_bound): Likewise.
771         (conv_intrinsic_cobound): Likewise.
773 2017-10-08  Steven G. Kargl  <kargl@gcc.gnu.org>
775         * check.c (gfc_check_x): Remove function.
776         * intrinsic.c (add_functions): Use gfc_check_fn_r.
778 2017-10-08  Paul Thomas  <pault@gcc.gnu.org>
780         PR fortran/82375
781         * module.c : Bump up MOD_VERSION to 15.
782         (mio_component): Edit comment about PDT specification list.
783         (mio_expr, mio_symbol): Include the expression and symbol PDT
784         specification lists in the same way as in mio_component.
786 2017-10-08  Thomas Koenig  <tkoenig@gcc.gnu.org>
788         * dump_prase_tree (show_symbol): Output list of variables in
789         NAMELIST.
790         (show_code_node): Add new line for ELSE and END DO for DO
791         CONCURRENT.
792         * invoke.texi: Document that the output of
793         -fdump-fortran-original, -fdump-fortran-optimized and
794         -fdump-parse-tree is unsable and may lead to ICEs.
796 2017-10-07  Paul Thomas  <pault@gcc.gnu.org>
798         PR fortran/82375
799         * class.c (gfc_find_derived_vtab): Return NULL for a passed
800         pdt template to prevent bad procedures from being written.
801         * decl.c (gfc_get_pdt_instance): Do not use the default
802         initializer for pointer and allocatable pdt type components. If
803         the component is allocatbale, set the 'alloc_comp' attribute of
804         'instance'.
805         * module.c : Add a prototype for 'mio_actual_arglist'. Add a
806         boolean argument 'pdt'.
807         (mio_component): Call it for the parameter list of pdt type
808         components with 'pdt' set to true.
809         (mio_actual_arg): Add the boolean 'pdt' and, if it is set, call
810         mio_integer for the 'spec_type'.
811         (mio_actual_arglist): Add the boolean 'pdt' and use it in the
812         call to mio_actual_arg.
813         (mio_expr, mio_omp_udr_expr): Call mio_actual_arglist with
814         'pdt' set false.
815         * resolve.c (get_pdt_spec_expr): Add the parameter name to the
816         KIND parameter error.
817         (get_pdt_constructor): Check that cons->expr is non-null.
818         * trans-array.c (structure_alloc_comps): For deallocation of
819         allocatable components, ensure that parameterized components
820         are deallocated first. Likewise, when parameterized components
821         are allocated, nullify allocatable components first. Do not
822         recurse into pointer or allocatable pdt components while
823         allocating or deallocating parameterized components. Test that
824         parameterized arrays or strings are allocated before freeing
825         them.
826         (gfc_trans_pointer_assignment): Call the new function. Tidy up
827         a minor whitespace issue.
828         trans-decl.c (gfc_trans_deferred_vars): Set 'tmp' to NULL_TREE
829         to prevent the expression from being used a second time.
831 2017-10-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
833         PR fortran/49232
834         * expr.c (gfc_check_pointer_assign): Error
835         for non-contiguous rhs.
837 2017-10-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
839         * gfortran.h (async_io_dt): Add external reference.
840         * io.c (async_io_dt): Add variable.
841         (compare_to_allowed_values): Add prototyte. Add optional argument
842         num. If present, set it to the number of the entry that was
843         matched.
844         (check_io_constraints): If this is for an asynchronous I/O
845         statement, set async_io_dt and set the asynchronous flag for
846         a SIZE tag.
847         * resolve.c (resolve_transfer): If async_io_dt is set, set
848         the asynchronous flag on the variable.
849         (resolve_fl_namelist): If async_io_dt is set, set the asynchronous
850         flag on all elements of the namelist.
852 2017-10-04  Paul Thomas  <pault@gcc.gnu.org>
854         PR fortran/60458
855         PR fortran/77296
856         * resolve.c (resolve_assoc_var): Deferred character type
857         associate names must not receive an integer conatant length.
858         * symbol.c (gfc_is_associate_pointer): Deferred character
859         length functions also require an associate pointer.
860         * trans-decl.c (gfc_get_symbol_decl): Deferred character
861         length functions or derived type components require the assoc
862         name to have variable string length.
863         * trans-stmt.c (trans_associate_var): Set the string length of
864         deferred string length associate names. The address expression
865         is not needed for allocatable, pointer or dummy targets. Change
866         the comment about defered string length targets.
868 2017-10-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
870         * io.c (match_wait_element): Correctly match END and EOR tags.
871         * dump-parse-tree.c (show_code_node): Handle EXEC_WAIT.
873 2017-10-02  Paul Thomas  <pault@gcc.gnu.org>
875         PR fortran/82312
876         * resolve.c (gfc_resolve_code): Simplify condition for class
877         pointer assignments becoming regular assignments by asserting
878         that only class valued targets are permitted.
879         * trans-expr.c (trans_class_pointer_fcn): New function using a
880         block of code from gfc_trans_pointer_assignment.
881         (gfc_trans_pointer_assignment): Call the new function. Tidy up
882         a minor whitespace issue.
884 2017-10-01  Dominique d'Humieres  <dominiq@lps.ens.fr>
886         PR fortran/61450
887         * parse.c (gfc_global_used): Replace the gfc_internal_error
888         with an error.
890 2017-09-29  Dominique d'Humieres  <dominiq@lps.ens.fr>
892         PR fortran/25071
893         * interface.c (compare_actual_formal): Change warnings to errors
894         when "Actual argument contains too few elements for dummy
895         argument", unless -std=legacy is used.
897 2017-09-27  Thomas Schwinge  <thomas@codesourcery.com>
899         * lang.opt <Wdo-subscript>: End help text with a period.
901 2017-09-26  Thomas Koenig  <tkoenig@gcc.gnu.org>
903         * frontend-passes.c (do_subscript): Don't do anything
904         if inside an associate list.
906 2017-09-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
908         * lang.opt:  Add -Wdo-subscript.
909         * frontend-passes.c (do_t): New type.
910         (doloop_list): Use variable of do_type.
911         (if_level): Variable to track if levels.
912         (select_level): Variable to track select levels.
913         (gfc_run_passes): Initialize i_level and select_level.
914         (doloop_code): Record current level of if + select
915         level in doloop_list.  Add seen_goto if there could
916         be a branch outside the loop. Use different type for
917         doloop_list.
918         (doloop_function): Call do_intent and do_subscript; move
919         functionality of checking INTENT to do_intent.
920         (insert_index_t): New type, for callback_insert_index.
921         (callback_insert_index): New function.
922         (insert_index): New function.
923         (do_subscript): New function.
924         (do_intent): New function.
925         (gfc_code_walker): Keep track of if_level and select_level.
926         * invoke.texi: Document -Wdo-subscript.
928 2017-09-25  Janne Blomqvist  <jb@gcc.gnu.org>
930         * trans.c (gfc_unlikely): Remove unnecessary fold_convert.
931         (gfc_likely): Likewise.
933 2017-09-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
934             Steven G. Kargl  <kargl@gcc.gnu.org>
936         PR fortran/80118
937         * expr.c (gfc_get_full_arrayspec_from_expr): If there is
938         no symtree, set array spec to NULL.
940 2017-09-23  Janus Weil  <janus@gcc.gnu.org>
942         PR fortran/82143
943         * lang.opt: Add the options -fdefault-real-10 and -fdefault-real-16.
944         Rename flag_default_real to flag_default_real_8.
945         * invoke.texi: Add documentation.
946         * module.c (use_iso_fortran_env_module): flag_default_real is renamed.
947         * trans-types.c (gfc_init_kinds): Implement the flags
948         -fdefault-real-10 and -fdefault-real-16. Make -fdefault-double-8 work
949         without -fdefault-real-8.
951 2017-09-21  Paul Thomas  <pault@gcc.gnu.org>
953         PR fortran/52832
954         * match.c (gfc_match_associate): Before failing the association
955         try again, allowing a proc pointer selector.
957         PR fortran/80120
958         PR fortran/81903
959         PR fortran/82121
960         * primary.c (gfc_match_varspec): Introduce 'tgt_expr', which
961         points to the associate selector, if any. Go through selector
962         references, after resolution for variables, to catch any full
963         or section array references. If a class associate name does
964         not have the same declared type as the selector, resolve the
965         selector and copy the declared type to the associate name.
966         Before throwing a no implicit type error, resolve all allowed
967         selector expressions, and copy the resulting typespec.
969         PR fortran/67543
970         * resolve.c (resolve_assoc_var): Selector must cannot be the
971         NULL expression and it must have a type.
973         PR fortran/78152
974         * resolve.c (resolve_symbol): Allow associate names to be
975         coarrays.
977 2017-09-21  Cesar Philippidis  <cesar@codesourcery.com>
979         * openmp.c (gfc_match_oacc_wait): Don't restrict wait directive
980         arguments to constant integers.
982 2017-09-17  Paul Thomas  <pault@gcc.gnu.org>
984         PR fortran/82173
985         * decl.c (gfc_get_pdt_instance): Use the component initializer
986         expression for the default, rather than the parameter value.
987         * resolve.c (resolve_pdt): New function.
988         (resolve_symbol): Call it. Remove false error, prohibiting
989         deferred type parameters for dummy arguments.
991         PR fortran/60483
992         * primary.c (gfc_match_varspec): If the type of an associate
993         name is unknown and yet there is a match, try resolving the
994         target expression and using its type.
996 2017-09-15  Paul Thomas  <pault@gcc.gnu.org>
998         PR fortran/82184
999         trans-decl.c (gfc_trans_deferred_vars): Do not null the 'span'
1000         field if the symbol is either implicitly or explicitly saved.
1002 2017-09-13  Paul Thomas  <pault@gcc.gnu.org>
1004         PR fortran/82173
1005         * decl.c (match_char_kind): If the kind expression is
1006         parameterized, save it in saved_kind_expr and set kind = 0.
1007         (gfc_get_pdt_instance): Resolve and simplify before emitting
1008         error on expression kind. Insert a missing simplification after
1009         insertion of kind expressions.
1011 2017-09-12  Paul Thomas  <pault@gcc.gnu.org>
1013         PR fortran/82173
1014         PR fortran/82168
1015         * decl.c (variable_decl): Check pdt template components for
1016         appearance of KIND/LEN components in the type parameter name
1017         list, that components corresponding to type parameters have
1018         either KIND or LEN attributes and that KIND or LEN components
1019         are scalar. Copy the initializer to the parameter value.
1020         (gfc_get_pdt_instance): Add a label 'error_return' and follow
1021         it with repeated code, while replacing this code with a jump.
1022         Check if a parameter appears as a component in the template.
1023         Make sure that the parameter expressions are integer. Validate
1024         KIND expressions.
1025         (gfc_match_decl_type_spec): Search for pdt_types in the parent
1026         namespace since they are instantiated in the template ns.
1027         * expr.c (gfc_extract_int): Use a KIND parameter if it
1028         appears as a component expression.
1029         (gfc_check_init_expr): Allow expressions with the pdt_kind
1030         attribute.
1031         *primary.c (gfc_match_actual_arglist): Make sure that the first
1032         keyword argument is recognised when 'pdt' is set.
1034 2017-09-10  Paul Thomas  <pault@gcc.gnu.org>
1036         PR fortran/34640
1037         PR fortran/40737
1038         PR fortran/55763
1039         PR fortran/57019
1040         PR fortran/57116
1042         * expr.c (is_subref_array): Add class pointer array dummies
1043         to the list of expressions that return true.
1044         * trans-array.c: Add SPAN_FIELD and update indices for
1045         subsequent fields.
1046         (gfc_conv_descriptor_span, gfc_conv_descriptor_span_get,
1047         gfc_conv_descriptor_span_set, is_pointer_array,
1048         get_array_span): New functions.
1049         (gfc_get_descriptor_offsets_for_info): New function to preserve
1050         API for access to descriptor fields for trans-types.c.
1051         (gfc_conv_scalarized_array_ref): If the expression is a subref
1052         array, make sure that info->descriptor is a descriptor type.
1053         Otherwise, if info->descriptor is a pointer array, set 'decl'
1054         and fix it if it is a component reference.
1055         (build_array_ref): Simplify handling of class array refs by
1056         passing the vptr to gfc_build_array_ref rather than generating
1057         the pointer arithmetic in this function.
1058         (gfc_conv_array_ref): As in gfc_conv_scalarized_array_ref, set
1059         'decl'.
1060         (gfc_array_allocate): Set the span field if this is a pointer
1061         array. Use the expr3 element size if it is available, so that
1062         the dynamic type element size is used.
1063         (gfc_conv_expr_descriptor): Set the span field for pointer
1064         assignments.
1065         * trans-array.h: Prototypes for gfc_conv_descriptor_span_get
1066         gfc_conv_descriptor_span_set and
1067         gfc_get_descriptor_offsets_for_info added.
1068         trans-decl.c (gfc_get_symbol_decl): If a non-class pointer
1069         array, mark the declaration as a GFC_DECL_PTR_ARRAY_P. Remove
1070         the setting of GFC_DECL_SPAN.
1071         (gfc_trans_deferred_vars): Set the span field to zero in thge
1072         originating scope.
1073         * trans-expr.c (gfc_conv_procedure_call): Do not use copy-in/
1074         copy-out to pass subref expressions to a pointer dummy.
1075         (gfc_trans_pointer_assignment): Remove code for setting of
1076         GFC_DECL_SPAN. Set the 'span' field for non-class pointers to
1077         class function results. Likewise for rank remap. In the case
1078         that the target is not a whole array, use the target array ref
1079         for remap and, since the 'start' indices are missing, set the
1080         lbounds to one, as required by the standard.
1081         * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Pick up the
1082         'token' offset from the field decl in the descriptor.
1083         (conv_isocbinding_subroutine): Set the 'span' field.
1084         * trans-io.c (gfc_trans_transfer): Always scalarize pointer
1085         array io.
1086         * trans-stmt.c (trans_associate_var): Set the 'span' field.
1087         * trans-types.c (gfc_get_array_descriptor_base): Add the 'span'
1088         field to the array descriptor.
1089         (gfc_get_derived_type): Pointer array components are marked as
1090         GFC_DECL_PTR_ARRAY_P.
1091         (gfc_get_array_descr_info): Replaced API breaking code for
1092         descriptor offset calling gfc_get_descriptor_offsets_for_info.
1093         * trans.c (get_array_span): New function.
1094         (gfc_build_array_ref): Simplify by calling get_array_span and
1095         obtain 'span' if 'decl' or 'vptr' present.
1096         * trans.h : Rename DECL_LANG_FLAG_6, GFC_DECL_SUBREF_ARRAY_P,
1097         as GFC_DECL_PTR_ARRAY_P.
1099 2017-09-09  Paul Thomas  <pault@gcc.gnu.org>
1101         * decl.c : Add decl_type_param_list, type_param_spec_list as
1102         static variables to hold PDT spec lists.
1103         (build_sym): Copy 'type_param_spec_list' to symbol spec_list.
1104         (build_struct): Copy the 'saved_kind_expr' to the component
1105         'kind_expr'. Check that KIND or LEN components appear in the
1106         decl_type_param_list. These should appear as symbols in the
1107         f2k_derived namespace. If the component is itself a PDT type,
1108         copy the decl_type_param_list to the component param_list.
1109         (gfc_match_kind_spec): If the KIND expression is parameterized
1110         set KIND to zero and store the expression in 'saved_kind_expr'.
1111         (insert_parameter_exprs): New function.
1112         (gfc_insert_kind_parameter_exprs): New function.
1113         (gfc_insert_parameter_exprs): New function.
1114         (gfc_get_pdt_instance): New function.
1115         (gfc_match_decl_type_spec): Match the decl_type_spec_list if it
1116         is present. If it is, call 'gfc_get_pdt_instance' to obtain the
1117         specific instance of the PDT.
1118         (match_attr_spec): Match KIND and LEN attributes. Check for the
1119         standard and for type/kind of the parameter. They are also not
1120         allowed outside a derived type definition.
1121         (gfc_match_data_decl): Null the decl_type_param_list and the
1122         type_param_spec_list on entry and free them on exit.
1123         (gfc_match_formal_arglist): If 'typeparam' is true, add the
1124         formal symbol to the f2k_derived namespace.
1125         (gfc_match_derived_decl): Register the decl_type_param_list
1126         if this is a PDT. If this is a type extension, gather up all
1127         the type parameters and put them in the right order.
1128         *dump-parse-tree.c (show_attr): Signal PDT templates and the
1129         parameter attributes.
1130         (show_components): Output parameter atrributes and component
1131         parameter list.
1132         (show_symbol): Show variable parameter lists.
1133         * expr.c (expr.c): Copy the expression parameter list.
1134         (gfc_is_constant_expr): Pass on symbols representing PDT
1135         parameters.
1136         (gfc_check_init_expr): Break on PDT KIND parameters and
1137         PDT parameter expressions.
1138         (gfc_check_assign): Assigning to KIND or LEN components is an
1139         error.
1140         (derived_parameter_expr): New function.
1141         (gfc_derived_parameter_expr): New function.
1142         (gfc_spec_list_type): New function.
1143         * gfortran.h : Add enum gfc_param_spec_type. Add the PDT attrs
1144         to the structure symbol_attr. Add the 'kind_expr' and
1145         'param_list' field to the gfc_component structure. Comment on
1146         the reuse of the gfc_actual_arglist structure as storage for
1147         type parameter spec lists. Add the new field 'spec_type' to
1148         this structure. Add 'param_list' fields to gfc_symbol and
1149         gfc_expr. Add prototypes for gfc_insert_kind_parameter_exprs,
1150         gfc_insert_parameter_exprs, gfc_add_kind, gfc_add_len,
1151         gfc_derived_parameter_expr and gfc_spec_list_type.
1152         * interface.c (gfc_compare_derived_types): Treat PDTs in the
1153         same way as sequence types.
1154         * match.c : Add variable 'type_param_spec_list'.
1155         (gfc_op2string, gfc_match_member_sep, gfc_match_label): Remove
1156         trailing whitespace.
1157         (match_derived_type_spec): Match PDTs and find specific
1158         instance.
1159         (gfc_match_type_spec): Remove more trailing whitespace.
1160         (gfc_match_allocate): Assumed or deferred parameters cannot
1161         appear here. Copy the type parameter spec list to the expr for
1162         the allocatable entity. Free 'type_param_spec_list'.
1163         (gfc_match_common, gfc_match_namelist, gfc_match_module): Still
1164         more trailing whitespace to remove.
1165         (gfc_match_type_is): Allow PDT typespecs.
1166         * match.h : Modify prototypes for gfc_match_formal_arglist and
1167         gfc_match_actual_arglist.
1168         * module.c (ab_attribute, mstring attr_bits): PDT attributes
1169         added.
1170         (mio_symbol_attribute): PDT attributes handled.
1171         (mio_component): Deal with 'kind_expr' field.
1172         (mio_full_f2k_derived): For PDT templates, transfer the formal
1173         namespace symroot to the f2k_derived namespace.
1174         *primary.c (match_keyword_arg, gfc_match_actual_arglist): Add
1175         modifications to handle PDT spec lists. These are flagged in
1176         both cases by new boolean arguments, whose prototype defaults
1177         are false.
1178         (gfc_match_structure_constructor, match_variable): Remove yet
1179         more trailing whitespace.
1180         * resolve.c (get_pdt_spec_expr, get_pdt_constructor): New
1181         functions.
1182         (resolve_structure_cons): If the constructor is a PDT template,
1183         call get_pdt_constructor to build it using the parameter lists
1184         and then get the specific instance of the PDT.
1185         (resolve_component): PDT strings need a hidden string length
1186         component like deferred characters.
1187         (resolve_symbol): Dummy PDTs cannot have deferred parameters.
1188         * symbol.c (gfc_add_kind, gfc_add_len): New functions.
1189         (free_components): Free 'kind_expr' and 'param_list' fields.
1190         (gfc_free_symbol): Free the 'param_list' field.
1191         (gfc_find_sym_tree): If the current state is a PDT template,
1192         look for the symtree in the f2k_derived namspaces.
1193         trans-array.c (structure_alloc_comps): Allocate and deallocate
1194         PDTs. Check dummy arguments for compliance of LEN parameters.
1195         Add the new functions to the preceeding enum.
1196         (gfc_allocate_pdt_comp, gfc_deallocate_pdt_comp and
1197         gfc_check_pdt_dummy): New functions calling above.
1198         * trans-array.h : Add prototypes for these functions.
1199         trans-decl.c (gfc_get_symbol_decl): Call gfc_defer_symbol_init
1200         as appropriate for PDT symbols.
1201         (gfc_trans_deferred_vars): Allocate/deallocate PDT entities as
1202         they come into and out of scope. Exclude pdt_types from being
1203         'gcc_unreachable'.
1204         (gfc_trans_subcomponent_assign): PDT array components must be
1205         handles as if they are allocatable.
1206         * trans-stmt.c (gfc_trans_allocate): Handle initialization of
1207         PDT entities.
1208         (gfc_trans_deallocate): Likewise.
1209         * trans-types.c (gfc_get_derived_type): PDT templates must not
1210         arrive here. PDT string components are handles as if deferred.
1211         Similarly, PDT arrays are treated as if allocatable. PDT
1212         strings are pointer types.
1213         * trans.c (gfc_deferred_strlen): Handle PDT strings in the same
1214         way as deferred characters.
1216 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
1218         PR c/81887
1219         * parse.c (decode_omp_directive): Use matchs instead of matcho for
1220         end ordered and ordered directives, except for ordered depend.  For
1221         -fopenmp-simd and ordered depend, reject the stmt.
1222         * trans-openmp.c (gfc_trans_omp_ordered): For -fopenmp-simd ignore
1223         threads clause and if simd clause isn't present, just translate the
1224         body.
1226 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1227             Alan Hayward  <alan.hayward@arm.com>
1228             David Sherwood  <david.sherwood@arm.com>
1230         * trans-types.c (gfc_init_kinds): Use opt_scalar_int_mode for
1231         the mode iterator.
1233 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1234             Alan Hayward  <alan.hayward@arm.com>
1235             David Sherwood  <david.sherwood@arm.com>
1237         * target-memory.c (size_integer): Use SCALAR_INT_TYPE_MODE.
1238         (size_logical): Likewise.
1240 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1241             Alan Hayward  <alan.hayward@arm.com>
1242             David Sherwood  <david.sherwood@arm.com>
1244         * trans-types.c (gfc_type_for_mode): Use is_a <scalar_int_mode>.
1246 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1247             Alan Hayward  <alan.hayward@arm.com>
1248             David Sherwood  <david.sherwood@arm.com>
1250         * trans-types.c (gfc_init_kinds): Use opt_scalar_float_mode
1251         and FOR_EACH_MODE_IN_CLASS.
1253 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1254             Alan Hayward  <alan.hayward@arm.com>
1255             David Sherwood  <david.sherwood@arm.com>
1257         * target-memory.c (size_float): Use SCALAR_FLOAT_TYPE_MODE
1258         instead of TYPE_MODE.
1260 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
1261             Alan Hayward  <alan.hayward@arm.com>
1262             David Sherwood  <david.sherwood@arm.com>
1264         * trans-types.c (gfc_init_kinds): Use machine_mode instead of int
1265         for "mode".
1267 2017-08-28  Janus Weil  <janus@gcc.gnu.org>
1269         PR fortran/81770
1270         * expr.c (gfc_check_pointer_assign): Improve the check whether pointer
1271         may outlive pointer target.
1273 2017-08-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
1275         PR fortran/81974
1276         * frontend-passes (inline_matumul_assign):  Explicity
1277         set typespec for call to CONJG.
1279 2017-08-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1281         PR fortran/81296
1282         * trans-io.c (get_dtio_proc): Add check for format label and set
1283         formatted flag accordingly. Reorganize the code a little.
1285 2017-08-16  Thomas Koenig  <tkoenig@gcc.gnu.org>
1287         PR fortran/81116
1288         * frontend-passes.c (realloc_string_callback): If expression is a
1289         concatenation, also check for dependency.
1290         (constant_string_length): Check for presence of symtree.
1292 2017-08-13  Thomas Koenig  <tkoenig@gcc.gnu.org>
1294         * gfortran.texi: Document format of unformatted sequential files.
1296 2017-08-11  Thomas Koenig  <tkoenig@gcc.gnu.org>
1298         * invoke.texi:  Actually commit change about -Ofast.
1300 2017-08-11  Thomas Koenig  <tkoenig@gcc.gnu.org>
1302         PR fortran/60355
1303         * resolve.c (resolve_symbol): Adjust (and reformat)
1304         comment.  Perform check if a BIND(C) is declared
1305         at module level regardless of whether it is typed
1306         implicitly or not.
1308 2017-08-10  Fritz Reese <fritzoreese@gmail.com>
1310         * options.c (set_dec_flags): Only set legacy standards when value
1311         is not zero.
1313 2017-08-10  Fritz Reese <fritzoreese@gmail.com>
1315         * options.c (set_dec_flags, gfc_post_options): Only set flag_d_lines
1316         with -fdec when not set by user.
1318 2017-08-10  Fritz Reese <fritzoreese@gmail.com>
1320         * decl.c (attr_seen): New static variable.
1321         * decl.c (variable_decl): Match %FILL in STRUCTURE body.
1322         * gfortran.texi: Update documentation.
1324 2017-08-08  Martin Liska  <mliska@suse.cz>
1326         * trans-types.c: Include header files.
1328 2017-08-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
1330         PR fortran/68829
1331         PR fortran/81701
1332         * options.c: Make -Ofast honor -fmax-stack-var-size.
1333         * invoke.texi: Document change.
1335 2017-08-01  Thomas König  <tkoenig@gcc.gnu.org>
1337         PR fortran/79312
1338         * intrisic.c (gfc_convert_type_warn):  Only set typespec for
1339         empty array constructors which don't have it already.
1341 2017-08-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
1343         PR fortran/45435
1344         * lang.opt (fc-prototypes): Add option.
1345         * gfortran.h (gfc_typespec): Add interop_kind to struct.
1346         (gfc_dump_c_prototypes): Add prototype.
1347         * decl.c (gfc_match_kind_spec): Copy symbol used for kind to typespec.
1348         * parse.c (gfc_parse_file): Call gfc_dump_prototypes.
1349         * dump-parse-tree.c (gfc_dump_c_prototypes): New function.
1350         (type_return): New enum.
1351         (get_c_type_name): New function.
1352         (write_decl): New function.
1353         (write_type): New function.
1354         (write_variable): New function.
1355         (write_proc): New function.
1356         (write_interop_decl): New function.
1357         * invoke.texi: Document -fc-prototypes.
1359 2017-08-01  Dominique d'Humieres  <dominiq@lps.ens.fr>
1361         PR fortran/53542
1362         * expr.c (gfc_check_init_expr): Use the renamed name.
1364 2017-07-31  Jakub Jelinek  <jakub@redhat.com>
1366         * check.c (gfc_check_num_images): Fix a pasto.
1368 2017-07-29  Jakub Jelinek  <jakub@redhat.com>
1370         * trans-decl.c (gfc_trans_use_stmts): Pass false as new argument to
1371         the imported_module_or_decl debug hook.
1373 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1375         * resolve.c (find_reachable_labels): Adjust.
1377 2017-07-25  Jakub Jelinek  <jakub@redhat.com>
1379         * ioparm.def: Use 1U << 31 instead of 1 << 31 as flags2 mask.
1381 2017-07-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
1383         * dump-parse-tree.c (show_symbol):  Show binding label if present.
1385 2017-07-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
1386             Mikael Morin  <mikael@gcc.gnu.org>
1388         PR fortran/66102
1389         * fortran/trans-array.c (gfc_conv_resolve_dependencies):
1390         Break if dependency has been found.
1392 2017-07-23  Alexander Monakov  <amonakov@ispras.ru>
1394         * interface.c (pair_cmp): Fix gfc_symbol comparison.  Adjust comment.
1396 2017-07-18  Nathan Sidwell  <nathan@acm.org>
1398         * trans.c (gfc_build_array_ref): Use TYPE_MAX_VALUE.
1400 2017-07-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
1402         PR fortran/81341
1403         * class.c (class_array_ref_detected): Remove a redundant
1404         condition.
1406 2017-07-06  Harald Anlauf  <anlauf@gmx.de>
1408         PR fortran/70071
1409         * array.c (gfc_ref_dimen_size): Handle bad subscript triplets.
1411 2017-07-03  Dominique d'Humieres  <dominiq@lps.ens.fr>
1413         PR fortran/79866
1414         * resolve.c (resolve_symbol): Fix typo.
1416 2017-07-03  Dominique d'Humieres  <dominiq@lps.ens.fr>
1418         PR fortran/79843
1419         * symbol.c (check_conflict): Add missing "conflicts".
1421 2017-06-29  Cesar Philippidis  <cesar@codesourcery.com>
1423         PR fortran/77765
1424         * openmp.c (gfc_match_oacc_routine): Check if proc_name exist before
1425         comparing the routine name against it.
1427 2017-06-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1429         PR fortran/80164
1430         * trans-stmt.c (gfc_trans_call): If no code expr, use code->loc
1431         as warning/error locus.
1433 2017-06-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1435         PR fortran/81160
1436         * arith.c (wprecision_int_real): Set return value before
1437         mpz_clear and then return after it.
1439 2017-06-15  Janus Weil  <janus@gcc.gnu.org>
1441         PR fortran/80983
1442         * trans-expr.c (gfc_conv_procedure_call): Deallocate the result of
1443         scalar allocatable procedure-pointer components.
1445 2017-06-10  Thomas Koenig  <tkoenig@gcc.gnu.org>
1447         PR fortran/80988
1448         * frontend-passes.c (traverse_io_block):  Also
1449         check for variables occurring as indices multiple
1450         time in a single implied DO loop.
1452 2017-06-05  Janus Weil  <janus@gcc.gnu.org>
1454         PR fortran/70601
1455         * trans-expr.c (gfc_conv_procedure_call): Fix detection of allocatable
1456         function results.
1458 2017-06-05  Nicolas Koenig  <koenigni@student.ethz.ch>
1460         PR fortran/35339
1461         * frontend-passes.c (traverse_io_block): New function.
1462         (simplify_io_impl_do): New function.
1463         (optimize_namespace): Invoke gfc_code_walker with
1464         simplify_io_impl_do.
1466 2017-06-02  Jakub Jelinek  <jakub@redhat.com>
1468         PR fortran/80918
1469         * openmp.c (resolve_omp_clauses): Fix a typo.
1471 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
1473         * error.c (gfc_format_decoder): Update for new bool and
1474         const char ** params.
1476 2017-05-29  Thomas Koenig  <tkoenig@gcc.gnu.org>
1478         PR fortran/37131
1479         * frontend-passes.c (check_conjg_transpose_variable):
1480         Add prototype.
1481         (has_dimen_vector_ref):  Likewise
1482         (matmul_temp_args):  New function. Add prototype.
1483         (optimize_namespace):  Call matmul_temp_args.
1485 2017-05-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
1487         * frontend-passes.c (matmul_lhs_realloc):  Correct
1488         allocation size for case A1B2.
1490 2017-05-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
1492         * dump-parse-tree.c (show_expr):  Also replace
1493         with dumpfile for showing values for forgotten
1494         case.
1496 2017-05-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
1498         * dump-parse-tree.c (show_expr):  Replace stdout
1499         with dumpfile for showing values.
1501 2017-05-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
1503         PR fortran/66094
1504         * frontend-passes.c (matrix_case):  Add A2TB2.
1505         (inline_limit_check):  Handle MATMUL(TRANSPOSE(A),B)
1506         (inline_matmul_assign):  Likewise.
1508 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
1510         * openmp.c (OACC_KERNELS_CLAUSES): Add "OMP_CLAUSE_NUM_GANGS",
1511         "OMP_CLAUSE_NUM_WORKERS", "OMP_CLAUSE_VECTOR_LENGTH".
1513 2017-05-22  Janus Weil  <janus@gcc.gnu.org>
1515         PR fortran/80766
1516         * resolve.c (resolve_fl_derived): Make sure that vtype symbols are
1517         properly resolved.
1519 2017-05-19  Paul Thomas  <pault@gcc.gnu.org>
1521         PR fortran/80333
1522         * trans-io.c (nml_get_addr_expr): If we are dealing with class
1523         type data set tmp tree to get that address.
1524         (transfer_namelist_element): Set the array spec to point to the
1525         the class data.
1527 2017-05-19  David Malcolm  <dmalcolm@redhat.com>
1529         PR fortran/79852
1530         * bbt.c (insert): Remove trailing exclamation mark from message.
1531         * decl.c (gfc_match_final_decl): Likewise.
1532         * dump-parse-tree.c (show_expr): Likewise.
1533         * module.c (gfc_use_module): Likewise.
1534         * primary.c (build_actual_constructor): Likewise.
1535         (gfc_convert_to_structure_constructor): Likewise.
1537 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
1539         * gfortran.h (enum gfc_omp_default_sharing): Add
1540         "OMP_DEFAULT_PRESENT".
1541         * dump-parse-tree.c (show_omp_clauses): Handle it.
1542         * openmp.c (gfc_match_omp_clauses): Likewise.
1543         * trans-openmp.c (gfc_trans_omp_clauses): Likewise.
1545 2017-05-18  Fritz Reese <fritzoreese@gmail.com>
1547         PR fortran/79968
1548         * decl.c (match_attr_spec, gfc_match_automatic,
1549         gfc_match_static, gfc_match_structure_decl): Unify diagnostic
1550         errors regarding -fdec options.
1551         * io.c (match_dec_etag, match_dec_vtag, match_dec_ftag): Ditto.
1553 2017-05-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1555         PR fortran/80741
1556         * trans-io.c (transfer_namelist_element): Change check from
1557         NULL_TREE to null_pointer_node.
1559 2017-05-17  Fritz Reese <fritzoreese@gmail.com>
1561         PR fortran/80668
1562         * expr.c (component_initializer): Don't generate initializers for
1563         pointer components.
1564         * invoke.texi (-finit-derived): Document.
1566 2017-05-16  Paul Thomas  <pault@gcc.gnu.org>
1568         PR fortran/80554
1569         * decl.c (build_sym): In a submodule allow overriding of host
1570         associated symbols from the ancestor module with a new
1571         declaration.
1573 2017-05-15  Steven G. Kargl  <kargl@gcc.gnu.org>
1575         PR fortran/80674
1576         * trans-stmt.c (gfc_trans_integer_select): Remove redundant condition.
1578 2017-05-15  Steven G. Kargl  <kargl@gcc.gnu.org>
1580         PR fortran/80752
1581         * expr.c (gfc_generate_initializer):  If type conversion fails,
1582         check for error and return NULL.
1584 2017-05-14  Nicolas Koenig  <koenigni@student.ethz.ch>
1586         PR fortran/80442
1587         * array.c (gfc_ref_dimen_size): Simplify stride
1588         expression
1589         * data.c (gfc_advance_section): Simplify start,
1590         end and stride expressions
1591         (gfc_advance_section): Simplify start and end
1592         expressions
1593         (gfc_get_section_index): Simplify start expression
1595 2017-05-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1597         * io.c (gfc_resolve_dt): Fix returns to bool type.
1599 2017-05-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1601         PR fortran/78659
1602         * io.c (dtio_procs_present): Add new function to check for DTIO
1603         procedures relative to I/O statement READ or WRITE.
1604         (gfc_resolve_dt): Add namelist checks using the new function.
1605         * resolve.c (dtio_procs_present): Remove function and related
1606         namelist checks. (resolve_fl_namelist): Add check specific to
1607         Fortran 95 restriction on namelist objects.
1609 2017-05-11  Nathan Sidwell  <nathan@acm.org>
1611         * trans-decl.c: Include dumpfile.h not tree-dump.h,
1613 2017-05-09  Janus Weil  <janus@gcc.gnu.org>
1615         PR fortran/79311
1616         * resolve.c (gfc_resolve_finalizers): Ensure that derived-type
1617         components have a their finalizers resolved, also if the superordinate
1618         type itself has a finalizer.
1620 2017-05-08  Thomas Koenig  <tkoenig@gcc.gnu.org>
1622         PR fortran/79930
1623         * frontend-passes.c (matmul_to_var_expr): New function,
1624         add prototype.
1625         (matmul_to_var_code):  Likewise.
1626         (optimize_namespace):  Use them from gfc_code_walker.
1628 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1630         * cpp.c (cb_cpp_error): Replace report_diagnostic
1631         with diagnostic_report_diagnostic.
1632         * error.c (gfc_warning): Likewise.
1633         (gfc_warning_now_at): Likewise.
1634         (gfc_warning_now): Likewise.
1635         (gfc_warning_internal): Likewise.
1636         (gfc_error_now): Likewise.
1637         (gfc_fatal_error): Likewise.
1638         (gfc_error_opt): Likewise.
1639         (gfc_internal_error): Likewise.
1641 2017-05-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
1643         PR fortran/37131
1644         * frontend-passes.c (inline_matmul_assign): Also check bounds
1645         for allocatable lhs and matrix-vector-multiplication.
1647 2017-04-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1649         PR fortran/80484
1650         * io.c (format_lex): Check for '/' and set token to FMT_SLASH.
1651         (check_format): Move FMT_DT checking code to data_desc section.
1652         * module.c (gfc_match_use): Include the case of INTERFACE_DTIO.
1654 2017-04-22  Janus Weil  <janus@gcc.gnu.org>
1656         PR fortran/80121
1657         * trans-types.c (gfc_conv_procedure_call): Deallocate the components
1658         of allocatable intent(out) arguments.
1660 2017-04-21  Janus Weil  <janus@gcc.gnu.org>
1662         PR fortran/80392
1663         * trans-types.c (gfc_get_derived_type): Prevent an infinite loop when
1664         building a derived type that includes a procedure pointer component
1665         with a polymorphic result.
1667 2017-04-17  Paul Thomas  <pault@gcc.gnu.org>
1669         PR fortran/80440
1670         * module.c (find_symtree_for_symbol): Delete.
1671         (read_module): Remove the call to the above.
1673 2017-04-14  Janus Weil  <janus@gcc.gnu.org>
1675         PR fortran/80361
1676         * class.c (generate_finalization_wrapper): Give the finalization wrapper
1677         the recursive attribute.
1679 2017-04-10  Nicolas Koenig  <koenigni@student.ethz.ch>
1680             Paul Thomas  <pault@gcc.gnu.org>
1682         PR fortran/69498
1683         * module.c (gfc_match_submodule): Add error
1684         if function is called in the wrong state.
1686 2017-04-10  Janus Weil  <janus@gcc.gnu.org>
1688         PR fortran/80046
1689         * expr.c (gfc_check_pointer_assign): Check if procedure pointer
1690         components in a pointer assignment need an explicit interface.
1692 2017-03-18  Nicolas Koenig  <koenigni@student.ethz.ch>
1694         PR fortran/69498
1695         * symbol.c (gfc_delete_symtree): If there is a period in the name, ignore
1696         everything before it.
1698 2017-03-28  Janus Weil  <janus@gcc.gnu.org>
1700         PR fortran/78661
1701         * trans-io.c (transfer_namelist_element): Perform a polymorphic call
1702         to a DTIO procedure if necessary.
1704 2017-03-25  Paul Thomas  <pault@gcc.gnu.org>
1706         PR fortran/80156
1707         PR fortran/79382
1708         * decl.c (access_attr_decl): Remove the error for an absent
1709         generic DTIO interface and ensure that symbol has the flavor
1710         FL_PROCEDURE.
1712 2017-03-22  Dominique d'Humieres  <dominiq@lps.ens.fr>
1714         PR fortran/79838
1715         * module.c: Remove trailing period.
1717 2017-03-22  Dominique d'Humieres  <dominiq@lps.ens.fr>
1719         PR fortran/79602
1720         * decl.c: Replace '%s' with %qs.
1721         * expr.c: Likewise.
1722         * interface.c: Likewise.
1723         * match.c: Likewise.
1724         * primary.c: Likewise.
1725         * resolve.c: Likewise.
1727         PR fortran/79844
1728         PR fortran/80011
1729         * io.c: Remove trailing spaces.
1730         * match.c: Likewise.
1731         * openmp.c: Likewise.
1732         * resolve.c: Likewise.
1733         * trans-intrinsic.c: Likewise.
1735         PR fortran/79853
1736         * expr.c: Remove a double spaces.
1738         PR fortran/79859
1739         * primary.c: Remove spurious quotes around %qs.
1741 2017-03-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
1743         PR fortran/80142
1744         * frontend-passes.c (combine_array_constructor): Take
1745         location of new expression from constructor expression instead
1746         of constructor.
1748 2017-03-20  Nicolas Koenig  <koenigni@student.ethz.ch>
1750         PR fortran/39239
1751         * symbol.c (check_conflict): Report an error if an EQUIVALENCE
1752         object is BIND(C)
1754 2017-03-18  Nicolas Koenig  <koenigni@student.ethz.ch>
1756         PR fortran/69498
1757         * decl.c (add_hidden_procptr_result): Fixed Refs count of the
1758         created "ppr@" symbol.
1760 2017-03-18  Paul Thomas  <pault@gcc.gnu.org>
1762         PR fortran/79676
1763         * module.c (mio_symbol_attribute): Remove reset of the flag
1764         'no_module_procedures'.
1765         (check_for_module_procedures): New function. Move declaration
1766         of 'no_module_procedures' to above it.
1767         (gfc_dump_module): Traverse namespace calling new function.
1769 2017-03-18  Paul Thomas  <pault@gcc.gnu.org>
1771         PR fortran/71838
1772         * symbol.c (check_conflict): A dummy procedure in a submodule,
1773         module procedure is not an error.
1774         (gfc_add_flavor): Ditto.
1776 2017-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1778         PR fortran/79841
1779         * openmp.c (check_symbol_not_pointer): Adjust diagnostics.
1781 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
1783         PR fortran/80010
1784         * parse.c (gfc_ascii_statement): Use !$ACC for ST_OACC_ATOMIC
1785         and ST_OACC_END_ATOMIC, instead of !ACC.
1786         * trans-decl.c (finish_oacc_declare): Use !$ACC instead of $!ACC.
1787         * openmp.c (gfc_match_oacc_declare, gfc_match_oacc_wait,
1788         gfc_resolve_oacc_declare): Likewise.
1790         PR fortran/79886
1791         * error.c (gfc_format_decoder): Rename plus argument to set_locus,
1792         remove ATTRIBUTE_UNUSED from all arguments, call default_tree_printer
1793         if not a Fortran specific spec.
1794         * trans-io.c: Include options.h.
1795         (gfc_build_st_parameter): Temporarily disable -Wpadded around layout
1796         of artificial IO data structures.
1798 2017-03-15  David Malcolm  <dmalcolm@redhat.com>
1800         PR fortran/79860
1801         * resolve.c (resolve_contained_fntype): Make error messages more
1802         amenable to translation.
1804 2017-03-06  Richard Biener  <rguenther@suse.de>
1806         PR fortran/79894
1807         * trans.c (gfc_add_modify_loc): Weaken assert.
1809 2017-03-05  Andre Vehreschild  <vehre@gcc.gnu.org>,
1810             Alessandro Fanfarillo  <fanfarillo.gcc@gmail.com>
1812         * check.c (positive_check): Add new function checking constant for
1813         being greater then zero.
1814         (gfc_check_image_status): Add checking of image_status arguments.
1815         (gfc_check_failed_or_stopped_images): Same but for failed_- and
1816         stopped_images function.
1817         * dump-parse-tree.c (show_code_node): Added output of FAIL IMAGE.
1818         * gfortran.h (enum gfc_statement): Added FAIL_IMAGE_ST.
1819         (enum gfc_isym_id): Added new intrinsic symbols.
1820         (enum gfc_exec_op): Added EXEC_FAIL_IMAGE.
1821         * gfortran.texi: Added description for the new API functions. Updated
1822         coverage of gfortran of TS18508.
1823         * intrinsic.c (add_functions): Added symbols to resolve new intrinsic
1824         functions.
1825         * intrinsic.h: Added prototypes.
1826         * iresolve.c (gfc_resolve_failed_images): Resolve the failed_images
1827         intrinsic.
1828         (gfc_resolve_image_status): Same for image_status.
1829         (gfc_resolve_stopped_images): Same for stopped_images.
1830         * libgfortran.h: Added prototypes.
1831         * match.c (gfc_match_if): Added matching of FAIL IMAGE statement.
1832         (gfc_match_fail_image): Match a FAIL IMAGE statement.
1833         * match.h: Added prototype.
1834         * parse.c (decode_statement): Added matching for FAIL IMAGE.
1835         (next_statement): Same.
1836         (gfc_ascii_statement): Same.
1837         * resolve.c: Same.
1838         * simplify.c (gfc_simplify_failed_or_stopped_images): For COARRAY=
1839         single a constant result can be returne.d
1840         (gfc_simplify_image_status): For COARRAY=single the result is constant.
1841         * st.c (gfc_free_statement): Added FAIL_IMAGE handling.
1842         * trans-decl.c (gfc_build_builtin_function_decls): Added decls of the
1843         new intrinsics.
1844         * trans-expr.c (gfc_conv_procedure_call): This is first time all
1845         arguments of a function are optional, which is now handled here
1846         correctly.
1847         * trans-intrinsic.c (conv_intrinsic_image_status): Translate
1848         image_status.
1849         (gfc_conv_intrinsic_function): Add support for image_status.
1850         (gfc_is_intrinsic_libcall): Add support for the remaining new
1851         intrinsics.
1852         * trans-stmt.c (gfc_trans_fail_image): Trans a fail image.
1853         * trans-stmt.h: Add the prototype for the above.
1854         * trans.c (trans_code): Dispatch for fail_image.
1855         * trans.h: Add the trees for the new intrinsics.
1857 2017-03-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1859         PR fortran/79841
1860         * openmp.c (check_symbol_not_pointer): Adjust diagnostic.
1862 2017-02-28  Paul Thomas  <pault@gcc.gnu.org>
1864         PR fortran/79739
1865         * resolve.c (resolve_fl_procedure): Deal with the case where
1866         'submodule_name' is NULL so that gfc_error does not ICE.
1867         Reformat the error message to make it more consistent.
1869 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
1871         * parse.c (parse_critical_block): Use cond ? G_("...") : G_("...")
1872         instead of just cond ? "..." : "...".
1873         * scanner.c (gfc_next_char_literal): Likewise.
1874         * match.c (match_exit_cycle): Likewise.
1876 2017-02-26  Thomas Koenig  <tkoenig@gcc.gnu.org>
1878         PR fortran/51119
1879         * options.c (gfc_post_options): Set default limit for matmul
1880         inlining to 30.
1881         * invoke.texi: Document change.
1883 2017-02-25  Dominique d'Humieres  <dominiq@lps.ens.fr>
1885         PR fortran/79601
1886         * interface.c (check_dtio_arg_TKR_intent): Change 'intent'
1887         to 'INTENT'.
1889 2017-02-25  Dominique d'Humieres  <dominiq@lps.ens.fr>
1891         PR fortran/79597
1892         * interface.c (gfc_match_end_interface): Remove spurious comma
1893         and space, replace 'got %s' with 'got %qs'.
1895 2017-02-20  Paul Thomas  <pault@gcc.gnu.org>
1897         PR fortran/79599
1898         * interface.c (check_dtio_arg_TKR_intent): Supply 'must'
1899         missing from error message.
1901 2017-02-20  Paul Thomas  <pault@gcc.gnu.org>
1903         PR fortran/79523
1904         * interface.c (gfc_find_typebound_dtio_proc): Guard test for
1905         flavor attribute by checking that symbol is resolved.
1907 2017-02-16  Paul Thomas  <pault@gcc.gnu.org>
1909         PR fortran/79382
1910         * decl.c (access_attr_decl): Test for presence of generic DTIO
1911         interface and emit error if not present.
1913 2017-02-20  Paul Thomas  <pault@gcc.gnu.org>
1915         PR fortran/79434
1916         * parse.c (check_component, parse_union): Whitespace.
1917         (set_syms_host_assoc): For a derived type, check if the module
1918         in which it was declared is one of the submodule ancestors. If
1919         it is, make the components public. Otherwise, reset attribute
1920         'host_assoc' and set 'use-assoc' so that encapsulation is
1921         preserved.
1923 2017-02-19  Paul Thomas  <pault@gcc.gnu.org>
1925         PR fortran/79447
1926         * decl.c (gfc_set_constant_character_len): Whitespace.
1927         (gfc_match_end): Catch case where a procedure is contained in
1928         a module procedure and ensure that 'end procedure' is the
1929         correct termination.
1931 2017-02-19  Paul Thomas  <pault@gcc.gnu.org>
1933         PR fortran/79402
1934         * resolve.c (fixup_unique_dummy): New function.
1935         (gfc_resolve_expr): Call it for dummy variables with a unique
1936         symtree name.
1938 2017-02-19  Andre Vehreschild  <vehre@gcc.gnu.org>
1940         PR fortran/79229
1941         * trans-expr.c (gfc_trans_assignment_1): Deref indirect refs when
1942         compiling with -fcheck=mem to check the pointer and not the data.
1944 2017-02-19  Andre Vehreschild  <vehre@gcc.gnu.org>
1946         PR fortran/79335
1947         * trans-array.c (duplicate_allocatable_coarray): Ensure attributes
1948         passed are properly initialized.
1949         (structure_alloc_comps): Same.
1950         * trans-expr.c (gfc_trans_structure_assign): Same.
1952 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
1954         * trans-expr.c (gfc_conv_substring): Add missing space in diagnostics.
1956 2017-02-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
1958         PR fortran/65542
1959         * intrinsic.c (gfc_intrinsic_func_interface):  Return an error
1960         for -std=f95 for disallowed transformational functions in
1961         initialization expressions.
1963 2017-02-09  Cesar Philippidis  <cesar@codesourcery.com>
1964             Joseph Myers  <joseph@codesourcery.com>
1966         * openmp.c (resolve_omp_clauses): Error on directives
1967         containing both tile and collapse clauses.
1968         (resolve_oacc_loop_blocks): Represent '*' tile arguments as zero.
1969         * trans-openmp.c (gfc_trans_omp_do): Lower tiled loops like
1970         collapsed loops.
1972 2017-02-07  Steven G. Kargl  <kargl@gcc.gnu.org>
1974         * trans-types.c (gfc_get_int_kind_from_width_isofortranen):  Choose
1975         REAL type with the widest precision if two (or more) have the same
1976         storage size.
1978 2017-02-05  Andre Vehreschild  <vehre@gcc.gnu.org>
1980         PR fortran/79344
1981         * trans-stmt.c (gfc_trans_allocate): Only deallocate the components of
1982         the temporary, when a new object was created for the temporary.  Not
1983         when it is just an alias to an existing object.
1985 2017-02-05  Andre Vehreschild  <vehre@gcc.gnu.org>
1987         PR fortran/79335
1988         * trans-decl.c (generate_coarray_sym_init): Retrieve the symbol's
1989         attributes before using them.
1991 2017-02-05  Andre Vehreschild  <vehre@gcc.gnu.org>
1993         PR fortran/78958
1994         * trans-stmt.c (gfc_trans_allocate): Add the multiplying the _len
1995         component of unlimited polymorphic objects when source-allocating.
1997 2017-02-05  Andre Vehreschild  <vehre@gcc.gnu.org>
1999         PR fortran/79230
2000         * trans-array.c (structure_alloc_comps): Ignore pointer components when
2001         freeing structures.
2003 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
2005         PR lto/79061
2006         * f95-lang.c (gfc_create_decls): Include stringpool.h.
2007         Pass main_input_filename to build_translation_unit_decl.
2009 2017-01-23  Thomas Koenig  <tkoenig@netcologne.de>
2011         * arith.c (arith_power):  If simplifying integer power expression
2012         to zero, warn if -Winteger-division is given.
2014 2017-01-22  Jakub Jelinek  <jakub@redhat.com>
2016         PR fortran/79154
2017         * parse.c (matchs, matcho, matchds, matchdo): Replace return st;
2018         with { ret = st; goto finish; }.
2019         (decode_omp_directive): Allow declare simd, declare target and
2020         simd directives in PURE/ELEMENTAL procedures.  Only call
2021         gfc_unset_implicit_pure on successful match of other procedures.
2023 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
2025         * gfc-internals.texi (Symbol Versioning): Change references
2026         to www.akkadia.org to https.
2028 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
2030         * gfortran.h (gfc_extract_int): Change return type to bool.  Add
2031         int argument with = 0.
2032         * decl.c (gfc_match_kind_spec): Adjust gfc_extract_int caller, pass
2033         1 as new last argument to it, don't emit gfc_error.
2034         (match_char_kind): Likewise.
2035         (gfc_match_decl_type_spec): Use gfc_get_string ("%s", x) instead of
2036         gfc_get_string (x).
2037         (gfc_match_derived_decl, match_binding_attributes): Likewise.
2038         (gfc_match_structure_decl): Don't sprintf back to name, call
2039         get_struct_decl directly with gfc_dt_upper_string (name) result.
2040         * trans-stmt.c (gfc_trans_allocate): Use gfc_get_string ("%s", x)
2041         instead of gfc_get_string (x).
2042         * module.c (gfc_dt_lower_string, gfc_dt_upper_string,
2043         gfc_match_use, gfc_match_submodule, find_true_name, mio_pool_string,
2044         mio_symtree_ref, mio_expr, mio_omp_udr_expr, load_generic_interfaces,
2045         load_omp_udrs, load_needed, read_module, dump_module,
2046         create_intrinsic_function, import_iso_c_binding_module,
2047         create_int_parameter, create_int_parameter_array, create_derived_type,
2048         use_iso_fortran_env_module): Likewise.
2049         * error.c (gfc_diagnostic_starter, gfc_diagnostic_start_span): Use
2050         pp_verbatim (context->printer, "%s", x) instead of
2051         pp_verbatim (context->printer, x).
2052         * match.c (gfc_match_small_int): Adjust gfc_extract_int caller, pass
2053         1 as new last argument to it, don't emit gfc_error.
2054         (gfc_match_small_int_expr): Likewise.
2055         * iresolve.c (gfc_get_string): Optimize format "%s" case.
2056         (resolve_bound): Use gfc_get_string ("%s", x) instead of
2057         gfc_get_string (x).
2058         (resolve_transformational): Formatting fix.
2059         (gfc_resolve_char_achar): Change name argument to bool is_achar,
2060         use a single format string and if is_achar add "a" before "char".
2061         (gfc_resolve_achar, gfc_resolve_char): Adjust callers.
2062         * expr.c (gfc_extract_int): Change return type to bool, return true
2063         if some error occurred.  Add REPORT_ERROR argument, if non-zero
2064         call either gfc_error or gfc_error_now depending on its sign.
2065         * arith.c (arith_power): Adjust gfc_extract_int caller.
2066         * symbol.c (gfc_add_component): Use gfc_get_string ("%s", x) instead
2067         of gfc_get_string (x).
2068         (gfc_new_symtree, gfc_delete_symtree, gfc_get_uop, gfc_new_symbol,
2069         gfc_get_gsymbol, generate_isocbinding_symbol): Likewise.
2070         * openmp.c (gfc_match_omp_clauses): Adjust gfc_extract_int caller, pass
2071         -1 as new last argument to it, don't emit gfc_error_now.
2072         (gfc_match_omp_declare_reduction): Use gfc_get_string ("%s", x)
2073         instead of gfc_get_string (x).
2074         * check.c (kind_check): Adjust gfc_extract_int caller.
2075         * intrinsic.c (add_sym, find_sym, make_alias): Use
2076         gfc_get_string ("%s", x) instead of gfc_get_string (x).
2077         * simplify.c (get_kind, gfc_simplify_btest, gfc_simplify_maskr,
2078         gfc_simplify_maskl, gfc_simplify_poppar, gfc_simplify_repeat,
2079         gfc_simplify_selected_int_kind, gfc_simplify_selected_real_kind):
2080         Adjust gfc_extract_int callers.
2081         * trans-decl.c (gfc_find_module): Use gfc_get_string ("%s", x)
2082         instead of gfc_get_string (x).
2083         * matchexp.c (expression_syntax): Add const.
2084         * primary.c (match_kind_param, match_hollerith_constant,
2085         match_string_constant): Adjust gfc_extract_int callers.
2086         (match_keyword_arg): Use gfc_get_string ("%s", x) instead of
2087         gfc_get_string (x).
2088         * frontend-passes.c (optimize_minmaxloc): Likewise.
2090 2017-01-19  Andre Vehreschild  <vehre@gcc.gnu.org>
2092         PR fortran/70696
2093         * trans-decl.c (gfc_build_qualified_array): Add static decl to parent
2094         function only, when the decl-context is not the translation unit.
2096 2017-01-18  Louis Krupp  <louis.krupp@zoho.com>
2098         PR fortran/50069
2099         PR fortran/55086
2100         * trans-expr.c (gfc_conv_variable): Don't treat temporary variables
2101         as function arguments.
2102         * trans-stmt.c (forall_make_variable_temp,
2103         generate_loop_for_temp_to_lhs, gfc_trans_assign_need_temp,
2104         gfc_trans_forall_1): Don't adjust offset of forall temporary
2105         for array sections, make forall temporaries work for substring
2106         expressions, improve test coverage by adding -ftest-forall-temp
2107         option to request usage of temporary array in forall code.
2108         * lang.opt: Add -ftest-forall-temp option.
2109         * invoke.texi: Add -ftest-forall-temp option.
2111 2017-01-18  Andre Vehreschild  <vehre@gcc.gnu.org>
2113         * primary.c (caf_variable_attr): Improve figuring whether the current
2114         component is the last one refed.
2115         * trans-stmt.c (gfc_trans_allocate): Do not generate sync_all calls
2116         when allocating pointer or allocatable components.
2118 2017-01-18  Andre Vehreschild  <vehre@gcc.gnu.org>
2120         * gfortran.texi: Add missing parameters to caf-API functions.  Correct
2121         typos and clarify some descriptions.
2123 2017-01-18  Andre Vehreschild  <vehre@gcc.gnu.org>
2125         PR fortran/70696
2126         Missed some cases, here they are:
2127         * trans-decl.c (gfc_build_qualified_array): Add static tokens to the
2128         parent function's scope.
2129         * trans-expr.c (gfc_get_tree_for_caf_expr): Shorten code.  Remove
2130         unnecessary assert.
2132 2017-01-13  Andre Vehreschild  <vehre@gcc.gnu.org>
2134         PR fortran/70697
2135         * resolve.c (resolve_lock_unlock_event): Resolve the expression for
2136         event's until_count.
2138 2017-01-13  Andre Vehreschild  <vehre@gcc.gnu.org>
2140         PR fortran/70696
2141         * trans-expr.c (gfc_get_tree_for_caf_expr): Ensure the backend_decl
2142         is valid before accessing it.
2144 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
2146         PR translation/79019
2147         PR translation/79020
2148         * decl.c (attr_decl1): Fix spelling in translatable string.
2149         * intrinsic.texi: Fix spelling - invokation -> invocation.
2150         * lang.opt (faggressive-function-elimination, gfc_convert): Fix
2151         typos in descriptions.
2152         * openmp.c (resolve_omp_clauses): Add missing whitespace to
2153         translatable strings.
2155 2017-01-08  Martin Sebor  <msebor@redhat.com>
2157         PR tree-optimization/78913
2158         PR middle-end/77708
2159         * trans-common.c (build_equiv_decl): Increase buffer size to avoid
2160         truncation for any argument.
2161         * trans-types.c (gfc_build_logical_type): Same.
2163 2017-01-07  Andre Vehreschild  <vehre@gcc.gnu.org>
2165         PR fortran/78781
2166         PR fortran/78935
2167         * expr.c (gfc_check_pointer_assign): Return the same error message for
2168         rewritten coarray pointer assignments like for plain ones.
2169         * gfortran.h: Change prototype.
2170         * primary.c (caf_variable_attr): Set attributes used ones only only
2171         ones.  Add setting of pointer_comp attribute.
2172         (gfc_caf_attr): Add setting of pointer_comp attribute.
2173         * trans-array.c (gfc_array_allocate): Add flag that the component to
2174         allocate is not an ultimate coarray component.  Add allocation of
2175         pointer arrays.
2176         (structure_alloc_comps): Extend nullify to treat pointer components in
2177         coarrays correctly.  Restructure nullify to remove redundant code.
2178         (gfc_nullify_alloc_comp): Allow setting caf_mode flags.
2179         * trans-array.h: Change prototype of gfc_nullify_alloc_comp ().
2180         * trans-decl.c (generate_coarray_sym_init): Call nullify_alloc_comp for
2181         derived type coarrays with pointer components.
2182         * trans-expr.c (gfc_trans_structure_assign): Also treat pointer
2183         components.
2184         (trans_caf_token_assign): Handle assignment of token of scalar pointer
2185         components.
2186         (gfc_trans_pointer_assignment): Call above routine.
2187         * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Add treating pointer
2188         components.
2189         (gfc_conv_intrinsic_caf_get): Likewise.
2190         (conv_caf_send): Likewise.
2191         * trans-stmt.c (gfc_trans_allocate): After allocating a derived type in
2192         a coarray pre-register the tokens.
2193         (gfc_trans_deallocate): Simply determining the coarray type (scalar or
2194         array) and deregistering it correctly.
2195         * trans-types.c (gfc_typenode_for_spec): Replace in_coarray flag by the
2196         actual codim to allow lookup of array types in the cache.
2197         (gfc_build_array_type): Likewise.
2198         (gfc_get_array_descriptor_base): Likewise.
2199         (gfc_get_array_type_bounds): Likewise.
2200         (gfc_get_derived_type): Likewise.
2201         * trans-types.h: Likewise.
2202         * trans.c (gfc_deallocate_with_status): Enable deregistering of all kind
2203         of coarray components.
2204         (gfc_deallocate_scalar_with_status): Use free() in fcoarray_single mode
2205         instead of caf_deregister.
2207 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
2209         * simplify.c (simplify_transformation_to_array): Use
2210         GCC_DIAGNOSTIC_PUSH_IGNORED and GCC_DIAGNOSTIC_POP instead of
2211         #pragma GCC diagnostic {push,ignored,pop}.
2213 2017-01-06  Alexandre Oliva <aoliva@redhat.com>
2215         * simplify.c (simplify_transformation_to_array): Silence
2216         array bounds warning.  Fix whitespace.
2218 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
2220         * module.c (load_omp_udrs): Initialize name.
2222 2017-01-02  Janne Blomqvist  <jb@gcc.gnu.org>
2224         PR fortran/78534
2225         * trans-expr.c (gfc_trans_string_copy): Rework string copy
2226         algorithm to avoid -Wstringop-overflow warning.
2228 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
2230         Update copyright years.
2232         * gfortranspec.c (lang_specific_driver): Update copyright notice
2233         dates.
2234         * gfc-internals.texi: Bump @copying's copyright year.
2235         * gfortran.texi: Ditto.
2236         * intrinsic.texi: Ditto.
2237         * invoke.texi: Ditto.
2239 Copyright (C) 2017 Free Software Foundation, Inc.
2241 Copying and distribution of this file, with or without modification,
2242 are permitted in any medium without royalty provided the copyright
2243 notice and this notice are preserved.