1 2016-10-26 Fritz Reese <fritzoreese@gmail.com>
3 * frontend-passes.c (gfc_code_walker): Add SHARE and CARRIAGECONTROL.
4 * io.c (gfc_free_open, gfc_resolve_open, gfc_match_open): Ditto.
5 * gfortran.h (gfc_open): Add SHARE, CARRIAGECONTROL, and READONLY.
6 * io.c (io_tag, match_open_element): Ditto.
8 * trans-io.c (gfc_trans_open): Ditto.
9 * io.c (match_dec_etag, match_dec_ftag): New functions.
10 * gfortran.texi: Document.
12 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
14 * gfortran.texi: Document.
15 * resolve.c (logical_to_bitwise): New function.
16 * resolve.c (resolve_operator): Wrap operands with logical_to_bitwise.
18 2016-10-25 Andre Vehreschild <vehre@gcc.gnu.org>
21 * class.c (find_intrinsic_vtab): No longer encode the string length
22 into vtype's name and use the char's kind for the size instead of
23 the string_length time the size.
24 * trans-array.c (gfc_conv_ss_descriptor): For deferred length char
25 arrays the dynamically sized type needs to be declared.
26 (build_class_array_ref): Address the i-th array element by multiplying
27 it with the _vptr->_size and the _len to make sure char arrays are
29 * trans-expr.c (gfc_conv_intrinsic_to_class): Made comment more
32 2016-10-25 Cesar Philippidis <cesar@codesourcery.com>
34 * intrinsic.texi (cosd): New mathop.
36 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
38 * match.c (gfc_match_intrinsic_op): Match ".XOR." with -std=legacy.
39 * gfortran.texi: Document.
41 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
43 * primary.c (gfc_match_rvalue): Match %LOC as LOC with -std=legacy.
44 * gfortran.texi: Document.
46 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
48 * decl.c (gfc_match_type): New function.
49 * match.h (gfc_match_type): New function.
50 * match.c (gfc_match_if): Special case for one-line IFs.
51 * gfortran.texi: Update documentation.
52 * parse.c (decode_statement): Invoke gfc_match_type.
54 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
56 * gfortran.texi: Document.
57 * gfortran.h (gfc_is_whitespace): Include form feed ('\f').
59 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
61 * invoke.texi, gfortran.texi: Touch up documentation of -fdec.
62 * gfortran.h (gfc_option): Move flag_dec_structure out of gfc_option.
63 * decl.c (match_record_decl, gfc_match_decl_type_spec,
64 gfc_match_structure_decl): Ditto.
65 * match.c (gfc_match_member_sep): Ditto.
66 * options.c (gfc_handle_option): Ditto.
67 * lang.opt (fdec-structure): Use Fortran Var for flag_dec_structure.
68 * lang.opt (fdec): Use Fortran Var to create flag_dec.
69 * options.c (set_dec_flags): With -fdec enable -fcray-pointer,
70 -fd-lines-as-comments (default), -fdollar-ok, and legacy std flags.
72 2016-10-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
75 * ioparm.def: Reorder dt parameters to match libgfortran.
76 * libgfortran.h: Swap definitions of GFC_INTERNAL_UNIT and
79 2016-10-24 Steven G. Kargl <kargl@gcc.gnu.org>
82 * interface.c (gfc_compare_derived_types): Convert gcc_assert()
83 to a gfc_internal_error() to prevent an ICE.
85 2016-10-24 Jakub Jelinek <jakub@redhat.com>
87 * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Use VAR_P (x)
88 instead of TREE_CODE (x) == VAR_DECL.
89 * trans-expr.c (gfc_class_vptr_get, gfc_class_len_get,
90 gfc_class_len_or_zero_get, gfc_get_vptr_from_expr,
91 gfc_conv_string_length, conv_base_obj_fcn_val,
92 gfc_conv_procedure_call, gfc_trans_assignment_1): Likewise.
93 * trans-openmp.c (gfc_omp_predetermined_sharing,
94 gfc_omp_disregard_value_expr, gfc_omp_private_debug_clause,
95 gfc_trans_omp_atomic, gfc_trans_omp_do): Likewise.
96 * trans-io.c (nml_get_addr_expr): Likewise.
97 * trans-decl.c (gfc_finish_decl, gfc_build_qualified_array,
98 gfc_get_symbol_decl, gfc_get_fake_result_decl,
99 gfc_trans_deferred_vars, gfc_trans_use_stmts,
100 generate_local_decl): Likewise.
101 * trans-array.c (trans_array_constructor, trans_array_bound_check,
102 build_class_array_ref, gfc_array_init_size,
103 gfc_trans_auto_array_allocation, gfc_trans_g77_array,
104 gfc_trans_dummy_array_bias, gfc_alloc_allocatable_for_assignment,
105 gfc_trans_deferred_array): Likewise.
106 * trans.c (gfc_build_array_ref): Likewise. Use
107 VAR_OR_FUNCTION_DECL_P (x) instead of TREE_CODE (x) == VAR_DECL
108 || TREE_CODE (x) == FUNCTION_DECL.
110 2016-10-23 Steven G. Kargl <kargl@gcc.gnu.org>
113 * parse.c (parse_spec): Allow STRUCTURE in BLOCK DATA. Sort
116 2016-10-23 Steven G. Kargl <kargl@gcc.gnu.org>
120 * array.c (gfc_match_array_constructor): Remove checkpointing
121 introduced in r196416 (original fix for PR fortran/54730). Move
122 initialization to top of function.
123 * match.c (gfc_match_type_spec): Special case matching for REAL.
125 2016-10-23 Paul Thomas <pault@gcc.gnu.org>
128 * class.c (gfc_find_derived_vtab): Obtain the gsymbol for the
129 derived type's module. If the gsymbol is present and the top
130 level namespace corresponds to a module, use the gsymbol name
131 space. In the search to see if the vtable exists, try the gsym
133 * dump-parse-tree (show_code_node): Modify select case dump to
134 show select type construct.
135 * resolve.c (build_loc_call): New function.
136 (resolve_select_type): Add check for repeated type is cases.
137 Retain selector expression and use it later instead of expr1.
138 Exclude deferred length TYPE IS cases and emit error message.
139 Store the address for the vtable in the 'low' expression and
140 the hash value in the 'high' expression, for each case. Do not
142 * trans.c(trans_code) : Call gfc_trans_select_type.
143 * trans-stmt.c (gfc_trans_select_type_cases): New function.
144 (gfc_trans_select_type): New function.
145 * trans-stmt.h : Add prototype for gfc_trans_select_type.
147 2016-10-22 Thomas Koenig <tkoenig@gcc.gnu.org>
150 * gfc_compare_functions: Strings with different lengths in
151 argument lists compare unequal.
153 2016-10-22 Andre Vehreschild <vehre@gcc.gnu.org>
160 * primary.c (gfc_expr_attr): For transformational functions on classes
161 get the attrs from the class argument.
162 * resolve.c (resolve_ordinary_assign): Remove error message due to
163 feature implementation. Rewrite POINTER_ASSIGNS to ordinary ones when
164 the right-hand side is scalar class object (with some restrictions).
165 * trans-array.c (trans_array_constructor): Create the temporary from
166 class' inner type, i.e., the derived type.
167 (build_class_array_ref): Add support for class array's storage of the
168 class object or the array descriptor in the decl saved descriptor.
169 (gfc_conv_expr_descriptor): When creating temporaries for class objects
170 add the class object's handle into the decl saved descriptor.
171 (structure_alloc_comps): Use the common way to get the _data component.
172 (gfc_is_reallocatable_lhs): Add notion of allocatable class objects.
173 * trans-expr.c (gfc_find_and_cut_at_last_class_ref): Remove the only ref
174 only when the expression's type is BT_CLASS.
175 (gfc_trans_class_init_assign): Correctly handle class arrays.
176 (gfc_trans_class_assign): Joined into gfc_trans_assignment_1.
177 (gfc_conv_procedure_call): Support for class types as arguments.
178 (trans_get_upoly_len): For unlimited polymorphics retrieve the _len
180 (trans_class_vptr_len_assignment): Catch all ways to assign the _vptr
181 and _len components of a class object correctly.
182 (pointer_assignment_is_proc_pointer): Identify assignments of
184 (gfc_trans_pointer_assignment): Enhance support for class object pointer
186 (gfc_trans_scalar_assign): Removed assert.
187 (trans_class_assignment): Assign to a class object.
188 (gfc_trans_assignment_1): Treat class objects correctly.
189 (gfc_trans_assignment): Propagate flags to trans_assignment_1.
190 * trans-stmt.c (gfc_trans_allocate): Use gfc_trans_assignment now
191 instead of copy_class_to_class.
192 * trans-stmt.h: Function prototype removed.
193 * trans.c (trans_code): Less special casing for class objects.
194 * trans.h: Added flags to gfc_trans_assignment () prototype.
196 2016-10-21 Paul Thomas <pault@gcc.gnu.org>
199 * resolve.c (fixup_array_ref): New function.
200 (resolve_select_type): Gather up the rank and array reference,
201 if any, from the selector. Fix up the 'associate name' and the
202 'associate entities' as necessary.
203 * trans-expr.c (gfc_conv_class_to_class): If the symbol backend
204 decl is a FUNCTION_DECL, use the 'fake_result_decl' instead.
206 2016-10-20 Steven G. Kargl <kargl@gcc.gnu.org>
208 * array.c (gfc_match_array_constructor): Remove set, but unused
211 2016-10-20 Andre Vehreschild <vehre@gcc.gnu.org>
213 * class.c (gfc_build_class_symbol): Set the kind of _len to
214 gfc_charlen_int_kind to catch changes of the charlen kind.
216 2016-10-17 Steven G. Kargl <kargl@gcc.gnu.org>
219 * match.c (gfc_match_stopcode): Fix error reporting for several
220 deficiencies in matching stop-codes.
222 2016-10-17 Paul Thomas <pault@gcc.gnu.org>
226 * resolve.c (resolve_variable): Obtain the typespec for a
227 variable expression, when the variable is a function result
228 that is a procedure pointer.
230 2016-10-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
233 * trans-io.c (transfer_expr): Ignore dtio procedures for inquire
236 2016-10-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
239 * scanner.c (gfc_next_char_literal): If nextc is null do not
240 decrement the pointer and call the diagnostics.
242 2016-10-14 Andre Vehreschild <vehre@gcc.gnu.org>
244 * resolve.c (resolve_symbol): Add unimplemented message for
245 polymorphic types with allocatable/pointer components and coarray=lib.
247 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
249 * trans-intrinsic.c: Include memmodel.h.
251 2016-10-13 Andre Vehreschild <vehre@gcc.gnu.org>
254 * trans-expr.c (gfc_copy_class_to_class): Add generation of
255 runtime array bounds check.
256 * trans-intrinsic.c (gfc_conv_intrinsic_size): Add a crutch to
257 get the descriptor of a function returning a class object.
258 * trans-stmt.c (gfc_trans_allocate): Use the array spec on the
259 array to allocate instead of the array spec from source=.
261 2016-10-12 Andre Vehreschild <vehre@gcc.gnu.org>
263 * trans-expr.c (gfc_find_and_cut_at_last_class_ref): Fixed style.
264 (gfc_trans_class_init_assign): Same.
265 (gfc_conv_procedure_call): Same.
266 (gfc_trans_assignment_1): Same.
267 * trans-stmt.c (gfc_trans_allocate): Same.
269 2016-10-11 Jakub Jelinek <jakub@redhat.com>
271 * iresolve.c (is_trig_resolved, resolve_trig_call): Formatting fixes.
272 * simplify.c (simplify_trig_call, degrees_f, radians_f,
273 gfc_simplify_atrigd, gfc_simplify_cotan): Likewise.
275 2016-10-11 Steven G. Kargl <kargl@gcc.gnu.org>
278 * simplify.c (gfc_simplify_cshift): Check for zero.
280 2016-10-11 Fritz Reese <fritzoreese@gmail.com>
282 * iresolve.c (get_radians, get_degrees): Fix sloppy commit.
283 * simplify.c (degrees_f, radians_f): Ditto.
285 2016-10-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
287 * simplify.c (radians_f): Fix mpfr_mod.
288 * ireolce.c (get_degrees): Declare tmp.
290 2016-10-11 Fritz Reese <fritzoreese@gmail.com>
292 * lang.opt: New flag -fdec-math.
293 * options.c (set_dec_flags): Enable with -fdec.
294 * invoke.texi, gfortran.texi, intrinsic.texi: Update documentation.
295 * intrinsics.c (add_functions, do_simplify): New intrinsics
297 * gfortran.h (gfc_isym_id): New isym GFC_ISYM_COTAN.
298 * gfortran.h (gfc_resolve_atan2d, gfc_resolve_cotan,
299 gfc_resolve_trigd, gfc_resolve_atrigd): New prototypes.
300 * iresolve.c (resolve_trig_call, get_degrees, get_radians,
301 is_trig_resolved, gfc_resolve_cotan, gfc_resolve_trigd,
302 gfc_resolve_atrigd, gfc_resolve_atan2d): New functions.
303 * intrinsics.h (gfc_simplify_atan2d, gfc_simplify_atrigd,
304 gfc_simplify_cotan, gfc_simplify_trigd): New prototypes.
305 * simplify.c (simplify_trig_call, degrees_f, radians_f,
306 gfc_simplify_cotan, gfc_simplify_trigd, gfc_simplify_atrigd,
307 gfc_simplify_atan2d): New functions.
309 2016-10-10 Thomas Koenig <tkoenig@gcc.gnu.org>
312 * frontend-passes.c (inline_matmul_assign): Return early if
313 inside a FORALL statement.
315 2016-10-07 Fritz Reese <fritzoreese@gmail.com>
317 * interface.c (compare_components): Check charlen for BT_CHAR.
319 2016-10-07 Steven G. Kargl <kargl@gcc.gnu.org>
322 * interface.c (gfc_compare_interfaces): Fix detection of ambiguous
323 interface involving alternate return.
324 (check_interface1): Improve error message and loci.
326 2016-10-06 Louis Krupp <louis.krupp@zoho.com>
329 * trans-array.c (gfc_conv_expr_descriptor): Don't allocate
330 components if it's not necessary.
332 2016-10-05 Louis Krupp <louis.krupp@zoho.com>
335 * trans-expr.c (gfc_add_interface_mapping): Don't try to
336 dereference call-by-value scalar argument.
338 2016-10-05 Steven G. Kargl <kargls@gcc.gnu.org>
342 * resolve.c (resolve_assoc_var): Fix CHARACTER type-spec for a
343 selector in ASSOCIATE.
344 (resolve_fl_variable): Skip checks for an ASSOCIATE variable.
346 2016-10-05 Fritz Reese <fritzoreese@gmail.com>
348 * interface.c (gfc_compare_types): Don't compare BT_UNION components
349 until we know they're both UNIONs.
350 * interface.c (gfc_compare_union_types): Guard against empty
353 2016-10-05 Louis Krupp <louis.krupp@zoho.com>
356 * resolve.c (resolve_symbol): Don't apply default type rules to
357 mixed-entry master created for function entry points.
359 2016-09-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
362 * io.c (match_dt_unit): Peek check for missing format.
364 2016-09-30 Fritz Reese <fritzoreese@gmail.com>
367 * interface.c (gfc_compare_union_types): Null-guard map components.
369 2016-09-30 Fritz Reese <fritzoreese@gmail.com>
372 * interface.c (gfc_compare_derived_types): Use gfc_compare_union_types
373 to compare union types.
375 2016-09-30 Andre Vehreschild <vehre@gcc.gnu.org>
377 * trans-array.c (gfc_array_allocate): Use the token from coarray's
379 * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Only generate
380 caf-reference chains from the first coarray references on.
381 * trans-types.c (gfc_get_derived_type): Switch on mandatory .token
382 member generation for allocatable arrays in coarrays in derived types.
384 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
386 * options.c (gfc_post_options): Remove special case for
387 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard.
389 2016-09-27 Jakub Jelinek <jakub@redhat.com>
391 * dependency.c (gfc_dep_compare_expr): Remove break after return.
392 * frontend-passes.c (optimize_op): Likewise.
393 * interface.c (gfc_current_interface_head): Likewise.
394 * symbol.c (check_conflict): Likewise.
395 * trans-intrinsic.c (build_fix_expr): Likewise.
398 * trans-openmp.c (gfc_omp_private_outer_ref): Return true even for
399 references to allocatable arrays.
401 2016-09-26 Steven G. Kargl <kargl@gcc.gnu.org>
404 * trans-common.c: Handle array elements in equivalence when
405 the lower and upper bounds of array spec are NULL.
407 2016-09-26 Paul Thomas <pault@gcc.gnu.org>
410 * interface.c (gfc_find_specific_dtio_proc) : Return NULL if
411 the derived type is broken, as indicated by a flavor other than
414 2016-09-26 Marek Polacek <polacek@redhat.com>
417 * arith.c (eval_intrinsic): Add gcc_fallthrough.
418 * frontend-passes.c (optimize_op): Likewise.
419 (gfc_expr_walker): Likewise.
420 * parse.c (next_fixed): Likewise.
421 * primary.c (match_variable): Likewise.
422 * trans-array.c: Likewise.
423 * trans-expr.c (flatten_array_ctors_without_strlen): Likewise.
424 * trans-io.c (transfer_expr): Likewise.
426 2016-09-25 Steven G. Kargl <kargl@gcc.gnu.org>
429 * dependency.c (gfc_check_dependency): Convert gcc_assert() to
430 a conditional and possible call to gfc_internal_error().
432 2016-09-25 Steven G. Kargl <kargl@gcc.gnu.org>
435 * frontend-passes.c (optimize_binop_array_assignment): Check pointer
438 2016-09-23 Fritz Reese <fritzoreese@gmail.com>
440 * lang.opt, invoke.texi, gfortran.texi: New flag -fdec-static.
441 * options.c (set_dec_flags): Set -fdec-static with -fdec.
442 * gfortran.h (symbol_attribute): New attribute automatic.
443 * gfortran.h (gfc_add_automatic): New prototype.
444 * match.h (gfc_match_automatic, gfc_match_static): New functions.
445 * decl.c (gfc_match_automatic, gfc_match_static): Ditto.
446 * symbol.c (gfc_add_automatic): Ditto.
447 * decl.c (match_attr_spec): Match AUTOMATIC and STATIC decls.
448 * parse.c (decode_specification_statement, decode_statement): Ditto.
449 * resolve.c (apply_default_init_local, resolve_fl_variable_derived,
450 resolve_symbol): Support for automatic attribute.
451 * symbol.c (check_conflict, gfc_copy_attr, gfc_is_var_automatic):
453 * trans-decl.c (gfc_finish_var_decl): Ditto.
455 2016-09-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
458 * gfortran.h (gfc_dt): Add *udtio.
459 * ioparm.def: Add bit IOPARM_dt_f2003 to align with library use of bit
460 25. Add IOPARM_dt_dtio bit to common flags.
461 * resolve.c (resolve_transfer): Set dt->udtio to expression.
462 * io.c (gfc_match_inquire): Adjust error message for internal
464 * libgfortran.h: Adjust defines for GFC_INTERNAL_UNIT4,
465 GFC_INTERNAL_UNIT, and GFC_INVALID_UNIT.
466 * trans-io.c (build_dt): Set common_unit to reflect the KIND of
467 the internal unit. Set mask bit for presence of dt->udtio.
469 2016-09-22 Andre Vehreschild <vehre@gcc.gnu.org>
471 * trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Use the old caf-
472 interface where possible.
474 2016-09-22 Paul Thomas <pault@gcc.gnu.org>
476 * interface.c (check_dtio_interface1): Introduce errors for
477 alternate returns and incorrect numbers of arguments.
478 (gfc_find_specific_dtio_proc): Return cleanly if the derived
479 type either doesn't exist or has no namespace.
481 2016-09-21 Louis Krupp <louis.krupp@zoho.com>
484 * decl.c (add_init_expr_to_sym): Catch variable character length
487 2016-09-21 Paul Thomas <pault@gcc.gnu.org>
491 * interface.c (gfc_find_specific_dtio_proc): Borrow trick from
492 resolve_typebound_generic_call to find dtio procedures that
493 over-ride those in the declared type.
495 2016-09-20 Marek Polacek <polacek@redhat.com>
497 * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Adjust fall through
500 2016-09-19 Andre Vehreschild <vehre@gcc.gnu.org>
503 * expr.c (gfc_check_assign): Added flag to control whether datatype
504 conversion is allowed.
505 * gfortran.h: Added caf-token-tree to gfc_component. Changed
506 prototypes mostly to add whether datatype conversion is allowed.
507 * gfortran.texi: Added documentation for the caf_reference_t and the
508 caf_*_by_ref function.
509 * primary.c (caf_variable_attr): Similar to gfc_variable_attr but
510 focused on the needs of coarrays.
511 (gfc_caf_attr): Same.
512 * resolve.c (resolve_ordinary_assign): Set the conversion allowed
513 flag when not in a coarray.
514 * trans-array.c (gfc_array_init_size): Moved setting of array
515 descriptor's datatype before the alloc, because caf_register needs it.
516 (gfc_array_allocate): Changed notion of whether an array is a coarray.
517 (gfc_array_deallocate): Same.
518 (gfc_alloc_allocatable_for_assignment): Added setting of coarray's
519 array descriptor datatype before the register. And using deregister/
520 register to mimmick a realloc for coarrays.
521 * trans-decl.c (gfc_build_builtin_function_decls): Corrected signatures
522 of old caf-functions and added signature definitions of the _by_ref
524 (generate_coarray_sym_init): Adapted to new caf_register signature.
525 * trans-expr.c (gfc_conv_scalar_to_descriptor): Make sure a constant
526 is translated to an lvalue expression before use in an array
528 (gfc_get_ultimate_alloc_ptr_comps_caf_token): New function. Get the
529 last allocatable component's coarray token.
530 (gfc_get_tree_for_caf_expr): For top-level object get the coarray
531 token and check for unsupported features.
532 (gfc_get_caf_token_offset): Getting the offset might procude new
533 statements, which now are stored in the pre and post of the current se.
534 (gfc_caf_get_image_index): For this image return a call to
536 (expr_may_alias_variables): Check that the result is set for testing
538 (alloc_scalar_allocatable_for_assignment): Added auto allocation of
540 (gfc_trans_assignment_1): Rewrite an assign to a coarray object to
542 * trans-intrinsic.c (conv_caf_vector_subscript_elem): Corrected
544 (compute_component_offset): Compute the correct offset a structure
546 (conv_expr_ref_to_caf_ref): Convert to a chain of refs into
548 (gfc_conv_intrinsic_caf_get): Call caf_get_by_ref instead of caf_get.
549 (conv_caf_send): Call caf_*_by_ref for coarrays that need
551 (gfc_conv_intrinsic_function): Adapted to new signuature of the caf
553 (conv_intrinsic_atomic_op): Add pre and post statements correctly.
554 (conv_intrinsic_atomic_ref): Same.
555 (conv_intrinsic_atomic_cas): Same.
556 (conv_intrinsic_event_query): Same.
557 * trans-stmt.c (gfc_trans_lock_unlock): Same.
558 (gfc_trans_event_post_wait): Same.
559 (gfc_trans_allocate): Support allocation of allocatable coarrays.
560 (gfc_trans_deallocate): And there deallocation.
561 * trans-types.c (gfc_typenode_for_spec): Added flag to control whether
562 a component is part of coarray. When so, then add space to store a
564 (gfc_build_array_type): Same.
565 (gfc_get_array_descriptor_base): Same.
566 (gfc_get_array_type_bounds): Same.
567 (gfc_sym_type): Same.
568 (gfc_get_derived_type): Same.
569 (gfc_get_caf_reference_type): Declare the caf_reference_type.
570 * trans-types.h: Prototype changes only.
571 * trans.c (gfc_allocate_using_lib): Use the updated caf_register
573 (gfc_allocate_allocatable): Same.
574 (gfc_deallocate_with_status): Same.
575 * trans.h: Defined the runtime types for caf_reference_t and the enums.
577 2016-09-19 Fritz Reese <fritzoreese@gmail.com>
580 * decl.c (match_record_decl, gfc_match_decl_type_spec): Fixes to
581 handling of structure/record from declaration-type-spec.
583 2016_09_17 Louis Krupp <louis.krupp@zoho.com>
586 * resolve.c (resolve_allocate_expr): Check that derived type
587 pointer, object or array has been successfully allocated before
590 2016-09-16 Steven G. Kargl <kargl@gcc.gnu.org>
593 * decl.c (char_len_param_value): Check parent namespace for
596 2016-09-15 Louis Krupp <louis.krupp@zoho.com>
599 * parse.c (reject_statement): Clear charlen pointers in implicit
600 character typespecs before those charlen structures are freed.
602 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
604 * simplify.c (gfc_simplify_repeat): Fix a misplaced closing ')'.
606 2016-09-13 Steven G. Kargl <kargl@gcc.gnu.org>
609 * module.c (load_equiv): Revert revision 240063.
611 2016-09-10 Paul Thomas <pault@gcc.gnu.org>
612 Steven G. Kargl <kargl@gcc.gnu.org>
615 * interface.c (check_dtio_arg_TKR_intent): Return after error.
616 (check_dtio_interface1): Remove asserts, test for NULL and return
619 2016-09-09 Steven G. Kargl <kargl@gcc.gnu.org>
622 * module.c (load_equiv): If the current namespace has a list of
623 equivalence statements, initialize duplicate to false and then
624 look for duplicates; otherwise, initialize it to true.
626 2016-09-09 Steven G. Kargl <kargl@gcc.gnu.org>
629 * array.c (gfc_match_array_constructor): CHARACTER(len=*) cannot
630 appear in an array constructor.
632 2016-09-09 Steven G. Kargl <kargl@gcc.gnu.org>
635 * intrinsic.c (add_functions): Use correct keyword.
637 2016-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
640 * array.c (gfc_match_array_constructor): If type-spec is present,
641 walk the array constructor performing possible conversions for
644 2016-09-08 Jakub Jelinek <jakub@redhat.com>
647 * trans-openmp.c (gfc_trans_omp_atomic): For atomic write or
648 swap, don't try to look through GFC_ISYM_CONVERSION. In other cases,
649 check that value.function.isym is non-NULL before dereferencing it.
651 2016-09-04 Steven G. Kargl <kargl@gcc.gnu.org>
654 * resolve.c (deferred_requirements): New function to check F2008:C402.
655 (resolve_fl_variable,resolve_fl_parameter): Use it.
657 2016-09-04 Steven G. Kargl <kargl@gcc.gnu.org>
660 * simplify.c (simplify_transformation_to_scalar): On error, result
661 may be NULL, simply return.
663 2016-08-31 Jakub Jelinek <jakub@redhat.com>
666 * trans-openmp.c (gfc_trans_omp_parallel_workshare): Always add a
667 BIND_EXPR with BLOCK around what gfc_trans_omp_workshare returns.
670 * parse.c (parse_omp_oacc_atomic): Copy over cp->ext.omp_atomic
671 to cp->block->ext.omp_atomic.
672 * resolve.c (gfc_resolve_blocks): Assert block with one or two
673 EXEC_ASSIGNs for EXEC_*_ATOMIC.
674 * openmp.c (resolve_omp_atomic): Don't assert one or two
675 EXEC_ASSIGNs, instead return quietly for EXEC_NOPs and otherwise
676 error unexpected statements.
678 2016-08-31 Paul Thomas <pault@gcc.gnu.org>
679 Jerry DeLisle <jvdelisle@gcc.gnu.org>
682 * decl.c (access_attr_decl): Include case INTERFACE_DTIO as
684 * gfortran.h : Add INTRINSIC_FORMATTED and
685 INTRINSIC_UNFORMATTED to gfc_intrinsic_op. Add INTERFACE_DTIO
686 to interface type. Add new enum 'dtio_codes'. Add bitfield
687 'has_dtio_procs' to symbol_attr. Add prototypes
688 'gfc_check_dtio_interfaces' and 'gfc_find_specific_dtio_proc'.
689 * interface.c (dtio_op): New function.
690 (gfc_match_generic_spec): Match generic DTIO interfaces.
691 (gfc_match_interface): Treat DTIO interfaces in the same way as
692 (gfc_current_interface_head): Add INTERFACE_DTIO appropriately.
693 (check_dtio_arg_TKR_intent): New function.
694 (check_dtio_interface1): New function.
695 (gfc_check_dtio_interfaces): New function.
696 (gfc_find_specific_dtio_proc): New function.
697 * io.c : Add FMT_DT to format_token.
698 (format_lex): Handle DTIO formatting.
699 * match.c (gfc_op2string): Add DTIO operators.
700 * resolve.c (derived_inaccessible): Ignore pointer components
701 to enclosing derived type.
702 (resolve_transfer): Resolve transfers that involve DTIO.
703 procedures. Find the specific subroutine for the transfer and
704 use its existence to over-ride some of the constraints on
705 derived types. If the transfer is recursive, require that the
706 subroutine be so qualified.
707 (dtio_procs_present): New function.
708 (resolve_fl_namelist): Remove inhibition of polymorphic objects
709 in namelists if DTIO read and write subroutines exist. Likewise
711 (resolve_types): Invoke 'gfc_verify_dtio_procedures'.
712 * symbol.c : Set 'dtio_procs' using 'minit'.
713 * trans-decl.c (gfc_finish_var_decl): If a derived-type/class
714 object is associated with DTIO procedures, make it TREE_STATIC.
715 * trans-expr.c (gfc_get_vptr_from_expr): If the expression
716 drills down to a PARM_DECL, extract the vptr correctly.
717 (gfc_conv_derived_to_class): Check 'info' in the test for
718 'useflags'. If the se expression exists and is a pointer, use
719 it as the class _data.
720 * trans-io.c : Add IOCALL_X_DERIVED to iocall and the function
721 prototype. Likewise for IOCALL_SET_NML_DTIO_VAL.
722 (set_parameter_tree): Renamed from 'set_parameter_const', now
723 returns void and has new tree argument. Calls modified to match
725 (transfer_namelist_element): Transfer DTIO procedure pointer
726 and vpointer using the new function IOCALL_SET_NML_DTIO_VAL.
727 (get_dtio_proc): New function.
728 (transfer_expr): Add new argument for the vptr field of class
729 objects. Add the code to call the specific DTIO proc, convert
730 derived types to class and call IOCALL_X_DERIVED.
731 (trans_transfer): Add BT_CLASS to structures for treatment by
732 the scalarizer. Obtain the vptr for the dynamic type, both for
733 scalar and array transfer.
735 2016-08-30 Fritz Reese <fritzoreese@gmail.com>
737 * gfortran.texi: Fix typo in STRUCTURE documentation.
739 2016-08-29 Fritz Reese <fritzoreese@gmail.com>
741 Fix, reorganize, and clarify comparisons of anonymous types/components.
744 * interface.c (is_anonymous_component, is_anonymous_dt): New functions.
745 * interface.c (compare_components, gfc_compare_derived_types): Use new
748 2016-08-27 Steven G. Kargl <kargl@gcc.gnu.org>
751 * dependency.c (gfc_check_dependency): Do not assert with
754 2016-08-27 Steven G. Kargl <kargl@gcc.gnu.org>
757 simplify.c (simplify_ieee_selected_real_kind): Check for NULL pointers.
759 2016-08-25 Steven g. Kargl <kargl@gcc.gnu.org>
762 * frontend-passes.c (remove_trim,combine_array_constructor): Check for
765 2016-08-24 Paul Thomas <pault@gcc.gnu.org>
768 * resolve.c (resolve_fl_procedure): Use the correct gfc_charlen
769 for deferred character length module procedures.
771 2016-08-23 Fritz Reese <fritzoreese@gmail.com>
773 * decl.c (gfc_match_structure_decl): Make gfc_structure_id static.
775 2016-08-23 Fritz Reese <fritzoreese@gmail.com>
777 * interface.c (compare_components): Fix typo in name check conditional.
779 2016-08-22 Steven G. Kargl <kargl@gcc.gnu.org>
780 Bud Davis <jmdavis@link.com>
783 * parse.c (next_free,next_fixed): Issue error for statement label
786 2016-08-22 Steven G. Kargl <kargl@gcc.gnu.org>
789 * interface.c (compare_parameter): Use better locus for error message.
791 2016-08-22 Steven G. Kargl <kargl@gcc.gnu.org>
794 * gcc/fortran/trans-decl.c (generate_local_decl): Suppress warning
795 for unused variable if symbol is entry point.
797 2016-08-19 Joseph Myers <joseph@codesourcery.com>
800 * trans-types.h (float128_type_node): Rename to
801 gfc_float128_type_node.
802 (complex_float128_type_node): Rename to
803 gfc_complex_float128_type_node.
804 * iso-c-binding.def, trans-intrinsic.c, trans-types.c: All users
807 2016-08-19 Jakub Jelinek <jakub@redhat.com>
810 * resolve.c (gfc_resolve): For ns->construct_entities don't save, clear
811 and restore omp state around the resolving.
814 * trans-openmp.c (gfc_trans_omp_parallel, gfc_trans_omp_task,
815 gfc_trans_omp_target): Wrap gfc_trans_omp_code result in an extra
816 BIND_EXPR with its own forced BLOCK.
818 2016-08-19 Janne Blomqvist <jb@gcc.gnu.org>
820 * intrinsics.texi (RANDOM_NUMBER): Remove reference to
821 init_random_seed in example.
822 (RANDOM_SEED): Remove warning to not set all seed values to 0.
824 2016-08-18 David Malcolm <dmalcolm@redhat.com>
826 * error.c (gfc_diagnostic_starter): Update for change to
827 diagnostic_show_locus.
829 2016-08-17 Jakub Jelinek <jakub@redhat.com>
832 * trans-array.c (trans_array_constructor): Load
833 expr->ts.u.cl->length_from_typespec only if expr->ts.type is
836 2016-08-15 Fritz Reese <fritzoreese@gmail.com>
838 * lang.opt, invoke.texi: New flag -finit-derived.
839 * gfortran.h (gfc_build_default_init_expr, gfc_apply_init,
840 gfc_generate_initializer): New prototypes.
841 * expr.c (gfc_build_default_init_expr, gfc_apply_init,
842 component_initializer, gfc_generate_initializer): New functions.
843 * expr.c (gfc_default_initializer): Wrap gfc_generate_initializer.
844 * decl.c (build_struct): Move common code to gfc_apply_init.
845 * resolve.c (can_generate_init): New function.
846 * resolve.c (build_default_init_expr): Wrap gfc_build_default_init_expr.
847 * resolve.c (apply_default_init, resolve_fl_variable_derived): Use
848 gfc_generate_initializer.
849 * trans-decl.c (gfc_generate_function_code): Use
850 gfc_generate_initializer.
852 2016-08-15 Thomas Koenig <tkoenig@gcc.gnu.org>
854 * frontend-passes.c (create_var): Set ts.deferred for
855 deferred-length character variables.
856 * dump-parse-tree.c (show_typespec): Also dump
857 is_c_interop, is_iso_c and deferred flags.
859 2016-08-15 Jakub Jelinek <jakub@redhat.com>
862 * trans-decl.c (gfc_get_symbol_decl): Call gfc_finish_var_decl
863 for decl's character length before gfc_finish_var_decl on the
866 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
869 * openmp.c (resolve_omp_clauses): Adjust use_device clause
870 handling to only allow pointers and arrays.
872 2016-08-12 Marek Polacek <polacek@redhat.com>
875 * decl.c (match_attr_spec): Add FALLTHRU.
876 * primary.c (match_arg_list_function): Likewise.
877 * resolve.c (resolve_operator): Adjust fall through comment.
878 (fixup_charlen): Add FALLTHRU.
879 (resolve_allocate_expr): Adjust fall through comment.
880 * trans-array.c (gfc_conv_ss_startstride): Add FALLTHRU.
881 * trans-intrinsic.c (gfc_conv_intrinsic_len): Adjust fall through
884 2016-08-11 Janne Blomqvist <jb@gcc.gnu.org>
886 * check.c (gfc_check_random_seed): Use new seed size in check.
887 * intrinsic.texi (RANDOM_NUMBER): Updated documentation.
888 (RANDOM_SEED): Likewise.
890 2016-08-08 Jakub Jelinek <jakub@redhat.com>
893 * openmp.c (gfc_match_omp_declare_simd): Don't stick anything into
894 BLOCK DATA ns, it will be rejected later.
896 2016-08-08 Andre Vehreschild <vehre@gcc.gnu.org>
899 * trans-array.c (gfc_array_allocate): When SOURCE= is a function
900 stick with the ref of the object to allocate.
902 2016-08-08 Andre Vehreschild <vehre@gcc.gnu.org>
905 * trans-stmt.c (gfc_trans_allocate): Prevent generating code for
906 copy of zero sized string and with it an ICE.
908 2016-08-08 Andre Vehreschild <vehre@gcc.gnu.org>
911 * trans-array.c (gfc_trans_dummy_array_bias): Ensure that the
912 location information is correctly set.
913 * trans-decl.c (gfc_trans_deferred_vars): Set the locus of the
914 current construct early.
916 2016-08-03 Fritz Reese <fritzoreese@gmail.com>
918 * lang.opt: New option -fdec-intrinsic-ints.
919 * options.c (set_dec_flags): Enable with -fdec.
920 * gfortran.texi, invoke.texi, intrinsics.texi: Update documentation.
921 * intrinsic.c (add_function, add_subroutine): New B/I/J/K intrinsic
924 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
927 * target-memory.c (expr_to_char): Pass in locus and use it in error
929 (gfc_merge_initializers): Ditto.
930 * target-memory.h: Update prototype for gfc_merge_initializers ().
931 * trans-common.c (get_init_field): Use the correct locus.
933 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
936 * check.c (gfc_check_reshape): Check for constant expression.
938 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
941 * decl.c (build_struct): Ensure that pointers point to something.
943 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
946 * decl.c (gfc_set_constant_character_len): if expr is not
947 constant issue an error instead of an ICE.
949 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
952 * io.c (gfc_resolve_dt): Use correct locus.
953 * resolve.c (resolve_branch): Ditto.
955 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
958 * decl.c (char_len_param_value): Check return value of
959 gfc_reduce_init_expr().
961 2016-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
963 * trans-array.c (gfc_conv_array_ref): Fix allocation of diagnostic
964 message (was too small).
966 2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
969 * decl.c (match_data_constant): On error, set 'result' to NULL.
971 2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
974 * resolve.c(gfc_resolve_iterator): Failure of type conversion need
977 2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
980 * check.c(numeric_check): Prevent ICE. Issue error for invalid
981 subroutine as an actual argument when numeric argument is expected.
983 2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
984 Thomas Koenig <tkoenig@gcc.gnu.org>
987 * frontend-passes.c (gfc_run_passes): Bail out if there are any
989 * error.c (gfc_internal_error): If there are any errors in the
990 buffer, exit with EXIT_FAILURE.
992 2016-07-28 Renlin Li <renlin.li@arm.com>
995 2016-07-19 Thomas Koenig <tkoenig@gcc.gnu.org>
998 * dependency.c (gfc_check_dependency): Use dep_ref. Handle case
999 if identical is true and two array element references differ.
1000 (gfc_dep_resovler): Move most of the code to dep_ref.
1001 (dep_ref): New function.
1002 * frontend-passes.c (realloc_string_callback): Name temporary
1003 variable "realloc_string".
1005 2016-07-26 Steven G. Kargl <kargl@gcc.gnu.org>
1008 * class.c: Remove assert. Iterate over component only if non-null.
1010 2016-07-22 Steven G. Kargl <kargl@gcc.gnu.org>
1013 * check.c (is_c_interoperable): Simplify right expression.
1015 2016-07-22 Thomas Koenig <tkoenig@gcc.gnu.org>
1018 * frontend-passes.c (combine_array_constructor): Don't
1019 do anything if the expression is inside an array iterator.
1021 2016-07-22 Andre Vehreschild <vehre@gcc.gnu.org>
1023 * expr.c (gfc_find_stat_co): Fixed whitespaces.
1024 * gfortran.texi: Fixed typos and reversed meaning of caf_get()'s
1025 src and dst description.
1026 * trans-decl.c (gfc_build_builtin_function_decls): Fixed style
1027 and corrected fnspec for caf functions.
1028 * trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Fixed style.
1029 (conv_caf_send): Dito.
1031 2016-07-19 Thomas Koenig <tkoenig@gcc.gnu.org>
1034 * dependency.c (gfc_check_dependency): Use dep_ref. Handle case
1035 if identical is true and two array element references differ.
1036 (gfc_dep_resovler): Move most of the code to dep_ref.
1037 (dep_ref): New function.
1038 * frontend-passes.c (realloc_string_callback): Name temporary
1039 variable "realloc_string".
1041 2016-07-17 Fritz Reese <fritzoreese@gmail.com>
1044 * trans-decl.c (gfc_finish_var_decl): Replace automatic initializer with
1047 2016-07-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1048 Marco Restelli <mrestelli@gmail.com>
1051 * symbol.c (select_type_insert_tmp): Recursively call self to take care
1052 of nested select type.
1054 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
1056 * openmp.c (gfc_match_omp_clauses): Scan for clause vector_length
1059 2016-07-15 Andre Vehreschild <vehre@gcc.gnu.org>
1062 * trans-expr.c (gfc_trans_subcomponent_assign): Special casing
1063 when allocatable component is set to null() in initializer.
1065 2016-07-14 Steven G. Kargl <kargl@gcc.gnu.org>
1068 * parse.c (parse_contained): Use proper locus.
1070 2016-07-14 Andre Vehreschild <vehre@gcc.gnu.org>
1073 * simplify.c (gfc_simplify_len): Only for unlimited polymorphic
1074 types replace the expression's _data ref with a _len ref.
1076 2016-07-09 Thomas Koenig <tkoenig@gcc.gnu.org>
1079 * frontend-passes.c (create_var): Always allocate a charlen
1080 for character variables.
1082 2016-07-08 Steven G. Kargl <kargl@gcc.gnu.org>
1085 * simplify (gfc_simplify_spread): Adjust locus.
1087 2016-07-08 Cesar Philippidis <cesar@codesourcery.com>
1089 * parse.c (matcha): Define.
1090 (decode_oacc_directive): Add spec_only local var and set it. Use
1091 matcha to parse acc directives except for routine and declare. Return
1092 ST_GET_FCN_CHARACTERISTICS if a non-declarative directive could be
1095 2016-07-08 Martin Liska <mliska@suse.cz>
1097 * invoke.texi (Wundefined-do-loop): Enhance documentation.
1099 2016-07-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1102 * trans-expr.c (gfc_trans_structure_assign): Remove assert.
1104 2016-07-07 Martin Liska <mliska@suse.cz>
1106 * lang.opt (Wundefined-do-loop): New option.
1107 * resolve.c (gfc_resolve_iterator): Warn for Wundefined-do-loop.
1108 (gfc_trans_simple_do): Generate a c-style loop.
1109 (gfc_trans_do): Fix GNU coding style.
1110 * invoke.texi: Mention the new warning.
1112 2016-07-07 Martin Liska <mliska@suse.cz>
1114 * trans-stmt.c (gfc_trans_do): Add expect builtin for DO
1115 loops with step bigger than +-1.
1117 2016-07-05 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
1119 * array.c (gfc_match_array_ref): Add parsing support for
1120 STAT= attribute in CAF reference.
1121 * expr.c (gfc_find_stat_co): New function that returns
1122 the STAT= assignment.
1123 * gfortran.h (gfc_array_ref): New member.
1124 * trans-decl.c (gfc_build_builtin_function_decls):
1125 new attribute for caf_get and caf_send functions.
1126 * trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Passing
1127 the stat attribute to external function.
1128 (gfc_conv_intrinsic_caf_send): Ditto.
1130 2016-07-05 Andre Vehreschild <vehre@gcc.gnu.org>
1133 * trans-stmt.c (gfc_trans_allocate): Add code of pre block of typespec
1134 in allocate to parent block.
1136 2016-07-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1139 * decl.c (match_procedure_interface): Exit loop if procedure
1140 interface refers to itself.
1142 2016-07-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1143 Steven G. Kargl <kargl@gcc.gnu.org>
1146 * simplify.c (gfc_simplify_ishftc): Check that absolute value of
1147 SHIFT is less than or equal to SIZE.
1149 2016-07-01 Jakub Jelinek <jakub@redhat.com>
1152 * f95-lang.c (struct binding_level): Add reversed field.
1153 (clear_binding_level): Adjust initializer.
1154 (getdecls): If reversed is clear, set it and nreverse the names
1155 chain before returning it.
1156 (poplevel): Use getdecls.
1157 * trans-decl.c (gfc_generate_function_code, gfc_process_block_locals):
1158 Use nreverse to pushdecl decls in the declaration order.
1161 * trans-openmp.c (gfc_omp_privatize_by_reference): Return false
1162 for GFC_DECL_ASSOCIATE_VAR_P with POINTER_TYPE.
1164 2016-06-30 Jakub Jelinek <jakub@redhat.com>
1167 * parse.c (matchs, matcho): Move right before decode_omp_directive.
1168 If spec_only, only gfc_match the keyword and if successful, goto
1170 (matchds, matchdo): Define.
1171 (decode_omp_directive): Add spec_only local var and set it.
1172 Use matchds or matchdo macros instead of matchs or matcho
1173 for declare target, declare simd, declare reduction and threadprivate
1174 directives. Return ST_GET_FCN_CHARACTERISTICS if a non-declarative
1175 directive could be matched.
1176 (next_statement): For ST_GET_FCN_CHARACTERISTICS restore
1177 gfc_current_locus from old_locus even if there is no label.
1180 * trans-openmp.c (gfc_trans_omp_clauses): Set TREE_ADDRESSABLE on
1181 decls in to/from clauses.
1183 2016-06-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1186 * scanner.c (gfc_next_char_literal): Only decrement nextc if it
1189 2016-06-29 Cesar Philippidis <cesar@codesourcery.com>
1191 * openmp.c (match_oacc_clause_gang): Rename to ...
1192 (match_oacc_clause_gwv): this. Add support for OpenACC worker and
1194 (gfc_match_omp_clauses): Use match_oacc_clause_gwv for
1195 OMP_CLAUSE_{GANG,WORKER,VECTOR}. Propagate any MATCH_ERRORs for
1196 invalid OMP_CLAUSE_{ASYNC,WAIT,GANG,WORKER,VECTOR} clauses.
1197 (gfc_match_oacc_wait): Propagate MATCH_ERROR for invalid
1198 oacc_expr_lists. Adjust the first and needs_space arguments to
1199 gfc_match_omp_clauses.
1201 2016-06-29 Richard Biener <rguenther@suse.de>
1204 * f95-lang.c (LANG_HOOKS_GET_ALIAS_SET): Remove (un-)define.
1205 (gfc_get_alias_set): Remove.
1207 2016-06-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1210 * module.c (create_intrinsic_function): Check for NULL values and
1211 return after giving error.
1213 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
1215 * trans-types.c (gfc_build_complex_type): Move setting complex
1216 MODE to layout_type, instead of setting it ahead of time by the
1219 2016-06-21 Tobias Burnus <burnus@net-b.de>
1222 * resolve.c (resolve_function): Don't resolve caf_get/caf_send.
1223 (check_data_variable): Strip-off caf_get before checking.
1225 2016-06-20 Tobias Burnus <burnus@net-b.de>
1228 * trans-expr.c (gfc_trans_pointer_assignment): Correctly handle
1229 RHS pointer functions.
1231 2016-06-19 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1233 * class.c (gfc_add_class_array_ref): Call gfc_add_data_component()
1234 instead of gfc_add_component_ref().
1235 (gfc_get_len_component): Call gfc_add_len_component() instead of
1236 gfc_add_component_ref().
1237 * trans-intrinsic.c (gfc_conv_intrinsic_loc): Call
1238 gfc_add_data_component() instead of gfc_add_component_ref().
1239 * trans.c (gfc_add_finalizer_call): Call
1240 gfc_add_final_component() and gfc_add_size_component() instead
1241 of gfc_add_component_ref.
1243 2016-06-18 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1245 * trans-types.c (gfc_typenode_for_spec): Commentary typo fix.
1247 2016-06-17 Cesar Philippidis <cesar@codesourcery.com>
1249 * openmp.c (match_acc): New generic function to parse OpenACC
1251 (gfc_match_oacc_parallel_loop): Use it.
1252 (gfc_match_oacc_parallel): Likewise.
1253 (gfc_match_oacc_kernels_loop): Likewise.
1254 (gfc_match_oacc_kernels): Likewise.
1255 (gfc_match_oacc_data): Likewise.
1256 (gfc_match_oacc_host_data): Likewise.
1257 (gfc_match_oacc_loop): Likewise.
1258 (gfc_match_oacc_enter_data): Likewise.
1259 (gfc_match_oacc_exit_data): Likewise.
1261 2016-06-16 Martin Liska <mliska@suse.cz>
1263 * trans-stmt.c (gfc_trans_simple_do): Predict the edge.
1265 2016-06-16 Martin Liska <mliska@suse.cz>
1267 * trans-array.c (gfc_array_allocate): Do not generate expect
1269 * trans.c (gfc_allocate_using_malloc): Properly set FAIL_ALLOC
1270 predictor for malloc return value.
1271 (gfc_allocate_allocatable): Use REALLOC predictor instead of
1273 (gfc_deallocate_with_status): Likewise.
1275 2016-06-13 Paul Thomas <pault@gcc.gnu.org>
1278 * frontend-passes.c (realloc_string_callback): Add a call to
1279 gfc_dep_compare_expr.
1281 2016-06-11 Dominique d'Humieres <dominiq@lps.ens.fr>
1284 * io.c (gfc_resolve_dt): Replace GFC_STD_GNU with GFC_STD_LEGACY.
1286 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
1289 * openmp.c (gfc_match_oacc_cache): Add comment.
1291 2016-06-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1294 * io.c (match_io): For READ, commit in pending symbols in the
1295 current statement before trying to match an expression so that
1296 if the match fails and we undo symbols we dont toss good symbols.
1298 2016-06-05 Andre Vehreschild <vehre@gcc.gnu.org>
1301 * trans-array.c (gfc_trans_dummy_array_bias): For class arrays use
1302 the address of the _data component to reference the arrays data
1305 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
1307 * trans-openmp.c (gfc_trans_omp_reduction_list): Add mark_addressable
1308 bool parameter, set reduction clause DECLs as addressable when true.
1309 (gfc_trans_omp_clauses): Pass clauses->async to
1310 gfc_trans_omp_reduction_list, add comment describing OpenACC situation.
1312 2016-06-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1315 * io.c (match_io): For READ, try to match a default character
1316 expression. If found, set the dt format expression to this,
1317 otherwise go back and try control list.
1319 2016-06-01 Paul Thomas <pault@gcc.gnu.org>
1322 * decl.c (copy_prefix): Add checks that the module procedure
1323 declaration prefixes are compliant with the interface. Invert
1324 order of existing elemental and pure checks.
1325 * resolve.c (resolve_fl_procedure): Invert order of elemental
1328 2016-06-01 Jakub Jelinek <jakub@redhat.com>
1330 * parse.c (case_decl): Move ST_OMP_* to ...
1331 (case_omp_decl): ... here, new macro.
1332 (verify_st_order): For case_omp_decl, complain about
1333 p->state >= ORDER_EXEC, but don't change p->state otherwise.
1335 2016-05-26 Jakub Jelinek <jakub@redhat.com>
1337 * openmp.c (resolve_omp_clauses): Warn if chunk_size is known not to
1340 2016-05-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1343 * scanner.c (gfc_next_char_literal): Clear end_flag when adjusting
1344 current locus back to old_locus.
1346 2016-05-20 Jakub Jelinek <jakub@redhat.com>
1349 * frontend-passes.c (realloc_string_callback): Clear inserted_block
1350 and changed_statement before calling create_var.
1352 2016-05-15 Harald Anlauf <anlauf@gmx.de>
1355 * interface.c (compare_parameter): Check for non-NULL pointer.
1357 2016-05-14 Fritz Reese <fritzoreese@gmail.com>
1359 * gfortran.texi: Update example of DEC UNION extension.
1361 2016-05-14 Fritz Reese <fritzoreese@gmail.com>
1364 * expr.c (gfc_default_initializer): Avoid extra component refs in
1365 constructors for derived types and classes.
1367 2016-05-11 Jakub Jelinek <jakub@redhat.com>
1370 * frontend-passes.c (inline_matmul_assign): Disable in !$omp workshare.
1372 2016-05-09 Richard Biener <rguenther@suse.de>
1375 * trans-decl.c: Include gimplify.h for unshare_expr.
1376 (gfc_trans_vla_one_sizepos): Unshare exprs before inserting
1379 2016-05-07 Fritz Reese <fritzoreese@gmail.com>
1382 * module.c (dt_upper_string): Rename to gfc_dt_upper_string
1383 (dt_lower_string): Likewise.
1384 * gfortran.h: Make new gfc_dt_upper/lower_string global.
1385 * class.c: Use gfc_dt_upper_string.
1387 * symbol.c: Likewise.
1388 * resolve.c (resolve_component): New function.
1389 (resolve_fl_derived0): Move component loop code to resolve_component.
1390 * parse.c (check_component): New function.
1391 (parse_derived): Move loop code to check_component.
1392 * lang.opt, invoke.texi, options.c : New option -fdec-structure.
1393 * libgfortran.h (bt): New basic type BT_UNION.
1394 * gfortran.h (gfc_option): New option -fdec-structure.
1395 (gfc_get_union_type, gfc_compare_union_types): New prototypes.
1396 (gfc_bt_struct, gfc_fl_struct, case_bt_struct, case_fl_struct): New
1398 (gfc_find_component): Change prototype.
1399 * match.h (gfc_match_member_sep, gfc_match_map, gfc_match_union,
1400 gfc_match_structure_decl): New prototypes.
1401 * parse.h (gfc_comp_struct): New macro.
1402 * symbol.c (gfc_find_component): Search for components in nested unions
1403 * class.c (insert_component_ref, gfc_add_component_ref, add_proc_comp,
1404 copy_vtab_proc_comps): Update calls to gfc_find_component.
1405 * primary.c (gfc_convert_to_structure_constructor): Likewise.
1406 * symbol.c (gfc_add_component): Likewise.
1407 * resolve.c (resolve_typebound_function, resolve_typebound_subroutine,
1408 resolve_typebound_procedure, resolve_component, resolve_fl_derived):
1410 * expr.c (get_union_init, component_init): New functions.
1411 * decl.c (match_clist_expr, match_record_decl, get_struct_decl,
1412 gfc_match_map, gfc_match_union, gfc_match_structure_decl): Likewise.
1413 * interface.c (compare_components, gfc_compare_union_types): Likewise.
1414 * match.c (gfc_match_member_sep): Likewise.
1415 * parse.c (check_component, parse_union, parse_struct_map): Likewise.
1416 * resolve.c (resolve_fl_struct): Likewise.
1417 * symbol.c (find_union_component): Likewise.
1418 * trans-types.c (gfc_get_union_type): Likewise.
1419 * parse.c (parse_derived): Use new functions.
1420 * interface.c (gfc_compare_derived_types, gfc_compare_types): Likewise.
1421 * expr.c (gfc_default_initializer): Likewise.
1422 * gfortran.texi: Support for DEC structures, unions, and maps.
1423 * gfortran.h (gfc_statement, sym_flavor): Likewise.
1424 * check.c (gfc_check_kill_sub): Likewise.
1425 * expr.c (gfc_copy_expr, simplify_const_ref,
1426 gfc_has_default_initializer): Likewise.
1427 * decl.c (build_sym, match_data_constant, add_init_expr_to_sym,
1428 match_pointer_init, build_struct, variable_decl,
1429 gfc_match_decl_type_spec, gfc_mach_data-decl, gfc_match_entry,
1430 gfc_match_end, gfc_match_derived_decl): Likewise.
1431 * interface.c (check_interface0, check_interface1,
1432 gfc_search_interface): Likewise.
1433 * misc.c (gfc_basic_typename, gfc_typename): Likewise.
1434 * module.c (add_true_name, build_tnt, bt_types, mio_typespec,
1435 fix_mio_expr, load_needed, mio_symbol, read_module, write_symbol,
1436 gfc_get_module_backend_decl): Likewise.
1437 * parse.h (gfc_compile_state): Likewise.
1438 * parse.c (decode_specification_statement, decode_statement,
1439 gfc_ascii_statement, verify_st_order, parse_spec): Likewise.
1440 * primary.c (gfc_match_varspec, gfc_match_structure_constructor,
1441 gfc_match_rvalue, match_variable): Likewise.
1442 * resolve.c (find_arglists, resolve_structure_cons,
1443 is_illegal_recursion, resolve_generic_f, get_declared_from_expr,
1444 resolve_typebound_subroutine, resolve_allocate_expr,
1445 nonscalar_typebound_assign, generate_component_assignments,
1446 resolve_fl_variable_derived, check_defined_assignments,
1447 resolve_component, resolve_symbol, resolve_equivalence_derived):
1449 * symbol.c (flavors, check_conflict, gfc_add_flavor, gfc_use_derived,
1450 gfc_restore_last_undo_checkpoint, gfc_type_compatible,
1451 gfc_find_dt_in_generic): Likewise.
1452 * trans-decl.c (gfc_get_module_backend_decl, create_function_arglist,
1453 gfc_create_module_variable, check_constant_initializer): Likewise.
1454 * trans-expr.c (gfc_conv_component_ref, gfc_conv_initializer,
1455 gfc_trans_alloc_subarray_assign, gfc_trans_subcomponent_assign,
1456 gfc_conv_structure, gfc_trans_scalar_assign, copyable_array_p):
1458 * trans-io.c (transfer_namelist_element, transfer_expr,
1459 gfc_trans_transfer): Likewise.
1460 * trans-stmt.c (gfc_trans_deallocate): Likewise.
1461 * trans-types.c (gfc_typenode_for_spec, gfc_copy_dt_decls_ifequal,
1462 gfc_get_derived_type): Likewise.
1464 2016-05-05 Jakub Jelinek <jakub@redhat.com>
1466 * openmp.c (gfc_match_omp_clauses): Restructuralize, so that clause
1467 parsing is done in a big switch based on gfc_peek_ascii_char and
1468 individual clauses under their first letters are sorted too.
1470 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1472 * trans-types.c (gfc_build_complex_type):
1474 2016-05-02 Richard Biener <rguenther@suse.de>
1476 * trans-array.c (gfc_trans_create_temp_array): Properly
1477 create a DECL_EXPR for the anonymous VLA array type.
1479 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
1482 * trans-openmp.c (gfc_trans_oacc_combined_directive): Duplicate
1483 the reduction clause in both parallel and loop directives.
1485 2016-04-18 Michael Matz <matz@suse.de>
1487 * trans-io.c (gfc_build_io_library_fndecls): Use SET_TYPE_ALIGN.
1488 * trans-common.c (build_common_decl): Use SET_DECL_ALIGN.
1489 * trans-types.c (gfc_add_field_to_struct): Use SET_DECL_ALIGN.
1491 2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr>
1494 * intrinsic.texi: Correct the documentation of pseudorandom
1497 2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr>
1500 * gfortran.texi: Document OPEN( ... NAME=) as not implemented
1503 2016-04-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1506 * array.c (match_array_element_spec): Add check for non-integer.
1507 * simplify.c (gfc_simplify_reshape): If source shape is NULL return.
1509 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
1512 * openmp.c (gfc_find_omp_udr): Add explicit braces to resolve a
1513 future -Wparentheses warning.
1515 2016-04-04 Andre Vehreschild <vehre@gcc.gnu.org>
1518 * resolve.c (resolve_allocate_expr): Emit error message when no
1519 array spec and no array valued source= expression is given in an
1520 F2008 allocate() for an array to allocate.
1522 2016-04-04 Andre Vehreschild <vehre@gcc.gnu.org>
1525 * trans-array.c (gfc_array_allocate): When the array is a coarray,
1526 do not nullyfing its allocatable components in array_allocate, because
1527 the nullify missed the array ref and nullifies the wrong component.
1530 2016-03-29 Andre Vehreschild <vehre@gcc.gnu.org>
1533 * trans-expr.c (gfc_class_len_or_zero_get): Add function to return a
1534 constant zero tree, when the class to get the _len component from is
1535 not unlimited polymorphic.
1536 (gfc_copy_class_to_class): Use the new function.
1537 * trans.h: Added interface of new function gfc_class_len_or_zero_get.
1539 2016-03-28 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
1541 * trans-decl.c (gfc_build_builtin_function_decls):
1542 caf_stop_numeric and caf_stop_str definition.
1543 * trans-stmt.c (gfc_trans_stop): invoke external functions
1544 for stop and stop_str when coarrays are used.
1545 * trans.h: extern for new functions.
1547 2016-03-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1550 * scanner.c (load_file): Update to use S_ISREG macro.
1552 2016-03-17 Thomas Schwinge <thomas@codesourcery.com>
1554 * gfortran.h (enum gfc_omp_map_op): Rename OMP_MAP_FORCE_DEALLOC
1555 to OMP_MAP_DELETE. Adjust all users.
1557 2016-03-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1558 Jim MacArthur <jim.macarthur@codethink.co.uk>
1561 * scanner.c (load_file): Check that included file is regular.
1563 2016-03-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1564 Harold Anlauf <anlauf@gmx.de>
1567 * invoke.texi: Explain use of the 'no-' construct within the
1569 * options.c (gfc_handle_runtime_check_option): Enable use of
1570 'no-' prefix for the various options with -fcheck= to allow
1571 negating previously enabled check options.
1573 2016-03-12 Paul Thomas <pault@gcc.gnu.org>
1576 * decl.c (gfc_match_prefix): Treat the 'module' prefix in the
1577 same way as the others, rather than fixing it to come last.
1578 (gfc_match_function_decl, gfc_match_subroutine): After errors
1579 in 'copy_prefix', emit them immediately in the case of module
1580 procedures to prevent a later ICE.
1583 * decl.c (gfc_match_submod_proc): Permit 'module procedure'
1584 declarations within the contains section of modules as well as
1586 * resolve.c (resolve_fl_procedure): Likewise.
1587 *trans-decl.c (build_function_decl): Change the gcc_assert to
1588 allow all forms of module procedure declarations within module
1591 2016-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
1595 * frontend-passes.c (realloc_string_callback): Don't set
1598 2016-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
1600 * dump-parse-tree.c (show_code_node): Print association
1601 list of a block if present. Handle EXEC_END_BLOCK.
1603 2016-02-28 Harald Anlauf <anlauf@gmx.de>
1604 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1607 * match.c (gfc_match_iterator): Add diagnostic for array variable
1610 2016-02-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1611 Steven G. Kargl <kargl@gcc.gnu.org>
1614 * io.c (gfc_match_open): Check that open status is an expression
1615 constant before comparing string to 'scratch' with NEWUNIT.
1617 2016-02-27 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
1619 * trans.c (gfc_allocate_allocatable): size conversion
1620 from byte to number of elements for event variables.
1621 * trans-types.c (gfc_get_derived_type): event variables
1622 represented as a pointer (like lock variable).
1624 2016-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1627 * scanner.c (add_path_to_list): If include path is not a directory,
1628 issue a fatal error.
1630 2016-02-23 Andre Vehreschild <vehre@gcc.gnu.org>
1633 * trans-array.c (gfc_array_allocate): Take the attributes from the
1634 expression to allocate and not from the source=-expression.
1636 2016-02-20 Paul Thomas <pault@gcc.gnu.org>
1639 * trans-decl.c (create_function_arglist): Deferred character
1640 length functions, with and without declared results, address
1641 the passed reference type as '.result' and the local string
1642 length as '..result'.
1643 (gfc_null_and_pass_deferred_len): Helper function to null and
1644 return deferred string lengths, as needed.
1645 (gfc_trans_deferred_vars): Call it, thereby reducing repeated
1646 code, add call for deferred arrays and reroute pointer function
1647 results. Avoid using 'tmp' for anything other that a temporary
1648 tree by introducing 'type_of_array' for the arrayspec type.
1650 2015-02-16 Thomas Koenig <tkoenig@gcc.gnu.org>
1653 * frontend-passes.c (cfe-expr_0): Don't register functions
1654 from within an ASSOCIATE statement.
1656 2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
1659 * decl.c (build_sym): If the name has already been defined as a
1660 type, it has a symtree with an upper case letter at the beginning.
1661 If such a symtree exists, issue an error and exit. Don't do
1662 this if there is no corresponding upper case letter.
1664 2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
1668 * decl.c (build_sym): Reverted previous patch.
1670 2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
1673 * decl.c (build_sym): If the name has already been defined as a
1674 type, issue error and return false.
1676 2016-02-12 David Malcolm <dmalcolm@redhat.com>
1679 * error.c (gfc_diagnostic_start_span): New function.
1680 (gfc_diagnostics_init): Initialize global_dc's start_span.
1682 2016-02-11 Andre Vehreschild <vehre@gcc.gnu.org>
1685 * gfortran.h: Added flag to gfc_association_list indicating that
1686 the rank of an associate variable has been guessed only.
1687 * parse.c (parse_associate): Set the guess flag mentioned above
1688 when guessing the rank of an expression.
1689 * resolve.c (resolve_assoc_var): When the rank has been guessed,
1690 make sure, that the guess was correct else overwrite with the actual
1692 * trans-stmt.c (trans_associate_var): For subref_array_pointers in
1693 class objects, take the span from the _data component.
1695 2016-02-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1698 * primary.c (match_actual_arg): If symbol has attribute flavor of
1699 namelist, generate an error. (gfc_match_rvalue): Likewise return
1701 * resolve.c (resolve_symbol): Scan arument list of procedures and
1702 generate an error if a namelist is found.
1704 2016-02-05 Mikael Morin <mikael@gcc.gnu.org>
1707 * trans-expr.c (expr_is_variable, gfc_expr_is_variable): Rename
1708 the former to the latter and make it non-static. Update callers.
1709 * gfortran.h (gfc_expr_is_variable): New declaration.
1710 (struct gfc_ss_info): Add field needs_temporary.
1711 * trans-array.c (gfc_scalar_elemental_arg_saved_as_argument):
1712 Tighten the condition on aggregate expressions with a check
1713 that the expression is a variable and doesn't need a temporary.
1714 (gfc_conv_resolve_dependency): Add intermediary reference variable.
1715 Set the needs_temporary field.
1717 2016-02-03 Andre Vehreschild <vehre@gcc.gnu.org>
1721 * trans-expr.c (gfc_copy_class_to_class): For coarrays just the
1722 pointer is passed. Take it as is without trying to deref the
1724 * trans-stmt.c (gfc_trans_allocate): Take care of coarrays as
1725 argument to source=-expression.
1727 2016-02-02 Nathan Sidwell <nathan@codesourcery.com>
1729 * lang.opt (fopenacc-dim=): New option.
1731 2016-01-31 Paul Thomas <pault@gcc.gnu.org>
1734 * trans-expr.c (gfc_conv_procedure_call): For the vtable copy
1735 subroutines, add a string length argument, when the actual
1736 argument is an unlimited polymorphic class object.
1738 2016-01-30 Paul Thomas <pault@gcc.gnu.org>
1741 * trans-expr.c (gfc_conv_procedure_call): Correct expression
1742 for 'ulim_copy', which was missing a test for 'comp'.
1744 2016-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
1747 * decl.c (gfc_match_end): Only unnest and remove BLOCK namespaces
1748 when the END encountered does not match a BLOCK's end.
1750 2016-01-27 Janus Weil <janus@gcc.gnu.org>
1753 * invoke.texi: Fix documentation of -Wall with respect to -Wtabs.
1755 2016-01-27 Paul Thomas <pault@gcc.gnu.org>
1758 * trans-expr.c (is_scalar_reallocatable_lhs): Remove the check
1759 for allocatable components, whilst checking if the symbol is a
1760 derived or class entity..
1762 2016-01-26 Paul Thomas <pault@gcc.gnu.org>
1765 * trans-expr.c (gfc_trans_assignment_1): Exclude initialization
1766 assignments from check on assignment of scalars to unassigned
1767 arrays and correct wrong code within the corresponding block.
1769 2016-01-26 David Malcolm <dmalcolm@redhat.com>
1772 * error.c (gfc_diagnostic_starter): Delete use of pp_newline.
1774 2016-01-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1778 * interface.c (gfc_arglist_matches_symbol): Replace assert with
1779 a return false if not a procedure.
1780 * resolve.c (resolve_generic_f): Test if we are resolving an
1781 initialization expression and adjust error message accordingly.
1783 2016-01-24 Thomas Koenig <tkoenig@gcc.gnu.org>
1786 * frontend-passes.c (matmul_lhs_realloc): Add
1787 forgotten break statement.
1789 2016-01-24 Dominique d'Humieres <dominiq@lps.ens.fr>
1792 * primary.c (gfc_variable_attr): revert revision r221955,
1793 call gfc_internal_error only if there is no error.
1795 2016-01-24 Thomas Koenig <tkoenig@gcc.gnu.org>
1798 * frontend-passes.c (enum matrix_case): Add case A2B2T for
1799 MATMUL(A,TRANSPoSE(B)) where A and B are rank 2.
1800 (inline_limit_check): Also add A2B2T.
1801 (matmul_lhs_realloc): Handle A2B2T.
1802 (check_conjg_variable): Rename to
1803 (check_conjg_transpose_variable): and also count TRANSPOSE.
1804 (inline_matmul_assign): Handle A2B2T.
1806 2016-01-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1809 * error.c (gfc_error): Save the state of abort_on_error and set
1810 it to false for buffered errors to allow normal processing.
1811 Restore the state before leaving.
1813 2016-01-19 Martin Jambor <mjambor@suse.cz>
1815 * types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
1816 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
1817 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
1819 2016-01-15 Paul Thomas <pault@gcc.gnu.org>
1822 * resolve.c (check_uop_procedure): Prevent deferred length
1823 characters from being trapped by assumed length error.
1831 * trans-array.c (gfc_conv_scalarized_array_ref): Pass decl for
1832 function as well as variable expressions.
1833 (gfc_array_init_size): Add 'expr' as an argument. Use this to
1834 correctly set the descriptor dtype for deferred characters.
1835 (gfc_array_allocate): Add 'expr' to the call to
1836 'gfc_array_init_size'.
1837 * trans.c (gfc_build_array_ref): Expand logic for setting span
1838 to include indirect references to character lengths.
1839 * trans-decl.c (gfc_get_symbol_decl): Ensure that deferred
1840 result char lengths that are PARM_DECLs are indirectly
1841 referenced both for directly passed and by reference.
1842 (create_function_arglist): If the length type is a pointer type
1843 then store the length as the 'passed_length' and make the char
1844 length an indirect reference to it.
1845 (gfc_trans_deferred_vars): If a character length has escaped
1846 being set as an indirect reference, return it via the 'passed
1848 * trans-expr.c (gfc_conv_procedure_call): The length of
1849 deferred character length results is set TREE_STATIC and set to
1851 (gfc_trans_assignment_1): Do not fix the rse string_length if
1852 it is a variable, a parameter or an indirect reference. Add the
1853 code to trap assignment of scalars to unallocated arrays.
1854 * trans-stmt.c (gfc_trans_allocate): Remove 'def_str_len' and
1855 all references to it. Instead, replicate the code to obtain a
1856 explicitly defined string length and provide a value before
1857 array allocation so that the dtype is correctly set.
1858 trans-types.c (gfc_get_character_type): If the character length
1859 is a pointer, use the indirect reference.
1861 2016-01-10 Thomas Koenig <tkoenig@gcc.gnu.org>
1864 * frontend-passes.c (in_where): New variable.
1865 (inline_matmul_assign): Don't try this if we are within
1867 (gfc_code_walker): Keep track of in_where.
1869 2016-01-10 Paul Thomas <pault@gcc.gnu.org>
1872 * trans_array.c (gfc_conv_scalarized_array_ref): Add missing
1873 se->use_offset from condition for calculation of 'base'.
1875 2016-01-08 Jakub Jelinek <jakub@redhat.com>
1878 * trans.h (OMPWS_SCALARIZER_BODY): Define.
1879 (OMPWS_NOWAIT): Renumber.
1880 * trans-stmt.c (gfc_trans_where_3): Only set OMPWS_SCALARIZER_WS
1881 if OMPWS_SCALARIZER_BODY is not set already, and set also
1882 OMPWS_SCALARIZER_BODY until the final loop creation.
1883 * trans-expr.c (gfc_trans_assignment_1): Likewise.
1884 * trans-openmp.c (gfc_trans_omp_workshare): Also clear
1885 OMPWS_SCALARIZER_BODY.
1886 * trans-array.c (gfc_trans_scalarized_loop_end): Don't create
1887 OMP_FOR if OMPWS_SCALARIZER_BODY is set.
1889 2016-01-04 Jakub Jelinek <jakub@redhat.com>
1891 Update copyright years.
1893 * gfortranspec.c (lang_specific_driver): Update copyright notice
1895 * gfc-internals.texi: Bump @copying's copyright year.
1896 * gfortran.texi: Ditto.
1897 * intrinsic.texi: Ditto.
1898 * invoke.texi: Ditto.
1900 2016-01-01 Paul Thomas <pault@gcc.gnu.org>
1903 * trans-array.c (evaluate_bound): If deferred, test that 'desc'
1904 is an array descriptor before using gfc_conv_descriptor_xxx.
1906 Copyright (C) 2016 Free Software Foundation, Inc.
1908 Copying and distribution of this file, with or without modification,
1909 are permitted in any medium without royalty provided the copyright
1910 notice and this notice are preserved.