2016-09-04 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / fortran / ChangeLog
blob0b452f4664e66f0d43cc2bf8d01dca5287218788
1 2016-09-04  Steven G. Kargl  <kargl@gcc.gnu.org>
3         PR fortran/77460
4         * simplify.c (simplify_transformation_to_scalar):  On error, result
5         may be NULL, simply return.
7 2016-08-31  Jakub Jelinek  <jakub@redhat.com>
9         PR fortran/77352
10         * trans-openmp.c (gfc_trans_omp_parallel_workshare): Always add a
11         BIND_EXPR with BLOCK around what gfc_trans_omp_workshare returns.
13         PR fortran/77374
14         * parse.c (parse_omp_oacc_atomic): Copy over cp->ext.omp_atomic
15         to cp->block->ext.omp_atomic.
16         * resolve.c (gfc_resolve_blocks): Assert block with one or two
17         EXEC_ASSIGNs for EXEC_*_ATOMIC.
18         * openmp.c (resolve_omp_atomic): Don't assert one or two
19         EXEC_ASSIGNs, instead return quietly for EXEC_NOPs and otherwise
20         error unexpected statements.
22 2016-08-31  Paul Thomas  <pault@gcc.gnu.org>
23             Jerry DeLisle  <jvdelisle@gcc.gnu.org>
25         PR fortran/48298
26         * decl.c (access_attr_decl): Include case INTERFACE_DTIO as
27         appropriate.
28         * gfortran.h : Add INTRINSIC_FORMATTED and
29         INTRINSIC_UNFORMATTED to gfc_intrinsic_op. Add INTERFACE_DTIO
30         to interface type. Add new enum 'dtio_codes'. Add bitfield
31         'has_dtio_procs' to symbol_attr. Add prototypes
32         'gfc_check_dtio_interfaces' and 'gfc_find_specific_dtio_proc'.
33         * interface.c (dtio_op): New function.
34         (gfc_match_generic_spec): Match generic DTIO interfaces.
35         (gfc_match_interface): Treat DTIO interfaces in the same way as
36         (gfc_current_interface_head): Add INTERFACE_DTIO appropriately.
37         (check_dtio_arg_TKR_intent): New function.
38         (check_dtio_interface1): New function.
39         (gfc_check_dtio_interfaces): New function.
40         (gfc_find_specific_dtio_proc): New function.
41         * io.c : Add FMT_DT to format_token.
42         (format_lex): Handle DTIO formatting.
43         * match.c (gfc_op2string): Add DTIO operators.
44         * resolve.c (derived_inaccessible): Ignore pointer components
45         to enclosing derived type.
46         (resolve_transfer): Resolve transfers that involve DTIO.
47         procedures. Find the specific subroutine for the transfer and
48         use its existence to over-ride some of the constraints on
49         derived types. If the transfer is recursive, require that the
50         subroutine be so qualified.
51         (dtio_procs_present): New function.
52         (resolve_fl_namelist): Remove inhibition of polymorphic objects
53         in namelists if DTIO read and write subroutines exist. Likewise
54         for derived types.
55         (resolve_types): Invoke 'gfc_verify_dtio_procedures'.
56         * symbol.c : Set 'dtio_procs' using 'minit'.
57         * trans-decl.c (gfc_finish_var_decl): If a derived-type/class
58         object is associated with DTIO procedures, make it TREE_STATIC.
59         * trans-expr.c (gfc_get_vptr_from_expr): If the expression
60         drills down to a PARM_DECL, extract the vptr correctly.
61         (gfc_conv_derived_to_class): Check 'info' in the test for
62         'useflags'. If the se expression exists and is a pointer, use
63         it as the class _data.
64         * trans-io.c : Add IOCALL_X_DERIVED to iocall and the function
65         prototype. Likewise for IOCALL_SET_NML_DTIO_VAL.
66         (set_parameter_tree): Renamed from 'set_parameter_const', now
67         returns void and has new tree argument. Calls modified to match
68         new interface.
69         (transfer_namelist_element): Transfer DTIO procedure pointer
70         and vpointer using the new function IOCALL_SET_NML_DTIO_VAL.
71         (get_dtio_proc): New function.
72         (transfer_expr): Add new argument for the vptr field of class
73         objects. Add the code to call the specific DTIO proc, convert
74         derived types to class and call IOCALL_X_DERIVED.
75         (trans_transfer): Add BT_CLASS to structures for treatment by
76         the scalarizer. Obtain the vptr for the dynamic type, both for
77         scalar and array transfer.
79 2016-08-30  Fritz Reese  <fritzoreese@gmail.com>
81         * gfortran.texi: Fix typo in STRUCTURE documentation.
83 2016-08-29  Fritz Reese  <fritzoreese@gmail.com>
85         Fix, reorganize, and clarify comparisons of anonymous types/components.
87         PR fortran/77327
88         * interface.c (is_anonymous_component, is_anonymous_dt): New functions.
89         * interface.c (compare_components, gfc_compare_derived_types): Use new
90         functions.
92 2016-08-27  Steven G. Kargl <kargl@gcc.gnu.org>
94         PR fortran/77380
95         * dependency.c (gfc_check_dependency): Do not assert with
96         -fcoarray=lib.
98 2016-08-27  Steven G. Kargl <kargl@gcc.gnu.org>
100         PR fortran/77372
101         simplify.c (simplify_ieee_selected_real_kind): Check for NULL pointers.
103 2016-08-25  Steven g. Kargl  <kargl@gcc.gnu.org>
105         PR fortran/77351
106         * frontend-passes.c (remove_trim,combine_array_constructor): Check for
107         NULL pointer.
109 2016-08-24  Paul Thomas  <pault@gcc.gnu.org>
111         PR fortran/77358
112         * resolve.c (resolve_fl_procedure): Use the correct gfc_charlen
113         for deferred character length module procedures.
115 2016-08-23  Fritz Reese  <fritzoreese@gmail.com>
117         * decl.c (gfc_match_structure_decl): Make gfc_structure_id static.
119 2016-08-23  Fritz Reese  <fritzoreese@gmail.com>
121         * interface.c (compare_components): Fix typo in name check conditional.
123 2016-08-22  Steven G. Kargl  <kargl@gcc.gnu.org>
124             Bud Davis  <jmdavis@link.com>
126         PR fortran/60774
127         * parse.c (next_free,next_fixed): Issue error for statement label
128         without a statement.
130 2016-08-22  Steven G. Kargl  <kargl@gcc.gnu.org>
132         PR fortran/61318
133         * interface.c (compare_parameter): Use better locus for error message.
135 2016-08-22  Steven G. Kargl  <kargl@gcc.gnu.org>
137         PR fortran/77260
138         * gcc/fortran/trans-decl.c (generate_local_decl): Suppress warning
139         for unused variable if symbol is entry point.
141 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
143         PR c/32187
144         * trans-types.h (float128_type_node): Rename to
145         gfc_float128_type_node.
146         (complex_float128_type_node): Rename to
147         gfc_complex_float128_type_node.
148         * iso-c-binding.def, trans-intrinsic.c, trans-types.c: All users
149         changed.
151 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
153         PR fortran/71014
154         * resolve.c (gfc_resolve): For ns->construct_entities don't save, clear
155         and restore omp state around the resolving.
157         PR fortran/69281
158         * trans-openmp.c (gfc_trans_omp_parallel, gfc_trans_omp_task,
159         gfc_trans_omp_target): Wrap gfc_trans_omp_code result in an extra
160         BIND_EXPR with its own forced BLOCK.
162 2016-08-19  Janne Blomqvist  <jb@gcc.gnu.org>
164         * intrinsics.texi (RANDOM_NUMBER): Remove reference to
165         init_random_seed in example.
166         (RANDOM_SEED): Remove warning to not set all seed values to 0.
168 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
170         * error.c (gfc_diagnostic_starter): Update for change to
171         diagnostic_show_locus.
173 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
175         PR fortran/67496
176         * trans-array.c (trans_array_constructor): Load
177         expr->ts.u.cl->length_from_typespec only if expr->ts.type is
178         BT_CHARACTER.
180 2016-08-15  Fritz Reese  <fritzoreese@gmail.com>
182         * lang.opt, invoke.texi: New flag -finit-derived.
183         * gfortran.h (gfc_build_default_init_expr, gfc_apply_init,
184         gfc_generate_initializer): New prototypes.
185         * expr.c (gfc_build_default_init_expr, gfc_apply_init,
186         component_initializer, gfc_generate_initializer): New functions.
187         * expr.c (gfc_default_initializer): Wrap gfc_generate_initializer.
188         * decl.c (build_struct): Move common code to gfc_apply_init.
189         * resolve.c (can_generate_init): New function.
190         * resolve.c (build_default_init_expr): Wrap gfc_build_default_init_expr.
191         * resolve.c (apply_default_init, resolve_fl_variable_derived): Use
192         gfc_generate_initializer.
193         * trans-decl.c (gfc_generate_function_code): Use
194         gfc_generate_initializer.
196 2016-08-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
198         * frontend-passes.c (create_var):  Set ts.deferred for
199         deferred-length character variables.
200         * dump-parse-tree.c (show_typespec):  Also dump
201         is_c_interop, is_iso_c and deferred flags.
203 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
205         PR debug/71906
206         * trans-decl.c (gfc_get_symbol_decl): Call gfc_finish_var_decl
207         for decl's character length before gfc_finish_var_decl on the
208         decl itself.
210 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
212         PR fortran/70598
213         * openmp.c (resolve_omp_clauses): Adjust use_device clause
214         handling to only allow pointers and arrays.
216 2016-08-12  Marek Polacek  <polacek@redhat.com>
218         PR c/7652
219         * decl.c (match_attr_spec): Add FALLTHRU.
220         * primary.c (match_arg_list_function): Likewise.
221         * resolve.c (resolve_operator): Adjust fall through comment.
222         (fixup_charlen): Add FALLTHRU.
223         (resolve_allocate_expr): Adjust fall through comment.
224         * trans-array.c (gfc_conv_ss_startstride): Add FALLTHRU.
225         * trans-intrinsic.c (gfc_conv_intrinsic_len): Adjust fall through
226         comment.
228 2016-08-11  Janne Blomqvist  <jb@gcc.gnu.org>
230         * check.c (gfc_check_random_seed): Use new seed size in check.
231         * intrinsic.texi (RANDOM_NUMBER): Updated documentation.
232         (RANDOM_SEED): Likewise.
234 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
236         PR fortran/72716
237         * openmp.c (gfc_match_omp_declare_simd): Don't stick anything into
238         BLOCK DATA ns, it will be rejected later.
240 2016-08-08  Andre Vehreschild  <vehre@gcc.gnu.org>
242         PR fortran/71936
243         * trans-array.c (gfc_array_allocate): When SOURCE= is a function
244         stick with the ref of the object to allocate.
246 2016-08-08  Andre Vehreschild  <vehre@gcc.gnu.org>
248         PR fortran/72698
249         * trans-stmt.c (gfc_trans_allocate): Prevent generating code for
250         copy of zero sized string and with it an ICE.
252 2016-08-08  Andre Vehreschild  <vehre@gcc.gnu.org>
254         PR fortran/70524
255         * trans-array.c (gfc_trans_dummy_array_bias): Ensure that the
256         location information is correctly set.
257         * trans-decl.c (gfc_trans_deferred_vars): Set the locus of the
258         current construct early.
260 2016-08-03  Fritz Reese  <fritzoreese@gmail.com>
262         * lang.opt: New option -fdec-intrinsic-ints.
263         * options.c (set_dec_flags): Enable with -fdec.
264         * gfortran.texi, invoke.texi, intrinsics.texi: Update documentation.
265         * intrinsic.c (add_function, add_subroutine): New B/I/J/K intrinsic
266         variants.
268 2016-07-30  Steven G. Kargl <kargl@gcc.gnu.org>
270         PR fortran/41922
271         * target-memory.c (expr_to_char): Pass in locus and use it in error
272         messages.
273         (gfc_merge_initializers): Ditto.
274         * target-memory.h: Update prototype for gfc_merge_initializers ().
275         * trans-common.c (get_init_field): Use the correct locus.
277 2016-07-30  Steven G. Kargl  <kargl@gcc.gnu.org>
279         PR fortran/68566
280         * check.c (gfc_check_reshape): Check for constant expression.
282 2016-07-30  Steven G. Kargl  <kargl@gcc.gnu.org>
284         PR fortran/69867
285         * decl.c (build_struct): Ensure that pointers point to something.
287 2016-07-30  Steven G. Kargl  <kargl@gcc.gnu.org>
289         PR fortran/69962
290         * decl.c (gfc_set_constant_character_len):  if expr is not
291         constant issue an error instead of an ICE.
293 2016-07-30  Steven G. Kargl  <kargl@gcc.gnu.org>
295         PR fortran/70006
296         * io.c (gfc_resolve_dt): Use correct locus.
297         * resolve.c (resolve_branch): Ditto.
299 2016-07-30  Steven G. Kargl  <kargl@gcc.gnu.org>
301         PR fortran/71730
302         * decl.c (char_len_param_value): Check return value of
303         gfc_reduce_init_expr().
305 2016-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
307         * trans-array.c (gfc_conv_array_ref): Fix allocation of diagnostic
308         message (was too small).
310 2016-07-28  Steven G. Kargl  <kargl@gcc.gnu.org>
312         PR fortran/71067
313         * decl.c (match_data_constant): On error, set 'result' to NULL.
315 2016-07-28  Steven G. Kargl  <kargl@gcc.gnu.org>
317         PR fortran/71799
318         * resolve.c(gfc_resolve_iterator): Failure of type conversion need
319         not ICE.
321 2016-07-28  Steven G. Kargl  <kargl@gcc.gnu.org>
323         PR fortran/71859
324         * check.c(numeric_check): Prevent ICE.  Issue error for invalid
325         subroutine as an actual argument when numeric argument is expected.
327 2016-07-28  Steven G. Kargl  <kargl@gcc.gnu.org>
328             Thomas Koenig  <tkoenig@gcc.gnu.org>
330         PR fortran/71883
331         * frontend-passes.c (gfc_run_passes): Bail out if there are any
332         errors.
333         * error.c (gfc_internal_error): If there are any errors in the
334         buffer, exit with EXIT_FAILURE.
336 2016-07-28  Renlin Li  <renlin.li@arm.com>
338         Revert
339         2016-07-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
341         PR fortran/71902
342         * dependency.c (gfc_check_dependency): Use dep_ref.  Handle case
343         if identical is true and two array element references differ.
344         (gfc_dep_resovler):  Move most of the code to dep_ref.
345         (dep_ref):  New function.
346         * frontend-passes.c (realloc_string_callback):  Name temporary
347         variable "realloc_string".
349 2016-07-26  Steven G. Kargl  <kargl@gcc.gnu.org>
351         PR fortran/71862
352         * class.c: Remove assert.  Iterate over component only if non-null.
354 2016-07-22  Steven G. Kargl  <kargl@gcc.gnu.org>
356         PR fortran/71935
357         * check.c (is_c_interoperable): Simplify right expression.
359 2016-07-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
361         PR fortran/71795
362         * frontend-passes.c (combine_array_constructor):  Don't
363         do anything if the expression is inside an array iterator.
365 2016-07-22  Andre Vehreschild  <vehre@gcc.gnu.org>
367         * expr.c (gfc_find_stat_co): Fixed whitespaces.
368         * gfortran.texi: Fixed typos and reversed meaning of caf_get()'s
369         src and dst description.
370         * trans-decl.c (gfc_build_builtin_function_decls): Fixed style
371         and corrected fnspec for caf functions.
372         * trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Fixed style.
373         (conv_caf_send): Dito.
375 2016-07-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
377         PR fortran/71902
378         * dependency.c (gfc_check_dependency): Use dep_ref.  Handle case
379         if identical is true and two array element references differ.
380         (gfc_dep_resovler):  Move most of the code to dep_ref.
381         (dep_ref):  New function.
382         * frontend-passes.c (realloc_string_callback):  Name temporary
383         variable "realloc_string".
385 2016-07-17  Fritz Reese  <fritzoreese@gmail.com>
387         PR fortran/71523
388         * trans-decl.c (gfc_finish_var_decl): Replace automatic initializer with
389         a static one.
391 2016-07-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
392             Marco Restelli <mrestelli@gmail.com>
394         PR fortran/62125
395         * symbol.c (select_type_insert_tmp): Recursively call self to take care
396         of nested select type.
398 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
400         * openmp.c (gfc_match_omp_clauses): Scan for clause vector_length
401         before vector.
403 2016-07-15  Andre Vehreschild  <vehre@gcc.gnu.org>
405         PR fortran/71807
406         * trans-expr.c (gfc_trans_subcomponent_assign): Special casing
407         when allocatable component is set to null() in initializer.
409 2016-07-14  Steven G. Kargl  <kargl@gcc.gnu.org>
411         PR fortran/29819
412         * parse.c (parse_contained): Use proper locus.
414 2016-07-14  Andre Vehreschild  <vehre@gcc.gnu.org>
416         PR fortran/70842
417         * simplify.c (gfc_simplify_len): Only for unlimited polymorphic
418         types replace the expression's _data ref with a _len ref.
420 2016-07-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
422         PR fortran/71783
423         * frontend-passes.c (create_var):  Always allocate a charlen
424         for character variables.
426 2016-07-08  Steven G. Kargl  <kargl@gcc.gnu.org>
428         PR fortran/68426
429         * simplify (gfc_simplify_spread): Adjust locus.
431 2016-07-08  Cesar Philippidis  <cesar@codesourcery.com>
433         * parse.c (matcha): Define.
434         (decode_oacc_directive): Add spec_only local var and set it.  Use
435         matcha to parse acc directives except for routine and declare.  Return
436         ST_GET_FCN_CHARACTERISTICS if a non-declarative directive could be
437         matched.
439 2016-07-08  Martin Liska  <mliska@suse.cz>
441         * invoke.texi (Wundefined-do-loop): Enhance documentation.
443 2016-07-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
445         PR fortran/71764
446         * trans-expr.c (gfc_trans_structure_assign): Remove assert.
448 2016-07-07  Martin Liska  <mliska@suse.cz>
450         * lang.opt (Wundefined-do-loop): New option.
451         * resolve.c (gfc_resolve_iterator): Warn for Wundefined-do-loop.
452         (gfc_trans_simple_do): Generate a c-style loop.
453         (gfc_trans_do): Fix GNU coding style.
454         * invoke.texi: Mention the new warning.
456 2016-07-07  Martin Liska  <mliska@suse.cz>
458         * trans-stmt.c (gfc_trans_do): Add expect builtin for DO
459         loops with step bigger than +-1.
461 2016-07-05  Alessandro Fanfarillo  <fanfarillo.gcc@gmail.com>
463         * array.c (gfc_match_array_ref): Add parsing support for
464         STAT= attribute in CAF reference.
465         * expr.c (gfc_find_stat_co): New function that returns
466         the STAT= assignment.
467         * gfortran.h (gfc_array_ref): New member.
468         * trans-decl.c (gfc_build_builtin_function_decls):
469         new attribute for caf_get and caf_send functions.
470         * trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Passing
471         the stat attribute to external function.
472         (gfc_conv_intrinsic_caf_send): Ditto.
474 2016-07-05  Andre Vehreschild  <vehre@gcc.gnu.org>
476         PR fortran/71623
477         * trans-stmt.c (gfc_trans_allocate): Add code of pre block of typespec
478         in allocate to parent block.
480 2016-07-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
482         PR fortran/66575
483         * decl.c (match_procedure_interface): Exit loop if procedure
484         interface refers to itself.
486 2016-07-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
487             Steven G. Kargl  <kargl@gcc.gnu.org>
489         PR fortran/35849
490         * simplify.c (gfc_simplify_ishftc): Check that absolute value of
491         SHIFT is less than or equal to SIZE.
493 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
495         PR fortran/71687
496         * f95-lang.c (struct binding_level): Add reversed field.
497         (clear_binding_level): Adjust initializer.
498         (getdecls): If reversed is clear, set it and nreverse the names
499         chain before returning it.
500         (poplevel): Use getdecls.
501         * trans-decl.c (gfc_generate_function_code, gfc_process_block_locals):
502         Use nreverse to pushdecl decls in the declaration order.
504         PR fortran/71717
505         * trans-openmp.c (gfc_omp_privatize_by_reference): Return false
506         for GFC_DECL_ASSOCIATE_VAR_P with POINTER_TYPE.
508 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
510         PR fortran/71704
511         * parse.c (matchs, matcho): Move right before decode_omp_directive.
512         If spec_only, only gfc_match the keyword and if successful, goto
513         do_spec_only.
514         (matchds, matchdo): Define.
515         (decode_omp_directive): Add spec_only local var and set it.
516         Use matchds or matchdo macros instead of matchs or matcho
517         for declare target, declare simd, declare reduction and threadprivate
518         directives.  Return ST_GET_FCN_CHARACTERISTICS if a non-declarative
519         directive could be matched.
520         (next_statement): For ST_GET_FCN_CHARACTERISTICS restore
521         gfc_current_locus from old_locus even if there is no label.
523         PR fortran/71705
524         * trans-openmp.c (gfc_trans_omp_clauses): Set TREE_ADDRESSABLE on
525         decls in to/from clauses.
527 2016-06-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
529         PR fortran/71686
530         * scanner.c (gfc_next_char_literal): Only decrement nextc if it
531         is not NULL.
533 2016-06-29  Cesar Philippidis  <cesar@codesourcery.com>
535         * openmp.c (match_oacc_clause_gang): Rename to ...
536         (match_oacc_clause_gwv): this.  Add support for OpenACC worker and
537         vector clauses.
538         (gfc_match_omp_clauses): Use match_oacc_clause_gwv for
539         OMP_CLAUSE_{GANG,WORKER,VECTOR}.  Propagate any MATCH_ERRORs for
540         invalid OMP_CLAUSE_{ASYNC,WAIT,GANG,WORKER,VECTOR} clauses.
541         (gfc_match_oacc_wait): Propagate MATCH_ERROR for invalid
542         oacc_expr_lists.  Adjust the first and needs_space arguments to
543         gfc_match_omp_clauses.
545 2016-06-29  Richard Biener  <rguenther@suse.de>
547         PR middle-end/71002
548         * f95-lang.c (LANG_HOOKS_GET_ALIAS_SET): Remove (un-)define.
549         (gfc_get_alias_set): Remove.
551 2016-06-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
553         PR fortran/71649
554         * module.c (create_intrinsic_function): Check for NULL values and
555         return after giving error.
557 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
559         * trans-types.c (gfc_build_complex_type): Move setting complex
560         MODE to layout_type, instead of setting it ahead of time by the
561         caller.
563 2016-06-21  Tobias Burnus  <burnus@net-b.de>
565         PR fortran/71068
566         * resolve.c (resolve_function): Don't resolve caf_get/caf_send.
567         (check_data_variable): Strip-off caf_get before checking.
569 2016-06-20  Tobias Burnus  <burnus@net-b.de>
571         PR fortran/71194
572         * trans-expr.c (gfc_trans_pointer_assignment): Correctly handle
573         RHS pointer functions.
575 2016-06-19  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
577         * class.c (gfc_add_class_array_ref): Call gfc_add_data_component()
578         instead of gfc_add_component_ref().
579         (gfc_get_len_component): Call gfc_add_len_component() instead of
580         gfc_add_component_ref().
581         * trans-intrinsic.c (gfc_conv_intrinsic_loc): Call
582         gfc_add_data_component() instead of gfc_add_component_ref().
583         * trans.c (gfc_add_finalizer_call): Call
584         gfc_add_final_component() and gfc_add_size_component() instead
585         of gfc_add_component_ref.
587 2016-06-18  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
589         * trans-types.c (gfc_typenode_for_spec): Commentary typo fix.
591 2016-06-17  Cesar Philippidis  <cesar@codesourcery.com>
593         * openmp.c (match_acc): New generic function to parse OpenACC
594         directives.
595         (gfc_match_oacc_parallel_loop): Use it.
596         (gfc_match_oacc_parallel): Likewise.
597         (gfc_match_oacc_kernels_loop): Likewise.
598         (gfc_match_oacc_kernels): Likewise.
599         (gfc_match_oacc_data): Likewise.
600         (gfc_match_oacc_host_data): Likewise.
601         (gfc_match_oacc_loop): Likewise.
602         (gfc_match_oacc_enter_data): Likewise.
603         (gfc_match_oacc_exit_data): Likewise.
605 2016-06-16  Martin Liska  <mliska@suse.cz>
607         * trans-stmt.c (gfc_trans_simple_do): Predict the edge.
609 2016-06-16  Martin Liska  <mliska@suse.cz>
611         * trans-array.c (gfc_array_allocate): Do not generate expect
612         stmt.
613         * trans.c (gfc_allocate_using_malloc): Properly set FAIL_ALLOC
614         predictor for malloc return value.
615         (gfc_allocate_allocatable): Use REALLOC predictor instead of
616         FAIL_ALLOC.
617         (gfc_deallocate_with_status): Likewise.
619 2016-06-13  Paul Thomas  <pault@gcc.gnu.org>
621         PR fortran/70673
622         * frontend-passes.c (realloc_string_callback): Add a call to
623         gfc_dep_compare_expr.
625 2016-06-11  Dominique d'Humieres  <dominiq@lps.ens.fr>
627         PR fortran/60751
628         * io.c (gfc_resolve_dt): Replace GFC_STD_GNU with GFC_STD_LEGACY.
630 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
632         PR c/71381
633         * openmp.c (gfc_match_oacc_cache): Add comment.
635 2016-06-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
637         PR fortran/71404
638         * io.c (match_io): For READ, commit in pending symbols in the
639         current statement before trying to match an expression so that
640         if the match fails and we undo symbols we dont toss good symbols.
642 2016-06-05  Andre Vehreschild  <vehre@gcc.gnu.org>
644         PR fortran/69659
645         * trans-array.c (gfc_trans_dummy_array_bias): For class arrays use
646         the address of the _data component to reference the arrays data
647         component.
649 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
651         * trans-openmp.c (gfc_trans_omp_reduction_list): Add mark_addressable
652         bool parameter, set reduction clause DECLs as addressable when true.
653         (gfc_trans_omp_clauses): Pass clauses->async to
654         gfc_trans_omp_reduction_list, add comment describing OpenACC situation.
656 2016-06-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
658         PR fortran/52393
659         * io.c (match_io): For READ, try to match a default character
660         expression. If found, set the dt format expression to this,
661         otherwise go back and try control list.
663 2016-06-01  Paul Thomas  <pault@gcc.gnu.org>
665         PR fortran/71156
666         * decl.c (copy_prefix): Add checks that the module procedure
667         declaration prefixes are compliant with the interface. Invert
668         order of existing elemental and pure checks.
669         * resolve.c (resolve_fl_procedure): Invert order of elemental
670         and pure errors.
672 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
674         * parse.c (case_decl): Move ST_OMP_* to ...
675         (case_omp_decl): ... here, new macro.
676         (verify_st_order): For case_omp_decl, complain about
677         p->state >= ORDER_EXEC, but don't change p->state otherwise.
679 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
681         * openmp.c (resolve_omp_clauses): Warn if chunk_size is known not to
682         be positive.
684 2016-05-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
686         PR fortran/66461
687         * scanner.c (gfc_next_char_literal): Clear end_flag when adjusting
688         current locus back to old_locus.
690 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
692         PR fortran/71204
693         * frontend-passes.c (realloc_string_callback): Clear inserted_block
694         and changed_statement before calling create_var.
696 2016-05-15  Harald Anlauf  <anlauf@gmx.de>
698         PR fortran/69603
699         * interface.c (compare_parameter): Check for non-NULL pointer.
701 2016-05-14  Fritz Reese  <fritzoreese@gmail.com>
703         * gfortran.texi: Update example of DEC UNION extension.
705 2016-05-14  Fritz Reese  <fritzoreese@gmail.com>
707         PR fortran/71047
708         * expr.c (gfc_default_initializer): Avoid extra component refs in
709         constructors for derived types and classes.
711 2016-05-11  Jakub Jelinek  <jakub@redhat.com>
713         PR fortran/70855
714         * frontend-passes.c (inline_matmul_assign): Disable in !$omp workshare.
716 2016-05-09  Richard Biener  <rguenther@suse.de>
718         PR fortran/70937
719         * trans-decl.c: Include gimplify.h for unshare_expr.
720         (gfc_trans_vla_one_sizepos): Unshare exprs before inserting
721         them into the IL.
723 2016-05-07  Fritz Reese  <fritzoreese@gmail.com>
725         PR fortran/56226
726         * module.c (dt_upper_string): Rename to gfc_dt_upper_string
727         (dt_lower_string): Likewise.
728         * gfortran.h: Make new gfc_dt_upper/lower_string global.
729         * class.c: Use gfc_dt_upper_string.
730         * decl.c: Likewise.
731         * symbol.c: Likewise.
732         * resolve.c (resolve_component): New function.
733         (resolve_fl_derived0): Move component loop code to resolve_component.
734         * parse.c (check_component): New function.
735         (parse_derived): Move loop code to check_component.
736         * lang.opt, invoke.texi, options.c : New option -fdec-structure.
737         * libgfortran.h (bt): New basic type BT_UNION.
738         * gfortran.h (gfc_option): New option -fdec-structure.
739         (gfc_get_union_type, gfc_compare_union_types): New prototypes.
740         (gfc_bt_struct, gfc_fl_struct, case_bt_struct, case_fl_struct): New
741         macros.
742         (gfc_find_component): Change prototype.
743         * match.h (gfc_match_member_sep, gfc_match_map, gfc_match_union,
744         gfc_match_structure_decl): New prototypes.
745         * parse.h (gfc_comp_struct): New macro.
746         * symbol.c (gfc_find_component): Search for components in nested unions
747         * class.c (insert_component_ref, gfc_add_component_ref, add_proc_comp,
748         copy_vtab_proc_comps): Update calls to gfc_find_component.
749         * primary.c (gfc_convert_to_structure_constructor): Likewise.
750         * symbol.c (gfc_add_component): Likewise.
751         * resolve.c (resolve_typebound_function, resolve_typebound_subroutine,
752         resolve_typebound_procedure, resolve_component, resolve_fl_derived):
753         Likewise.
754         * expr.c (get_union_init, component_init): New functions.
755         * decl.c (match_clist_expr, match_record_decl, get_struct_decl,
756         gfc_match_map, gfc_match_union, gfc_match_structure_decl): Likewise.
757         * interface.c (compare_components, gfc_compare_union_types): Likewise.
758         * match.c (gfc_match_member_sep): Likewise.
759         * parse.c (check_component, parse_union, parse_struct_map): Likewise.
760         * resolve.c (resolve_fl_struct): Likewise.
761         * symbol.c (find_union_component): Likewise.
762         * trans-types.c (gfc_get_union_type): Likewise.
763         * parse.c (parse_derived): Use new functions.
764         * interface.c (gfc_compare_derived_types, gfc_compare_types): Likewise.
765         * expr.c (gfc_default_initializer): Likewise.
766         * gfortran.texi: Support for DEC structures, unions, and maps.
767         * gfortran.h (gfc_statement, sym_flavor): Likewise.
768         * check.c (gfc_check_kill_sub): Likewise.
769         * expr.c (gfc_copy_expr, simplify_const_ref,
770         gfc_has_default_initializer): Likewise.
771         * decl.c (build_sym, match_data_constant, add_init_expr_to_sym,
772         match_pointer_init, build_struct, variable_decl,
773         gfc_match_decl_type_spec, gfc_mach_data-decl, gfc_match_entry,
774         gfc_match_end, gfc_match_derived_decl): Likewise.
775         * interface.c (check_interface0, check_interface1,
776         gfc_search_interface): Likewise.
777         * misc.c (gfc_basic_typename, gfc_typename): Likewise.
778         * module.c (add_true_name, build_tnt, bt_types, mio_typespec,
779         fix_mio_expr, load_needed, mio_symbol, read_module, write_symbol,
780         gfc_get_module_backend_decl): Likewise.
781         * parse.h (gfc_compile_state): Likewise.
782         * parse.c (decode_specification_statement, decode_statement,
783         gfc_ascii_statement, verify_st_order, parse_spec): Likewise.
784         * primary.c (gfc_match_varspec, gfc_match_structure_constructor,
785         gfc_match_rvalue, match_variable): Likewise.
786         * resolve.c (find_arglists, resolve_structure_cons,
787         is_illegal_recursion, resolve_generic_f, get_declared_from_expr,
788         resolve_typebound_subroutine, resolve_allocate_expr,
789         nonscalar_typebound_assign, generate_component_assignments,
790         resolve_fl_variable_derived, check_defined_assignments,
791         resolve_component, resolve_symbol, resolve_equivalence_derived):
792         Likewise.
793         * symbol.c (flavors, check_conflict, gfc_add_flavor, gfc_use_derived,
794         gfc_restore_last_undo_checkpoint, gfc_type_compatible,
795         gfc_find_dt_in_generic): Likewise.
796         * trans-decl.c (gfc_get_module_backend_decl, create_function_arglist,
797         gfc_create_module_variable, check_constant_initializer): Likewise.
798         * trans-expr.c (gfc_conv_component_ref, gfc_conv_initializer,
799         gfc_trans_alloc_subarray_assign, gfc_trans_subcomponent_assign,
800         gfc_conv_structure, gfc_trans_scalar_assign, copyable_array_p):
801         Likewise.
802         * trans-io.c (transfer_namelist_element, transfer_expr,
803         gfc_trans_transfer): Likewise.
804         * trans-stmt.c (gfc_trans_deallocate): Likewise.
805         * trans-types.c (gfc_typenode_for_spec, gfc_copy_dt_decls_ifequal,
806         gfc_get_derived_type): Likewise.
808 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
810         * openmp.c (gfc_match_omp_clauses): Restructuralize, so that clause
811         parsing is done in a big switch based on gfc_peek_ascii_char and
812         individual clauses under their first letters are sorted too.
814 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
816         * trans-types.c (gfc_build_complex_type):
818 2016-05-02  Richard Biener  <rguenther@suse.de>
820         * trans-array.c (gfc_trans_create_temp_array): Properly
821         create a DECL_EXPR for the anonymous VLA array type.
823 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
825         PR middle-end/70626
826         * trans-openmp.c (gfc_trans_oacc_combined_directive): Duplicate
827         the reduction clause in both parallel and loop directives.
829 2016-04-18  Michael Matz  <matz@suse.de>
831         * trans-io.c (gfc_build_io_library_fndecls): Use SET_TYPE_ALIGN.
832         * trans-common.c (build_common_decl): Use SET_DECL_ALIGN.
833         * trans-types.c (gfc_add_field_to_struct): Use SET_DECL_ALIGN.
835 2016-04-13  Dominique d'Humieres  <dominiq@lps.ens.fr>
837         PR fortran/67039
838         * intrinsic.texi: Correct the documentation of pseudorandom
839         number intrinsics.
841 2016-04-13  Dominique d'Humieres  <dominiq@lps.ens.fr>
843         PR fortran/58000
844         * gfortran.texi: Document OPEN( ... NAME=) as not implemented
845         in GNU Fortran
847 2016-04-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
849         PR fortran/68566
850         * array.c (match_array_element_spec): Add check for non-integer.
851         * simplify.c (gfc_simplify_reshape): If source shape is NULL return.
853 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
855         PR c/70436
856         * openmp.c (gfc_find_omp_udr): Add explicit braces to resolve a
857         future -Wparentheses warning.
859 2016-04-04  Andre Vehreschild  <vehre@gcc.gnu.org>
861         PR fortran/67538
862         * resolve.c (resolve_allocate_expr): Emit error message when no
863         array spec and no array valued source= expression is given in an
864         F2008 allocate() for an array to allocate.
866 2016-04-04  Andre Vehreschild  <vehre@gcc.gnu.org>
868         PR fortran/65795
869         * trans-array.c (gfc_array_allocate): When the array is a coarray,
870         do not nullyfing its allocatable components in array_allocate, because
871         the nullify missed the array ref and nullifies the wrong component.
872         Cosmetics.
874 2016-03-29  Andre Vehreschild  <vehre@gcc.gnu.org>
876         PR fortran/70397
877         * trans-expr.c (gfc_class_len_or_zero_get): Add function to return a
878         constant zero tree, when the class to get the _len component from is
879         not unlimited polymorphic.
880         (gfc_copy_class_to_class): Use the new function.
881         * trans.h: Added interface of new function gfc_class_len_or_zero_get.
883 2016-03-28  Alessandro Fanfarillo  <fanfarillo.gcc@gmail.com>
885         * trans-decl.c (gfc_build_builtin_function_decls):
886         caf_stop_numeric and caf_stop_str definition.
887         * trans-stmt.c (gfc_trans_stop): invoke external functions
888         for stop and stop_str when coarrays are used.
889         * trans.h: extern for new functions.
891 2016-03-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
893         PR fortran/69043
894         * scanner.c (load_file): Update to use S_ISREG macro.
896 2016-03-17  Thomas Schwinge  <thomas@codesourcery.com>
898         * gfortran.h (enum gfc_omp_map_op): Rename OMP_MAP_FORCE_DEALLOC
899         to OMP_MAP_DELETE.  Adjust all users.
901 2016-03-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
902             Jim MacArthur  <jim.macarthur@codethink.co.uk>
904         PR fortran/69043
905         * scanner.c (load_file): Check that included file is regular.
907 2016-03-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
908             Harold Anlauf  <anlauf@gmx.de>
910         PR fortran/69520
911         * invoke.texi: Explain use of the 'no-' construct within the
912         -fcheck= option.
913         * options.c (gfc_handle_runtime_check_option): Enable use of
914         'no-' prefix for the various options with -fcheck= to allow
915         negating previously enabled check options.
917 2016-03-12  Paul Thomas  <pault@gcc.gnu.org>
919         PR fortran/70031
920         * decl.c (gfc_match_prefix): Treat the 'module' prefix in the
921         same way as the others, rather than fixing it to come last.
922         (gfc_match_function_decl, gfc_match_subroutine): After errors
923         in 'copy_prefix', emit them immediately in the case of module
924         procedures to prevent a later ICE.
926         PR fortran/69524
927         * decl.c (gfc_match_submod_proc): Permit 'module procedure'
928         declarations within the contains section of modules as well as
929         submodules.
930         * resolve.c (resolve_fl_procedure): Likewise.
931         *trans-decl.c (build_function_decl): Change the gcc_assert to
932         allow all forms of module procedure declarations within module
933         contains sections.
935 2016-02-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
937         PR fortran/68147
938         PR fortran/47674
939         * frontend-passes.c (realloc_string_callback): Don't set
940         walk_subtrees.
942 2016-02-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
944         * dump-parse-tree.c (show_code_node):  Print association
945         list of a block if present.  Handle EXEC_END_BLOCK.
947 2016-02-28  Harald Anlauf <anlauf@gmx.de>
948             Jerry DeLisle  <jvdelisle@gcc.gnu.org>
950         PR fortran/56007
951         * match.c (gfc_match_iterator): Add diagnostic for array variable
952         as do loop index.
954 2016-02-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
955             Steven G. Kargl  <kargl@gcc.gnu.org>
957         PR fortran/69910
958         * io.c (gfc_match_open): Check that open status is an expression
959         constant before comparing string to 'scratch' with NEWUNIT.
961 2016-02-27  Alessandro Fanfarillo  <fanfarillo.gcc@gmail.com>
963         * trans.c (gfc_allocate_allocatable): size conversion
964         from byte to number of elements for event variables.
965         * trans-types.c (gfc_get_derived_type): event variables
966         represented as a pointer (like lock variable).
968 2016-02-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
970         PR fortran/61156
971         * scanner.c (add_path_to_list): If include path is not a directory,
972         issue a fatal error.
974 2016-02-23  Andre Vehreschild  <vehre@gcc.gnu.org>
976         PR fortran/67451
977         * trans-array.c (gfc_array_allocate): Take the attributes from the
978         expression to allocate and not from the source=-expression.
980 2016-02-20  Paul Thomas  <pault@gcc.gnu.org>
982         PR fortran/69423
983         * trans-decl.c (create_function_arglist): Deferred character
984         length functions, with and without declared results, address
985         the passed reference type as '.result' and the local string
986         length as '..result'.
987         (gfc_null_and_pass_deferred_len): Helper function to null and
988         return deferred string lengths, as needed.
989         (gfc_trans_deferred_vars): Call it, thereby reducing repeated
990         code, add call for deferred arrays and reroute pointer function
991         results. Avoid using 'tmp' for anything other that a temporary
992         tree by introducing 'type_of_array' for the arrayspec type.
994 2015-02-16  Thomas Koenig  <tkoenig@gcc.gnu.org>
996         PR fortran/69742
997         * frontend-passes.c (cfe-expr_0):  Don't register functions
998         from within an ASSOCIATE statement.
1000 2016-02-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
1002         PR fortran/60526
1003         * decl.c (build_sym):  If the name has already been defined as a
1004         type, it has a symtree with an upper case letter at the beginning.
1005         If such a symtree exists, issue an error and exit.  Don't do
1006         this if there is no corresponding upper case letter.
1008 2016-02-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
1010         PR fortran/60526
1011         PR bootstrap/69816
1012         * decl.c (build_sym):  Reverted previous patch.
1014 2016-02-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
1016         PR fortran/60526
1017         * decl.c (build_sym):  If the name has already been defined as a
1018         type, issue error and return false.
1020 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
1022         PR other/69554
1023         * error.c (gfc_diagnostic_start_span): New function.
1024         (gfc_diagnostics_init): Initialize global_dc's start_span.
1026 2016-02-11  Andre Vehreschild  <vehre@gcc.gnu.org>
1028         PR fortran/69296
1029         * gfortran.h: Added flag to gfc_association_list indicating that
1030         the rank of an associate variable has been guessed only.
1031         * parse.c (parse_associate): Set the guess flag mentioned above
1032         when guessing the rank of an expression.
1033         * resolve.c (resolve_assoc_var): When the rank has been guessed,
1034         make sure, that the guess was correct else overwrite with the actual
1035         rank.
1036         * trans-stmt.c (trans_associate_var): For subref_array_pointers in
1037         class objects, take the span from the _data component.
1039 2016-02-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1041         PR fortran/50555
1042         * primary.c (match_actual_arg): If symbol has attribute flavor of
1043         namelist, generate an error. (gfc_match_rvalue): Likewise return
1044         MATCH_ERROR.
1045         * resolve.c (resolve_symbol): Scan arument list of procedures and
1046         generate an error if a namelist is found.
1048 2016-02-05  Mikael Morin  <mikael@gcc.gnu.org>
1050         PR fortran/66089
1051         * trans-expr.c (expr_is_variable, gfc_expr_is_variable): Rename
1052         the former to the latter and make it non-static.  Update callers.
1053         * gfortran.h (gfc_expr_is_variable): New declaration.
1054         (struct gfc_ss_info): Add field needs_temporary.
1055         * trans-array.c (gfc_scalar_elemental_arg_saved_as_argument):
1056         Tighten the condition on aggregate expressions with a check
1057         that the expression is a variable and doesn't need a temporary.
1058         (gfc_conv_resolve_dependency): Add intermediary reference variable.
1059         Set the needs_temporary field.
1061 2016-02-03  Andre Vehreschild  <vehre@gcc.gnu.org>
1063         PR fortran/67451
1064         PR fortran/69418
1065         * trans-expr.c (gfc_copy_class_to_class): For coarrays just the
1066         pointer is passed.  Take it as is without trying to deref the
1067         _data component.
1068         * trans-stmt.c (gfc_trans_allocate): Take care of coarrays as
1069         argument to source=-expression.
1071 2016-02-02  Nathan Sidwell  <nathan@codesourcery.com>
1073         * lang.opt (fopenacc-dim=): New option.
1075 2016-01-31  Paul Thomas  <pault@gcc.gnu.org>
1077         PR fortran/67564
1078         * trans-expr.c (gfc_conv_procedure_call): For the vtable copy
1079         subroutines, add a string length argument, when the actual
1080         argument is an unlimited polymorphic class object.
1082 2016-01-30  Paul Thomas  <pault@gcc.gnu.org>
1084         PR fortran/69566
1085         * trans-expr.c (gfc_conv_procedure_call): Correct expression
1086         for 'ulim_copy', which was missing a test for 'comp'.
1088 2016-01-28  Andre Vehreschild  <vehre@gcc.gnu.org>
1090         PR fortran/62536
1091         * decl.c (gfc_match_end): Only unnest and remove BLOCK namespaces
1092         when the END encountered does not match a BLOCK's end.
1094 2016-01-27  Janus Weil  <janus@gcc.gnu.org>
1096         PR fortran/69484
1097         * invoke.texi: Fix documentation of -Wall with respect to -Wtabs.
1099 2016-01-27  Paul Thomas  <pault@gcc.gnu.org>
1101         PR fortran/69422
1102         * trans-expr.c (is_scalar_reallocatable_lhs): Remove the check
1103         for allocatable components, whilst checking if the symbol is a
1104         derived or class entity..
1106 2016-01-26  Paul Thomas  <pault@gcc.gnu.org>
1108         PR fortran/69385
1109         * trans-expr.c (gfc_trans_assignment_1): Exclude initialization
1110         assignments from check on assignment of scalars to unassigned
1111         arrays and correct wrong code within the corresponding block.
1113 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
1115         PR other/69006
1116         * error.c (gfc_diagnostic_starter): Delete use of pp_newline.
1118 2016-01-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1120         PR fortran/69397
1121         PR fortran/68442
1122         * interface.c (gfc_arglist_matches_symbol): Replace assert with
1123         a return false if not a procedure.
1124         * resolve.c (resolve_generic_f): Test if we are resolving an
1125         initialization expression and adjust error message accordingly.
1127 2016-01-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
1129         PR fortran/66094
1130         * frontend-passes.c (matmul_lhs_realloc):  Add
1131         forgotten break statement.
1133 2016-01-24  Dominique d'Humieres <dominiq@lps.ens.fr>
1135         PR fortran/68283
1136         * primary.c (gfc_variable_attr): revert revision r221955,
1137         call gfc_internal_error only if there is no error.
1139 2016-01-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
1141         PR fortran/66094
1142         * frontend-passes.c (enum matrix_case):  Add case A2B2T for
1143         MATMUL(A,TRANSPoSE(B)) where A and B are rank 2.
1144         (inline_limit_check):  Also add A2B2T.
1145         (matmul_lhs_realloc):  Handle A2B2T.
1146         (check_conjg_variable):  Rename to
1147         (check_conjg_transpose_variable):  and also count TRANSPOSE.
1148         (inline_matmul_assign):  Handle A2B2T.
1150 2016-01-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1152         PR fortran/65996
1153         * error.c (gfc_error): Save the state of abort_on_error and set
1154         it to false for buffered errors to allow normal processing.
1155         Restore the state before leaving.
1157 2016-01-19  Martin Jambor  <mjambor@suse.cz>
1159         * types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
1160         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
1161         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
1163 2016-01-15  Paul Thomas  <pault@gcc.gnu.org>
1165         PR fortran/64324
1166         * resolve.c (check_uop_procedure): Prevent deferred length
1167         characters from being trapped by assumed length error.
1169         PR fortran/49630
1170         PR fortran/54070
1171         PR fortran/60593
1172         PR fortran/60795
1173         PR fortran/61147
1174         PR fortran/64324
1175         * trans-array.c (gfc_conv_scalarized_array_ref): Pass decl for
1176         function as well as variable expressions.
1177         (gfc_array_init_size): Add 'expr' as an argument. Use this to
1178         correctly set the descriptor dtype for deferred characters.
1179         (gfc_array_allocate): Add 'expr' to the call to
1180         'gfc_array_init_size'.
1181         * trans.c (gfc_build_array_ref): Expand logic for setting span
1182         to include indirect references to character lengths.
1183         * trans-decl.c (gfc_get_symbol_decl): Ensure that deferred
1184         result char lengths that are PARM_DECLs are indirectly
1185         referenced both for directly passed and by reference.
1186         (create_function_arglist): If the length type is a pointer type
1187         then store the length as the 'passed_length' and make the char
1188         length an indirect reference to it.
1189         (gfc_trans_deferred_vars): If a character length has escaped
1190         being set as an indirect reference, return it via the 'passed
1191         length'.
1192         * trans-expr.c (gfc_conv_procedure_call): The length of
1193         deferred character length results is set TREE_STATIC and set to
1194         zero.
1195         (gfc_trans_assignment_1): Do not fix the rse string_length if
1196         it is a variable, a parameter or an indirect reference. Add the
1197         code to trap assignment of scalars to unallocated arrays.
1198         * trans-stmt.c (gfc_trans_allocate): Remove 'def_str_len' and
1199         all references to it. Instead, replicate the code to obtain a
1200         explicitly defined string length and provide a value before
1201         array allocation so that the dtype is correctly set.
1202         trans-types.c (gfc_get_character_type): If the character length
1203         is a pointer, use the indirect reference.
1205 2016-01-10  Thomas Koenig  <tkoenig@gcc.gnu.org>
1207         PR fortran/69154
1208         * frontend-passes.c (in_where):  New variable.
1209         (inline_matmul_assign):  Don't try this if we are within
1210         a WHERE statement.
1211         (gfc_code_walker):  Keep track of in_where.
1213 2016-01-10  Paul Thomas  <pault@gcc.gnu.org>
1215         PR fortran/67779
1216         * trans_array.c (gfc_conv_scalarized_array_ref): Add missing
1217         se->use_offset from condition for calculation of 'base'.
1219 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
1221         PR fortran/69128
1222         * trans.h (OMPWS_SCALARIZER_BODY): Define.
1223         (OMPWS_NOWAIT): Renumber.
1224         * trans-stmt.c (gfc_trans_where_3): Only set OMPWS_SCALARIZER_WS
1225         if OMPWS_SCALARIZER_BODY is not set already, and set also
1226         OMPWS_SCALARIZER_BODY until the final loop creation.
1227         * trans-expr.c (gfc_trans_assignment_1): Likewise.
1228         * trans-openmp.c (gfc_trans_omp_workshare): Also clear
1229         OMPWS_SCALARIZER_BODY.
1230         * trans-array.c (gfc_trans_scalarized_loop_end): Don't create
1231         OMP_FOR if OMPWS_SCALARIZER_BODY is set.
1233 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
1235         Update copyright years.
1237         * gfortranspec.c (lang_specific_driver): Update copyright notice
1238         dates.
1239         * gfc-internals.texi: Bump @copying's copyright year.
1240         * gfortran.texi: Ditto.
1241         * intrinsic.texi: Ditto.
1242         * invoke.texi: Ditto.
1244 2016-01-01  Paul Thomas  <pault@gcc.gnu.org>
1246         PR fortran/68864
1247         * trans-array.c (evaluate_bound): If deferred, test that 'desc'
1248         is an array descriptor before using gfc_conv_descriptor_xxx.
1250 Copyright (C) 2016 Free Software Foundation, Inc.
1252 Copying and distribution of this file, with or without modification,
1253 are permitted in any medium without royalty provided the copyright
1254 notice and this notice are preserved.