1 2016-10-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
4 * io.c (check_format): Adjust checks for FMT_L to treat a zero
5 width as an extension, giving warnings or error as appropriate.
8 2016-10-31 Jakub Jelinek <jakub@redhat.com>
10 * trans-types.c (gfc_get_array_descr_info): For -gdwarf-5 or
11 -gno-strict-dwarf, handle assumed rank arrays the way dwarf2out
14 2016-10-30 Thomas Koenig <tkoenig@gcc.gnu.org>
17 * arith.c (gfc_int2real): Change gfc_warning_now
19 * primary.c (match_complex_constant): If there
20 is no comma, throw away any warning which might have
21 been issued by gfc_int2real.
23 2016-10-28 Steven G. Kargl <kargl@gcc.gnu.org>
26 * symbol.c (gfc_type_compatible): Fix typo.
28 2016-10-27 Jakub Jelinek <jakub@redhat.com>
31 * parse.c (decode_statement): Don't create namespace for possible
32 select type here and destroy it afterwards.
33 (parse_select_type_block): Set gfc_current_ns to new_st.ext.block.ns.
34 (parse_executable, gfc_parse_file): Formatting fixes.
35 * match.c (gfc_match_select_type): Create namespace for select type
36 here, only after matching select type. Formatting fixes. Free that
37 namespace if not returning MATCH_YES, after gfc_undo_symbols,
38 otherwise remember it in new_st.ext.block.ns and switch to parent
41 2016-10-27 Fritz Reese <fritzoreese@gmail.com>
43 * expr.c (generate_union_initializer, get_union_initializer): New.
44 * expr.c (component_initializer): Consider BT_UNION specially.
45 * resolve.c (resolve_structure_cons): Hack for BT_UNION.
46 * trans-expr.c (gfc_trans_subcomponent_assign): Ditto.
47 * trans-expr.c (gfc_conv_union_initializer): New.
48 * trans-expr.c (gfc_conv_structure): Replace UNION handling code with
49 new function gfc_conv_union_initializer.
51 2016-10-26 Steven G. Kargl <kargl@gcc.gnu.org>
54 * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): Fix reference to an
55 array element of type CLASS.
57 2016-10-26 Paul Thomas <pault@gcc.gnu.org>
60 * resolve.c (resolve_typebound_intrinsic_op): For submodules
61 suppress the error and return if the same procedure symbol
62 is added more than once to the interface.
64 2016-10-26 Fritz Reese <fritzoreese@gmail.com>
66 * frontend-passes.c (gfc_code_walker): Add SHARE and CARRIAGECONTROL.
67 * io.c (gfc_free_open, gfc_resolve_open, gfc_match_open): Ditto.
68 * gfortran.h (gfc_open): Add SHARE, CARRIAGECONTROL, and READONLY.
69 * io.c (io_tag, match_open_element): Ditto.
71 * trans-io.c (gfc_trans_open): Ditto.
72 * io.c (match_dec_etag, match_dec_ftag): New functions.
73 * gfortran.texi: Document.
75 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
77 * gfortran.texi: Document.
78 * resolve.c (logical_to_bitwise): New function.
79 * resolve.c (resolve_operator): Wrap operands with logical_to_bitwise.
81 2016-10-25 Andre Vehreschild <vehre@gcc.gnu.org>
84 * class.c (find_intrinsic_vtab): No longer encode the string length
85 into vtype's name and use the char's kind for the size instead of
86 the string_length time the size.
87 * trans-array.c (gfc_conv_ss_descriptor): For deferred length char
88 arrays the dynamically sized type needs to be declared.
89 (build_class_array_ref): Address the i-th array element by multiplying
90 it with the _vptr->_size and the _len to make sure char arrays are
92 * trans-expr.c (gfc_conv_intrinsic_to_class): Made comment more
95 2016-10-25 Cesar Philippidis <cesar@codesourcery.com>
97 * intrinsic.texi (cosd): New mathop.
99 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
101 * match.c (gfc_match_intrinsic_op): Match ".XOR." with -std=legacy.
102 * gfortran.texi: Document.
104 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
106 * primary.c (gfc_match_rvalue): Match %LOC as LOC with -std=legacy.
107 * gfortran.texi: Document.
109 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
111 * decl.c (gfc_match_type): New function.
112 * match.h (gfc_match_type): New function.
113 * match.c (gfc_match_if): Special case for one-line IFs.
114 * gfortran.texi: Update documentation.
115 * parse.c (decode_statement): Invoke gfc_match_type.
117 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
119 * gfortran.texi: Document.
120 * gfortran.h (gfc_is_whitespace): Include form feed ('\f').
122 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
124 * invoke.texi, gfortran.texi: Touch up documentation of -fdec.
125 * gfortran.h (gfc_option): Move flag_dec_structure out of gfc_option.
126 * decl.c (match_record_decl, gfc_match_decl_type_spec,
127 gfc_match_structure_decl): Ditto.
128 * match.c (gfc_match_member_sep): Ditto.
129 * options.c (gfc_handle_option): Ditto.
130 * lang.opt (fdec-structure): Use Fortran Var for flag_dec_structure.
131 * lang.opt (fdec): Use Fortran Var to create flag_dec.
132 * options.c (set_dec_flags): With -fdec enable -fcray-pointer,
133 -fd-lines-as-comments (default), -fdollar-ok, and legacy std flags.
135 2016-10-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
138 * ioparm.def: Reorder dt parameters to match libgfortran.
139 * libgfortran.h: Swap definitions of GFC_INTERNAL_UNIT and
142 2016-10-24 Steven G. Kargl <kargl@gcc.gnu.org>
145 * interface.c (gfc_compare_derived_types): Convert gcc_assert()
146 to a gfc_internal_error() to prevent an ICE.
148 2016-10-24 Jakub Jelinek <jakub@redhat.com>
150 * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Use VAR_P (x)
151 instead of TREE_CODE (x) == VAR_DECL.
152 * trans-expr.c (gfc_class_vptr_get, gfc_class_len_get,
153 gfc_class_len_or_zero_get, gfc_get_vptr_from_expr,
154 gfc_conv_string_length, conv_base_obj_fcn_val,
155 gfc_conv_procedure_call, gfc_trans_assignment_1): Likewise.
156 * trans-openmp.c (gfc_omp_predetermined_sharing,
157 gfc_omp_disregard_value_expr, gfc_omp_private_debug_clause,
158 gfc_trans_omp_atomic, gfc_trans_omp_do): Likewise.
159 * trans-io.c (nml_get_addr_expr): Likewise.
160 * trans-decl.c (gfc_finish_decl, gfc_build_qualified_array,
161 gfc_get_symbol_decl, gfc_get_fake_result_decl,
162 gfc_trans_deferred_vars, gfc_trans_use_stmts,
163 generate_local_decl): Likewise.
164 * trans-array.c (trans_array_constructor, trans_array_bound_check,
165 build_class_array_ref, gfc_array_init_size,
166 gfc_trans_auto_array_allocation, gfc_trans_g77_array,
167 gfc_trans_dummy_array_bias, gfc_alloc_allocatable_for_assignment,
168 gfc_trans_deferred_array): Likewise.
169 * trans.c (gfc_build_array_ref): Likewise. Use
170 VAR_OR_FUNCTION_DECL_P (x) instead of TREE_CODE (x) == VAR_DECL
171 || TREE_CODE (x) == FUNCTION_DECL.
173 2016-10-23 Steven G. Kargl <kargl@gcc.gnu.org>
176 * parse.c (parse_spec): Allow STRUCTURE in BLOCK DATA. Sort
179 2016-10-23 Steven G. Kargl <kargl@gcc.gnu.org>
183 * array.c (gfc_match_array_constructor): Remove checkpointing
184 introduced in r196416 (original fix for PR fortran/54730). Move
185 initialization to top of function.
186 * match.c (gfc_match_type_spec): Special case matching for REAL.
188 2016-10-23 Paul Thomas <pault@gcc.gnu.org>
191 * class.c (gfc_find_derived_vtab): Obtain the gsymbol for the
192 derived type's module. If the gsymbol is present and the top
193 level namespace corresponds to a module, use the gsymbol name
194 space. In the search to see if the vtable exists, try the gsym
196 * dump-parse-tree (show_code_node): Modify select case dump to
197 show select type construct.
198 * resolve.c (build_loc_call): New function.
199 (resolve_select_type): Add check for repeated type is cases.
200 Retain selector expression and use it later instead of expr1.
201 Exclude deferred length TYPE IS cases and emit error message.
202 Store the address for the vtable in the 'low' expression and
203 the hash value in the 'high' expression, for each case. Do not
205 * trans.c(trans_code) : Call gfc_trans_select_type.
206 * trans-stmt.c (gfc_trans_select_type_cases): New function.
207 (gfc_trans_select_type): New function.
208 * trans-stmt.h : Add prototype for gfc_trans_select_type.
210 2016-10-22 Thomas Koenig <tkoenig@gcc.gnu.org>
213 * gfc_compare_functions: Strings with different lengths in
214 argument lists compare unequal.
216 2016-10-22 Andre Vehreschild <vehre@gcc.gnu.org>
223 * primary.c (gfc_expr_attr): For transformational functions on classes
224 get the attrs from the class argument.
225 * resolve.c (resolve_ordinary_assign): Remove error message due to
226 feature implementation. Rewrite POINTER_ASSIGNS to ordinary ones when
227 the right-hand side is scalar class object (with some restrictions).
228 * trans-array.c (trans_array_constructor): Create the temporary from
229 class' inner type, i.e., the derived type.
230 (build_class_array_ref): Add support for class array's storage of the
231 class object or the array descriptor in the decl saved descriptor.
232 (gfc_conv_expr_descriptor): When creating temporaries for class objects
233 add the class object's handle into the decl saved descriptor.
234 (structure_alloc_comps): Use the common way to get the _data component.
235 (gfc_is_reallocatable_lhs): Add notion of allocatable class objects.
236 * trans-expr.c (gfc_find_and_cut_at_last_class_ref): Remove the only ref
237 only when the expression's type is BT_CLASS.
238 (gfc_trans_class_init_assign): Correctly handle class arrays.
239 (gfc_trans_class_assign): Joined into gfc_trans_assignment_1.
240 (gfc_conv_procedure_call): Support for class types as arguments.
241 (trans_get_upoly_len): For unlimited polymorphics retrieve the _len
243 (trans_class_vptr_len_assignment): Catch all ways to assign the _vptr
244 and _len components of a class object correctly.
245 (pointer_assignment_is_proc_pointer): Identify assignments of
247 (gfc_trans_pointer_assignment): Enhance support for class object pointer
249 (gfc_trans_scalar_assign): Removed assert.
250 (trans_class_assignment): Assign to a class object.
251 (gfc_trans_assignment_1): Treat class objects correctly.
252 (gfc_trans_assignment): Propagate flags to trans_assignment_1.
253 * trans-stmt.c (gfc_trans_allocate): Use gfc_trans_assignment now
254 instead of copy_class_to_class.
255 * trans-stmt.h: Function prototype removed.
256 * trans.c (trans_code): Less special casing for class objects.
257 * trans.h: Added flags to gfc_trans_assignment () prototype.
259 2016-10-21 Paul Thomas <pault@gcc.gnu.org>
262 * resolve.c (fixup_array_ref): New function.
263 (resolve_select_type): Gather up the rank and array reference,
264 if any, from the selector. Fix up the 'associate name' and the
265 'associate entities' as necessary.
266 * trans-expr.c (gfc_conv_class_to_class): If the symbol backend
267 decl is a FUNCTION_DECL, use the 'fake_result_decl' instead.
269 2016-10-20 Steven G. Kargl <kargl@gcc.gnu.org>
271 * array.c (gfc_match_array_constructor): Remove set, but unused
274 2016-10-20 Andre Vehreschild <vehre@gcc.gnu.org>
276 * class.c (gfc_build_class_symbol): Set the kind of _len to
277 gfc_charlen_int_kind to catch changes of the charlen kind.
279 2016-10-17 Steven G. Kargl <kargl@gcc.gnu.org>
282 * match.c (gfc_match_stopcode): Fix error reporting for several
283 deficiencies in matching stop-codes.
285 2016-10-17 Paul Thomas <pault@gcc.gnu.org>
289 * resolve.c (resolve_variable): Obtain the typespec for a
290 variable expression, when the variable is a function result
291 that is a procedure pointer.
293 2016-10-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
296 * trans-io.c (transfer_expr): Ignore dtio procedures for inquire
299 2016-10-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
302 * scanner.c (gfc_next_char_literal): If nextc is null do not
303 decrement the pointer and call the diagnostics.
305 2016-10-14 Andre Vehreschild <vehre@gcc.gnu.org>
307 * resolve.c (resolve_symbol): Add unimplemented message for
308 polymorphic types with allocatable/pointer components and coarray=lib.
310 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
312 * trans-intrinsic.c: Include memmodel.h.
314 2016-10-13 Andre Vehreschild <vehre@gcc.gnu.org>
317 * trans-expr.c (gfc_copy_class_to_class): Add generation of
318 runtime array bounds check.
319 * trans-intrinsic.c (gfc_conv_intrinsic_size): Add a crutch to
320 get the descriptor of a function returning a class object.
321 * trans-stmt.c (gfc_trans_allocate): Use the array spec on the
322 array to allocate instead of the array spec from source=.
324 2016-10-12 Andre Vehreschild <vehre@gcc.gnu.org>
326 * trans-expr.c (gfc_find_and_cut_at_last_class_ref): Fixed style.
327 (gfc_trans_class_init_assign): Same.
328 (gfc_conv_procedure_call): Same.
329 (gfc_trans_assignment_1): Same.
330 * trans-stmt.c (gfc_trans_allocate): Same.
332 2016-10-11 Jakub Jelinek <jakub@redhat.com>
334 * iresolve.c (is_trig_resolved, resolve_trig_call): Formatting fixes.
335 * simplify.c (simplify_trig_call, degrees_f, radians_f,
336 gfc_simplify_atrigd, gfc_simplify_cotan): Likewise.
338 2016-10-11 Steven G. Kargl <kargl@gcc.gnu.org>
341 * simplify.c (gfc_simplify_cshift): Check for zero.
343 2016-10-11 Fritz Reese <fritzoreese@gmail.com>
345 * iresolve.c (get_radians, get_degrees): Fix sloppy commit.
346 * simplify.c (degrees_f, radians_f): Ditto.
348 2016-10-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
350 * simplify.c (radians_f): Fix mpfr_mod.
351 * ireolce.c (get_degrees): Declare tmp.
353 2016-10-11 Fritz Reese <fritzoreese@gmail.com>
355 * lang.opt: New flag -fdec-math.
356 * options.c (set_dec_flags): Enable with -fdec.
357 * invoke.texi, gfortran.texi, intrinsic.texi: Update documentation.
358 * intrinsics.c (add_functions, do_simplify): New intrinsics
360 * gfortran.h (gfc_isym_id): New isym GFC_ISYM_COTAN.
361 * gfortran.h (gfc_resolve_atan2d, gfc_resolve_cotan,
362 gfc_resolve_trigd, gfc_resolve_atrigd): New prototypes.
363 * iresolve.c (resolve_trig_call, get_degrees, get_radians,
364 is_trig_resolved, gfc_resolve_cotan, gfc_resolve_trigd,
365 gfc_resolve_atrigd, gfc_resolve_atan2d): New functions.
366 * intrinsics.h (gfc_simplify_atan2d, gfc_simplify_atrigd,
367 gfc_simplify_cotan, gfc_simplify_trigd): New prototypes.
368 * simplify.c (simplify_trig_call, degrees_f, radians_f,
369 gfc_simplify_cotan, gfc_simplify_trigd, gfc_simplify_atrigd,
370 gfc_simplify_atan2d): New functions.
372 2016-10-10 Thomas Koenig <tkoenig@gcc.gnu.org>
375 * frontend-passes.c (inline_matmul_assign): Return early if
376 inside a FORALL statement.
378 2016-10-07 Fritz Reese <fritzoreese@gmail.com>
380 * interface.c (compare_components): Check charlen for BT_CHAR.
382 2016-10-07 Steven G. Kargl <kargl@gcc.gnu.org>
385 * interface.c (gfc_compare_interfaces): Fix detection of ambiguous
386 interface involving alternate return.
387 (check_interface1): Improve error message and loci.
389 2016-10-06 Louis Krupp <louis.krupp@zoho.com>
392 * trans-array.c (gfc_conv_expr_descriptor): Don't allocate
393 components if it's not necessary.
395 2016-10-05 Louis Krupp <louis.krupp@zoho.com>
398 * trans-expr.c (gfc_add_interface_mapping): Don't try to
399 dereference call-by-value scalar argument.
401 2016-10-05 Steven G. Kargl <kargls@gcc.gnu.org>
405 * resolve.c (resolve_assoc_var): Fix CHARACTER type-spec for a
406 selector in ASSOCIATE.
407 (resolve_fl_variable): Skip checks for an ASSOCIATE variable.
409 2016-10-05 Fritz Reese <fritzoreese@gmail.com>
411 * interface.c (gfc_compare_types): Don't compare BT_UNION components
412 until we know they're both UNIONs.
413 * interface.c (gfc_compare_union_types): Guard against empty
416 2016-10-05 Louis Krupp <louis.krupp@zoho.com>
419 * resolve.c (resolve_symbol): Don't apply default type rules to
420 mixed-entry master created for function entry points.
422 2016-09-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
425 * io.c (match_dt_unit): Peek check for missing format.
427 2016-09-30 Fritz Reese <fritzoreese@gmail.com>
430 * interface.c (gfc_compare_union_types): Null-guard map components.
432 2016-09-30 Fritz Reese <fritzoreese@gmail.com>
435 * interface.c (gfc_compare_derived_types): Use gfc_compare_union_types
436 to compare union types.
438 2016-09-30 Andre Vehreschild <vehre@gcc.gnu.org>
440 * trans-array.c (gfc_array_allocate): Use the token from coarray's
442 * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Only generate
443 caf-reference chains from the first coarray references on.
444 * trans-types.c (gfc_get_derived_type): Switch on mandatory .token
445 member generation for allocatable arrays in coarrays in derived types.
447 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
449 * options.c (gfc_post_options): Remove special case for
450 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard.
452 2016-09-27 Jakub Jelinek <jakub@redhat.com>
454 * dependency.c (gfc_dep_compare_expr): Remove break after return.
455 * frontend-passes.c (optimize_op): Likewise.
456 * interface.c (gfc_current_interface_head): Likewise.
457 * symbol.c (check_conflict): Likewise.
458 * trans-intrinsic.c (build_fix_expr): Likewise.
461 * trans-openmp.c (gfc_omp_private_outer_ref): Return true even for
462 references to allocatable arrays.
464 2016-09-26 Steven G. Kargl <kargl@gcc.gnu.org>
467 * trans-common.c: Handle array elements in equivalence when
468 the lower and upper bounds of array spec are NULL.
470 2016-09-26 Paul Thomas <pault@gcc.gnu.org>
473 * interface.c (gfc_find_specific_dtio_proc) : Return NULL if
474 the derived type is broken, as indicated by a flavor other than
477 2016-09-26 Marek Polacek <polacek@redhat.com>
480 * arith.c (eval_intrinsic): Add gcc_fallthrough.
481 * frontend-passes.c (optimize_op): Likewise.
482 (gfc_expr_walker): Likewise.
483 * parse.c (next_fixed): Likewise.
484 * primary.c (match_variable): Likewise.
485 * trans-array.c: Likewise.
486 * trans-expr.c (flatten_array_ctors_without_strlen): Likewise.
487 * trans-io.c (transfer_expr): Likewise.
489 2016-09-25 Steven G. Kargl <kargl@gcc.gnu.org>
492 * dependency.c (gfc_check_dependency): Convert gcc_assert() to
493 a conditional and possible call to gfc_internal_error().
495 2016-09-25 Steven G. Kargl <kargl@gcc.gnu.org>
498 * frontend-passes.c (optimize_binop_array_assignment): Check pointer
501 2016-09-23 Fritz Reese <fritzoreese@gmail.com>
503 * lang.opt, invoke.texi, gfortran.texi: New flag -fdec-static.
504 * options.c (set_dec_flags): Set -fdec-static with -fdec.
505 * gfortran.h (symbol_attribute): New attribute automatic.
506 * gfortran.h (gfc_add_automatic): New prototype.
507 * match.h (gfc_match_automatic, gfc_match_static): New functions.
508 * decl.c (gfc_match_automatic, gfc_match_static): Ditto.
509 * symbol.c (gfc_add_automatic): Ditto.
510 * decl.c (match_attr_spec): Match AUTOMATIC and STATIC decls.
511 * parse.c (decode_specification_statement, decode_statement): Ditto.
512 * resolve.c (apply_default_init_local, resolve_fl_variable_derived,
513 resolve_symbol): Support for automatic attribute.
514 * symbol.c (check_conflict, gfc_copy_attr, gfc_is_var_automatic):
516 * trans-decl.c (gfc_finish_var_decl): Ditto.
518 2016-09-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
521 * gfortran.h (gfc_dt): Add *udtio.
522 * ioparm.def: Add bit IOPARM_dt_f2003 to align with library use of bit
523 25. Add IOPARM_dt_dtio bit to common flags.
524 * resolve.c (resolve_transfer): Set dt->udtio to expression.
525 * io.c (gfc_match_inquire): Adjust error message for internal
527 * libgfortran.h: Adjust defines for GFC_INTERNAL_UNIT4,
528 GFC_INTERNAL_UNIT, and GFC_INVALID_UNIT.
529 * trans-io.c (build_dt): Set common_unit to reflect the KIND of
530 the internal unit. Set mask bit for presence of dt->udtio.
532 2016-09-22 Andre Vehreschild <vehre@gcc.gnu.org>
534 * trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Use the old caf-
535 interface where possible.
537 2016-09-22 Paul Thomas <pault@gcc.gnu.org>
539 * interface.c (check_dtio_interface1): Introduce errors for
540 alternate returns and incorrect numbers of arguments.
541 (gfc_find_specific_dtio_proc): Return cleanly if the derived
542 type either doesn't exist or has no namespace.
544 2016-09-21 Louis Krupp <louis.krupp@zoho.com>
547 * decl.c (add_init_expr_to_sym): Catch variable character length
550 2016-09-21 Paul Thomas <pault@gcc.gnu.org>
554 * interface.c (gfc_find_specific_dtio_proc): Borrow trick from
555 resolve_typebound_generic_call to find dtio procedures that
556 over-ride those in the declared type.
558 2016-09-20 Marek Polacek <polacek@redhat.com>
560 * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Adjust fall through
563 2016-09-19 Andre Vehreschild <vehre@gcc.gnu.org>
566 * expr.c (gfc_check_assign): Added flag to control whether datatype
567 conversion is allowed.
568 * gfortran.h: Added caf-token-tree to gfc_component. Changed
569 prototypes mostly to add whether datatype conversion is allowed.
570 * gfortran.texi: Added documentation for the caf_reference_t and the
571 caf_*_by_ref function.
572 * primary.c (caf_variable_attr): Similar to gfc_variable_attr but
573 focused on the needs of coarrays.
574 (gfc_caf_attr): Same.
575 * resolve.c (resolve_ordinary_assign): Set the conversion allowed
576 flag when not in a coarray.
577 * trans-array.c (gfc_array_init_size): Moved setting of array
578 descriptor's datatype before the alloc, because caf_register needs it.
579 (gfc_array_allocate): Changed notion of whether an array is a coarray.
580 (gfc_array_deallocate): Same.
581 (gfc_alloc_allocatable_for_assignment): Added setting of coarray's
582 array descriptor datatype before the register. And using deregister/
583 register to mimmick a realloc for coarrays.
584 * trans-decl.c (gfc_build_builtin_function_decls): Corrected signatures
585 of old caf-functions and added signature definitions of the _by_ref
587 (generate_coarray_sym_init): Adapted to new caf_register signature.
588 * trans-expr.c (gfc_conv_scalar_to_descriptor): Make sure a constant
589 is translated to an lvalue expression before use in an array
591 (gfc_get_ultimate_alloc_ptr_comps_caf_token): New function. Get the
592 last allocatable component's coarray token.
593 (gfc_get_tree_for_caf_expr): For top-level object get the coarray
594 token and check for unsupported features.
595 (gfc_get_caf_token_offset): Getting the offset might procude new
596 statements, which now are stored in the pre and post of the current se.
597 (gfc_caf_get_image_index): For this image return a call to
599 (expr_may_alias_variables): Check that the result is set for testing
601 (alloc_scalar_allocatable_for_assignment): Added auto allocation of
603 (gfc_trans_assignment_1): Rewrite an assign to a coarray object to
605 * trans-intrinsic.c (conv_caf_vector_subscript_elem): Corrected
607 (compute_component_offset): Compute the correct offset a structure
609 (conv_expr_ref_to_caf_ref): Convert to a chain of refs into
611 (gfc_conv_intrinsic_caf_get): Call caf_get_by_ref instead of caf_get.
612 (conv_caf_send): Call caf_*_by_ref for coarrays that need
614 (gfc_conv_intrinsic_function): Adapted to new signuature of the caf
616 (conv_intrinsic_atomic_op): Add pre and post statements correctly.
617 (conv_intrinsic_atomic_ref): Same.
618 (conv_intrinsic_atomic_cas): Same.
619 (conv_intrinsic_event_query): Same.
620 * trans-stmt.c (gfc_trans_lock_unlock): Same.
621 (gfc_trans_event_post_wait): Same.
622 (gfc_trans_allocate): Support allocation of allocatable coarrays.
623 (gfc_trans_deallocate): And there deallocation.
624 * trans-types.c (gfc_typenode_for_spec): Added flag to control whether
625 a component is part of coarray. When so, then add space to store a
627 (gfc_build_array_type): Same.
628 (gfc_get_array_descriptor_base): Same.
629 (gfc_get_array_type_bounds): Same.
630 (gfc_sym_type): Same.
631 (gfc_get_derived_type): Same.
632 (gfc_get_caf_reference_type): Declare the caf_reference_type.
633 * trans-types.h: Prototype changes only.
634 * trans.c (gfc_allocate_using_lib): Use the updated caf_register
636 (gfc_allocate_allocatable): Same.
637 (gfc_deallocate_with_status): Same.
638 * trans.h: Defined the runtime types for caf_reference_t and the enums.
640 2016-09-19 Fritz Reese <fritzoreese@gmail.com>
643 * decl.c (match_record_decl, gfc_match_decl_type_spec): Fixes to
644 handling of structure/record from declaration-type-spec.
646 2016_09_17 Louis Krupp <louis.krupp@zoho.com>
649 * resolve.c (resolve_allocate_expr): Check that derived type
650 pointer, object or array has been successfully allocated before
653 2016-09-16 Steven G. Kargl <kargl@gcc.gnu.org>
656 * decl.c (char_len_param_value): Check parent namespace for
659 2016-09-15 Louis Krupp <louis.krupp@zoho.com>
662 * parse.c (reject_statement): Clear charlen pointers in implicit
663 character typespecs before those charlen structures are freed.
665 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
667 * simplify.c (gfc_simplify_repeat): Fix a misplaced closing ')'.
669 2016-09-13 Steven G. Kargl <kargl@gcc.gnu.org>
672 * module.c (load_equiv): Revert revision 240063.
674 2016-09-10 Paul Thomas <pault@gcc.gnu.org>
675 Steven G. Kargl <kargl@gcc.gnu.org>
678 * interface.c (check_dtio_arg_TKR_intent): Return after error.
679 (check_dtio_interface1): Remove asserts, test for NULL and return
682 2016-09-09 Steven G. Kargl <kargl@gcc.gnu.org>
685 * module.c (load_equiv): If the current namespace has a list of
686 equivalence statements, initialize duplicate to false and then
687 look for duplicates; otherwise, initialize it to true.
689 2016-09-09 Steven G. Kargl <kargl@gcc.gnu.org>
692 * array.c (gfc_match_array_constructor): CHARACTER(len=*) cannot
693 appear in an array constructor.
695 2016-09-09 Steven G. Kargl <kargl@gcc.gnu.org>
698 * intrinsic.c (add_functions): Use correct keyword.
700 2016-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
703 * array.c (gfc_match_array_constructor): If type-spec is present,
704 walk the array constructor performing possible conversions for
707 2016-09-08 Jakub Jelinek <jakub@redhat.com>
710 * trans-openmp.c (gfc_trans_omp_atomic): For atomic write or
711 swap, don't try to look through GFC_ISYM_CONVERSION. In other cases,
712 check that value.function.isym is non-NULL before dereferencing it.
714 2016-09-04 Steven G. Kargl <kargl@gcc.gnu.org>
717 * resolve.c (deferred_requirements): New function to check F2008:C402.
718 (resolve_fl_variable,resolve_fl_parameter): Use it.
720 2016-09-04 Steven G. Kargl <kargl@gcc.gnu.org>
723 * simplify.c (simplify_transformation_to_scalar): On error, result
724 may be NULL, simply return.
726 2016-08-31 Jakub Jelinek <jakub@redhat.com>
729 * trans-openmp.c (gfc_trans_omp_parallel_workshare): Always add a
730 BIND_EXPR with BLOCK around what gfc_trans_omp_workshare returns.
733 * parse.c (parse_omp_oacc_atomic): Copy over cp->ext.omp_atomic
734 to cp->block->ext.omp_atomic.
735 * resolve.c (gfc_resolve_blocks): Assert block with one or two
736 EXEC_ASSIGNs for EXEC_*_ATOMIC.
737 * openmp.c (resolve_omp_atomic): Don't assert one or two
738 EXEC_ASSIGNs, instead return quietly for EXEC_NOPs and otherwise
739 error unexpected statements.
741 2016-08-31 Paul Thomas <pault@gcc.gnu.org>
742 Jerry DeLisle <jvdelisle@gcc.gnu.org>
745 * decl.c (access_attr_decl): Include case INTERFACE_DTIO as
747 * gfortran.h : Add INTRINSIC_FORMATTED and
748 INTRINSIC_UNFORMATTED to gfc_intrinsic_op. Add INTERFACE_DTIO
749 to interface type. Add new enum 'dtio_codes'. Add bitfield
750 'has_dtio_procs' to symbol_attr. Add prototypes
751 'gfc_check_dtio_interfaces' and 'gfc_find_specific_dtio_proc'.
752 * interface.c (dtio_op): New function.
753 (gfc_match_generic_spec): Match generic DTIO interfaces.
754 (gfc_match_interface): Treat DTIO interfaces in the same way as
755 (gfc_current_interface_head): Add INTERFACE_DTIO appropriately.
756 (check_dtio_arg_TKR_intent): New function.
757 (check_dtio_interface1): New function.
758 (gfc_check_dtio_interfaces): New function.
759 (gfc_find_specific_dtio_proc): New function.
760 * io.c : Add FMT_DT to format_token.
761 (format_lex): Handle DTIO formatting.
762 * match.c (gfc_op2string): Add DTIO operators.
763 * resolve.c (derived_inaccessible): Ignore pointer components
764 to enclosing derived type.
765 (resolve_transfer): Resolve transfers that involve DTIO.
766 procedures. Find the specific subroutine for the transfer and
767 use its existence to over-ride some of the constraints on
768 derived types. If the transfer is recursive, require that the
769 subroutine be so qualified.
770 (dtio_procs_present): New function.
771 (resolve_fl_namelist): Remove inhibition of polymorphic objects
772 in namelists if DTIO read and write subroutines exist. Likewise
774 (resolve_types): Invoke 'gfc_verify_dtio_procedures'.
775 * symbol.c : Set 'dtio_procs' using 'minit'.
776 * trans-decl.c (gfc_finish_var_decl): If a derived-type/class
777 object is associated with DTIO procedures, make it TREE_STATIC.
778 * trans-expr.c (gfc_get_vptr_from_expr): If the expression
779 drills down to a PARM_DECL, extract the vptr correctly.
780 (gfc_conv_derived_to_class): Check 'info' in the test for
781 'useflags'. If the se expression exists and is a pointer, use
782 it as the class _data.
783 * trans-io.c : Add IOCALL_X_DERIVED to iocall and the function
784 prototype. Likewise for IOCALL_SET_NML_DTIO_VAL.
785 (set_parameter_tree): Renamed from 'set_parameter_const', now
786 returns void and has new tree argument. Calls modified to match
788 (transfer_namelist_element): Transfer DTIO procedure pointer
789 and vpointer using the new function IOCALL_SET_NML_DTIO_VAL.
790 (get_dtio_proc): New function.
791 (transfer_expr): Add new argument for the vptr field of class
792 objects. Add the code to call the specific DTIO proc, convert
793 derived types to class and call IOCALL_X_DERIVED.
794 (trans_transfer): Add BT_CLASS to structures for treatment by
795 the scalarizer. Obtain the vptr for the dynamic type, both for
796 scalar and array transfer.
798 2016-08-30 Fritz Reese <fritzoreese@gmail.com>
800 * gfortran.texi: Fix typo in STRUCTURE documentation.
802 2016-08-29 Fritz Reese <fritzoreese@gmail.com>
804 Fix, reorganize, and clarify comparisons of anonymous types/components.
807 * interface.c (is_anonymous_component, is_anonymous_dt): New functions.
808 * interface.c (compare_components, gfc_compare_derived_types): Use new
811 2016-08-27 Steven G. Kargl <kargl@gcc.gnu.org>
814 * dependency.c (gfc_check_dependency): Do not assert with
817 2016-08-27 Steven G. Kargl <kargl@gcc.gnu.org>
820 simplify.c (simplify_ieee_selected_real_kind): Check for NULL pointers.
822 2016-08-25 Steven g. Kargl <kargl@gcc.gnu.org>
825 * frontend-passes.c (remove_trim,combine_array_constructor): Check for
828 2016-08-24 Paul Thomas <pault@gcc.gnu.org>
831 * resolve.c (resolve_fl_procedure): Use the correct gfc_charlen
832 for deferred character length module procedures.
834 2016-08-23 Fritz Reese <fritzoreese@gmail.com>
836 * decl.c (gfc_match_structure_decl): Make gfc_structure_id static.
838 2016-08-23 Fritz Reese <fritzoreese@gmail.com>
840 * interface.c (compare_components): Fix typo in name check conditional.
842 2016-08-22 Steven G. Kargl <kargl@gcc.gnu.org>
843 Bud Davis <jmdavis@link.com>
846 * parse.c (next_free,next_fixed): Issue error for statement label
849 2016-08-22 Steven G. Kargl <kargl@gcc.gnu.org>
852 * interface.c (compare_parameter): Use better locus for error message.
854 2016-08-22 Steven G. Kargl <kargl@gcc.gnu.org>
857 * gcc/fortran/trans-decl.c (generate_local_decl): Suppress warning
858 for unused variable if symbol is entry point.
860 2016-08-19 Joseph Myers <joseph@codesourcery.com>
863 * trans-types.h (float128_type_node): Rename to
864 gfc_float128_type_node.
865 (complex_float128_type_node): Rename to
866 gfc_complex_float128_type_node.
867 * iso-c-binding.def, trans-intrinsic.c, trans-types.c: All users
870 2016-08-19 Jakub Jelinek <jakub@redhat.com>
873 * resolve.c (gfc_resolve): For ns->construct_entities don't save, clear
874 and restore omp state around the resolving.
877 * trans-openmp.c (gfc_trans_omp_parallel, gfc_trans_omp_task,
878 gfc_trans_omp_target): Wrap gfc_trans_omp_code result in an extra
879 BIND_EXPR with its own forced BLOCK.
881 2016-08-19 Janne Blomqvist <jb@gcc.gnu.org>
883 * intrinsics.texi (RANDOM_NUMBER): Remove reference to
884 init_random_seed in example.
885 (RANDOM_SEED): Remove warning to not set all seed values to 0.
887 2016-08-18 David Malcolm <dmalcolm@redhat.com>
889 * error.c (gfc_diagnostic_starter): Update for change to
890 diagnostic_show_locus.
892 2016-08-17 Jakub Jelinek <jakub@redhat.com>
895 * trans-array.c (trans_array_constructor): Load
896 expr->ts.u.cl->length_from_typespec only if expr->ts.type is
899 2016-08-15 Fritz Reese <fritzoreese@gmail.com>
901 * lang.opt, invoke.texi: New flag -finit-derived.
902 * gfortran.h (gfc_build_default_init_expr, gfc_apply_init,
903 gfc_generate_initializer): New prototypes.
904 * expr.c (gfc_build_default_init_expr, gfc_apply_init,
905 component_initializer, gfc_generate_initializer): New functions.
906 * expr.c (gfc_default_initializer): Wrap gfc_generate_initializer.
907 * decl.c (build_struct): Move common code to gfc_apply_init.
908 * resolve.c (can_generate_init): New function.
909 * resolve.c (build_default_init_expr): Wrap gfc_build_default_init_expr.
910 * resolve.c (apply_default_init, resolve_fl_variable_derived): Use
911 gfc_generate_initializer.
912 * trans-decl.c (gfc_generate_function_code): Use
913 gfc_generate_initializer.
915 2016-08-15 Thomas Koenig <tkoenig@gcc.gnu.org>
917 * frontend-passes.c (create_var): Set ts.deferred for
918 deferred-length character variables.
919 * dump-parse-tree.c (show_typespec): Also dump
920 is_c_interop, is_iso_c and deferred flags.
922 2016-08-15 Jakub Jelinek <jakub@redhat.com>
925 * trans-decl.c (gfc_get_symbol_decl): Call gfc_finish_var_decl
926 for decl's character length before gfc_finish_var_decl on the
929 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
932 * openmp.c (resolve_omp_clauses): Adjust use_device clause
933 handling to only allow pointers and arrays.
935 2016-08-12 Marek Polacek <polacek@redhat.com>
938 * decl.c (match_attr_spec): Add FALLTHRU.
939 * primary.c (match_arg_list_function): Likewise.
940 * resolve.c (resolve_operator): Adjust fall through comment.
941 (fixup_charlen): Add FALLTHRU.
942 (resolve_allocate_expr): Adjust fall through comment.
943 * trans-array.c (gfc_conv_ss_startstride): Add FALLTHRU.
944 * trans-intrinsic.c (gfc_conv_intrinsic_len): Adjust fall through
947 2016-08-11 Janne Blomqvist <jb@gcc.gnu.org>
949 * check.c (gfc_check_random_seed): Use new seed size in check.
950 * intrinsic.texi (RANDOM_NUMBER): Updated documentation.
951 (RANDOM_SEED): Likewise.
953 2016-08-08 Jakub Jelinek <jakub@redhat.com>
956 * openmp.c (gfc_match_omp_declare_simd): Don't stick anything into
957 BLOCK DATA ns, it will be rejected later.
959 2016-08-08 Andre Vehreschild <vehre@gcc.gnu.org>
962 * trans-array.c (gfc_array_allocate): When SOURCE= is a function
963 stick with the ref of the object to allocate.
965 2016-08-08 Andre Vehreschild <vehre@gcc.gnu.org>
968 * trans-stmt.c (gfc_trans_allocate): Prevent generating code for
969 copy of zero sized string and with it an ICE.
971 2016-08-08 Andre Vehreschild <vehre@gcc.gnu.org>
974 * trans-array.c (gfc_trans_dummy_array_bias): Ensure that the
975 location information is correctly set.
976 * trans-decl.c (gfc_trans_deferred_vars): Set the locus of the
977 current construct early.
979 2016-08-03 Fritz Reese <fritzoreese@gmail.com>
981 * lang.opt: New option -fdec-intrinsic-ints.
982 * options.c (set_dec_flags): Enable with -fdec.
983 * gfortran.texi, invoke.texi, intrinsics.texi: Update documentation.
984 * intrinsic.c (add_function, add_subroutine): New B/I/J/K intrinsic
987 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
990 * target-memory.c (expr_to_char): Pass in locus and use it in error
992 (gfc_merge_initializers): Ditto.
993 * target-memory.h: Update prototype for gfc_merge_initializers ().
994 * trans-common.c (get_init_field): Use the correct locus.
996 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
999 * check.c (gfc_check_reshape): Check for constant expression.
1001 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
1004 * decl.c (build_struct): Ensure that pointers point to something.
1006 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
1009 * decl.c (gfc_set_constant_character_len): if expr is not
1010 constant issue an error instead of an ICE.
1012 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
1015 * io.c (gfc_resolve_dt): Use correct locus.
1016 * resolve.c (resolve_branch): Ditto.
1018 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
1021 * decl.c (char_len_param_value): Check return value of
1022 gfc_reduce_init_expr().
1024 2016-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1026 * trans-array.c (gfc_conv_array_ref): Fix allocation of diagnostic
1027 message (was too small).
1029 2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
1032 * decl.c (match_data_constant): On error, set 'result' to NULL.
1034 2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
1037 * resolve.c(gfc_resolve_iterator): Failure of type conversion need
1040 2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
1043 * check.c(numeric_check): Prevent ICE. Issue error for invalid
1044 subroutine as an actual argument when numeric argument is expected.
1046 2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
1047 Thomas Koenig <tkoenig@gcc.gnu.org>
1050 * frontend-passes.c (gfc_run_passes): Bail out if there are any
1052 * error.c (gfc_internal_error): If there are any errors in the
1053 buffer, exit with EXIT_FAILURE.
1055 2016-07-28 Renlin Li <renlin.li@arm.com>
1058 2016-07-19 Thomas Koenig <tkoenig@gcc.gnu.org>
1061 * dependency.c (gfc_check_dependency): Use dep_ref. Handle case
1062 if identical is true and two array element references differ.
1063 (gfc_dep_resovler): Move most of the code to dep_ref.
1064 (dep_ref): New function.
1065 * frontend-passes.c (realloc_string_callback): Name temporary
1066 variable "realloc_string".
1068 2016-07-26 Steven G. Kargl <kargl@gcc.gnu.org>
1071 * class.c: Remove assert. Iterate over component only if non-null.
1073 2016-07-22 Steven G. Kargl <kargl@gcc.gnu.org>
1076 * check.c (is_c_interoperable): Simplify right expression.
1078 2016-07-22 Thomas Koenig <tkoenig@gcc.gnu.org>
1081 * frontend-passes.c (combine_array_constructor): Don't
1082 do anything if the expression is inside an array iterator.
1084 2016-07-22 Andre Vehreschild <vehre@gcc.gnu.org>
1086 * expr.c (gfc_find_stat_co): Fixed whitespaces.
1087 * gfortran.texi: Fixed typos and reversed meaning of caf_get()'s
1088 src and dst description.
1089 * trans-decl.c (gfc_build_builtin_function_decls): Fixed style
1090 and corrected fnspec for caf functions.
1091 * trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Fixed style.
1092 (conv_caf_send): Dito.
1094 2016-07-19 Thomas Koenig <tkoenig@gcc.gnu.org>
1097 * dependency.c (gfc_check_dependency): Use dep_ref. Handle case
1098 if identical is true and two array element references differ.
1099 (gfc_dep_resovler): Move most of the code to dep_ref.
1100 (dep_ref): New function.
1101 * frontend-passes.c (realloc_string_callback): Name temporary
1102 variable "realloc_string".
1104 2016-07-17 Fritz Reese <fritzoreese@gmail.com>
1107 * trans-decl.c (gfc_finish_var_decl): Replace automatic initializer with
1110 2016-07-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1111 Marco Restelli <mrestelli@gmail.com>
1114 * symbol.c (select_type_insert_tmp): Recursively call self to take care
1115 of nested select type.
1117 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
1119 * openmp.c (gfc_match_omp_clauses): Scan for clause vector_length
1122 2016-07-15 Andre Vehreschild <vehre@gcc.gnu.org>
1125 * trans-expr.c (gfc_trans_subcomponent_assign): Special casing
1126 when allocatable component is set to null() in initializer.
1128 2016-07-14 Steven G. Kargl <kargl@gcc.gnu.org>
1131 * parse.c (parse_contained): Use proper locus.
1133 2016-07-14 Andre Vehreschild <vehre@gcc.gnu.org>
1136 * simplify.c (gfc_simplify_len): Only for unlimited polymorphic
1137 types replace the expression's _data ref with a _len ref.
1139 2016-07-09 Thomas Koenig <tkoenig@gcc.gnu.org>
1142 * frontend-passes.c (create_var): Always allocate a charlen
1143 for character variables.
1145 2016-07-08 Steven G. Kargl <kargl@gcc.gnu.org>
1148 * simplify (gfc_simplify_spread): Adjust locus.
1150 2016-07-08 Cesar Philippidis <cesar@codesourcery.com>
1152 * parse.c (matcha): Define.
1153 (decode_oacc_directive): Add spec_only local var and set it. Use
1154 matcha to parse acc directives except for routine and declare. Return
1155 ST_GET_FCN_CHARACTERISTICS if a non-declarative directive could be
1158 2016-07-08 Martin Liska <mliska@suse.cz>
1160 * invoke.texi (Wundefined-do-loop): Enhance documentation.
1162 2016-07-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1165 * trans-expr.c (gfc_trans_structure_assign): Remove assert.
1167 2016-07-07 Martin Liska <mliska@suse.cz>
1169 * lang.opt (Wundefined-do-loop): New option.
1170 * resolve.c (gfc_resolve_iterator): Warn for Wundefined-do-loop.
1171 (gfc_trans_simple_do): Generate a c-style loop.
1172 (gfc_trans_do): Fix GNU coding style.
1173 * invoke.texi: Mention the new warning.
1175 2016-07-07 Martin Liska <mliska@suse.cz>
1177 * trans-stmt.c (gfc_trans_do): Add expect builtin for DO
1178 loops with step bigger than +-1.
1180 2016-07-05 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
1182 * array.c (gfc_match_array_ref): Add parsing support for
1183 STAT= attribute in CAF reference.
1184 * expr.c (gfc_find_stat_co): New function that returns
1185 the STAT= assignment.
1186 * gfortran.h (gfc_array_ref): New member.
1187 * trans-decl.c (gfc_build_builtin_function_decls):
1188 new attribute for caf_get and caf_send functions.
1189 * trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Passing
1190 the stat attribute to external function.
1191 (gfc_conv_intrinsic_caf_send): Ditto.
1193 2016-07-05 Andre Vehreschild <vehre@gcc.gnu.org>
1196 * trans-stmt.c (gfc_trans_allocate): Add code of pre block of typespec
1197 in allocate to parent block.
1199 2016-07-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1202 * decl.c (match_procedure_interface): Exit loop if procedure
1203 interface refers to itself.
1205 2016-07-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1206 Steven G. Kargl <kargl@gcc.gnu.org>
1209 * simplify.c (gfc_simplify_ishftc): Check that absolute value of
1210 SHIFT is less than or equal to SIZE.
1212 2016-07-01 Jakub Jelinek <jakub@redhat.com>
1215 * f95-lang.c (struct binding_level): Add reversed field.
1216 (clear_binding_level): Adjust initializer.
1217 (getdecls): If reversed is clear, set it and nreverse the names
1218 chain before returning it.
1219 (poplevel): Use getdecls.
1220 * trans-decl.c (gfc_generate_function_code, gfc_process_block_locals):
1221 Use nreverse to pushdecl decls in the declaration order.
1224 * trans-openmp.c (gfc_omp_privatize_by_reference): Return false
1225 for GFC_DECL_ASSOCIATE_VAR_P with POINTER_TYPE.
1227 2016-06-30 Jakub Jelinek <jakub@redhat.com>
1230 * parse.c (matchs, matcho): Move right before decode_omp_directive.
1231 If spec_only, only gfc_match the keyword and if successful, goto
1233 (matchds, matchdo): Define.
1234 (decode_omp_directive): Add spec_only local var and set it.
1235 Use matchds or matchdo macros instead of matchs or matcho
1236 for declare target, declare simd, declare reduction and threadprivate
1237 directives. Return ST_GET_FCN_CHARACTERISTICS if a non-declarative
1238 directive could be matched.
1239 (next_statement): For ST_GET_FCN_CHARACTERISTICS restore
1240 gfc_current_locus from old_locus even if there is no label.
1243 * trans-openmp.c (gfc_trans_omp_clauses): Set TREE_ADDRESSABLE on
1244 decls in to/from clauses.
1246 2016-06-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1249 * scanner.c (gfc_next_char_literal): Only decrement nextc if it
1252 2016-06-29 Cesar Philippidis <cesar@codesourcery.com>
1254 * openmp.c (match_oacc_clause_gang): Rename to ...
1255 (match_oacc_clause_gwv): this. Add support for OpenACC worker and
1257 (gfc_match_omp_clauses): Use match_oacc_clause_gwv for
1258 OMP_CLAUSE_{GANG,WORKER,VECTOR}. Propagate any MATCH_ERRORs for
1259 invalid OMP_CLAUSE_{ASYNC,WAIT,GANG,WORKER,VECTOR} clauses.
1260 (gfc_match_oacc_wait): Propagate MATCH_ERROR for invalid
1261 oacc_expr_lists. Adjust the first and needs_space arguments to
1262 gfc_match_omp_clauses.
1264 2016-06-29 Richard Biener <rguenther@suse.de>
1267 * f95-lang.c (LANG_HOOKS_GET_ALIAS_SET): Remove (un-)define.
1268 (gfc_get_alias_set): Remove.
1270 2016-06-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1273 * module.c (create_intrinsic_function): Check for NULL values and
1274 return after giving error.
1276 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
1278 * trans-types.c (gfc_build_complex_type): Move setting complex
1279 MODE to layout_type, instead of setting it ahead of time by the
1282 2016-06-21 Tobias Burnus <burnus@net-b.de>
1285 * resolve.c (resolve_function): Don't resolve caf_get/caf_send.
1286 (check_data_variable): Strip-off caf_get before checking.
1288 2016-06-20 Tobias Burnus <burnus@net-b.de>
1291 * trans-expr.c (gfc_trans_pointer_assignment): Correctly handle
1292 RHS pointer functions.
1294 2016-06-19 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1296 * class.c (gfc_add_class_array_ref): Call gfc_add_data_component()
1297 instead of gfc_add_component_ref().
1298 (gfc_get_len_component): Call gfc_add_len_component() instead of
1299 gfc_add_component_ref().
1300 * trans-intrinsic.c (gfc_conv_intrinsic_loc): Call
1301 gfc_add_data_component() instead of gfc_add_component_ref().
1302 * trans.c (gfc_add_finalizer_call): Call
1303 gfc_add_final_component() and gfc_add_size_component() instead
1304 of gfc_add_component_ref.
1306 2016-06-18 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1308 * trans-types.c (gfc_typenode_for_spec): Commentary typo fix.
1310 2016-06-17 Cesar Philippidis <cesar@codesourcery.com>
1312 * openmp.c (match_acc): New generic function to parse OpenACC
1314 (gfc_match_oacc_parallel_loop): Use it.
1315 (gfc_match_oacc_parallel): Likewise.
1316 (gfc_match_oacc_kernels_loop): Likewise.
1317 (gfc_match_oacc_kernels): Likewise.
1318 (gfc_match_oacc_data): Likewise.
1319 (gfc_match_oacc_host_data): Likewise.
1320 (gfc_match_oacc_loop): Likewise.
1321 (gfc_match_oacc_enter_data): Likewise.
1322 (gfc_match_oacc_exit_data): Likewise.
1324 2016-06-16 Martin Liska <mliska@suse.cz>
1326 * trans-stmt.c (gfc_trans_simple_do): Predict the edge.
1328 2016-06-16 Martin Liska <mliska@suse.cz>
1330 * trans-array.c (gfc_array_allocate): Do not generate expect
1332 * trans.c (gfc_allocate_using_malloc): Properly set FAIL_ALLOC
1333 predictor for malloc return value.
1334 (gfc_allocate_allocatable): Use REALLOC predictor instead of
1336 (gfc_deallocate_with_status): Likewise.
1338 2016-06-13 Paul Thomas <pault@gcc.gnu.org>
1341 * frontend-passes.c (realloc_string_callback): Add a call to
1342 gfc_dep_compare_expr.
1344 2016-06-11 Dominique d'Humieres <dominiq@lps.ens.fr>
1347 * io.c (gfc_resolve_dt): Replace GFC_STD_GNU with GFC_STD_LEGACY.
1349 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
1352 * openmp.c (gfc_match_oacc_cache): Add comment.
1354 2016-06-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1357 * io.c (match_io): For READ, commit in pending symbols in the
1358 current statement before trying to match an expression so that
1359 if the match fails and we undo symbols we dont toss good symbols.
1361 2016-06-05 Andre Vehreschild <vehre@gcc.gnu.org>
1364 * trans-array.c (gfc_trans_dummy_array_bias): For class arrays use
1365 the address of the _data component to reference the arrays data
1368 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
1370 * trans-openmp.c (gfc_trans_omp_reduction_list): Add mark_addressable
1371 bool parameter, set reduction clause DECLs as addressable when true.
1372 (gfc_trans_omp_clauses): Pass clauses->async to
1373 gfc_trans_omp_reduction_list, add comment describing OpenACC situation.
1375 2016-06-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1378 * io.c (match_io): For READ, try to match a default character
1379 expression. If found, set the dt format expression to this,
1380 otherwise go back and try control list.
1382 2016-06-01 Paul Thomas <pault@gcc.gnu.org>
1385 * decl.c (copy_prefix): Add checks that the module procedure
1386 declaration prefixes are compliant with the interface. Invert
1387 order of existing elemental and pure checks.
1388 * resolve.c (resolve_fl_procedure): Invert order of elemental
1391 2016-06-01 Jakub Jelinek <jakub@redhat.com>
1393 * parse.c (case_decl): Move ST_OMP_* to ...
1394 (case_omp_decl): ... here, new macro.
1395 (verify_st_order): For case_omp_decl, complain about
1396 p->state >= ORDER_EXEC, but don't change p->state otherwise.
1398 2016-05-26 Jakub Jelinek <jakub@redhat.com>
1400 * openmp.c (resolve_omp_clauses): Warn if chunk_size is known not to
1403 2016-05-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1406 * scanner.c (gfc_next_char_literal): Clear end_flag when adjusting
1407 current locus back to old_locus.
1409 2016-05-20 Jakub Jelinek <jakub@redhat.com>
1412 * frontend-passes.c (realloc_string_callback): Clear inserted_block
1413 and changed_statement before calling create_var.
1415 2016-05-15 Harald Anlauf <anlauf@gmx.de>
1418 * interface.c (compare_parameter): Check for non-NULL pointer.
1420 2016-05-14 Fritz Reese <fritzoreese@gmail.com>
1422 * gfortran.texi: Update example of DEC UNION extension.
1424 2016-05-14 Fritz Reese <fritzoreese@gmail.com>
1427 * expr.c (gfc_default_initializer): Avoid extra component refs in
1428 constructors for derived types and classes.
1430 2016-05-11 Jakub Jelinek <jakub@redhat.com>
1433 * frontend-passes.c (inline_matmul_assign): Disable in !$omp workshare.
1435 2016-05-09 Richard Biener <rguenther@suse.de>
1438 * trans-decl.c: Include gimplify.h for unshare_expr.
1439 (gfc_trans_vla_one_sizepos): Unshare exprs before inserting
1442 2016-05-07 Fritz Reese <fritzoreese@gmail.com>
1445 * module.c (dt_upper_string): Rename to gfc_dt_upper_string
1446 (dt_lower_string): Likewise.
1447 * gfortran.h: Make new gfc_dt_upper/lower_string global.
1448 * class.c: Use gfc_dt_upper_string.
1450 * symbol.c: Likewise.
1451 * resolve.c (resolve_component): New function.
1452 (resolve_fl_derived0): Move component loop code to resolve_component.
1453 * parse.c (check_component): New function.
1454 (parse_derived): Move loop code to check_component.
1455 * lang.opt, invoke.texi, options.c : New option -fdec-structure.
1456 * libgfortran.h (bt): New basic type BT_UNION.
1457 * gfortran.h (gfc_option): New option -fdec-structure.
1458 (gfc_get_union_type, gfc_compare_union_types): New prototypes.
1459 (gfc_bt_struct, gfc_fl_struct, case_bt_struct, case_fl_struct): New
1461 (gfc_find_component): Change prototype.
1462 * match.h (gfc_match_member_sep, gfc_match_map, gfc_match_union,
1463 gfc_match_structure_decl): New prototypes.
1464 * parse.h (gfc_comp_struct): New macro.
1465 * symbol.c (gfc_find_component): Search for components in nested unions
1466 * class.c (insert_component_ref, gfc_add_component_ref, add_proc_comp,
1467 copy_vtab_proc_comps): Update calls to gfc_find_component.
1468 * primary.c (gfc_convert_to_structure_constructor): Likewise.
1469 * symbol.c (gfc_add_component): Likewise.
1470 * resolve.c (resolve_typebound_function, resolve_typebound_subroutine,
1471 resolve_typebound_procedure, resolve_component, resolve_fl_derived):
1473 * expr.c (get_union_init, component_init): New functions.
1474 * decl.c (match_clist_expr, match_record_decl, get_struct_decl,
1475 gfc_match_map, gfc_match_union, gfc_match_structure_decl): Likewise.
1476 * interface.c (compare_components, gfc_compare_union_types): Likewise.
1477 * match.c (gfc_match_member_sep): Likewise.
1478 * parse.c (check_component, parse_union, parse_struct_map): Likewise.
1479 * resolve.c (resolve_fl_struct): Likewise.
1480 * symbol.c (find_union_component): Likewise.
1481 * trans-types.c (gfc_get_union_type): Likewise.
1482 * parse.c (parse_derived): Use new functions.
1483 * interface.c (gfc_compare_derived_types, gfc_compare_types): Likewise.
1484 * expr.c (gfc_default_initializer): Likewise.
1485 * gfortran.texi: Support for DEC structures, unions, and maps.
1486 * gfortran.h (gfc_statement, sym_flavor): Likewise.
1487 * check.c (gfc_check_kill_sub): Likewise.
1488 * expr.c (gfc_copy_expr, simplify_const_ref,
1489 gfc_has_default_initializer): Likewise.
1490 * decl.c (build_sym, match_data_constant, add_init_expr_to_sym,
1491 match_pointer_init, build_struct, variable_decl,
1492 gfc_match_decl_type_spec, gfc_mach_data-decl, gfc_match_entry,
1493 gfc_match_end, gfc_match_derived_decl): Likewise.
1494 * interface.c (check_interface0, check_interface1,
1495 gfc_search_interface): Likewise.
1496 * misc.c (gfc_basic_typename, gfc_typename): Likewise.
1497 * module.c (add_true_name, build_tnt, bt_types, mio_typespec,
1498 fix_mio_expr, load_needed, mio_symbol, read_module, write_symbol,
1499 gfc_get_module_backend_decl): Likewise.
1500 * parse.h (gfc_compile_state): Likewise.
1501 * parse.c (decode_specification_statement, decode_statement,
1502 gfc_ascii_statement, verify_st_order, parse_spec): Likewise.
1503 * primary.c (gfc_match_varspec, gfc_match_structure_constructor,
1504 gfc_match_rvalue, match_variable): Likewise.
1505 * resolve.c (find_arglists, resolve_structure_cons,
1506 is_illegal_recursion, resolve_generic_f, get_declared_from_expr,
1507 resolve_typebound_subroutine, resolve_allocate_expr,
1508 nonscalar_typebound_assign, generate_component_assignments,
1509 resolve_fl_variable_derived, check_defined_assignments,
1510 resolve_component, resolve_symbol, resolve_equivalence_derived):
1512 * symbol.c (flavors, check_conflict, gfc_add_flavor, gfc_use_derived,
1513 gfc_restore_last_undo_checkpoint, gfc_type_compatible,
1514 gfc_find_dt_in_generic): Likewise.
1515 * trans-decl.c (gfc_get_module_backend_decl, create_function_arglist,
1516 gfc_create_module_variable, check_constant_initializer): Likewise.
1517 * trans-expr.c (gfc_conv_component_ref, gfc_conv_initializer,
1518 gfc_trans_alloc_subarray_assign, gfc_trans_subcomponent_assign,
1519 gfc_conv_structure, gfc_trans_scalar_assign, copyable_array_p):
1521 * trans-io.c (transfer_namelist_element, transfer_expr,
1522 gfc_trans_transfer): Likewise.
1523 * trans-stmt.c (gfc_trans_deallocate): Likewise.
1524 * trans-types.c (gfc_typenode_for_spec, gfc_copy_dt_decls_ifequal,
1525 gfc_get_derived_type): Likewise.
1527 2016-05-05 Jakub Jelinek <jakub@redhat.com>
1529 * openmp.c (gfc_match_omp_clauses): Restructuralize, so that clause
1530 parsing is done in a big switch based on gfc_peek_ascii_char and
1531 individual clauses under their first letters are sorted too.
1533 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1535 * trans-types.c (gfc_build_complex_type):
1537 2016-05-02 Richard Biener <rguenther@suse.de>
1539 * trans-array.c (gfc_trans_create_temp_array): Properly
1540 create a DECL_EXPR for the anonymous VLA array type.
1542 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
1545 * trans-openmp.c (gfc_trans_oacc_combined_directive): Duplicate
1546 the reduction clause in both parallel and loop directives.
1548 2016-04-18 Michael Matz <matz@suse.de>
1550 * trans-io.c (gfc_build_io_library_fndecls): Use SET_TYPE_ALIGN.
1551 * trans-common.c (build_common_decl): Use SET_DECL_ALIGN.
1552 * trans-types.c (gfc_add_field_to_struct): Use SET_DECL_ALIGN.
1554 2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr>
1557 * intrinsic.texi: Correct the documentation of pseudorandom
1560 2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr>
1563 * gfortran.texi: Document OPEN( ... NAME=) as not implemented
1566 2016-04-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1569 * array.c (match_array_element_spec): Add check for non-integer.
1570 * simplify.c (gfc_simplify_reshape): If source shape is NULL return.
1572 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
1575 * openmp.c (gfc_find_omp_udr): Add explicit braces to resolve a
1576 future -Wparentheses warning.
1578 2016-04-04 Andre Vehreschild <vehre@gcc.gnu.org>
1581 * resolve.c (resolve_allocate_expr): Emit error message when no
1582 array spec and no array valued source= expression is given in an
1583 F2008 allocate() for an array to allocate.
1585 2016-04-04 Andre Vehreschild <vehre@gcc.gnu.org>
1588 * trans-array.c (gfc_array_allocate): When the array is a coarray,
1589 do not nullyfing its allocatable components in array_allocate, because
1590 the nullify missed the array ref and nullifies the wrong component.
1593 2016-03-29 Andre Vehreschild <vehre@gcc.gnu.org>
1596 * trans-expr.c (gfc_class_len_or_zero_get): Add function to return a
1597 constant zero tree, when the class to get the _len component from is
1598 not unlimited polymorphic.
1599 (gfc_copy_class_to_class): Use the new function.
1600 * trans.h: Added interface of new function gfc_class_len_or_zero_get.
1602 2016-03-28 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
1604 * trans-decl.c (gfc_build_builtin_function_decls):
1605 caf_stop_numeric and caf_stop_str definition.
1606 * trans-stmt.c (gfc_trans_stop): invoke external functions
1607 for stop and stop_str when coarrays are used.
1608 * trans.h: extern for new functions.
1610 2016-03-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1613 * scanner.c (load_file): Update to use S_ISREG macro.
1615 2016-03-17 Thomas Schwinge <thomas@codesourcery.com>
1617 * gfortran.h (enum gfc_omp_map_op): Rename OMP_MAP_FORCE_DEALLOC
1618 to OMP_MAP_DELETE. Adjust all users.
1620 2016-03-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1621 Jim MacArthur <jim.macarthur@codethink.co.uk>
1624 * scanner.c (load_file): Check that included file is regular.
1626 2016-03-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1627 Harold Anlauf <anlauf@gmx.de>
1630 * invoke.texi: Explain use of the 'no-' construct within the
1632 * options.c (gfc_handle_runtime_check_option): Enable use of
1633 'no-' prefix for the various options with -fcheck= to allow
1634 negating previously enabled check options.
1636 2016-03-12 Paul Thomas <pault@gcc.gnu.org>
1639 * decl.c (gfc_match_prefix): Treat the 'module' prefix in the
1640 same way as the others, rather than fixing it to come last.
1641 (gfc_match_function_decl, gfc_match_subroutine): After errors
1642 in 'copy_prefix', emit them immediately in the case of module
1643 procedures to prevent a later ICE.
1646 * decl.c (gfc_match_submod_proc): Permit 'module procedure'
1647 declarations within the contains section of modules as well as
1649 * resolve.c (resolve_fl_procedure): Likewise.
1650 *trans-decl.c (build_function_decl): Change the gcc_assert to
1651 allow all forms of module procedure declarations within module
1654 2016-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
1658 * frontend-passes.c (realloc_string_callback): Don't set
1661 2016-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
1663 * dump-parse-tree.c (show_code_node): Print association
1664 list of a block if present. Handle EXEC_END_BLOCK.
1666 2016-02-28 Harald Anlauf <anlauf@gmx.de>
1667 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1670 * match.c (gfc_match_iterator): Add diagnostic for array variable
1673 2016-02-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1674 Steven G. Kargl <kargl@gcc.gnu.org>
1677 * io.c (gfc_match_open): Check that open status is an expression
1678 constant before comparing string to 'scratch' with NEWUNIT.
1680 2016-02-27 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
1682 * trans.c (gfc_allocate_allocatable): size conversion
1683 from byte to number of elements for event variables.
1684 * trans-types.c (gfc_get_derived_type): event variables
1685 represented as a pointer (like lock variable).
1687 2016-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1690 * scanner.c (add_path_to_list): If include path is not a directory,
1691 issue a fatal error.
1693 2016-02-23 Andre Vehreschild <vehre@gcc.gnu.org>
1696 * trans-array.c (gfc_array_allocate): Take the attributes from the
1697 expression to allocate and not from the source=-expression.
1699 2016-02-20 Paul Thomas <pault@gcc.gnu.org>
1702 * trans-decl.c (create_function_arglist): Deferred character
1703 length functions, with and without declared results, address
1704 the passed reference type as '.result' and the local string
1705 length as '..result'.
1706 (gfc_null_and_pass_deferred_len): Helper function to null and
1707 return deferred string lengths, as needed.
1708 (gfc_trans_deferred_vars): Call it, thereby reducing repeated
1709 code, add call for deferred arrays and reroute pointer function
1710 results. Avoid using 'tmp' for anything other that a temporary
1711 tree by introducing 'type_of_array' for the arrayspec type.
1713 2015-02-16 Thomas Koenig <tkoenig@gcc.gnu.org>
1716 * frontend-passes.c (cfe-expr_0): Don't register functions
1717 from within an ASSOCIATE statement.
1719 2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
1722 * decl.c (build_sym): If the name has already been defined as a
1723 type, it has a symtree with an upper case letter at the beginning.
1724 If such a symtree exists, issue an error and exit. Don't do
1725 this if there is no corresponding upper case letter.
1727 2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
1731 * decl.c (build_sym): Reverted previous patch.
1733 2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
1736 * decl.c (build_sym): If the name has already been defined as a
1737 type, issue error and return false.
1739 2016-02-12 David Malcolm <dmalcolm@redhat.com>
1742 * error.c (gfc_diagnostic_start_span): New function.
1743 (gfc_diagnostics_init): Initialize global_dc's start_span.
1745 2016-02-11 Andre Vehreschild <vehre@gcc.gnu.org>
1748 * gfortran.h: Added flag to gfc_association_list indicating that
1749 the rank of an associate variable has been guessed only.
1750 * parse.c (parse_associate): Set the guess flag mentioned above
1751 when guessing the rank of an expression.
1752 * resolve.c (resolve_assoc_var): When the rank has been guessed,
1753 make sure, that the guess was correct else overwrite with the actual
1755 * trans-stmt.c (trans_associate_var): For subref_array_pointers in
1756 class objects, take the span from the _data component.
1758 2016-02-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1761 * primary.c (match_actual_arg): If symbol has attribute flavor of
1762 namelist, generate an error. (gfc_match_rvalue): Likewise return
1764 * resolve.c (resolve_symbol): Scan arument list of procedures and
1765 generate an error if a namelist is found.
1767 2016-02-05 Mikael Morin <mikael@gcc.gnu.org>
1770 * trans-expr.c (expr_is_variable, gfc_expr_is_variable): Rename
1771 the former to the latter and make it non-static. Update callers.
1772 * gfortran.h (gfc_expr_is_variable): New declaration.
1773 (struct gfc_ss_info): Add field needs_temporary.
1774 * trans-array.c (gfc_scalar_elemental_arg_saved_as_argument):
1775 Tighten the condition on aggregate expressions with a check
1776 that the expression is a variable and doesn't need a temporary.
1777 (gfc_conv_resolve_dependency): Add intermediary reference variable.
1778 Set the needs_temporary field.
1780 2016-02-03 Andre Vehreschild <vehre@gcc.gnu.org>
1784 * trans-expr.c (gfc_copy_class_to_class): For coarrays just the
1785 pointer is passed. Take it as is without trying to deref the
1787 * trans-stmt.c (gfc_trans_allocate): Take care of coarrays as
1788 argument to source=-expression.
1790 2016-02-02 Nathan Sidwell <nathan@codesourcery.com>
1792 * lang.opt (fopenacc-dim=): New option.
1794 2016-01-31 Paul Thomas <pault@gcc.gnu.org>
1797 * trans-expr.c (gfc_conv_procedure_call): For the vtable copy
1798 subroutines, add a string length argument, when the actual
1799 argument is an unlimited polymorphic class object.
1801 2016-01-30 Paul Thomas <pault@gcc.gnu.org>
1804 * trans-expr.c (gfc_conv_procedure_call): Correct expression
1805 for 'ulim_copy', which was missing a test for 'comp'.
1807 2016-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
1810 * decl.c (gfc_match_end): Only unnest and remove BLOCK namespaces
1811 when the END encountered does not match a BLOCK's end.
1813 2016-01-27 Janus Weil <janus@gcc.gnu.org>
1816 * invoke.texi: Fix documentation of -Wall with respect to -Wtabs.
1818 2016-01-27 Paul Thomas <pault@gcc.gnu.org>
1821 * trans-expr.c (is_scalar_reallocatable_lhs): Remove the check
1822 for allocatable components, whilst checking if the symbol is a
1823 derived or class entity..
1825 2016-01-26 Paul Thomas <pault@gcc.gnu.org>
1828 * trans-expr.c (gfc_trans_assignment_1): Exclude initialization
1829 assignments from check on assignment of scalars to unassigned
1830 arrays and correct wrong code within the corresponding block.
1832 2016-01-26 David Malcolm <dmalcolm@redhat.com>
1835 * error.c (gfc_diagnostic_starter): Delete use of pp_newline.
1837 2016-01-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1841 * interface.c (gfc_arglist_matches_symbol): Replace assert with
1842 a return false if not a procedure.
1843 * resolve.c (resolve_generic_f): Test if we are resolving an
1844 initialization expression and adjust error message accordingly.
1846 2016-01-24 Thomas Koenig <tkoenig@gcc.gnu.org>
1849 * frontend-passes.c (matmul_lhs_realloc): Add
1850 forgotten break statement.
1852 2016-01-24 Dominique d'Humieres <dominiq@lps.ens.fr>
1855 * primary.c (gfc_variable_attr): revert revision r221955,
1856 call gfc_internal_error only if there is no error.
1858 2016-01-24 Thomas Koenig <tkoenig@gcc.gnu.org>
1861 * frontend-passes.c (enum matrix_case): Add case A2B2T for
1862 MATMUL(A,TRANSPoSE(B)) where A and B are rank 2.
1863 (inline_limit_check): Also add A2B2T.
1864 (matmul_lhs_realloc): Handle A2B2T.
1865 (check_conjg_variable): Rename to
1866 (check_conjg_transpose_variable): and also count TRANSPOSE.
1867 (inline_matmul_assign): Handle A2B2T.
1869 2016-01-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1872 * error.c (gfc_error): Save the state of abort_on_error and set
1873 it to false for buffered errors to allow normal processing.
1874 Restore the state before leaving.
1876 2016-01-19 Martin Jambor <mjambor@suse.cz>
1878 * types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
1879 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
1880 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
1882 2016-01-15 Paul Thomas <pault@gcc.gnu.org>
1885 * resolve.c (check_uop_procedure): Prevent deferred length
1886 characters from being trapped by assumed length error.
1894 * trans-array.c (gfc_conv_scalarized_array_ref): Pass decl for
1895 function as well as variable expressions.
1896 (gfc_array_init_size): Add 'expr' as an argument. Use this to
1897 correctly set the descriptor dtype for deferred characters.
1898 (gfc_array_allocate): Add 'expr' to the call to
1899 'gfc_array_init_size'.
1900 * trans.c (gfc_build_array_ref): Expand logic for setting span
1901 to include indirect references to character lengths.
1902 * trans-decl.c (gfc_get_symbol_decl): Ensure that deferred
1903 result char lengths that are PARM_DECLs are indirectly
1904 referenced both for directly passed and by reference.
1905 (create_function_arglist): If the length type is a pointer type
1906 then store the length as the 'passed_length' and make the char
1907 length an indirect reference to it.
1908 (gfc_trans_deferred_vars): If a character length has escaped
1909 being set as an indirect reference, return it via the 'passed
1911 * trans-expr.c (gfc_conv_procedure_call): The length of
1912 deferred character length results is set TREE_STATIC and set to
1914 (gfc_trans_assignment_1): Do not fix the rse string_length if
1915 it is a variable, a parameter or an indirect reference. Add the
1916 code to trap assignment of scalars to unallocated arrays.
1917 * trans-stmt.c (gfc_trans_allocate): Remove 'def_str_len' and
1918 all references to it. Instead, replicate the code to obtain a
1919 explicitly defined string length and provide a value before
1920 array allocation so that the dtype is correctly set.
1921 trans-types.c (gfc_get_character_type): If the character length
1922 is a pointer, use the indirect reference.
1924 2016-01-10 Thomas Koenig <tkoenig@gcc.gnu.org>
1927 * frontend-passes.c (in_where): New variable.
1928 (inline_matmul_assign): Don't try this if we are within
1930 (gfc_code_walker): Keep track of in_where.
1932 2016-01-10 Paul Thomas <pault@gcc.gnu.org>
1935 * trans_array.c (gfc_conv_scalarized_array_ref): Add missing
1936 se->use_offset from condition for calculation of 'base'.
1938 2016-01-08 Jakub Jelinek <jakub@redhat.com>
1941 * trans.h (OMPWS_SCALARIZER_BODY): Define.
1942 (OMPWS_NOWAIT): Renumber.
1943 * trans-stmt.c (gfc_trans_where_3): Only set OMPWS_SCALARIZER_WS
1944 if OMPWS_SCALARIZER_BODY is not set already, and set also
1945 OMPWS_SCALARIZER_BODY until the final loop creation.
1946 * trans-expr.c (gfc_trans_assignment_1): Likewise.
1947 * trans-openmp.c (gfc_trans_omp_workshare): Also clear
1948 OMPWS_SCALARIZER_BODY.
1949 * trans-array.c (gfc_trans_scalarized_loop_end): Don't create
1950 OMP_FOR if OMPWS_SCALARIZER_BODY is set.
1952 2016-01-04 Jakub Jelinek <jakub@redhat.com>
1954 Update copyright years.
1956 * gfortranspec.c (lang_specific_driver): Update copyright notice
1958 * gfc-internals.texi: Bump @copying's copyright year.
1959 * gfortran.texi: Ditto.
1960 * intrinsic.texi: Ditto.
1961 * invoke.texi: Ditto.
1963 2016-01-01 Paul Thomas <pault@gcc.gnu.org>
1966 * trans-array.c (evaluate_bound): If deferred, test that 'desc'
1967 is an array descriptor before using gfc_conv_descriptor_xxx.
1969 Copyright (C) 2016 Free Software Foundation, Inc.
1971 Copying and distribution of this file, with or without modification,
1972 are permitted in any medium without royalty provided the copyright
1973 notice and this notice are preserved.