1 2016-09-09 Steven G. Kargl <kargl@gcc.gnu.org>
4 * array.c (gfc_match_array_constructor): CHARACTER(len=*) cannot
5 appear in an array constructor.
7 2016-09-09 Steven G. Kargl <kargl@gcc.gnu.org>
10 * intrinsic.c (add_functions): Use correct keyword.
12 2016-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
15 * array.c (gfc_match_array_constructor): If type-spec is present,
16 walk the array constructor performing possible conversions for
19 2016-09-08 Jakub Jelinek <jakub@redhat.com>
22 * trans-openmp.c (gfc_trans_omp_atomic): For atomic write or
23 swap, don't try to look through GFC_ISYM_CONVERSION. In other cases,
24 check that value.function.isym is non-NULL before dereferencing it.
26 2016-09-04 Steven G. Kargl <kargl@gcc.gnu.org>
29 * resolve.c (deferred_requirements): New function to check F2008:C402.
30 (resolve_fl_variable,resolve_fl_parameter): Use it.
32 2016-09-04 Steven G. Kargl <kargl@gcc.gnu.org>
35 * simplify.c (simplify_transformation_to_scalar): On error, result
36 may be NULL, simply return.
38 2016-08-31 Jakub Jelinek <jakub@redhat.com>
41 * trans-openmp.c (gfc_trans_omp_parallel_workshare): Always add a
42 BIND_EXPR with BLOCK around what gfc_trans_omp_workshare returns.
45 * parse.c (parse_omp_oacc_atomic): Copy over cp->ext.omp_atomic
46 to cp->block->ext.omp_atomic.
47 * resolve.c (gfc_resolve_blocks): Assert block with one or two
48 EXEC_ASSIGNs for EXEC_*_ATOMIC.
49 * openmp.c (resolve_omp_atomic): Don't assert one or two
50 EXEC_ASSIGNs, instead return quietly for EXEC_NOPs and otherwise
51 error unexpected statements.
53 2016-08-31 Paul Thomas <pault@gcc.gnu.org>
54 Jerry DeLisle <jvdelisle@gcc.gnu.org>
57 * decl.c (access_attr_decl): Include case INTERFACE_DTIO as
59 * gfortran.h : Add INTRINSIC_FORMATTED and
60 INTRINSIC_UNFORMATTED to gfc_intrinsic_op. Add INTERFACE_DTIO
61 to interface type. Add new enum 'dtio_codes'. Add bitfield
62 'has_dtio_procs' to symbol_attr. Add prototypes
63 'gfc_check_dtio_interfaces' and 'gfc_find_specific_dtio_proc'.
64 * interface.c (dtio_op): New function.
65 (gfc_match_generic_spec): Match generic DTIO interfaces.
66 (gfc_match_interface): Treat DTIO interfaces in the same way as
67 (gfc_current_interface_head): Add INTERFACE_DTIO appropriately.
68 (check_dtio_arg_TKR_intent): New function.
69 (check_dtio_interface1): New function.
70 (gfc_check_dtio_interfaces): New function.
71 (gfc_find_specific_dtio_proc): New function.
72 * io.c : Add FMT_DT to format_token.
73 (format_lex): Handle DTIO formatting.
74 * match.c (gfc_op2string): Add DTIO operators.
75 * resolve.c (derived_inaccessible): Ignore pointer components
76 to enclosing derived type.
77 (resolve_transfer): Resolve transfers that involve DTIO.
78 procedures. Find the specific subroutine for the transfer and
79 use its existence to over-ride some of the constraints on
80 derived types. If the transfer is recursive, require that the
81 subroutine be so qualified.
82 (dtio_procs_present): New function.
83 (resolve_fl_namelist): Remove inhibition of polymorphic objects
84 in namelists if DTIO read and write subroutines exist. Likewise
86 (resolve_types): Invoke 'gfc_verify_dtio_procedures'.
87 * symbol.c : Set 'dtio_procs' using 'minit'.
88 * trans-decl.c (gfc_finish_var_decl): If a derived-type/class
89 object is associated with DTIO procedures, make it TREE_STATIC.
90 * trans-expr.c (gfc_get_vptr_from_expr): If the expression
91 drills down to a PARM_DECL, extract the vptr correctly.
92 (gfc_conv_derived_to_class): Check 'info' in the test for
93 'useflags'. If the se expression exists and is a pointer, use
94 it as the class _data.
95 * trans-io.c : Add IOCALL_X_DERIVED to iocall and the function
96 prototype. Likewise for IOCALL_SET_NML_DTIO_VAL.
97 (set_parameter_tree): Renamed from 'set_parameter_const', now
98 returns void and has new tree argument. Calls modified to match
100 (transfer_namelist_element): Transfer DTIO procedure pointer
101 and vpointer using the new function IOCALL_SET_NML_DTIO_VAL.
102 (get_dtio_proc): New function.
103 (transfer_expr): Add new argument for the vptr field of class
104 objects. Add the code to call the specific DTIO proc, convert
105 derived types to class and call IOCALL_X_DERIVED.
106 (trans_transfer): Add BT_CLASS to structures for treatment by
107 the scalarizer. Obtain the vptr for the dynamic type, both for
108 scalar and array transfer.
110 2016-08-30 Fritz Reese <fritzoreese@gmail.com>
112 * gfortran.texi: Fix typo in STRUCTURE documentation.
114 2016-08-29 Fritz Reese <fritzoreese@gmail.com>
116 Fix, reorganize, and clarify comparisons of anonymous types/components.
119 * interface.c (is_anonymous_component, is_anonymous_dt): New functions.
120 * interface.c (compare_components, gfc_compare_derived_types): Use new
123 2016-08-27 Steven G. Kargl <kargl@gcc.gnu.org>
126 * dependency.c (gfc_check_dependency): Do not assert with
129 2016-08-27 Steven G. Kargl <kargl@gcc.gnu.org>
132 simplify.c (simplify_ieee_selected_real_kind): Check for NULL pointers.
134 2016-08-25 Steven g. Kargl <kargl@gcc.gnu.org>
137 * frontend-passes.c (remove_trim,combine_array_constructor): Check for
140 2016-08-24 Paul Thomas <pault@gcc.gnu.org>
143 * resolve.c (resolve_fl_procedure): Use the correct gfc_charlen
144 for deferred character length module procedures.
146 2016-08-23 Fritz Reese <fritzoreese@gmail.com>
148 * decl.c (gfc_match_structure_decl): Make gfc_structure_id static.
150 2016-08-23 Fritz Reese <fritzoreese@gmail.com>
152 * interface.c (compare_components): Fix typo in name check conditional.
154 2016-08-22 Steven G. Kargl <kargl@gcc.gnu.org>
155 Bud Davis <jmdavis@link.com>
158 * parse.c (next_free,next_fixed): Issue error for statement label
161 2016-08-22 Steven G. Kargl <kargl@gcc.gnu.org>
164 * interface.c (compare_parameter): Use better locus for error message.
166 2016-08-22 Steven G. Kargl <kargl@gcc.gnu.org>
169 * gcc/fortran/trans-decl.c (generate_local_decl): Suppress warning
170 for unused variable if symbol is entry point.
172 2016-08-19 Joseph Myers <joseph@codesourcery.com>
175 * trans-types.h (float128_type_node): Rename to
176 gfc_float128_type_node.
177 (complex_float128_type_node): Rename to
178 gfc_complex_float128_type_node.
179 * iso-c-binding.def, trans-intrinsic.c, trans-types.c: All users
182 2016-08-19 Jakub Jelinek <jakub@redhat.com>
185 * resolve.c (gfc_resolve): For ns->construct_entities don't save, clear
186 and restore omp state around the resolving.
189 * trans-openmp.c (gfc_trans_omp_parallel, gfc_trans_omp_task,
190 gfc_trans_omp_target): Wrap gfc_trans_omp_code result in an extra
191 BIND_EXPR with its own forced BLOCK.
193 2016-08-19 Janne Blomqvist <jb@gcc.gnu.org>
195 * intrinsics.texi (RANDOM_NUMBER): Remove reference to
196 init_random_seed in example.
197 (RANDOM_SEED): Remove warning to not set all seed values to 0.
199 2016-08-18 David Malcolm <dmalcolm@redhat.com>
201 * error.c (gfc_diagnostic_starter): Update for change to
202 diagnostic_show_locus.
204 2016-08-17 Jakub Jelinek <jakub@redhat.com>
207 * trans-array.c (trans_array_constructor): Load
208 expr->ts.u.cl->length_from_typespec only if expr->ts.type is
211 2016-08-15 Fritz Reese <fritzoreese@gmail.com>
213 * lang.opt, invoke.texi: New flag -finit-derived.
214 * gfortran.h (gfc_build_default_init_expr, gfc_apply_init,
215 gfc_generate_initializer): New prototypes.
216 * expr.c (gfc_build_default_init_expr, gfc_apply_init,
217 component_initializer, gfc_generate_initializer): New functions.
218 * expr.c (gfc_default_initializer): Wrap gfc_generate_initializer.
219 * decl.c (build_struct): Move common code to gfc_apply_init.
220 * resolve.c (can_generate_init): New function.
221 * resolve.c (build_default_init_expr): Wrap gfc_build_default_init_expr.
222 * resolve.c (apply_default_init, resolve_fl_variable_derived): Use
223 gfc_generate_initializer.
224 * trans-decl.c (gfc_generate_function_code): Use
225 gfc_generate_initializer.
227 2016-08-15 Thomas Koenig <tkoenig@gcc.gnu.org>
229 * frontend-passes.c (create_var): Set ts.deferred for
230 deferred-length character variables.
231 * dump-parse-tree.c (show_typespec): Also dump
232 is_c_interop, is_iso_c and deferred flags.
234 2016-08-15 Jakub Jelinek <jakub@redhat.com>
237 * trans-decl.c (gfc_get_symbol_decl): Call gfc_finish_var_decl
238 for decl's character length before gfc_finish_var_decl on the
241 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
244 * openmp.c (resolve_omp_clauses): Adjust use_device clause
245 handling to only allow pointers and arrays.
247 2016-08-12 Marek Polacek <polacek@redhat.com>
250 * decl.c (match_attr_spec): Add FALLTHRU.
251 * primary.c (match_arg_list_function): Likewise.
252 * resolve.c (resolve_operator): Adjust fall through comment.
253 (fixup_charlen): Add FALLTHRU.
254 (resolve_allocate_expr): Adjust fall through comment.
255 * trans-array.c (gfc_conv_ss_startstride): Add FALLTHRU.
256 * trans-intrinsic.c (gfc_conv_intrinsic_len): Adjust fall through
259 2016-08-11 Janne Blomqvist <jb@gcc.gnu.org>
261 * check.c (gfc_check_random_seed): Use new seed size in check.
262 * intrinsic.texi (RANDOM_NUMBER): Updated documentation.
263 (RANDOM_SEED): Likewise.
265 2016-08-08 Jakub Jelinek <jakub@redhat.com>
268 * openmp.c (gfc_match_omp_declare_simd): Don't stick anything into
269 BLOCK DATA ns, it will be rejected later.
271 2016-08-08 Andre Vehreschild <vehre@gcc.gnu.org>
274 * trans-array.c (gfc_array_allocate): When SOURCE= is a function
275 stick with the ref of the object to allocate.
277 2016-08-08 Andre Vehreschild <vehre@gcc.gnu.org>
280 * trans-stmt.c (gfc_trans_allocate): Prevent generating code for
281 copy of zero sized string and with it an ICE.
283 2016-08-08 Andre Vehreschild <vehre@gcc.gnu.org>
286 * trans-array.c (gfc_trans_dummy_array_bias): Ensure that the
287 location information is correctly set.
288 * trans-decl.c (gfc_trans_deferred_vars): Set the locus of the
289 current construct early.
291 2016-08-03 Fritz Reese <fritzoreese@gmail.com>
293 * lang.opt: New option -fdec-intrinsic-ints.
294 * options.c (set_dec_flags): Enable with -fdec.
295 * gfortran.texi, invoke.texi, intrinsics.texi: Update documentation.
296 * intrinsic.c (add_function, add_subroutine): New B/I/J/K intrinsic
299 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
302 * target-memory.c (expr_to_char): Pass in locus and use it in error
304 (gfc_merge_initializers): Ditto.
305 * target-memory.h: Update prototype for gfc_merge_initializers ().
306 * trans-common.c (get_init_field): Use the correct locus.
308 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
311 * check.c (gfc_check_reshape): Check for constant expression.
313 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
316 * decl.c (build_struct): Ensure that pointers point to something.
318 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
321 * decl.c (gfc_set_constant_character_len): if expr is not
322 constant issue an error instead of an ICE.
324 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
327 * io.c (gfc_resolve_dt): Use correct locus.
328 * resolve.c (resolve_branch): Ditto.
330 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
333 * decl.c (char_len_param_value): Check return value of
334 gfc_reduce_init_expr().
336 2016-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
338 * trans-array.c (gfc_conv_array_ref): Fix allocation of diagnostic
339 message (was too small).
341 2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
344 * decl.c (match_data_constant): On error, set 'result' to NULL.
346 2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
349 * resolve.c(gfc_resolve_iterator): Failure of type conversion need
352 2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
355 * check.c(numeric_check): Prevent ICE. Issue error for invalid
356 subroutine as an actual argument when numeric argument is expected.
358 2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
359 Thomas Koenig <tkoenig@gcc.gnu.org>
362 * frontend-passes.c (gfc_run_passes): Bail out if there are any
364 * error.c (gfc_internal_error): If there are any errors in the
365 buffer, exit with EXIT_FAILURE.
367 2016-07-28 Renlin Li <renlin.li@arm.com>
370 2016-07-19 Thomas Koenig <tkoenig@gcc.gnu.org>
373 * dependency.c (gfc_check_dependency): Use dep_ref. Handle case
374 if identical is true and two array element references differ.
375 (gfc_dep_resovler): Move most of the code to dep_ref.
376 (dep_ref): New function.
377 * frontend-passes.c (realloc_string_callback): Name temporary
378 variable "realloc_string".
380 2016-07-26 Steven G. Kargl <kargl@gcc.gnu.org>
383 * class.c: Remove assert. Iterate over component only if non-null.
385 2016-07-22 Steven G. Kargl <kargl@gcc.gnu.org>
388 * check.c (is_c_interoperable): Simplify right expression.
390 2016-07-22 Thomas Koenig <tkoenig@gcc.gnu.org>
393 * frontend-passes.c (combine_array_constructor): Don't
394 do anything if the expression is inside an array iterator.
396 2016-07-22 Andre Vehreschild <vehre@gcc.gnu.org>
398 * expr.c (gfc_find_stat_co): Fixed whitespaces.
399 * gfortran.texi: Fixed typos and reversed meaning of caf_get()'s
400 src and dst description.
401 * trans-decl.c (gfc_build_builtin_function_decls): Fixed style
402 and corrected fnspec for caf functions.
403 * trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Fixed style.
404 (conv_caf_send): Dito.
406 2016-07-19 Thomas Koenig <tkoenig@gcc.gnu.org>
409 * dependency.c (gfc_check_dependency): Use dep_ref. Handle case
410 if identical is true and two array element references differ.
411 (gfc_dep_resovler): Move most of the code to dep_ref.
412 (dep_ref): New function.
413 * frontend-passes.c (realloc_string_callback): Name temporary
414 variable "realloc_string".
416 2016-07-17 Fritz Reese <fritzoreese@gmail.com>
419 * trans-decl.c (gfc_finish_var_decl): Replace automatic initializer with
422 2016-07-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
423 Marco Restelli <mrestelli@gmail.com>
426 * symbol.c (select_type_insert_tmp): Recursively call self to take care
427 of nested select type.
429 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
431 * openmp.c (gfc_match_omp_clauses): Scan for clause vector_length
434 2016-07-15 Andre Vehreschild <vehre@gcc.gnu.org>
437 * trans-expr.c (gfc_trans_subcomponent_assign): Special casing
438 when allocatable component is set to null() in initializer.
440 2016-07-14 Steven G. Kargl <kargl@gcc.gnu.org>
443 * parse.c (parse_contained): Use proper locus.
445 2016-07-14 Andre Vehreschild <vehre@gcc.gnu.org>
448 * simplify.c (gfc_simplify_len): Only for unlimited polymorphic
449 types replace the expression's _data ref with a _len ref.
451 2016-07-09 Thomas Koenig <tkoenig@gcc.gnu.org>
454 * frontend-passes.c (create_var): Always allocate a charlen
455 for character variables.
457 2016-07-08 Steven G. Kargl <kargl@gcc.gnu.org>
460 * simplify (gfc_simplify_spread): Adjust locus.
462 2016-07-08 Cesar Philippidis <cesar@codesourcery.com>
464 * parse.c (matcha): Define.
465 (decode_oacc_directive): Add spec_only local var and set it. Use
466 matcha to parse acc directives except for routine and declare. Return
467 ST_GET_FCN_CHARACTERISTICS if a non-declarative directive could be
470 2016-07-08 Martin Liska <mliska@suse.cz>
472 * invoke.texi (Wundefined-do-loop): Enhance documentation.
474 2016-07-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
477 * trans-expr.c (gfc_trans_structure_assign): Remove assert.
479 2016-07-07 Martin Liska <mliska@suse.cz>
481 * lang.opt (Wundefined-do-loop): New option.
482 * resolve.c (gfc_resolve_iterator): Warn for Wundefined-do-loop.
483 (gfc_trans_simple_do): Generate a c-style loop.
484 (gfc_trans_do): Fix GNU coding style.
485 * invoke.texi: Mention the new warning.
487 2016-07-07 Martin Liska <mliska@suse.cz>
489 * trans-stmt.c (gfc_trans_do): Add expect builtin for DO
490 loops with step bigger than +-1.
492 2016-07-05 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
494 * array.c (gfc_match_array_ref): Add parsing support for
495 STAT= attribute in CAF reference.
496 * expr.c (gfc_find_stat_co): New function that returns
497 the STAT= assignment.
498 * gfortran.h (gfc_array_ref): New member.
499 * trans-decl.c (gfc_build_builtin_function_decls):
500 new attribute for caf_get and caf_send functions.
501 * trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Passing
502 the stat attribute to external function.
503 (gfc_conv_intrinsic_caf_send): Ditto.
505 2016-07-05 Andre Vehreschild <vehre@gcc.gnu.org>
508 * trans-stmt.c (gfc_trans_allocate): Add code of pre block of typespec
509 in allocate to parent block.
511 2016-07-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
514 * decl.c (match_procedure_interface): Exit loop if procedure
515 interface refers to itself.
517 2016-07-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
518 Steven G. Kargl <kargl@gcc.gnu.org>
521 * simplify.c (gfc_simplify_ishftc): Check that absolute value of
522 SHIFT is less than or equal to SIZE.
524 2016-07-01 Jakub Jelinek <jakub@redhat.com>
527 * f95-lang.c (struct binding_level): Add reversed field.
528 (clear_binding_level): Adjust initializer.
529 (getdecls): If reversed is clear, set it and nreverse the names
530 chain before returning it.
531 (poplevel): Use getdecls.
532 * trans-decl.c (gfc_generate_function_code, gfc_process_block_locals):
533 Use nreverse to pushdecl decls in the declaration order.
536 * trans-openmp.c (gfc_omp_privatize_by_reference): Return false
537 for GFC_DECL_ASSOCIATE_VAR_P with POINTER_TYPE.
539 2016-06-30 Jakub Jelinek <jakub@redhat.com>
542 * parse.c (matchs, matcho): Move right before decode_omp_directive.
543 If spec_only, only gfc_match the keyword and if successful, goto
545 (matchds, matchdo): Define.
546 (decode_omp_directive): Add spec_only local var and set it.
547 Use matchds or matchdo macros instead of matchs or matcho
548 for declare target, declare simd, declare reduction and threadprivate
549 directives. Return ST_GET_FCN_CHARACTERISTICS if a non-declarative
550 directive could be matched.
551 (next_statement): For ST_GET_FCN_CHARACTERISTICS restore
552 gfc_current_locus from old_locus even if there is no label.
555 * trans-openmp.c (gfc_trans_omp_clauses): Set TREE_ADDRESSABLE on
556 decls in to/from clauses.
558 2016-06-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
561 * scanner.c (gfc_next_char_literal): Only decrement nextc if it
564 2016-06-29 Cesar Philippidis <cesar@codesourcery.com>
566 * openmp.c (match_oacc_clause_gang): Rename to ...
567 (match_oacc_clause_gwv): this. Add support for OpenACC worker and
569 (gfc_match_omp_clauses): Use match_oacc_clause_gwv for
570 OMP_CLAUSE_{GANG,WORKER,VECTOR}. Propagate any MATCH_ERRORs for
571 invalid OMP_CLAUSE_{ASYNC,WAIT,GANG,WORKER,VECTOR} clauses.
572 (gfc_match_oacc_wait): Propagate MATCH_ERROR for invalid
573 oacc_expr_lists. Adjust the first and needs_space arguments to
574 gfc_match_omp_clauses.
576 2016-06-29 Richard Biener <rguenther@suse.de>
579 * f95-lang.c (LANG_HOOKS_GET_ALIAS_SET): Remove (un-)define.
580 (gfc_get_alias_set): Remove.
582 2016-06-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
585 * module.c (create_intrinsic_function): Check for NULL values and
586 return after giving error.
588 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
590 * trans-types.c (gfc_build_complex_type): Move setting complex
591 MODE to layout_type, instead of setting it ahead of time by the
594 2016-06-21 Tobias Burnus <burnus@net-b.de>
597 * resolve.c (resolve_function): Don't resolve caf_get/caf_send.
598 (check_data_variable): Strip-off caf_get before checking.
600 2016-06-20 Tobias Burnus <burnus@net-b.de>
603 * trans-expr.c (gfc_trans_pointer_assignment): Correctly handle
604 RHS pointer functions.
606 2016-06-19 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
608 * class.c (gfc_add_class_array_ref): Call gfc_add_data_component()
609 instead of gfc_add_component_ref().
610 (gfc_get_len_component): Call gfc_add_len_component() instead of
611 gfc_add_component_ref().
612 * trans-intrinsic.c (gfc_conv_intrinsic_loc): Call
613 gfc_add_data_component() instead of gfc_add_component_ref().
614 * trans.c (gfc_add_finalizer_call): Call
615 gfc_add_final_component() and gfc_add_size_component() instead
616 of gfc_add_component_ref.
618 2016-06-18 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
620 * trans-types.c (gfc_typenode_for_spec): Commentary typo fix.
622 2016-06-17 Cesar Philippidis <cesar@codesourcery.com>
624 * openmp.c (match_acc): New generic function to parse OpenACC
626 (gfc_match_oacc_parallel_loop): Use it.
627 (gfc_match_oacc_parallel): Likewise.
628 (gfc_match_oacc_kernels_loop): Likewise.
629 (gfc_match_oacc_kernels): Likewise.
630 (gfc_match_oacc_data): Likewise.
631 (gfc_match_oacc_host_data): Likewise.
632 (gfc_match_oacc_loop): Likewise.
633 (gfc_match_oacc_enter_data): Likewise.
634 (gfc_match_oacc_exit_data): Likewise.
636 2016-06-16 Martin Liska <mliska@suse.cz>
638 * trans-stmt.c (gfc_trans_simple_do): Predict the edge.
640 2016-06-16 Martin Liska <mliska@suse.cz>
642 * trans-array.c (gfc_array_allocate): Do not generate expect
644 * trans.c (gfc_allocate_using_malloc): Properly set FAIL_ALLOC
645 predictor for malloc return value.
646 (gfc_allocate_allocatable): Use REALLOC predictor instead of
648 (gfc_deallocate_with_status): Likewise.
650 2016-06-13 Paul Thomas <pault@gcc.gnu.org>
653 * frontend-passes.c (realloc_string_callback): Add a call to
654 gfc_dep_compare_expr.
656 2016-06-11 Dominique d'Humieres <dominiq@lps.ens.fr>
659 * io.c (gfc_resolve_dt): Replace GFC_STD_GNU with GFC_STD_LEGACY.
661 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
664 * openmp.c (gfc_match_oacc_cache): Add comment.
666 2016-06-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
669 * io.c (match_io): For READ, commit in pending symbols in the
670 current statement before trying to match an expression so that
671 if the match fails and we undo symbols we dont toss good symbols.
673 2016-06-05 Andre Vehreschild <vehre@gcc.gnu.org>
676 * trans-array.c (gfc_trans_dummy_array_bias): For class arrays use
677 the address of the _data component to reference the arrays data
680 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
682 * trans-openmp.c (gfc_trans_omp_reduction_list): Add mark_addressable
683 bool parameter, set reduction clause DECLs as addressable when true.
684 (gfc_trans_omp_clauses): Pass clauses->async to
685 gfc_trans_omp_reduction_list, add comment describing OpenACC situation.
687 2016-06-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
690 * io.c (match_io): For READ, try to match a default character
691 expression. If found, set the dt format expression to this,
692 otherwise go back and try control list.
694 2016-06-01 Paul Thomas <pault@gcc.gnu.org>
697 * decl.c (copy_prefix): Add checks that the module procedure
698 declaration prefixes are compliant with the interface. Invert
699 order of existing elemental and pure checks.
700 * resolve.c (resolve_fl_procedure): Invert order of elemental
703 2016-06-01 Jakub Jelinek <jakub@redhat.com>
705 * parse.c (case_decl): Move ST_OMP_* to ...
706 (case_omp_decl): ... here, new macro.
707 (verify_st_order): For case_omp_decl, complain about
708 p->state >= ORDER_EXEC, but don't change p->state otherwise.
710 2016-05-26 Jakub Jelinek <jakub@redhat.com>
712 * openmp.c (resolve_omp_clauses): Warn if chunk_size is known not to
715 2016-05-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
718 * scanner.c (gfc_next_char_literal): Clear end_flag when adjusting
719 current locus back to old_locus.
721 2016-05-20 Jakub Jelinek <jakub@redhat.com>
724 * frontend-passes.c (realloc_string_callback): Clear inserted_block
725 and changed_statement before calling create_var.
727 2016-05-15 Harald Anlauf <anlauf@gmx.de>
730 * interface.c (compare_parameter): Check for non-NULL pointer.
732 2016-05-14 Fritz Reese <fritzoreese@gmail.com>
734 * gfortran.texi: Update example of DEC UNION extension.
736 2016-05-14 Fritz Reese <fritzoreese@gmail.com>
739 * expr.c (gfc_default_initializer): Avoid extra component refs in
740 constructors for derived types and classes.
742 2016-05-11 Jakub Jelinek <jakub@redhat.com>
745 * frontend-passes.c (inline_matmul_assign): Disable in !$omp workshare.
747 2016-05-09 Richard Biener <rguenther@suse.de>
750 * trans-decl.c: Include gimplify.h for unshare_expr.
751 (gfc_trans_vla_one_sizepos): Unshare exprs before inserting
754 2016-05-07 Fritz Reese <fritzoreese@gmail.com>
757 * module.c (dt_upper_string): Rename to gfc_dt_upper_string
758 (dt_lower_string): Likewise.
759 * gfortran.h: Make new gfc_dt_upper/lower_string global.
760 * class.c: Use gfc_dt_upper_string.
762 * symbol.c: Likewise.
763 * resolve.c (resolve_component): New function.
764 (resolve_fl_derived0): Move component loop code to resolve_component.
765 * parse.c (check_component): New function.
766 (parse_derived): Move loop code to check_component.
767 * lang.opt, invoke.texi, options.c : New option -fdec-structure.
768 * libgfortran.h (bt): New basic type BT_UNION.
769 * gfortran.h (gfc_option): New option -fdec-structure.
770 (gfc_get_union_type, gfc_compare_union_types): New prototypes.
771 (gfc_bt_struct, gfc_fl_struct, case_bt_struct, case_fl_struct): New
773 (gfc_find_component): Change prototype.
774 * match.h (gfc_match_member_sep, gfc_match_map, gfc_match_union,
775 gfc_match_structure_decl): New prototypes.
776 * parse.h (gfc_comp_struct): New macro.
777 * symbol.c (gfc_find_component): Search for components in nested unions
778 * class.c (insert_component_ref, gfc_add_component_ref, add_proc_comp,
779 copy_vtab_proc_comps): Update calls to gfc_find_component.
780 * primary.c (gfc_convert_to_structure_constructor): Likewise.
781 * symbol.c (gfc_add_component): Likewise.
782 * resolve.c (resolve_typebound_function, resolve_typebound_subroutine,
783 resolve_typebound_procedure, resolve_component, resolve_fl_derived):
785 * expr.c (get_union_init, component_init): New functions.
786 * decl.c (match_clist_expr, match_record_decl, get_struct_decl,
787 gfc_match_map, gfc_match_union, gfc_match_structure_decl): Likewise.
788 * interface.c (compare_components, gfc_compare_union_types): Likewise.
789 * match.c (gfc_match_member_sep): Likewise.
790 * parse.c (check_component, parse_union, parse_struct_map): Likewise.
791 * resolve.c (resolve_fl_struct): Likewise.
792 * symbol.c (find_union_component): Likewise.
793 * trans-types.c (gfc_get_union_type): Likewise.
794 * parse.c (parse_derived): Use new functions.
795 * interface.c (gfc_compare_derived_types, gfc_compare_types): Likewise.
796 * expr.c (gfc_default_initializer): Likewise.
797 * gfortran.texi: Support for DEC structures, unions, and maps.
798 * gfortran.h (gfc_statement, sym_flavor): Likewise.
799 * check.c (gfc_check_kill_sub): Likewise.
800 * expr.c (gfc_copy_expr, simplify_const_ref,
801 gfc_has_default_initializer): Likewise.
802 * decl.c (build_sym, match_data_constant, add_init_expr_to_sym,
803 match_pointer_init, build_struct, variable_decl,
804 gfc_match_decl_type_spec, gfc_mach_data-decl, gfc_match_entry,
805 gfc_match_end, gfc_match_derived_decl): Likewise.
806 * interface.c (check_interface0, check_interface1,
807 gfc_search_interface): Likewise.
808 * misc.c (gfc_basic_typename, gfc_typename): Likewise.
809 * module.c (add_true_name, build_tnt, bt_types, mio_typespec,
810 fix_mio_expr, load_needed, mio_symbol, read_module, write_symbol,
811 gfc_get_module_backend_decl): Likewise.
812 * parse.h (gfc_compile_state): Likewise.
813 * parse.c (decode_specification_statement, decode_statement,
814 gfc_ascii_statement, verify_st_order, parse_spec): Likewise.
815 * primary.c (gfc_match_varspec, gfc_match_structure_constructor,
816 gfc_match_rvalue, match_variable): Likewise.
817 * resolve.c (find_arglists, resolve_structure_cons,
818 is_illegal_recursion, resolve_generic_f, get_declared_from_expr,
819 resolve_typebound_subroutine, resolve_allocate_expr,
820 nonscalar_typebound_assign, generate_component_assignments,
821 resolve_fl_variable_derived, check_defined_assignments,
822 resolve_component, resolve_symbol, resolve_equivalence_derived):
824 * symbol.c (flavors, check_conflict, gfc_add_flavor, gfc_use_derived,
825 gfc_restore_last_undo_checkpoint, gfc_type_compatible,
826 gfc_find_dt_in_generic): Likewise.
827 * trans-decl.c (gfc_get_module_backend_decl, create_function_arglist,
828 gfc_create_module_variable, check_constant_initializer): Likewise.
829 * trans-expr.c (gfc_conv_component_ref, gfc_conv_initializer,
830 gfc_trans_alloc_subarray_assign, gfc_trans_subcomponent_assign,
831 gfc_conv_structure, gfc_trans_scalar_assign, copyable_array_p):
833 * trans-io.c (transfer_namelist_element, transfer_expr,
834 gfc_trans_transfer): Likewise.
835 * trans-stmt.c (gfc_trans_deallocate): Likewise.
836 * trans-types.c (gfc_typenode_for_spec, gfc_copy_dt_decls_ifequal,
837 gfc_get_derived_type): Likewise.
839 2016-05-05 Jakub Jelinek <jakub@redhat.com>
841 * openmp.c (gfc_match_omp_clauses): Restructuralize, so that clause
842 parsing is done in a big switch based on gfc_peek_ascii_char and
843 individual clauses under their first letters are sorted too.
845 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
847 * trans-types.c (gfc_build_complex_type):
849 2016-05-02 Richard Biener <rguenther@suse.de>
851 * trans-array.c (gfc_trans_create_temp_array): Properly
852 create a DECL_EXPR for the anonymous VLA array type.
854 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
857 * trans-openmp.c (gfc_trans_oacc_combined_directive): Duplicate
858 the reduction clause in both parallel and loop directives.
860 2016-04-18 Michael Matz <matz@suse.de>
862 * trans-io.c (gfc_build_io_library_fndecls): Use SET_TYPE_ALIGN.
863 * trans-common.c (build_common_decl): Use SET_DECL_ALIGN.
864 * trans-types.c (gfc_add_field_to_struct): Use SET_DECL_ALIGN.
866 2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr>
869 * intrinsic.texi: Correct the documentation of pseudorandom
872 2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr>
875 * gfortran.texi: Document OPEN( ... NAME=) as not implemented
878 2016-04-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
881 * array.c (match_array_element_spec): Add check for non-integer.
882 * simplify.c (gfc_simplify_reshape): If source shape is NULL return.
884 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
887 * openmp.c (gfc_find_omp_udr): Add explicit braces to resolve a
888 future -Wparentheses warning.
890 2016-04-04 Andre Vehreschild <vehre@gcc.gnu.org>
893 * resolve.c (resolve_allocate_expr): Emit error message when no
894 array spec and no array valued source= expression is given in an
895 F2008 allocate() for an array to allocate.
897 2016-04-04 Andre Vehreschild <vehre@gcc.gnu.org>
900 * trans-array.c (gfc_array_allocate): When the array is a coarray,
901 do not nullyfing its allocatable components in array_allocate, because
902 the nullify missed the array ref and nullifies the wrong component.
905 2016-03-29 Andre Vehreschild <vehre@gcc.gnu.org>
908 * trans-expr.c (gfc_class_len_or_zero_get): Add function to return a
909 constant zero tree, when the class to get the _len component from is
910 not unlimited polymorphic.
911 (gfc_copy_class_to_class): Use the new function.
912 * trans.h: Added interface of new function gfc_class_len_or_zero_get.
914 2016-03-28 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
916 * trans-decl.c (gfc_build_builtin_function_decls):
917 caf_stop_numeric and caf_stop_str definition.
918 * trans-stmt.c (gfc_trans_stop): invoke external functions
919 for stop and stop_str when coarrays are used.
920 * trans.h: extern for new functions.
922 2016-03-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
925 * scanner.c (load_file): Update to use S_ISREG macro.
927 2016-03-17 Thomas Schwinge <thomas@codesourcery.com>
929 * gfortran.h (enum gfc_omp_map_op): Rename OMP_MAP_FORCE_DEALLOC
930 to OMP_MAP_DELETE. Adjust all users.
932 2016-03-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
933 Jim MacArthur <jim.macarthur@codethink.co.uk>
936 * scanner.c (load_file): Check that included file is regular.
938 2016-03-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
939 Harold Anlauf <anlauf@gmx.de>
942 * invoke.texi: Explain use of the 'no-' construct within the
944 * options.c (gfc_handle_runtime_check_option): Enable use of
945 'no-' prefix for the various options with -fcheck= to allow
946 negating previously enabled check options.
948 2016-03-12 Paul Thomas <pault@gcc.gnu.org>
951 * decl.c (gfc_match_prefix): Treat the 'module' prefix in the
952 same way as the others, rather than fixing it to come last.
953 (gfc_match_function_decl, gfc_match_subroutine): After errors
954 in 'copy_prefix', emit them immediately in the case of module
955 procedures to prevent a later ICE.
958 * decl.c (gfc_match_submod_proc): Permit 'module procedure'
959 declarations within the contains section of modules as well as
961 * resolve.c (resolve_fl_procedure): Likewise.
962 *trans-decl.c (build_function_decl): Change the gcc_assert to
963 allow all forms of module procedure declarations within module
966 2016-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
970 * frontend-passes.c (realloc_string_callback): Don't set
973 2016-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
975 * dump-parse-tree.c (show_code_node): Print association
976 list of a block if present. Handle EXEC_END_BLOCK.
978 2016-02-28 Harald Anlauf <anlauf@gmx.de>
979 Jerry DeLisle <jvdelisle@gcc.gnu.org>
982 * match.c (gfc_match_iterator): Add diagnostic for array variable
985 2016-02-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
986 Steven G. Kargl <kargl@gcc.gnu.org>
989 * io.c (gfc_match_open): Check that open status is an expression
990 constant before comparing string to 'scratch' with NEWUNIT.
992 2016-02-27 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
994 * trans.c (gfc_allocate_allocatable): size conversion
995 from byte to number of elements for event variables.
996 * trans-types.c (gfc_get_derived_type): event variables
997 represented as a pointer (like lock variable).
999 2016-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1002 * scanner.c (add_path_to_list): If include path is not a directory,
1003 issue a fatal error.
1005 2016-02-23 Andre Vehreschild <vehre@gcc.gnu.org>
1008 * trans-array.c (gfc_array_allocate): Take the attributes from the
1009 expression to allocate and not from the source=-expression.
1011 2016-02-20 Paul Thomas <pault@gcc.gnu.org>
1014 * trans-decl.c (create_function_arglist): Deferred character
1015 length functions, with and without declared results, address
1016 the passed reference type as '.result' and the local string
1017 length as '..result'.
1018 (gfc_null_and_pass_deferred_len): Helper function to null and
1019 return deferred string lengths, as needed.
1020 (gfc_trans_deferred_vars): Call it, thereby reducing repeated
1021 code, add call for deferred arrays and reroute pointer function
1022 results. Avoid using 'tmp' for anything other that a temporary
1023 tree by introducing 'type_of_array' for the arrayspec type.
1025 2015-02-16 Thomas Koenig <tkoenig@gcc.gnu.org>
1028 * frontend-passes.c (cfe-expr_0): Don't register functions
1029 from within an ASSOCIATE statement.
1031 2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
1034 * decl.c (build_sym): If the name has already been defined as a
1035 type, it has a symtree with an upper case letter at the beginning.
1036 If such a symtree exists, issue an error and exit. Don't do
1037 this if there is no corresponding upper case letter.
1039 2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
1043 * decl.c (build_sym): Reverted previous patch.
1045 2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
1048 * decl.c (build_sym): If the name has already been defined as a
1049 type, issue error and return false.
1051 2016-02-12 David Malcolm <dmalcolm@redhat.com>
1054 * error.c (gfc_diagnostic_start_span): New function.
1055 (gfc_diagnostics_init): Initialize global_dc's start_span.
1057 2016-02-11 Andre Vehreschild <vehre@gcc.gnu.org>
1060 * gfortran.h: Added flag to gfc_association_list indicating that
1061 the rank of an associate variable has been guessed only.
1062 * parse.c (parse_associate): Set the guess flag mentioned above
1063 when guessing the rank of an expression.
1064 * resolve.c (resolve_assoc_var): When the rank has been guessed,
1065 make sure, that the guess was correct else overwrite with the actual
1067 * trans-stmt.c (trans_associate_var): For subref_array_pointers in
1068 class objects, take the span from the _data component.
1070 2016-02-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1073 * primary.c (match_actual_arg): If symbol has attribute flavor of
1074 namelist, generate an error. (gfc_match_rvalue): Likewise return
1076 * resolve.c (resolve_symbol): Scan arument list of procedures and
1077 generate an error if a namelist is found.
1079 2016-02-05 Mikael Morin <mikael@gcc.gnu.org>
1082 * trans-expr.c (expr_is_variable, gfc_expr_is_variable): Rename
1083 the former to the latter and make it non-static. Update callers.
1084 * gfortran.h (gfc_expr_is_variable): New declaration.
1085 (struct gfc_ss_info): Add field needs_temporary.
1086 * trans-array.c (gfc_scalar_elemental_arg_saved_as_argument):
1087 Tighten the condition on aggregate expressions with a check
1088 that the expression is a variable and doesn't need a temporary.
1089 (gfc_conv_resolve_dependency): Add intermediary reference variable.
1090 Set the needs_temporary field.
1092 2016-02-03 Andre Vehreschild <vehre@gcc.gnu.org>
1096 * trans-expr.c (gfc_copy_class_to_class): For coarrays just the
1097 pointer is passed. Take it as is without trying to deref the
1099 * trans-stmt.c (gfc_trans_allocate): Take care of coarrays as
1100 argument to source=-expression.
1102 2016-02-02 Nathan Sidwell <nathan@codesourcery.com>
1104 * lang.opt (fopenacc-dim=): New option.
1106 2016-01-31 Paul Thomas <pault@gcc.gnu.org>
1109 * trans-expr.c (gfc_conv_procedure_call): For the vtable copy
1110 subroutines, add a string length argument, when the actual
1111 argument is an unlimited polymorphic class object.
1113 2016-01-30 Paul Thomas <pault@gcc.gnu.org>
1116 * trans-expr.c (gfc_conv_procedure_call): Correct expression
1117 for 'ulim_copy', which was missing a test for 'comp'.
1119 2016-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
1122 * decl.c (gfc_match_end): Only unnest and remove BLOCK namespaces
1123 when the END encountered does not match a BLOCK's end.
1125 2016-01-27 Janus Weil <janus@gcc.gnu.org>
1128 * invoke.texi: Fix documentation of -Wall with respect to -Wtabs.
1130 2016-01-27 Paul Thomas <pault@gcc.gnu.org>
1133 * trans-expr.c (is_scalar_reallocatable_lhs): Remove the check
1134 for allocatable components, whilst checking if the symbol is a
1135 derived or class entity..
1137 2016-01-26 Paul Thomas <pault@gcc.gnu.org>
1140 * trans-expr.c (gfc_trans_assignment_1): Exclude initialization
1141 assignments from check on assignment of scalars to unassigned
1142 arrays and correct wrong code within the corresponding block.
1144 2016-01-26 David Malcolm <dmalcolm@redhat.com>
1147 * error.c (gfc_diagnostic_starter): Delete use of pp_newline.
1149 2016-01-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1153 * interface.c (gfc_arglist_matches_symbol): Replace assert with
1154 a return false if not a procedure.
1155 * resolve.c (resolve_generic_f): Test if we are resolving an
1156 initialization expression and adjust error message accordingly.
1158 2016-01-24 Thomas Koenig <tkoenig@gcc.gnu.org>
1161 * frontend-passes.c (matmul_lhs_realloc): Add
1162 forgotten break statement.
1164 2016-01-24 Dominique d'Humieres <dominiq@lps.ens.fr>
1167 * primary.c (gfc_variable_attr): revert revision r221955,
1168 call gfc_internal_error only if there is no error.
1170 2016-01-24 Thomas Koenig <tkoenig@gcc.gnu.org>
1173 * frontend-passes.c (enum matrix_case): Add case A2B2T for
1174 MATMUL(A,TRANSPoSE(B)) where A and B are rank 2.
1175 (inline_limit_check): Also add A2B2T.
1176 (matmul_lhs_realloc): Handle A2B2T.
1177 (check_conjg_variable): Rename to
1178 (check_conjg_transpose_variable): and also count TRANSPOSE.
1179 (inline_matmul_assign): Handle A2B2T.
1181 2016-01-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1184 * error.c (gfc_error): Save the state of abort_on_error and set
1185 it to false for buffered errors to allow normal processing.
1186 Restore the state before leaving.
1188 2016-01-19 Martin Jambor <mjambor@suse.cz>
1190 * types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
1191 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
1192 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
1194 2016-01-15 Paul Thomas <pault@gcc.gnu.org>
1197 * resolve.c (check_uop_procedure): Prevent deferred length
1198 characters from being trapped by assumed length error.
1206 * trans-array.c (gfc_conv_scalarized_array_ref): Pass decl for
1207 function as well as variable expressions.
1208 (gfc_array_init_size): Add 'expr' as an argument. Use this to
1209 correctly set the descriptor dtype for deferred characters.
1210 (gfc_array_allocate): Add 'expr' to the call to
1211 'gfc_array_init_size'.
1212 * trans.c (gfc_build_array_ref): Expand logic for setting span
1213 to include indirect references to character lengths.
1214 * trans-decl.c (gfc_get_symbol_decl): Ensure that deferred
1215 result char lengths that are PARM_DECLs are indirectly
1216 referenced both for directly passed and by reference.
1217 (create_function_arglist): If the length type is a pointer type
1218 then store the length as the 'passed_length' and make the char
1219 length an indirect reference to it.
1220 (gfc_trans_deferred_vars): If a character length has escaped
1221 being set as an indirect reference, return it via the 'passed
1223 * trans-expr.c (gfc_conv_procedure_call): The length of
1224 deferred character length results is set TREE_STATIC and set to
1226 (gfc_trans_assignment_1): Do not fix the rse string_length if
1227 it is a variable, a parameter or an indirect reference. Add the
1228 code to trap assignment of scalars to unallocated arrays.
1229 * trans-stmt.c (gfc_trans_allocate): Remove 'def_str_len' and
1230 all references to it. Instead, replicate the code to obtain a
1231 explicitly defined string length and provide a value before
1232 array allocation so that the dtype is correctly set.
1233 trans-types.c (gfc_get_character_type): If the character length
1234 is a pointer, use the indirect reference.
1236 2016-01-10 Thomas Koenig <tkoenig@gcc.gnu.org>
1239 * frontend-passes.c (in_where): New variable.
1240 (inline_matmul_assign): Don't try this if we are within
1242 (gfc_code_walker): Keep track of in_where.
1244 2016-01-10 Paul Thomas <pault@gcc.gnu.org>
1247 * trans_array.c (gfc_conv_scalarized_array_ref): Add missing
1248 se->use_offset from condition for calculation of 'base'.
1250 2016-01-08 Jakub Jelinek <jakub@redhat.com>
1253 * trans.h (OMPWS_SCALARIZER_BODY): Define.
1254 (OMPWS_NOWAIT): Renumber.
1255 * trans-stmt.c (gfc_trans_where_3): Only set OMPWS_SCALARIZER_WS
1256 if OMPWS_SCALARIZER_BODY is not set already, and set also
1257 OMPWS_SCALARIZER_BODY until the final loop creation.
1258 * trans-expr.c (gfc_trans_assignment_1): Likewise.
1259 * trans-openmp.c (gfc_trans_omp_workshare): Also clear
1260 OMPWS_SCALARIZER_BODY.
1261 * trans-array.c (gfc_trans_scalarized_loop_end): Don't create
1262 OMP_FOR if OMPWS_SCALARIZER_BODY is set.
1264 2016-01-04 Jakub Jelinek <jakub@redhat.com>
1266 Update copyright years.
1268 * gfortranspec.c (lang_specific_driver): Update copyright notice
1270 * gfc-internals.texi: Bump @copying's copyright year.
1271 * gfortran.texi: Ditto.
1272 * intrinsic.texi: Ditto.
1273 * invoke.texi: Ditto.
1275 2016-01-01 Paul Thomas <pault@gcc.gnu.org>
1278 * trans-array.c (evaluate_bound): If deferred, test that 'desc'
1279 is an array descriptor before using gfc_conv_descriptor_xxx.
1281 Copyright (C) 2016 Free Software Foundation, Inc.
1283 Copying and distribution of this file, with or without modification,
1284 are permitted in any medium without royalty provided the copyright
1285 notice and this notice are preserved.