2017-11-04 Thomas Koenig <tkoenig@gcc.gnu.org>
[official-gcc.git] / gcc / fortran / ChangeLog
blob0b2ca315605d8872b41fc55f09f41982fb5b41b4
1 2017-11-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
3         PR fortran/29600
4         * gfortran.h (gfc_check_f): Replace fm3l with fm4l.
5         * intrinsic.h (gfc_resolve_maxloc): Add gfc_expr * to argument
6         list in protoytpe.
7         (gfc_resolve_minloc): Likewise.
8         * check.c (gfc_check_minloc_maxloc): Handle kind argument.
9         * intrinsic.c (add_sym_3_ml): Rename to
10         (add_sym_4_ml): and handle kind argument.
11         (add_function): Replace add_sym_3ml with add_sym_4ml and add
12         extra arguments for maxloc and minloc.
13         (check_specific): Change use of check.f3ml with check.f4ml.
14         * iresolve.c (gfc_resolve_maxloc): Handle kind argument. If
15         the kind is smaller than the smallest library version available,
16         use gfc_default_integer_kind and convert afterwards.
17         (gfc_resolve_minloc): Likewise.
19 2017-11-04  Paul Thomas  <pault@gcc.gnu.org>
21         PR fortran/81735
22         * trans-decl.c (gfc_trans_deferred_vars): Do a better job of a
23         case where 'tmp' was used unititialized and remove TODO.
25 2017-11-03  Steven G. Kargl  <kargl@gcc.gnu.org>
27         PR fortran/82796
28         * resolve.c (resolve_equivalence): An entity in a common block within
29         a module cannot appear in an equivalence statement if the entity is
30         with a pure procedure.
32 2017-10-31  Jim Wilson  <wilson@tuliptree.org>
34         * parse.c (unexpected_eof): Call gcc_unreachable before return.
36 2017-10-30  Paul Thomas  <pault@gcc.gnu.org>
38         PR fortran/80850
39         * trans_expr.c (gfc_conv_procedure_call): When passing a class
40         argument to an unlimited polymorphic dummy, it is wrong to cast
41         the passed expression as unlimited, unless it is unlimited. The
42         correct way is to assign to each of the fields and set the _len
43         field to zero.
45 2017-10-30  Steven G. Kargl   <kargl@gcc.gnu.org>
47         * resolve.c (resolve_transfer): Set derived to correct symbol for
48         BT_CLASS.
50 2017-10-29  Jim Wilson  <wilson@tuliptree.org>
52         * invoke.texi: Delete adb and sdb references.
54 2017-10-28  Andre Vehreschild  <vehre@gcc.gnu.org>
56         * check.c (gfc_check_co_reduce): Clarify error message.
58 2017-10-28  Paul Thomas  <pault@gcc.gnu.org>
60         PR fortran/81758
61         * trans-expr.c (trans_class_vptr_len_assignment): 'vptr_expr'
62         must only be set if the right hand side expression is of type
63         class.
65 2017-10-27  Steven G. Kargl  <kargl@gcc.gnu.org>
67         PR fortran/82620
68         * match.c (gfc_match_allocate): Exit early on syntax error.
70 2017-10-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
72         PR fortran/56342
73         * simplify.c (is_constant_array_expr): If the expression is
74         a parameter array, call gfc_simplify_expr.
76 2017-10-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
78         * match.c (gfc_match_type_is): Fix typo in error message.
80 2017-10-21  Paul Thomas  <pault@gcc.gnu.org>
82         PR fortran/82586
83         * decl.c (gfc_get_pdt_instance): Remove the error message that
84         the parameter does not have a corresponding component since
85         this is now taken care of when the derived type is resolved. Go
86         straight to error return instead.
87         (gfc_match_formal_arglist): Make the PDT relevant errors
88         immediate so that parsing of the derived type can continue.
89         (gfc_match_derived_decl): Do not check the match status on
90         return from gfc_match_formal_arglist for the same reason.
91         * resolve.c (resolve_fl_derived0): Check that each type
92         parameter has a corresponding component.
94         PR fortran/82587
95         * resolve.c (resolve_generic_f): Check that the derived type
96         can be used before resolving the struture constructor.
98         PR fortran/82589
99         * symbol.c (check_conflict): Add the conflicts involving PDT
100         KIND and LEN attributes.
102 2017-10-19  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
104         * interface.c (check_sym_interfaces, check_uop_interfaces,
105         gfc_check_interfaces): Base interface_name buffer off
106         GFC_MAX_SYMBOL_LEN.
108 2017-10-19  Jakub Jelinek  <jakub@redhat.com>
110         PR fortran/82568
111         * gfortran.h (gfc_resolve_do_iterator): Add a bool arg.
112         (gfc_resolve_omp_local_vars): New declaration.
113         * openmp.c (omp_current_ctx): Make static.
114         (gfc_resolve_omp_parallel_blocks): Handle EXEC_OMP_TASKLOOP
115         and EXEC_OMP_TASKLOOP_SIMD.
116         (gfc_resolve_do_iterator): Add ADD_CLAUSE argument, if false,
117         don't actually add any clause.  Move omp_current_ctx test
118         earlier.
119         (handle_local_var, gfc_resolve_omp_local_vars): New functions.
120         * resolve.c (gfc_resolve_code): Call gfc_resolve_omp_parallel_blocks
121         instead of just gfc_resolve_omp_do_blocks for EXEC_OMP_TASKLOOP
122         and EXEC_OMP_TASKLOOP_SIMD.
123         (gfc_resolve_code): Adjust gfc_resolve_do_iterator caller.
124         (resolve_codes): Call gfc_resolve_omp_local_vars.
126 2017-10-19  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
128         * gfortran.h (gfc_lookup_function_fuzzy): New declaration.
129         (gfc_closest_fuzzy_match): New declaration.
130         (vec_push): New definition.
131         * misc.c (gfc_closest_fuzzy_match): New definition.
132         * resolve.c: Include spellcheck.h.
133         (lookup_function_fuzzy_find_candidates): New static function.
134         (lookup_uop_fuzzy_find_candidates): Likewise.
135         (lookup_uop_fuzzy): Likewise.
136         (resolve_operator) <INTRINSIC_USER>: Call lookup_uop_fuzzy.
137         (gfc_lookup_function_fuzzy): New definition.
138         (resolve_unknown_f): Call gfc_lookup_function_fuzzy.
139         * interface.c (check_interface0): Likewise.
140         (lookup_arg_fuzzy_find_candidates): New static function.
141         (lookup_arg_fuzzy ): Likewise.
142         (compare_actual_formal): Call lookup_arg_fuzzy.
143         * symbol.c: Include spellcheck.h.
144         (lookup_symbol_fuzzy_find_candidates): New static function.
145         (lookup_symbol_fuzzy): Likewise.
146         (gfc_set_default_type): Call lookup_symbol_fuzzy.
147         (lookup_component_fuzzy_find_candidates): New static function.
148         (lookup_component_fuzzy): Likewise.
149         (gfc_find_component): Call lookup_component_fuzzy.
151 2017-10-18  Thomas Koenig  <tkoenig@gcc.gnu.org>
153         PR fortran/82567
154         * frontend-passes.c (combine_array_constructor): If an array
155         constructor is all constants and has more elements than a small
156         constant, don't convert a*[b,c] to [a*b,a*c] to reduce compilation
157         times.
159 2017-10-18  Thomas Koenig  <tkoenig@gcc.gnu.org>
161         PR fortran/79795
162         * resolve.c (resovle_symbol): Change gcc_assert to
163         sensible error message.
165 2017-10-18  Paul Thomas  <pault@gcc.gnu.org>
167         PR fortran/82550
168         * trans_decl.c (gfc_get_symbol_decl): Procedure symbols that
169         have the 'used_in_submodule' attribute should be processed by
170         'gfc_get_extern_function_decl'.
172 2017-10-16  Fritz Reese <fritzoreese@gmail.com>
174         PR fortran/82511
175         * trans-io.c (transfer_expr): Treat BT_UNION as BT_DERIVED.
177 2017-10-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
179         PR fortran/82372
180         * fortran/scanner.c (last_error_char):  New global variable.
181         (gfc_scanner_init_1): Set last_error_char to NULL.
182         (gfc_gobble_whitespace): If a character not printable or
183         not newline, issue an error.
185 2017-10-13  Paul Thomas  <pault@gcc.gnu.org>
187         PR fortran/81048
188         * resolve.c (resolve_symbol): Ensure that derived type array
189         results get default initialization.
191 2017-10-11  Nathan Sidwell  <nathan@acm.org>
193         * cpp.c (gfc_cpp_add_include_path): Update incpath_e names.
194         (gfc_cpp_add_include_path_after): Likewise.
196 2017-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
198         * target-memory.c (gfc_interpret_logical): Use wi::to_wide when
199         operating on trees as wide_ints.
200         * trans-const.c (gfc_conv_tree_to_mpz): Likewise.
201         * trans-expr.c (gfc_conv_cst_int_power): Likewise.
202         * trans-intrinsic.c (trans_this_image): Likewise.
203         (gfc_conv_intrinsic_bound): Likewise.
204         (conv_intrinsic_cobound): Likewise.
206 2017-10-08  Steven G. Kargl  <kargl@gcc.gnu.org>
208         * check.c (gfc_check_x): Remove function.
209         * intrinsic.c (add_functions): Use gfc_check_fn_r.
211 2017-10-08  Paul Thomas  <pault@gcc.gnu.org>
213         PR fortran/82375
214         * module.c : Bump up MOD_VERSION to 15.
215         (mio_component): Edit comment about PDT specification list.
216         (mio_expr, mio_symbol): Include the expression and symbol PDT
217         specification lists in the same way as in mio_component.
219 2017-10-08  Thomas Koenig  <tkoenig@gcc.gnu.org>
221         * dump_prase_tree (show_symbol): Output list of variables in
222         NAMELIST.
223         (show_code_node): Add new line for ELSE and END DO for DO
224         CONCURRENT.
225         * invoke.texi: Document that the output of
226         -fdump-fortran-original, -fdump-fortran-optimized and
227         -fdump-parse-tree is unsable and may lead to ICEs.
229 2017-10-07  Paul Thomas  <pault@gcc.gnu.org>
231         PR fortran/82375
232         * class.c (gfc_find_derived_vtab): Return NULL for a passed
233         pdt template to prevent bad procedures from being written.
234         * decl.c (gfc_get_pdt_instance): Do not use the default
235         initializer for pointer and allocatable pdt type components. If
236         the component is allocatbale, set the 'alloc_comp' attribute of
237         'instance'.
238         * module.c : Add a prototype for 'mio_actual_arglist'. Add a
239         boolean argument 'pdt'.
240         (mio_component): Call it for the parameter list of pdt type
241         components with 'pdt' set to true.
242         (mio_actual_arg): Add the boolean 'pdt' and, if it is set, call
243         mio_integer for the 'spec_type'.
244         (mio_actual_arglist): Add the boolean 'pdt' and use it in the
245         call to mio_actual_arg.
246         (mio_expr, mio_omp_udr_expr): Call mio_actual_arglist with
247         'pdt' set false.
248         * resolve.c (get_pdt_spec_expr): Add the parameter name to the
249         KIND parameter error.
250         (get_pdt_constructor): Check that cons->expr is non-null.
251         * trans-array.c (structure_alloc_comps): For deallocation of
252         allocatable components, ensure that parameterized components
253         are deallocated first. Likewise, when parameterized components
254         are allocated, nullify allocatable components first. Do not
255         recurse into pointer or allocatable pdt components while
256         allocating or deallocating parameterized components. Test that
257         parameterized arrays or strings are allocated before freeing
258         them.
259         (gfc_trans_pointer_assignment): Call the new function. Tidy up
260         a minor whitespace issue.
261         trans-decl.c (gfc_trans_deferred_vars): Set 'tmp' to NULL_TREE
262         to prevent the expression from being used a second time.
264 2017-10-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
266         PR fortran/49232
267         * expr.c (gfc_check_pointer_assign): Error
268         for non-contiguous rhs.
270 2017-10-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
272         * gfortran.h (async_io_dt): Add external reference.
273         * io.c (async_io_dt): Add variable.
274         (compare_to_allowed_values): Add prototyte. Add optional argument
275         num. If present, set it to the number of the entry that was
276         matched.
277         (check_io_constraints): If this is for an asynchronous I/O
278         statement, set async_io_dt and set the asynchronous flag for
279         a SIZE tag.
280         * resolve.c (resolve_transfer): If async_io_dt is set, set
281         the asynchronous flag on the variable.
282         (resolve_fl_namelist): If async_io_dt is set, set the asynchronous
283         flag on all elements of the namelist.
285 2017-10-04  Paul Thomas  <pault@gcc.gnu.org>
287         PR fortran/60458
288         PR fortran/77296
289         * resolve.c (resolve_assoc_var): Deferred character type
290         associate names must not receive an integer conatant length.
291         * symbol.c (gfc_is_associate_pointer): Deferred character
292         length functions also require an associate pointer.
293         * trans-decl.c (gfc_get_symbol_decl): Deferred character
294         length functions or derived type components require the assoc
295         name to have variable string length.
296         * trans-stmt.c (trans_associate_var): Set the string length of
297         deferred string length associate names. The address expression
298         is not needed for allocatable, pointer or dummy targets. Change
299         the comment about defered string length targets.
301 2017-10-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
303         * io.c (match_wait_element): Correctly match END and EOR tags.
304         * dump-parse-tree.c (show_code_node): Handle EXEC_WAIT.
306 2017-10-02  Paul Thomas  <pault@gcc.gnu.org>
308         PR fortran/82312
309         * resolve.c (gfc_resolve_code): Simplify condition for class
310         pointer assignments becoming regular assignments by asserting
311         that only class valued targets are permitted.
312         * trans-expr.c (trans_class_pointer_fcn): New function using a
313         block of code from gfc_trans_pointer_assignment.
314         (gfc_trans_pointer_assignment): Call the new function. Tidy up
315         a minor whitespace issue.
317 2017-10-01  Dominique d'Humieres  <dominiq@lps.ens.fr>
319         PR fortran/61450
320         * parse.c (gfc_global_used): Replace the gfc_internal_error
321         with an error.
323 2017-09-29  Dominique d'Humieres  <dominiq@lps.ens.fr>
325         PR fortran/25071
326         * interface.c (compare_actual_formal): Change warnings to errors
327         when "Actual argument contains too few elements for dummy
328         argument", unless -std=legacy is used.
330 2017-09-27  Thomas Schwinge  <thomas@codesourcery.com>
332         * lang.opt <Wdo-subscript>: End help text with a period.
334 2017-09-26  Thomas Koenig  <tkoenig@gcc.gnu.org>
336         * frontend-passes.c (do_subscript): Don't do anything
337         if inside an associate list.
339 2017-09-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
341         * lang.opt:  Add -Wdo-subscript.
342         * frontend-passes.c (do_t): New type.
343         (doloop_list): Use variable of do_type.
344         (if_level): Variable to track if levels.
345         (select_level): Variable to track select levels.
346         (gfc_run_passes): Initialize i_level and select_level.
347         (doloop_code): Record current level of if + select
348         level in doloop_list.  Add seen_goto if there could
349         be a branch outside the loop. Use different type for
350         doloop_list.
351         (doloop_function): Call do_intent and do_subscript; move
352         functionality of checking INTENT to do_intent.
353         (insert_index_t): New type, for callback_insert_index.
354         (callback_insert_index): New function.
355         (insert_index): New function.
356         (do_subscript): New function.
357         (do_intent): New function.
358         (gfc_code_walker): Keep track of if_level and select_level.
359         * invoke.texi: Document -Wdo-subscript.
361 2017-09-25  Janne Blomqvist  <jb@gcc.gnu.org>
363         * trans.c (gfc_unlikely): Remove unnecessary fold_convert.
364         (gfc_likely): Likewise.
366 2017-09-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
367             Steven G. Kargl  <kargl@gcc.gnu.org>
369         PR fortran/80118
370         * expr.c (gfc_get_full_arrayspec_from_expr): If there is
371         no symtree, set array spec to NULL.
373 2017-09-23  Janus Weil  <janus@gcc.gnu.org>
375         PR fortran/82143
376         * lang.opt: Add the options -fdefault-real-10 and -fdefault-real-16.
377         Rename flag_default_real to flag_default_real_8.
378         * invoke.texi: Add documentation.
379         * module.c (use_iso_fortran_env_module): flag_default_real is renamed.
380         * trans-types.c (gfc_init_kinds): Implement the flags
381         -fdefault-real-10 and -fdefault-real-16. Make -fdefault-double-8 work
382         without -fdefault-real-8.
384 2017-09-21  Paul Thomas  <pault@gcc.gnu.org>
386         PR fortran/52832
387         * match.c (gfc_match_associate): Before failing the association
388         try again, allowing a proc pointer selector.
390         PR fortran/80120
391         PR fortran/81903
392         PR fortran/82121
393         * primary.c (gfc_match_varspec): Introduce 'tgt_expr', which
394         points to the associate selector, if any. Go through selector
395         references, after resolution for variables, to catch any full
396         or section array references. If a class associate name does
397         not have the same declared type as the selector, resolve the
398         selector and copy the declared type to the associate name.
399         Before throwing a no implicit type error, resolve all allowed
400         selector expressions, and copy the resulting typespec.
402         PR fortran/67543
403         * resolve.c (resolve_assoc_var): Selector must cannot be the
404         NULL expression and it must have a type.
406         PR fortran/78152
407         * resolve.c (resolve_symbol): Allow associate names to be
408         coarrays.
410 2017-09-21  Cesar Philippidis  <cesar@codesourcery.com>
412         * openmp.c (gfc_match_oacc_wait): Don't restrict wait directive
413         arguments to constant integers.
415 2017-09-17  Paul Thomas  <pault@gcc.gnu.org>
417         PR fortran/82173
418         * decl.c (gfc_get_pdt_instance): Use the component initializer
419         expression for the default, rather than the parameter value.
420         * resolve.c (resolve_pdt): New function.
421         (resolve_symbol): Call it. Remove false error, prohibiting
422         deferred type parameters for dummy arguments.
424         PR fortran/60483
425         * primary.c (gfc_match_varspec): If the type of an associate
426         name is unknown and yet there is a match, try resolving the
427         target expression and using its type.
429 2017-09-15  Paul Thomas  <pault@gcc.gnu.org>
431         PR fortran/82184
432         trans-decl.c (gfc_trans_deferred_vars): Do not null the 'span'
433         field if the symbol is either implicitly or explicitly saved.
435 2017-09-13  Paul Thomas  <pault@gcc.gnu.org>
437         PR fortran/82173
438         * decl.c (match_char_kind): If the kind expression is
439         parameterized, save it in saved_kind_expr and set kind = 0.
440         (gfc_get_pdt_instance): Resolve and simplify before emitting
441         error on expression kind. Insert a missing simplification after
442         insertion of kind expressions.
444 2017-09-12  Paul Thomas  <pault@gcc.gnu.org>
446         PR fortran/82173
447         PR fortran/82168
448         * decl.c (variable_decl): Check pdt template components for
449         appearance of KIND/LEN components in the type parameter name
450         list, that components corresponding to type parameters have
451         either KIND or LEN attributes and that KIND or LEN components
452         are scalar. Copy the initializer to the parameter value.
453         (gfc_get_pdt_instance): Add a label 'error_return' and follow
454         it with repeated code, while replacing this code with a jump.
455         Check if a parameter appears as a component in the template.
456         Make sure that the parameter expressions are integer. Validate
457         KIND expressions.
458         (gfc_match_decl_type_spec): Search for pdt_types in the parent
459         namespace since they are instantiated in the template ns.
460         * expr.c (gfc_extract_int): Use a KIND parameter if it
461         appears as a component expression.
462         (gfc_check_init_expr): Allow expressions with the pdt_kind
463         attribute.
464         *primary.c (gfc_match_actual_arglist): Make sure that the first
465         keyword argument is recognised when 'pdt' is set.
467 2017-09-10  Paul Thomas  <pault@gcc.gnu.org>
469         PR fortran/34640
470         PR fortran/40737
471         PR fortran/55763
472         PR fortran/57019
473         PR fortran/57116
475         * expr.c (is_subref_array): Add class pointer array dummies
476         to the list of expressions that return true.
477         * trans-array.c: Add SPAN_FIELD and update indices for
478         subsequent fields.
479         (gfc_conv_descriptor_span, gfc_conv_descriptor_span_get,
480         gfc_conv_descriptor_span_set, is_pointer_array,
481         get_array_span): New functions.
482         (gfc_get_descriptor_offsets_for_info): New function to preserve
483         API for access to descriptor fields for trans-types.c.
484         (gfc_conv_scalarized_array_ref): If the expression is a subref
485         array, make sure that info->descriptor is a descriptor type.
486         Otherwise, if info->descriptor is a pointer array, set 'decl'
487         and fix it if it is a component reference.
488         (build_array_ref): Simplify handling of class array refs by
489         passing the vptr to gfc_build_array_ref rather than generating
490         the pointer arithmetic in this function.
491         (gfc_conv_array_ref): As in gfc_conv_scalarized_array_ref, set
492         'decl'.
493         (gfc_array_allocate): Set the span field if this is a pointer
494         array. Use the expr3 element size if it is available, so that
495         the dynamic type element size is used.
496         (gfc_conv_expr_descriptor): Set the span field for pointer
497         assignments.
498         * trans-array.h: Prototypes for gfc_conv_descriptor_span_get
499         gfc_conv_descriptor_span_set and
500         gfc_get_descriptor_offsets_for_info added.
501         trans-decl.c (gfc_get_symbol_decl): If a non-class pointer
502         array, mark the declaration as a GFC_DECL_PTR_ARRAY_P. Remove
503         the setting of GFC_DECL_SPAN.
504         (gfc_trans_deferred_vars): Set the span field to zero in thge
505         originating scope.
506         * trans-expr.c (gfc_conv_procedure_call): Do not use copy-in/
507         copy-out to pass subref expressions to a pointer dummy.
508         (gfc_trans_pointer_assignment): Remove code for setting of
509         GFC_DECL_SPAN. Set the 'span' field for non-class pointers to
510         class function results. Likewise for rank remap. In the case
511         that the target is not a whole array, use the target array ref
512         for remap and, since the 'start' indices are missing, set the
513         lbounds to one, as required by the standard.
514         * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Pick up the
515         'token' offset from the field decl in the descriptor.
516         (conv_isocbinding_subroutine): Set the 'span' field.
517         * trans-io.c (gfc_trans_transfer): Always scalarize pointer
518         array io.
519         * trans-stmt.c (trans_associate_var): Set the 'span' field.
520         * trans-types.c (gfc_get_array_descriptor_base): Add the 'span'
521         field to the array descriptor.
522         (gfc_get_derived_type): Pointer array components are marked as
523         GFC_DECL_PTR_ARRAY_P.
524         (gfc_get_array_descr_info): Replaced API breaking code for
525         descriptor offset calling gfc_get_descriptor_offsets_for_info.
526         * trans.c (get_array_span): New function.
527         (gfc_build_array_ref): Simplify by calling get_array_span and
528         obtain 'span' if 'decl' or 'vptr' present.
529         * trans.h : Rename DECL_LANG_FLAG_6, GFC_DECL_SUBREF_ARRAY_P,
530         as GFC_DECL_PTR_ARRAY_P.
532 2017-09-09  Paul Thomas  <pault@gcc.gnu.org>
534         * decl.c : Add decl_type_param_list, type_param_spec_list as
535         static variables to hold PDT spec lists.
536         (build_sym): Copy 'type_param_spec_list' to symbol spec_list.
537         (build_struct): Copy the 'saved_kind_expr' to the component
538         'kind_expr'. Check that KIND or LEN components appear in the
539         decl_type_param_list. These should appear as symbols in the
540         f2k_derived namespace. If the component is itself a PDT type,
541         copy the decl_type_param_list to the component param_list.
542         (gfc_match_kind_spec): If the KIND expression is parameterized
543         set KIND to zero and store the expression in 'saved_kind_expr'.
544         (insert_parameter_exprs): New function.
545         (gfc_insert_kind_parameter_exprs): New function.
546         (gfc_insert_parameter_exprs): New function.
547         (gfc_get_pdt_instance): New function.
548         (gfc_match_decl_type_spec): Match the decl_type_spec_list if it
549         is present. If it is, call 'gfc_get_pdt_instance' to obtain the
550         specific instance of the PDT.
551         (match_attr_spec): Match KIND and LEN attributes. Check for the
552         standard and for type/kind of the parameter. They are also not
553         allowed outside a derived type definition.
554         (gfc_match_data_decl): Null the decl_type_param_list and the
555         type_param_spec_list on entry and free them on exit.
556         (gfc_match_formal_arglist): If 'typeparam' is true, add the
557         formal symbol to the f2k_derived namespace.
558         (gfc_match_derived_decl): Register the decl_type_param_list
559         if this is a PDT. If this is a type extension, gather up all
560         the type parameters and put them in the right order.
561         *dump-parse-tree.c (show_attr): Signal PDT templates and the
562         parameter attributes.
563         (show_components): Output parameter atrributes and component
564         parameter list.
565         (show_symbol): Show variable parameter lists.
566         * expr.c (expr.c): Copy the expression parameter list.
567         (gfc_is_constant_expr): Pass on symbols representing PDT
568         parameters.
569         (gfc_check_init_expr): Break on PDT KIND parameters and
570         PDT parameter expressions.
571         (gfc_check_assign): Assigning to KIND or LEN components is an
572         error.
573         (derived_parameter_expr): New function.
574         (gfc_derived_parameter_expr): New function.
575         (gfc_spec_list_type): New function.
576         * gfortran.h : Add enum gfc_param_spec_type. Add the PDT attrs
577         to the structure symbol_attr. Add the 'kind_expr' and
578         'param_list' field to the gfc_component structure. Comment on
579         the reuse of the gfc_actual_arglist structure as storage for
580         type parameter spec lists. Add the new field 'spec_type' to
581         this structure. Add 'param_list' fields to gfc_symbol and
582         gfc_expr. Add prototypes for gfc_insert_kind_parameter_exprs,
583         gfc_insert_parameter_exprs, gfc_add_kind, gfc_add_len,
584         gfc_derived_parameter_expr and gfc_spec_list_type.
585         * interface.c (gfc_compare_derived_types): Treat PDTs in the
586         same way as sequence types.
587         * match.c : Add variable 'type_param_spec_list'.
588         (gfc_op2string, gfc_match_member_sep, gfc_match_label): Remove
589         trailing whitespace.
590         (match_derived_type_spec): Match PDTs and find specific
591         instance.
592         (gfc_match_type_spec): Remove more trailing whitespace.
593         (gfc_match_allocate): Assumed or deferred parameters cannot
594         appear here. Copy the type parameter spec list to the expr for
595         the allocatable entity. Free 'type_param_spec_list'.
596         (gfc_match_common, gfc_match_namelist, gfc_match_module): Still
597         more trailing whitespace to remove.
598         (gfc_match_type_is): Allow PDT typespecs.
599         * match.h : Modify prototypes for gfc_match_formal_arglist and
600         gfc_match_actual_arglist.
601         * module.c (ab_attribute, mstring attr_bits): PDT attributes
602         added.
603         (mio_symbol_attribute): PDT attributes handled.
604         (mio_component): Deal with 'kind_expr' field.
605         (mio_full_f2k_derived): For PDT templates, transfer the formal
606         namespace symroot to the f2k_derived namespace.
607         *primary.c (match_keyword_arg, gfc_match_actual_arglist): Add
608         modifications to handle PDT spec lists. These are flagged in
609         both cases by new boolean arguments, whose prototype defaults
610         are false.
611         (gfc_match_structure_constructor, match_variable): Remove yet
612         more trailing whitespace.
613         * resolve.c (get_pdt_spec_expr, get_pdt_constructor): New
614         functions.
615         (resolve_structure_cons): If the constructor is a PDT template,
616         call get_pdt_constructor to build it using the parameter lists
617         and then get the specific instance of the PDT.
618         (resolve_component): PDT strings need a hidden string length
619         component like deferred characters.
620         (resolve_symbol): Dummy PDTs cannot have deferred parameters.
621         * symbol.c (gfc_add_kind, gfc_add_len): New functions.
622         (free_components): Free 'kind_expr' and 'param_list' fields.
623         (gfc_free_symbol): Free the 'param_list' field.
624         (gfc_find_sym_tree): If the current state is a PDT template,
625         look for the symtree in the f2k_derived namspaces.
626         trans-array.c (structure_alloc_comps): Allocate and deallocate
627         PDTs. Check dummy arguments for compliance of LEN parameters.
628         Add the new functions to the preceeding enum.
629         (gfc_allocate_pdt_comp, gfc_deallocate_pdt_comp and
630         gfc_check_pdt_dummy): New functions calling above.
631         * trans-array.h : Add prototypes for these functions.
632         trans-decl.c (gfc_get_symbol_decl): Call gfc_defer_symbol_init
633         as appropriate for PDT symbols.
634         (gfc_trans_deferred_vars): Allocate/deallocate PDT entities as
635         they come into and out of scope. Exclude pdt_types from being
636         'gcc_unreachable'.
637         (gfc_trans_subcomponent_assign): PDT array components must be
638         handles as if they are allocatable.
639         * trans-stmt.c (gfc_trans_allocate): Handle initialization of
640         PDT entities.
641         (gfc_trans_deallocate): Likewise.
642         * trans-types.c (gfc_get_derived_type): PDT templates must not
643         arrive here. PDT string components are handles as if deferred.
644         Similarly, PDT arrays are treated as if allocatable. PDT
645         strings are pointer types.
646         * trans.c (gfc_deferred_strlen): Handle PDT strings in the same
647         way as deferred characters.
649 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
651         PR c/81887
652         * parse.c (decode_omp_directive): Use matchs instead of matcho for
653         end ordered and ordered directives, except for ordered depend.  For
654         -fopenmp-simd and ordered depend, reject the stmt.
655         * trans-openmp.c (gfc_trans_omp_ordered): For -fopenmp-simd ignore
656         threads clause and if simd clause isn't present, just translate the
657         body.
659 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
660             Alan Hayward  <alan.hayward@arm.com>
661             David Sherwood  <david.sherwood@arm.com>
663         * trans-types.c (gfc_init_kinds): Use opt_scalar_int_mode for
664         the mode iterator.
666 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
667             Alan Hayward  <alan.hayward@arm.com>
668             David Sherwood  <david.sherwood@arm.com>
670         * target-memory.c (size_integer): Use SCALAR_INT_TYPE_MODE.
671         (size_logical): Likewise.
673 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
674             Alan Hayward  <alan.hayward@arm.com>
675             David Sherwood  <david.sherwood@arm.com>
677         * trans-types.c (gfc_type_for_mode): Use is_a <scalar_int_mode>.
679 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
680             Alan Hayward  <alan.hayward@arm.com>
681             David Sherwood  <david.sherwood@arm.com>
683         * trans-types.c (gfc_init_kinds): Use opt_scalar_float_mode
684         and FOR_EACH_MODE_IN_CLASS.
686 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
687             Alan Hayward  <alan.hayward@arm.com>
688             David Sherwood  <david.sherwood@arm.com>
690         * target-memory.c (size_float): Use SCALAR_FLOAT_TYPE_MODE
691         instead of TYPE_MODE.
693 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
694             Alan Hayward  <alan.hayward@arm.com>
695             David Sherwood  <david.sherwood@arm.com>
697         * trans-types.c (gfc_init_kinds): Use machine_mode instead of int
698         for "mode".
700 2017-08-28  Janus Weil  <janus@gcc.gnu.org>
702         PR fortran/81770
703         * expr.c (gfc_check_pointer_assign): Improve the check whether pointer
704         may outlive pointer target.
706 2017-08-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
708         PR fortran/81974
709         * frontend-passes (inline_matumul_assign):  Explicity
710         set typespec for call to CONJG.
712 2017-08-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
714         PR fortran/81296
715         * trans-io.c (get_dtio_proc): Add check for format label and set
716         formatted flag accordingly. Reorganize the code a little.
718 2017-08-16  Thomas Koenig  <tkoenig@gcc.gnu.org>
720         PR fortran/81116
721         * frontend-passes.c (realloc_string_callback): If expression is a
722         concatenation, also check for dependency.
723         (constant_string_length): Check for presence of symtree.
725 2017-08-13  Thomas Koenig  <tkoenig@gcc.gnu.org>
727         * gfortran.texi: Document format of unformatted sequential files.
729 2017-08-11  Thomas Koenig  <tkoenig@gcc.gnu.org>
731         * invoke.texi:  Actually commit change about -Ofast.
733 2017-08-11  Thomas Koenig  <tkoenig@gcc.gnu.org>
735         PR fortran/60355
736         * resolve.c (resolve_symbol): Adjust (and reformat)
737         comment.  Perform check if a BIND(C) is declared
738         at module level regardless of whether it is typed
739         implicitly or not.
741 2017-08-10  Fritz Reese <fritzoreese@gmail.com>
743         * options.c (set_dec_flags): Only set legacy standards when value
744         is not zero.
746 2017-08-10  Fritz Reese <fritzoreese@gmail.com>
748         * options.c (set_dec_flags, gfc_post_options): Only set flag_d_lines
749         with -fdec when not set by user.
751 2017-08-10  Fritz Reese <fritzoreese@gmail.com>
753         * decl.c (attr_seen): New static variable.
754         * decl.c (variable_decl): Match %FILL in STRUCTURE body.
755         * gfortran.texi: Update documentation.
757 2017-08-08  Martin Liska  <mliska@suse.cz>
759         * trans-types.c: Include header files.
761 2017-08-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
763         PR fortran/68829
764         PR fortran/81701
765         * options.c: Make -Ofast honor -fmax-stack-var-size.
766         * invoke.texi: Document change.
768 2017-08-01  Thomas König  <tkoenig@gcc.gnu.org>
770         PR fortran/79312
771         * intrisic.c (gfc_convert_type_warn):  Only set typespec for
772         empty array constructors which don't have it already.
774 2017-08-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
776         PR fortran/45435
777         * lang.opt (fc-prototypes): Add option.
778         * gfortran.h (gfc_typespec): Add interop_kind to struct.
779         (gfc_dump_c_prototypes): Add prototype.
780         * decl.c (gfc_match_kind_spec): Copy symbol used for kind to typespec.
781         * parse.c (gfc_parse_file): Call gfc_dump_prototypes.
782         * dump-parse-tree.c (gfc_dump_c_prototypes): New function.
783         (type_return): New enum.
784         (get_c_type_name): New function.
785         (write_decl): New function.
786         (write_type): New function.
787         (write_variable): New function.
788         (write_proc): New function.
789         (write_interop_decl): New function.
790         * invoke.texi: Document -fc-prototypes.
792 2017-08-01  Dominique d'Humieres  <dominiq@lps.ens.fr>
794         PR fortran/53542
795         * expr.c (gfc_check_init_expr): Use the renamed name.
797 2017-07-31  Jakub Jelinek  <jakub@redhat.com>
799         * check.c (gfc_check_num_images): Fix a pasto.
801 2017-07-29  Jakub Jelinek  <jakub@redhat.com>
803         * trans-decl.c (gfc_trans_use_stmts): Pass false as new argument to
804         the imported_module_or_decl debug hook.
806 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
808         * resolve.c (find_reachable_labels): Adjust.
810 2017-07-25  Jakub Jelinek  <jakub@redhat.com>
812         * ioparm.def: Use 1U << 31 instead of 1 << 31 as flags2 mask.
814 2017-07-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
816         * dump-parse-tree.c (show_symbol):  Show binding label if present.
818 2017-07-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
819             Mikael Morin  <mikael@gcc.gnu.org>
821         PR fortran/66102
822         * fortran/trans-array.c (gfc_conv_resolve_dependencies):
823         Break if dependency has been found.
825 2017-07-23  Alexander Monakov  <amonakov@ispras.ru>
827         * interface.c (pair_cmp): Fix gfc_symbol comparison.  Adjust comment.
829 2017-07-18  Nathan Sidwell  <nathan@acm.org>
831         * trans.c (gfc_build_array_ref): Use TYPE_MAX_VALUE.
833 2017-07-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
835         PR fortran/81341
836         * class.c (class_array_ref_detected): Remove a redundant
837         condition.
839 2017-07-06  Harald Anlauf  <anlauf@gmx.de>
841         PR fortran/70071
842         * array.c (gfc_ref_dimen_size): Handle bad subscript triplets.
844 2017-07-03  Dominique d'Humieres  <dominiq@lps.ens.fr>
846         PR fortran/79866
847         * resolve.c (resolve_symbol): Fix typo.
849 2017-07-03  Dominique d'Humieres  <dominiq@lps.ens.fr>
851         PR fortran/79843
852         * symbol.c (check_conflict): Add missing "conflicts".
854 2017-06-29  Cesar Philippidis  <cesar@codesourcery.com>
856         PR fortran/77765
857         * openmp.c (gfc_match_oacc_routine): Check if proc_name exist before
858         comparing the routine name against it.
860 2017-06-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
862         PR fortran/80164
863         * trans-stmt.c (gfc_trans_call): If no code expr, use code->loc
864         as warning/error locus.
866 2017-06-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
868         PR fortran/81160
869         * arith.c (wprecision_int_real): Set return value before
870         mpz_clear and then return after it.
872 2017-06-15  Janus Weil  <janus@gcc.gnu.org>
874         PR fortran/80983
875         * trans-expr.c (gfc_conv_procedure_call): Deallocate the result of
876         scalar allocatable procedure-pointer components.
878 2017-06-10  Thomas Koenig  <tkoenig@gcc.gnu.org>
880         PR fortran/80988
881         * frontend-passes.c (traverse_io_block):  Also
882         check for variables occurring as indices multiple
883         time in a single implied DO loop.
885 2017-06-05  Janus Weil  <janus@gcc.gnu.org>
887         PR fortran/70601
888         * trans-expr.c (gfc_conv_procedure_call): Fix detection of allocatable
889         function results.
891 2017-06-05  Nicolas Koenig  <koenigni@student.ethz.ch>
893         PR fortran/35339
894         * frontend-passes.c (traverse_io_block): New function.
895         (simplify_io_impl_do): New function.
896         (optimize_namespace): Invoke gfc_code_walker with
897         simplify_io_impl_do.
899 2017-06-02  Jakub Jelinek  <jakub@redhat.com>
901         PR fortran/80918
902         * openmp.c (resolve_omp_clauses): Fix a typo.
904 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
906         * error.c (gfc_format_decoder): Update for new bool and
907         const char ** params.
909 2017-05-29  Thomas Koenig  <tkoenig@gcc.gnu.org>
911         PR fortran/37131
912         * frontend-passes.c (check_conjg_transpose_variable):
913         Add prototype.
914         (has_dimen_vector_ref):  Likewise
915         (matmul_temp_args):  New function. Add prototype.
916         (optimize_namespace):  Call matmul_temp_args.
918 2017-05-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
920         * frontend-passes.c (matmul_lhs_realloc):  Correct
921         allocation size for case A1B2.
923 2017-05-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
925         * dump-parse-tree.c (show_expr):  Also replace
926         with dumpfile for showing values for forgotten
927         case.
929 2017-05-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
931         * dump-parse-tree.c (show_expr):  Replace stdout
932         with dumpfile for showing values.
934 2017-05-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
936         PR fortran/66094
937         * frontend-passes.c (matrix_case):  Add A2TB2.
938         (inline_limit_check):  Handle MATMUL(TRANSPOSE(A),B)
939         (inline_matmul_assign):  Likewise.
941 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
943         * openmp.c (OACC_KERNELS_CLAUSES): Add "OMP_CLAUSE_NUM_GANGS",
944         "OMP_CLAUSE_NUM_WORKERS", "OMP_CLAUSE_VECTOR_LENGTH".
946 2017-05-22  Janus Weil  <janus@gcc.gnu.org>
948         PR fortran/80766
949         * resolve.c (resolve_fl_derived): Make sure that vtype symbols are
950         properly resolved.
952 2017-05-19  Paul Thomas  <pault@gcc.gnu.org>
954         PR fortran/80333
955         * trans-io.c (nml_get_addr_expr): If we are dealing with class
956         type data set tmp tree to get that address.
957         (transfer_namelist_element): Set the array spec to point to the
958         the class data.
960 2017-05-19  David Malcolm  <dmalcolm@redhat.com>
962         PR fortran/79852
963         * bbt.c (insert): Remove trailing exclamation mark from message.
964         * decl.c (gfc_match_final_decl): Likewise.
965         * dump-parse-tree.c (show_expr): Likewise.
966         * module.c (gfc_use_module): Likewise.
967         * primary.c (build_actual_constructor): Likewise.
968         (gfc_convert_to_structure_constructor): Likewise.
970 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
972         * gfortran.h (enum gfc_omp_default_sharing): Add
973         "OMP_DEFAULT_PRESENT".
974         * dump-parse-tree.c (show_omp_clauses): Handle it.
975         * openmp.c (gfc_match_omp_clauses): Likewise.
976         * trans-openmp.c (gfc_trans_omp_clauses): Likewise.
978 2017-05-18  Fritz Reese <fritzoreese@gmail.com>
980         PR fortran/79968
981         * decl.c (match_attr_spec, gfc_match_automatic,
982         gfc_match_static, gfc_match_structure_decl): Unify diagnostic
983         errors regarding -fdec options.
984         * io.c (match_dec_etag, match_dec_vtag, match_dec_ftag): Ditto.
986 2017-05-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
988         PR fortran/80741
989         * trans-io.c (transfer_namelist_element): Change check from
990         NULL_TREE to null_pointer_node.
992 2017-05-17  Fritz Reese <fritzoreese@gmail.com>
994         PR fortran/80668
995         * expr.c (component_initializer): Don't generate initializers for
996         pointer components.
997         * invoke.texi (-finit-derived): Document.
999 2017-05-16  Paul Thomas  <pault@gcc.gnu.org>
1001         PR fortran/80554
1002         * decl.c (build_sym): In a submodule allow overriding of host
1003         associated symbols from the ancestor module with a new
1004         declaration.
1006 2017-05-15  Steven G. Kargl  <kargl@gcc.gnu.org>
1008         PR fortran/80674
1009         * trans-stmt.c (gfc_trans_integer_select): Remove redundant condition.
1011 2017-05-15  Steven G. Kargl  <kargl@gcc.gnu.org>
1013         PR fortran/80752
1014         * expr.c (gfc_generate_initializer):  If type conversion fails,
1015         check for error and return NULL.
1017 2017-05-14  Nicolas Koenig  <koenigni@student.ethz.ch>
1019         PR fortran/80442
1020         * array.c (gfc_ref_dimen_size): Simplify stride
1021         expression
1022         * data.c (gfc_advance_section): Simplify start,
1023         end and stride expressions
1024         (gfc_advance_section): Simplify start and end
1025         expressions
1026         (gfc_get_section_index): Simplify start expression
1028 2017-05-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1030         * io.c (gfc_resolve_dt): Fix returns to bool type.
1032 2017-05-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1034         PR fortran/78659
1035         * io.c (dtio_procs_present): Add new function to check for DTIO
1036         procedures relative to I/O statement READ or WRITE.
1037         (gfc_resolve_dt): Add namelist checks using the new function.
1038         * resolve.c (dtio_procs_present): Remove function and related
1039         namelist checks. (resolve_fl_namelist): Add check specific to
1040         Fortran 95 restriction on namelist objects.
1042 2017-05-11  Nathan Sidwell  <nathan@acm.org>
1044         * trans-decl.c: Include dumpfile.h not tree-dump.h,
1046 2017-05-09  Janus Weil  <janus@gcc.gnu.org>
1048         PR fortran/79311
1049         * resolve.c (gfc_resolve_finalizers): Ensure that derived-type
1050         components have a their finalizers resolved, also if the superordinate
1051         type itself has a finalizer.
1053 2017-05-08  Thomas Koenig  <tkoenig@gcc.gnu.org>
1055         PR fortran/79930
1056         * frontend-passes.c (matmul_to_var_expr): New function,
1057         add prototype.
1058         (matmul_to_var_code):  Likewise.
1059         (optimize_namespace):  Use them from gfc_code_walker.
1061 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
1063         * cpp.c (cb_cpp_error): Replace report_diagnostic
1064         with diagnostic_report_diagnostic.
1065         * error.c (gfc_warning): Likewise.
1066         (gfc_warning_now_at): Likewise.
1067         (gfc_warning_now): Likewise.
1068         (gfc_warning_internal): Likewise.
1069         (gfc_error_now): Likewise.
1070         (gfc_fatal_error): Likewise.
1071         (gfc_error_opt): Likewise.
1072         (gfc_internal_error): Likewise.
1074 2017-05-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
1076         PR fortran/37131
1077         * frontend-passes.c (inline_matmul_assign): Also check bounds
1078         for allocatable lhs and matrix-vector-multiplication.
1080 2017-04-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1082         PR fortran/80484
1083         * io.c (format_lex): Check for '/' and set token to FMT_SLASH.
1084         (check_format): Move FMT_DT checking code to data_desc section.
1085         * module.c (gfc_match_use): Include the case of INTERFACE_DTIO.
1087 2017-04-22  Janus Weil  <janus@gcc.gnu.org>
1089         PR fortran/80121
1090         * trans-types.c (gfc_conv_procedure_call): Deallocate the components
1091         of allocatable intent(out) arguments.
1093 2017-04-21  Janus Weil  <janus@gcc.gnu.org>
1095         PR fortran/80392
1096         * trans-types.c (gfc_get_derived_type): Prevent an infinite loop when
1097         building a derived type that includes a procedure pointer component
1098         with a polymorphic result.
1100 2017-04-17  Paul Thomas  <pault@gcc.gnu.org>
1102         PR fortran/80440
1103         * module.c (find_symtree_for_symbol): Delete.
1104         (read_module): Remove the call to the above.
1106 2017-04-14  Janus Weil  <janus@gcc.gnu.org>
1108         PR fortran/80361
1109         * class.c (generate_finalization_wrapper): Give the finalization wrapper
1110         the recursive attribute.
1112 2017-04-10  Nicolas Koenig  <koenigni@student.ethz.ch>
1113             Paul Thomas  <pault@gcc.gnu.org>
1115         PR fortran/69498
1116         * module.c (gfc_match_submodule): Add error
1117         if function is called in the wrong state.
1119 2017-04-10  Janus Weil  <janus@gcc.gnu.org>
1121         PR fortran/80046
1122         * expr.c (gfc_check_pointer_assign): Check if procedure pointer
1123         components in a pointer assignment need an explicit interface.
1125 2017-03-18  Nicolas Koenig  <koenigni@student.ethz.ch>
1127         PR fortran/69498
1128         * symbol.c (gfc_delete_symtree): If there is a period in the name, ignore
1129         everything before it.
1131 2017-03-28  Janus Weil  <janus@gcc.gnu.org>
1133         PR fortran/78661
1134         * trans-io.c (transfer_namelist_element): Perform a polymorphic call
1135         to a DTIO procedure if necessary.
1137 2017-03-25  Paul Thomas  <pault@gcc.gnu.org>
1139         PR fortran/80156
1140         PR fortran/79382
1141         * decl.c (access_attr_decl): Remove the error for an absent
1142         generic DTIO interface and ensure that symbol has the flavor
1143         FL_PROCEDURE.
1145 2017-03-22  Dominique d'Humieres  <dominiq@lps.ens.fr>
1147         PR fortran/79838
1148         * module.c: Remove trailing period.
1150 2017-03-22  Dominique d'Humieres  <dominiq@lps.ens.fr>
1152         PR fortran/79602
1153         * decl.c: Replace '%s' with %qs.
1154         * expr.c: Likewise.
1155         * interface.c: Likewise.
1156         * match.c: Likewise.
1157         * primary.c: Likewise.
1158         * resolve.c: Likewise.
1160         PR fortran/79844
1161         PR fortran/80011
1162         * io.c: Remove trailing spaces.
1163         * match.c: Likewise.
1164         * openmp.c: Likewise.
1165         * resolve.c: Likewise.
1166         * trans-intrinsic.c: Likewise.
1168         PR fortran/79853
1169         * expr.c: Remove a double spaces.
1171         PR fortran/79859
1172         * primary.c: Remove spurious quotes around %qs.
1174 2017-03-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
1176         PR fortran/80142
1177         * frontend-passes.c (combine_array_constructor): Take
1178         location of new expression from constructor expression instead
1179         of constructor.
1181 2017-03-20  Nicolas Koenig  <koenigni@student.ethz.ch>
1183         PR fortran/39239
1184         * symbol.c (check_conflict): Report an error if an EQUIVALENCE
1185         object is BIND(C)
1187 2017-03-18  Nicolas Koenig  <koenigni@student.ethz.ch>
1189         PR fortran/69498
1190         * decl.c (add_hidden_procptr_result): Fixed Refs count of the
1191         created "ppr@" symbol.
1193 2017-03-18  Paul Thomas  <pault@gcc.gnu.org>
1195         PR fortran/79676
1196         * module.c (mio_symbol_attribute): Remove reset of the flag
1197         'no_module_procedures'.
1198         (check_for_module_procedures): New function. Move declaration
1199         of 'no_module_procedures' to above it.
1200         (gfc_dump_module): Traverse namespace calling new function.
1202 2017-03-18  Paul Thomas  <pault@gcc.gnu.org>
1204         PR fortran/71838
1205         * symbol.c (check_conflict): A dummy procedure in a submodule,
1206         module procedure is not an error.
1207         (gfc_add_flavor): Ditto.
1209 2017-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1211         PR fortran/79841
1212         * openmp.c (check_symbol_not_pointer): Adjust diagnostics.
1214 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
1216         PR fortran/80010
1217         * parse.c (gfc_ascii_statement): Use !$ACC for ST_OACC_ATOMIC
1218         and ST_OACC_END_ATOMIC, instead of !ACC.
1219         * trans-decl.c (finish_oacc_declare): Use !$ACC instead of $!ACC.
1220         * openmp.c (gfc_match_oacc_declare, gfc_match_oacc_wait,
1221         gfc_resolve_oacc_declare): Likewise.
1223         PR fortran/79886
1224         * error.c (gfc_format_decoder): Rename plus argument to set_locus,
1225         remove ATTRIBUTE_UNUSED from all arguments, call default_tree_printer
1226         if not a Fortran specific spec.
1227         * trans-io.c: Include options.h.
1228         (gfc_build_st_parameter): Temporarily disable -Wpadded around layout
1229         of artificial IO data structures.
1231 2017-03-15  David Malcolm  <dmalcolm@redhat.com>
1233         PR fortran/79860
1234         * resolve.c (resolve_contained_fntype): Make error messages more
1235         amenable to translation.
1237 2017-03-06  Richard Biener  <rguenther@suse.de>
1239         PR fortran/79894
1240         * trans.c (gfc_add_modify_loc): Weaken assert.
1242 2017-03-05  Andre Vehreschild  <vehre@gcc.gnu.org>,
1243             Alessandro Fanfarillo  <fanfarillo.gcc@gmail.com>
1245         * check.c (positive_check): Add new function checking constant for
1246         being greater then zero.
1247         (gfc_check_image_status): Add checking of image_status arguments.
1248         (gfc_check_failed_or_stopped_images): Same but for failed_- and
1249         stopped_images function.
1250         * dump-parse-tree.c (show_code_node): Added output of FAIL IMAGE.
1251         * gfortran.h (enum gfc_statement): Added FAIL_IMAGE_ST.
1252         (enum gfc_isym_id): Added new intrinsic symbols.
1253         (enum gfc_exec_op): Added EXEC_FAIL_IMAGE.
1254         * gfortran.texi: Added description for the new API functions. Updated
1255         coverage of gfortran of TS18508.
1256         * intrinsic.c (add_functions): Added symbols to resolve new intrinsic
1257         functions.
1258         * intrinsic.h: Added prototypes.
1259         * iresolve.c (gfc_resolve_failed_images): Resolve the failed_images
1260         intrinsic.
1261         (gfc_resolve_image_status): Same for image_status.
1262         (gfc_resolve_stopped_images): Same for stopped_images.
1263         * libgfortran.h: Added prototypes.
1264         * match.c (gfc_match_if): Added matching of FAIL IMAGE statement.
1265         (gfc_match_fail_image): Match a FAIL IMAGE statement.
1266         * match.h: Added prototype.
1267         * parse.c (decode_statement): Added matching for FAIL IMAGE.
1268         (next_statement): Same.
1269         (gfc_ascii_statement): Same.
1270         * resolve.c: Same.
1271         * simplify.c (gfc_simplify_failed_or_stopped_images): For COARRAY=
1272         single a constant result can be returne.d
1273         (gfc_simplify_image_status): For COARRAY=single the result is constant.
1274         * st.c (gfc_free_statement): Added FAIL_IMAGE handling.
1275         * trans-decl.c (gfc_build_builtin_function_decls): Added decls of the
1276         new intrinsics.
1277         * trans-expr.c (gfc_conv_procedure_call): This is first time all
1278         arguments of a function are optional, which is now handled here
1279         correctly.
1280         * trans-intrinsic.c (conv_intrinsic_image_status): Translate
1281         image_status.
1282         (gfc_conv_intrinsic_function): Add support for image_status.
1283         (gfc_is_intrinsic_libcall): Add support for the remaining new
1284         intrinsics.
1285         * trans-stmt.c (gfc_trans_fail_image): Trans a fail image.
1286         * trans-stmt.h: Add the prototype for the above.
1287         * trans.c (trans_code): Dispatch for fail_image.
1288         * trans.h: Add the trees for the new intrinsics.
1290 2017-03-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1292         PR fortran/79841
1293         * openmp.c (check_symbol_not_pointer): Adjust diagnostic.
1295 2017-02-28  Paul Thomas  <pault@gcc.gnu.org>
1297         PR fortran/79739
1298         * resolve.c (resolve_fl_procedure): Deal with the case where
1299         'submodule_name' is NULL so that gfc_error does not ICE.
1300         Reformat the error message to make it more consistent.
1302 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
1304         * parse.c (parse_critical_block): Use cond ? G_("...") : G_("...")
1305         instead of just cond ? "..." : "...".
1306         * scanner.c (gfc_next_char_literal): Likewise.
1307         * match.c (match_exit_cycle): Likewise.
1309 2017-02-26  Thomas Koenig  <tkoenig@gcc.gnu.org>
1311         PR fortran/51119
1312         * options.c (gfc_post_options): Set default limit for matmul
1313         inlining to 30.
1314         * invoke.texi: Document change.
1316 2017-02-25  Dominique d'Humieres  <dominiq@lps.ens.fr>
1318         PR fortran/79601
1319         * interface.c (check_dtio_arg_TKR_intent): Change 'intent'
1320         to 'INTENT'.
1322 2017-02-25  Dominique d'Humieres  <dominiq@lps.ens.fr>
1324         PR fortran/79597
1325         * interface.c (gfc_match_end_interface): Remove spurious comma
1326         and space, replace 'got %s' with 'got %qs'.
1328 2017-02-20  Paul Thomas  <pault@gcc.gnu.org>
1330         PR fortran/79599
1331         * interface.c (check_dtio_arg_TKR_intent): Supply 'must'
1332         missing from error message.
1334 2017-02-20  Paul Thomas  <pault@gcc.gnu.org>
1336         PR fortran/79523
1337         * interface.c (gfc_find_typebound_dtio_proc): Guard test for
1338         flavor attribute by checking that symbol is resolved.
1340 2017-02-16  Paul Thomas  <pault@gcc.gnu.org>
1342         PR fortran/79382
1343         * decl.c (access_attr_decl): Test for presence of generic DTIO
1344         interface and emit error if not present.
1346 2017-02-20  Paul Thomas  <pault@gcc.gnu.org>
1348         PR fortran/79434
1349         * parse.c (check_component, parse_union): Whitespace.
1350         (set_syms_host_assoc): For a derived type, check if the module
1351         in which it was declared is one of the submodule ancestors. If
1352         it is, make the components public. Otherwise, reset attribute
1353         'host_assoc' and set 'use-assoc' so that encapsulation is
1354         preserved.
1356 2017-02-19  Paul Thomas  <pault@gcc.gnu.org>
1358         PR fortran/79447
1359         * decl.c (gfc_set_constant_character_len): Whitespace.
1360         (gfc_match_end): Catch case where a procedure is contained in
1361         a module procedure and ensure that 'end procedure' is the
1362         correct termination.
1364 2017-02-19  Paul Thomas  <pault@gcc.gnu.org>
1366         PR fortran/79402
1367         * resolve.c (fixup_unique_dummy): New function.
1368         (gfc_resolve_expr): Call it for dummy variables with a unique
1369         symtree name.
1371 2017-02-19  Andre Vehreschild  <vehre@gcc.gnu.org>
1373         PR fortran/79229
1374         * trans-expr.c (gfc_trans_assignment_1): Deref indirect refs when
1375         compiling with -fcheck=mem to check the pointer and not the data.
1377 2017-02-19  Andre Vehreschild  <vehre@gcc.gnu.org>
1379         PR fortran/79335
1380         * trans-array.c (duplicate_allocatable_coarray): Ensure attributes
1381         passed are properly initialized.
1382         (structure_alloc_comps): Same.
1383         * trans-expr.c (gfc_trans_structure_assign): Same.
1385 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
1387         * trans-expr.c (gfc_conv_substring): Add missing space in diagnostics.
1389 2017-02-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
1391         PR fortran/65542
1392         * intrinsic.c (gfc_intrinsic_func_interface):  Return an error
1393         for -std=f95 for disallowed transformational functions in
1394         initialization expressions.
1396 2017-02-09  Cesar Philippidis  <cesar@codesourcery.com>
1397             Joseph Myers  <joseph@codesourcery.com>
1399         * openmp.c (resolve_omp_clauses): Error on directives
1400         containing both tile and collapse clauses.
1401         (resolve_oacc_loop_blocks): Represent '*' tile arguments as zero.
1402         * trans-openmp.c (gfc_trans_omp_do): Lower tiled loops like
1403         collapsed loops.
1405 2017-02-07  Steven G. Kargl  <kargl@gcc.gnu.org>
1407         * trans-types.c (gfc_get_int_kind_from_width_isofortranen):  Choose
1408         REAL type with the widest precision if two (or more) have the same
1409         storage size.
1411 2017-02-05  Andre Vehreschild  <vehre@gcc.gnu.org>
1413         PR fortran/79344
1414         * trans-stmt.c (gfc_trans_allocate): Only deallocate the components of
1415         the temporary, when a new object was created for the temporary.  Not
1416         when it is just an alias to an existing object.
1418 2017-02-05  Andre Vehreschild  <vehre@gcc.gnu.org>
1420         PR fortran/79335
1421         * trans-decl.c (generate_coarray_sym_init): Retrieve the symbol's
1422         attributes before using them.
1424 2017-02-05  Andre Vehreschild  <vehre@gcc.gnu.org>
1426         PR fortran/78958
1427         * trans-stmt.c (gfc_trans_allocate): Add the multiplying the _len
1428         component of unlimited polymorphic objects when source-allocating.
1430 2017-02-05  Andre Vehreschild  <vehre@gcc.gnu.org>
1432         PR fortran/79230
1433         * trans-array.c (structure_alloc_comps): Ignore pointer components when
1434         freeing structures.
1436 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
1438         PR lto/79061
1439         * f95-lang.c (gfc_create_decls): Include stringpool.h.
1440         Pass main_input_filename to build_translation_unit_decl.
1442 2017-01-23  Thomas Koenig  <tkoenig@netcologne.de>
1444         * arith.c (arith_power):  If simplifying integer power expression
1445         to zero, warn if -Winteger-division is given.
1447 2017-01-22  Jakub Jelinek  <jakub@redhat.com>
1449         PR fortran/79154
1450         * parse.c (matchs, matcho, matchds, matchdo): Replace return st;
1451         with { ret = st; goto finish; }.
1452         (decode_omp_directive): Allow declare simd, declare target and
1453         simd directives in PURE/ELEMENTAL procedures.  Only call
1454         gfc_unset_implicit_pure on successful match of other procedures.
1456 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
1458         * gfc-internals.texi (Symbol Versioning): Change references
1459         to www.akkadia.org to https.
1461 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
1463         * gfortran.h (gfc_extract_int): Change return type to bool.  Add
1464         int argument with = 0.
1465         * decl.c (gfc_match_kind_spec): Adjust gfc_extract_int caller, pass
1466         1 as new last argument to it, don't emit gfc_error.
1467         (match_char_kind): Likewise.
1468         (gfc_match_decl_type_spec): Use gfc_get_string ("%s", x) instead of
1469         gfc_get_string (x).
1470         (gfc_match_derived_decl, match_binding_attributes): Likewise.
1471         (gfc_match_structure_decl): Don't sprintf back to name, call
1472         get_struct_decl directly with gfc_dt_upper_string (name) result.
1473         * trans-stmt.c (gfc_trans_allocate): Use gfc_get_string ("%s", x)
1474         instead of gfc_get_string (x).
1475         * module.c (gfc_dt_lower_string, gfc_dt_upper_string,
1476         gfc_match_use, gfc_match_submodule, find_true_name, mio_pool_string,
1477         mio_symtree_ref, mio_expr, mio_omp_udr_expr, load_generic_interfaces,
1478         load_omp_udrs, load_needed, read_module, dump_module,
1479         create_intrinsic_function, import_iso_c_binding_module,
1480         create_int_parameter, create_int_parameter_array, create_derived_type,
1481         use_iso_fortran_env_module): Likewise.
1482         * error.c (gfc_diagnostic_starter, gfc_diagnostic_start_span): Use
1483         pp_verbatim (context->printer, "%s", x) instead of
1484         pp_verbatim (context->printer, x).
1485         * match.c (gfc_match_small_int): Adjust gfc_extract_int caller, pass
1486         1 as new last argument to it, don't emit gfc_error.
1487         (gfc_match_small_int_expr): Likewise.
1488         * iresolve.c (gfc_get_string): Optimize format "%s" case.
1489         (resolve_bound): Use gfc_get_string ("%s", x) instead of
1490         gfc_get_string (x).
1491         (resolve_transformational): Formatting fix.
1492         (gfc_resolve_char_achar): Change name argument to bool is_achar,
1493         use a single format string and if is_achar add "a" before "char".
1494         (gfc_resolve_achar, gfc_resolve_char): Adjust callers.
1495         * expr.c (gfc_extract_int): Change return type to bool, return true
1496         if some error occurred.  Add REPORT_ERROR argument, if non-zero
1497         call either gfc_error or gfc_error_now depending on its sign.
1498         * arith.c (arith_power): Adjust gfc_extract_int caller.
1499         * symbol.c (gfc_add_component): Use gfc_get_string ("%s", x) instead
1500         of gfc_get_string (x).
1501         (gfc_new_symtree, gfc_delete_symtree, gfc_get_uop, gfc_new_symbol,
1502         gfc_get_gsymbol, generate_isocbinding_symbol): Likewise.
1503         * openmp.c (gfc_match_omp_clauses): Adjust gfc_extract_int caller, pass
1504         -1 as new last argument to it, don't emit gfc_error_now.
1505         (gfc_match_omp_declare_reduction): Use gfc_get_string ("%s", x)
1506         instead of gfc_get_string (x).
1507         * check.c (kind_check): Adjust gfc_extract_int caller.
1508         * intrinsic.c (add_sym, find_sym, make_alias): Use
1509         gfc_get_string ("%s", x) instead of gfc_get_string (x).
1510         * simplify.c (get_kind, gfc_simplify_btest, gfc_simplify_maskr,
1511         gfc_simplify_maskl, gfc_simplify_poppar, gfc_simplify_repeat,
1512         gfc_simplify_selected_int_kind, gfc_simplify_selected_real_kind):
1513         Adjust gfc_extract_int callers.
1514         * trans-decl.c (gfc_find_module): Use gfc_get_string ("%s", x)
1515         instead of gfc_get_string (x).
1516         * matchexp.c (expression_syntax): Add const.
1517         * primary.c (match_kind_param, match_hollerith_constant,
1518         match_string_constant): Adjust gfc_extract_int callers.
1519         (match_keyword_arg): Use gfc_get_string ("%s", x) instead of
1520         gfc_get_string (x).
1521         * frontend-passes.c (optimize_minmaxloc): Likewise.
1523 2017-01-19  Andre Vehreschild  <vehre@gcc.gnu.org>
1525         PR fortran/70696
1526         * trans-decl.c (gfc_build_qualified_array): Add static decl to parent
1527         function only, when the decl-context is not the translation unit.
1529 2017-01-18  Louis Krupp  <louis.krupp@zoho.com>
1531         PR fortran/50069
1532         PR fortran/55086
1533         * trans-expr.c (gfc_conv_variable): Don't treat temporary variables
1534         as function arguments.
1535         * trans-stmt.c (forall_make_variable_temp,
1536         generate_loop_for_temp_to_lhs, gfc_trans_assign_need_temp,
1537         gfc_trans_forall_1): Don't adjust offset of forall temporary
1538         for array sections, make forall temporaries work for substring
1539         expressions, improve test coverage by adding -ftest-forall-temp
1540         option to request usage of temporary array in forall code.
1541         * lang.opt: Add -ftest-forall-temp option.
1542         * invoke.texi: Add -ftest-forall-temp option.
1544 2017-01-18  Andre Vehreschild  <vehre@gcc.gnu.org>
1546         * primary.c (caf_variable_attr): Improve figuring whether the current
1547         component is the last one refed.
1548         * trans-stmt.c (gfc_trans_allocate): Do not generate sync_all calls
1549         when allocating pointer or allocatable components.
1551 2017-01-18  Andre Vehreschild  <vehre@gcc.gnu.org>
1553         * gfortran.texi: Add missing parameters to caf-API functions.  Correct
1554         typos and clarify some descriptions.
1556 2017-01-18  Andre Vehreschild  <vehre@gcc.gnu.org>
1558         PR fortran/70696
1559         Missed some cases, here they are:
1560         * trans-decl.c (gfc_build_qualified_array): Add static tokens to the
1561         parent function's scope.
1562         * trans-expr.c (gfc_get_tree_for_caf_expr): Shorten code.  Remove
1563         unnecessary assert.
1565 2017-01-13  Andre Vehreschild  <vehre@gcc.gnu.org>
1567         PR fortran/70697
1568         * resolve.c (resolve_lock_unlock_event): Resolve the expression for
1569         event's until_count.
1571 2017-01-13  Andre Vehreschild  <vehre@gcc.gnu.org>
1573         PR fortran/70696
1574         * trans-expr.c (gfc_get_tree_for_caf_expr): Ensure the backend_decl
1575         is valid before accessing it.
1577 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
1579         PR translation/79019
1580         PR translation/79020
1581         * decl.c (attr_decl1): Fix spelling in translatable string.
1582         * intrinsic.texi: Fix spelling - invokation -> invocation.
1583         * lang.opt (faggressive-function-elimination, gfc_convert): Fix
1584         typos in descriptions.
1585         * openmp.c (resolve_omp_clauses): Add missing whitespace to
1586         translatable strings.
1588 2017-01-08  Martin Sebor  <msebor@redhat.com>
1590         PR tree-optimization/78913
1591         PR middle-end/77708
1592         * trans-common.c (build_equiv_decl): Increase buffer size to avoid
1593         truncation for any argument.
1594         * trans-types.c (gfc_build_logical_type): Same.
1596 2017-01-07  Andre Vehreschild  <vehre@gcc.gnu.org>
1598         PR fortran/78781
1599         PR fortran/78935
1600         * expr.c (gfc_check_pointer_assign): Return the same error message for
1601         rewritten coarray pointer assignments like for plain ones.
1602         * gfortran.h: Change prototype.
1603         * primary.c (caf_variable_attr): Set attributes used ones only only
1604         ones.  Add setting of pointer_comp attribute.
1605         (gfc_caf_attr): Add setting of pointer_comp attribute.
1606         * trans-array.c (gfc_array_allocate): Add flag that the component to
1607         allocate is not an ultimate coarray component.  Add allocation of
1608         pointer arrays.
1609         (structure_alloc_comps): Extend nullify to treat pointer components in
1610         coarrays correctly.  Restructure nullify to remove redundant code.
1611         (gfc_nullify_alloc_comp): Allow setting caf_mode flags.
1612         * trans-array.h: Change prototype of gfc_nullify_alloc_comp ().
1613         * trans-decl.c (generate_coarray_sym_init): Call nullify_alloc_comp for
1614         derived type coarrays with pointer components.
1615         * trans-expr.c (gfc_trans_structure_assign): Also treat pointer
1616         components.
1617         (trans_caf_token_assign): Handle assignment of token of scalar pointer
1618         components.
1619         (gfc_trans_pointer_assignment): Call above routine.
1620         * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Add treating pointer
1621         components.
1622         (gfc_conv_intrinsic_caf_get): Likewise.
1623         (conv_caf_send): Likewise.
1624         * trans-stmt.c (gfc_trans_allocate): After allocating a derived type in
1625         a coarray pre-register the tokens.
1626         (gfc_trans_deallocate): Simply determining the coarray type (scalar or
1627         array) and deregistering it correctly.
1628         * trans-types.c (gfc_typenode_for_spec): Replace in_coarray flag by the
1629         actual codim to allow lookup of array types in the cache.
1630         (gfc_build_array_type): Likewise.
1631         (gfc_get_array_descriptor_base): Likewise.
1632         (gfc_get_array_type_bounds): Likewise.
1633         (gfc_get_derived_type): Likewise.
1634         * trans-types.h: Likewise.
1635         * trans.c (gfc_deallocate_with_status): Enable deregistering of all kind
1636         of coarray components.
1637         (gfc_deallocate_scalar_with_status): Use free() in fcoarray_single mode
1638         instead of caf_deregister.
1640 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
1642         * simplify.c (simplify_transformation_to_array): Use
1643         GCC_DIAGNOSTIC_PUSH_IGNORED and GCC_DIAGNOSTIC_POP instead of
1644         #pragma GCC diagnostic {push,ignored,pop}.
1646 2017-01-06  Alexandre Oliva <aoliva@redhat.com>
1648         * simplify.c (simplify_transformation_to_array): Silence
1649         array bounds warning.  Fix whitespace.
1651 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
1653         * module.c (load_omp_udrs): Initialize name.
1655 2017-01-02  Janne Blomqvist  <jb@gcc.gnu.org>
1657         PR fortran/78534
1658         * trans-expr.c (gfc_trans_string_copy): Rework string copy
1659         algorithm to avoid -Wstringop-overflow warning.
1661 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
1663         Update copyright years.
1665         * gfortranspec.c (lang_specific_driver): Update copyright notice
1666         dates.
1667         * gfc-internals.texi: Bump @copying's copyright year.
1668         * gfortran.texi: Ditto.
1669         * intrinsic.texi: Ditto.
1670         * invoke.texi: Ditto.
1672 Copyright (C) 2017 Free Software Foundation, Inc.
1674 Copying and distribution of this file, with or without modification,
1675 are permitted in any medium without royalty provided the copyright
1676 notice and this notice are preserved.