1 2016-11-05 Paul Thomas <pault@gcc.gnu.org>
4 * trans-expr.c (gfc_conv_class_to_class): Return _len component
5 of unlimited polymorphic entities.
7 2016-11-04 Paul Thomas <pault@gcc.gnu.org>
10 * primary.c (gfc_match_varspec): If selector expression is
11 unambiguously an array, make sure that the associate name
12 is an array and has an array spec. Modify the original
13 condition for doing this to exclude character types.
15 2016-11-03 Fritz Reese <fritzoreese@gmail.com>
17 * gfortran.texi: Document.
18 * gfortran.h (gfc_dt): New field default_exp.
19 * primary.c (match_real_constant): Default exponent with -fdec.
20 * io.c (match_io): Set dt.default_exp with -fdec.
21 * ioparm.def (IOPARM_dt_default_exp): New.
22 * trans-io.c (build_dt): Set IOPARM_dt_default_exp with -fdec.
24 2016-11-03 Fritz O. Reese <fritzoreese@gmail.com>
26 * decl.c (gfc_match_parameter): Allow omitted '()' with -std=legacy.
27 * parse.c (decode_statement): Match "parameter" before assignments.
28 * gfortran.texi: Document.
30 2016-11-02 Fritz O. Reese <fritzoreese@gmail.com>
32 * lang.opt, invoke.texi: New argument -Wargument-mismatch.
33 * interface.c (compare_parameter, compare_actual_formal,
34 gfc_check_typebound_override, argument_rank_mismatch): Control argument
35 mismatch warnings with -Wargument-mismatch.
36 * resolve.c (resolve_structure_cons, resolve_global_procedure): Ditto.
38 2016-11-02 Fritz Reese <fritzoreese@gmail.com>
40 * gfortran.h (gfc_error): New declaration for gfc_error with 'opt'.
41 * error.c (gfc_error): Add optional 'opt' argument.
42 * error.c (gfc_notify_std): Call fully-qualified gfc_error.
44 2016-11-01 Thomas Koenig <tkoenig@gcc.gnu.org>
47 * match.c (match_simple_where): Fill in locus for assigment
48 in simple WHERE statement.
50 2016-11-01 Thomas Koenig <tkoenig@gcc.gnu.org>
53 * match.c (gfc_match_where): Fill in locus for assigment
54 in simple WHERE statement.
56 2016-10-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
59 * io.c (check_format): Adjust checks for FMT_L to treat a zero
60 width as an extension, giving warnings or error as appropriate.
63 2016-10-31 Jakub Jelinek <jakub@redhat.com>
65 * trans-types.c (gfc_get_array_descr_info): For -gdwarf-5 or
66 -gno-strict-dwarf, handle assumed rank arrays the way dwarf2out
69 2016-10-30 Thomas Koenig <tkoenig@gcc.gnu.org>
72 * arith.c (gfc_int2real): Change gfc_warning_now
74 * primary.c (match_complex_constant): If there
75 is no comma, throw away any warning which might have
76 been issued by gfc_int2real.
78 2016-10-28 Steven G. Kargl <kargl@gcc.gnu.org>
81 * symbol.c (gfc_type_compatible): Fix typo.
83 2016-10-27 Jakub Jelinek <jakub@redhat.com>
86 * parse.c (decode_statement): Don't create namespace for possible
87 select type here and destroy it afterwards.
88 (parse_select_type_block): Set gfc_current_ns to new_st.ext.block.ns.
89 (parse_executable, gfc_parse_file): Formatting fixes.
90 * match.c (gfc_match_select_type): Create namespace for select type
91 here, only after matching select type. Formatting fixes. Free that
92 namespace if not returning MATCH_YES, after gfc_undo_symbols,
93 otherwise remember it in new_st.ext.block.ns and switch to parent
96 2016-10-27 Fritz Reese <fritzoreese@gmail.com>
98 * expr.c (generate_union_initializer, get_union_initializer): New.
99 * expr.c (component_initializer): Consider BT_UNION specially.
100 * resolve.c (resolve_structure_cons): Hack for BT_UNION.
101 * trans-expr.c (gfc_trans_subcomponent_assign): Ditto.
102 * trans-expr.c (gfc_conv_union_initializer): New.
103 * trans-expr.c (gfc_conv_structure): Replace UNION handling code with
104 new function gfc_conv_union_initializer.
106 2016-10-26 Steven G. Kargl <kargl@gcc.gnu.org>
109 * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): Fix reference to an
110 array element of type CLASS.
112 2016-10-26 Paul Thomas <pault@gcc.gnu.org>
115 * resolve.c (resolve_typebound_intrinsic_op): For submodules
116 suppress the error and return if the same procedure symbol
117 is added more than once to the interface.
119 2016-10-26 Fritz Reese <fritzoreese@gmail.com>
121 * frontend-passes.c (gfc_code_walker): Add SHARE and CARRIAGECONTROL.
122 * io.c (gfc_free_open, gfc_resolve_open, gfc_match_open): Ditto.
123 * gfortran.h (gfc_open): Add SHARE, CARRIAGECONTROL, and READONLY.
124 * io.c (io_tag, match_open_element): Ditto.
126 * trans-io.c (gfc_trans_open): Ditto.
127 * io.c (match_dec_etag, match_dec_ftag): New functions.
128 * gfortran.texi: Document.
130 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
132 * gfortran.texi: Document.
133 * resolve.c (logical_to_bitwise): New function.
134 * resolve.c (resolve_operator): Wrap operands with logical_to_bitwise.
136 2016-10-25 Andre Vehreschild <vehre@gcc.gnu.org>
139 * class.c (find_intrinsic_vtab): No longer encode the string length
140 into vtype's name and use the char's kind for the size instead of
141 the string_length time the size.
142 * trans-array.c (gfc_conv_ss_descriptor): For deferred length char
143 arrays the dynamically sized type needs to be declared.
144 (build_class_array_ref): Address the i-th array element by multiplying
145 it with the _vptr->_size and the _len to make sure char arrays are
147 * trans-expr.c (gfc_conv_intrinsic_to_class): Made comment more
150 2016-10-25 Cesar Philippidis <cesar@codesourcery.com>
152 * intrinsic.texi (cosd): New mathop.
154 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
156 * match.c (gfc_match_intrinsic_op): Match ".XOR." with -std=legacy.
157 * gfortran.texi: Document.
159 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
161 * primary.c (gfc_match_rvalue): Match %LOC as LOC with -std=legacy.
162 * gfortran.texi: Document.
164 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
166 * decl.c (gfc_match_type): New function.
167 * match.h (gfc_match_type): New function.
168 * match.c (gfc_match_if): Special case for one-line IFs.
169 * gfortran.texi: Update documentation.
170 * parse.c (decode_statement): Invoke gfc_match_type.
172 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
174 * gfortran.texi: Document.
175 * gfortran.h (gfc_is_whitespace): Include form feed ('\f').
177 2016-10-25 Fritz Reese <fritzoreese@gmail.com>
179 * invoke.texi, gfortran.texi: Touch up documentation of -fdec.
180 * gfortran.h (gfc_option): Move flag_dec_structure out of gfc_option.
181 * decl.c (match_record_decl, gfc_match_decl_type_spec,
182 gfc_match_structure_decl): Ditto.
183 * match.c (gfc_match_member_sep): Ditto.
184 * options.c (gfc_handle_option): Ditto.
185 * lang.opt (fdec-structure): Use Fortran Var for flag_dec_structure.
186 * lang.opt (fdec): Use Fortran Var to create flag_dec.
187 * options.c (set_dec_flags): With -fdec enable -fcray-pointer,
188 -fd-lines-as-comments (default), -fdollar-ok, and legacy std flags.
190 2016-10-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
193 * ioparm.def: Reorder dt parameters to match libgfortran.
194 * libgfortran.h: Swap definitions of GFC_INTERNAL_UNIT and
197 2016-10-24 Steven G. Kargl <kargl@gcc.gnu.org>
200 * interface.c (gfc_compare_derived_types): Convert gcc_assert()
201 to a gfc_internal_error() to prevent an ICE.
203 2016-10-24 Jakub Jelinek <jakub@redhat.com>
205 * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Use VAR_P (x)
206 instead of TREE_CODE (x) == VAR_DECL.
207 * trans-expr.c (gfc_class_vptr_get, gfc_class_len_get,
208 gfc_class_len_or_zero_get, gfc_get_vptr_from_expr,
209 gfc_conv_string_length, conv_base_obj_fcn_val,
210 gfc_conv_procedure_call, gfc_trans_assignment_1): Likewise.
211 * trans-openmp.c (gfc_omp_predetermined_sharing,
212 gfc_omp_disregard_value_expr, gfc_omp_private_debug_clause,
213 gfc_trans_omp_atomic, gfc_trans_omp_do): Likewise.
214 * trans-io.c (nml_get_addr_expr): Likewise.
215 * trans-decl.c (gfc_finish_decl, gfc_build_qualified_array,
216 gfc_get_symbol_decl, gfc_get_fake_result_decl,
217 gfc_trans_deferred_vars, gfc_trans_use_stmts,
218 generate_local_decl): Likewise.
219 * trans-array.c (trans_array_constructor, trans_array_bound_check,
220 build_class_array_ref, gfc_array_init_size,
221 gfc_trans_auto_array_allocation, gfc_trans_g77_array,
222 gfc_trans_dummy_array_bias, gfc_alloc_allocatable_for_assignment,
223 gfc_trans_deferred_array): Likewise.
224 * trans.c (gfc_build_array_ref): Likewise. Use
225 VAR_OR_FUNCTION_DECL_P (x) instead of TREE_CODE (x) == VAR_DECL
226 || TREE_CODE (x) == FUNCTION_DECL.
228 2016-10-23 Steven G. Kargl <kargl@gcc.gnu.org>
231 * parse.c (parse_spec): Allow STRUCTURE in BLOCK DATA. Sort
234 2016-10-23 Steven G. Kargl <kargl@gcc.gnu.org>
238 * array.c (gfc_match_array_constructor): Remove checkpointing
239 introduced in r196416 (original fix for PR fortran/54730). Move
240 initialization to top of function.
241 * match.c (gfc_match_type_spec): Special case matching for REAL.
243 2016-10-23 Paul Thomas <pault@gcc.gnu.org>
246 * class.c (gfc_find_derived_vtab): Obtain the gsymbol for the
247 derived type's module. If the gsymbol is present and the top
248 level namespace corresponds to a module, use the gsymbol name
249 space. In the search to see if the vtable exists, try the gsym
251 * dump-parse-tree (show_code_node): Modify select case dump to
252 show select type construct.
253 * resolve.c (build_loc_call): New function.
254 (resolve_select_type): Add check for repeated type is cases.
255 Retain selector expression and use it later instead of expr1.
256 Exclude deferred length TYPE IS cases and emit error message.
257 Store the address for the vtable in the 'low' expression and
258 the hash value in the 'high' expression, for each case. Do not
260 * trans.c(trans_code) : Call gfc_trans_select_type.
261 * trans-stmt.c (gfc_trans_select_type_cases): New function.
262 (gfc_trans_select_type): New function.
263 * trans-stmt.h : Add prototype for gfc_trans_select_type.
265 2016-10-22 Thomas Koenig <tkoenig@gcc.gnu.org>
268 * gfc_compare_functions: Strings with different lengths in
269 argument lists compare unequal.
271 2016-10-22 Andre Vehreschild <vehre@gcc.gnu.org>
278 * primary.c (gfc_expr_attr): For transformational functions on classes
279 get the attrs from the class argument.
280 * resolve.c (resolve_ordinary_assign): Remove error message due to
281 feature implementation. Rewrite POINTER_ASSIGNS to ordinary ones when
282 the right-hand side is scalar class object (with some restrictions).
283 * trans-array.c (trans_array_constructor): Create the temporary from
284 class' inner type, i.e., the derived type.
285 (build_class_array_ref): Add support for class array's storage of the
286 class object or the array descriptor in the decl saved descriptor.
287 (gfc_conv_expr_descriptor): When creating temporaries for class objects
288 add the class object's handle into the decl saved descriptor.
289 (structure_alloc_comps): Use the common way to get the _data component.
290 (gfc_is_reallocatable_lhs): Add notion of allocatable class objects.
291 * trans-expr.c (gfc_find_and_cut_at_last_class_ref): Remove the only ref
292 only when the expression's type is BT_CLASS.
293 (gfc_trans_class_init_assign): Correctly handle class arrays.
294 (gfc_trans_class_assign): Joined into gfc_trans_assignment_1.
295 (gfc_conv_procedure_call): Support for class types as arguments.
296 (trans_get_upoly_len): For unlimited polymorphics retrieve the _len
298 (trans_class_vptr_len_assignment): Catch all ways to assign the _vptr
299 and _len components of a class object correctly.
300 (pointer_assignment_is_proc_pointer): Identify assignments of
302 (gfc_trans_pointer_assignment): Enhance support for class object pointer
304 (gfc_trans_scalar_assign): Removed assert.
305 (trans_class_assignment): Assign to a class object.
306 (gfc_trans_assignment_1): Treat class objects correctly.
307 (gfc_trans_assignment): Propagate flags to trans_assignment_1.
308 * trans-stmt.c (gfc_trans_allocate): Use gfc_trans_assignment now
309 instead of copy_class_to_class.
310 * trans-stmt.h: Function prototype removed.
311 * trans.c (trans_code): Less special casing for class objects.
312 * trans.h: Added flags to gfc_trans_assignment () prototype.
314 2016-10-21 Paul Thomas <pault@gcc.gnu.org>
317 * resolve.c (fixup_array_ref): New function.
318 (resolve_select_type): Gather up the rank and array reference,
319 if any, from the selector. Fix up the 'associate name' and the
320 'associate entities' as necessary.
321 * trans-expr.c (gfc_conv_class_to_class): If the symbol backend
322 decl is a FUNCTION_DECL, use the 'fake_result_decl' instead.
324 2016-10-20 Steven G. Kargl <kargl@gcc.gnu.org>
326 * array.c (gfc_match_array_constructor): Remove set, but unused
329 2016-10-20 Andre Vehreschild <vehre@gcc.gnu.org>
331 * class.c (gfc_build_class_symbol): Set the kind of _len to
332 gfc_charlen_int_kind to catch changes of the charlen kind.
334 2016-10-17 Steven G. Kargl <kargl@gcc.gnu.org>
337 * match.c (gfc_match_stopcode): Fix error reporting for several
338 deficiencies in matching stop-codes.
340 2016-10-17 Paul Thomas <pault@gcc.gnu.org>
344 * resolve.c (resolve_variable): Obtain the typespec for a
345 variable expression, when the variable is a function result
346 that is a procedure pointer.
348 2016-10-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
351 * trans-io.c (transfer_expr): Ignore dtio procedures for inquire
354 2016-10-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
357 * scanner.c (gfc_next_char_literal): If nextc is null do not
358 decrement the pointer and call the diagnostics.
360 2016-10-14 Andre Vehreschild <vehre@gcc.gnu.org>
362 * resolve.c (resolve_symbol): Add unimplemented message for
363 polymorphic types with allocatable/pointer components and coarray=lib.
365 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
367 * trans-intrinsic.c: Include memmodel.h.
369 2016-10-13 Andre Vehreschild <vehre@gcc.gnu.org>
372 * trans-expr.c (gfc_copy_class_to_class): Add generation of
373 runtime array bounds check.
374 * trans-intrinsic.c (gfc_conv_intrinsic_size): Add a crutch to
375 get the descriptor of a function returning a class object.
376 * trans-stmt.c (gfc_trans_allocate): Use the array spec on the
377 array to allocate instead of the array spec from source=.
379 2016-10-12 Andre Vehreschild <vehre@gcc.gnu.org>
381 * trans-expr.c (gfc_find_and_cut_at_last_class_ref): Fixed style.
382 (gfc_trans_class_init_assign): Same.
383 (gfc_conv_procedure_call): Same.
384 (gfc_trans_assignment_1): Same.
385 * trans-stmt.c (gfc_trans_allocate): Same.
387 2016-10-11 Jakub Jelinek <jakub@redhat.com>
389 * iresolve.c (is_trig_resolved, resolve_trig_call): Formatting fixes.
390 * simplify.c (simplify_trig_call, degrees_f, radians_f,
391 gfc_simplify_atrigd, gfc_simplify_cotan): Likewise.
393 2016-10-11 Steven G. Kargl <kargl@gcc.gnu.org>
396 * simplify.c (gfc_simplify_cshift): Check for zero.
398 2016-10-11 Fritz Reese <fritzoreese@gmail.com>
400 * iresolve.c (get_radians, get_degrees): Fix sloppy commit.
401 * simplify.c (degrees_f, radians_f): Ditto.
403 2016-10-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
405 * simplify.c (radians_f): Fix mpfr_mod.
406 * ireolce.c (get_degrees): Declare tmp.
408 2016-10-11 Fritz Reese <fritzoreese@gmail.com>
410 * lang.opt: New flag -fdec-math.
411 * options.c (set_dec_flags): Enable with -fdec.
412 * invoke.texi, gfortran.texi, intrinsic.texi: Update documentation.
413 * intrinsics.c (add_functions, do_simplify): New intrinsics
415 * gfortran.h (gfc_isym_id): New isym GFC_ISYM_COTAN.
416 * gfortran.h (gfc_resolve_atan2d, gfc_resolve_cotan,
417 gfc_resolve_trigd, gfc_resolve_atrigd): New prototypes.
418 * iresolve.c (resolve_trig_call, get_degrees, get_radians,
419 is_trig_resolved, gfc_resolve_cotan, gfc_resolve_trigd,
420 gfc_resolve_atrigd, gfc_resolve_atan2d): New functions.
421 * intrinsics.h (gfc_simplify_atan2d, gfc_simplify_atrigd,
422 gfc_simplify_cotan, gfc_simplify_trigd): New prototypes.
423 * simplify.c (simplify_trig_call, degrees_f, radians_f,
424 gfc_simplify_cotan, gfc_simplify_trigd, gfc_simplify_atrigd,
425 gfc_simplify_atan2d): New functions.
427 2016-10-10 Thomas Koenig <tkoenig@gcc.gnu.org>
430 * frontend-passes.c (inline_matmul_assign): Return early if
431 inside a FORALL statement.
433 2016-10-07 Fritz Reese <fritzoreese@gmail.com>
435 * interface.c (compare_components): Check charlen for BT_CHAR.
437 2016-10-07 Steven G. Kargl <kargl@gcc.gnu.org>
440 * interface.c (gfc_compare_interfaces): Fix detection of ambiguous
441 interface involving alternate return.
442 (check_interface1): Improve error message and loci.
444 2016-10-06 Louis Krupp <louis.krupp@zoho.com>
447 * trans-array.c (gfc_conv_expr_descriptor): Don't allocate
448 components if it's not necessary.
450 2016-10-05 Louis Krupp <louis.krupp@zoho.com>
453 * trans-expr.c (gfc_add_interface_mapping): Don't try to
454 dereference call-by-value scalar argument.
456 2016-10-05 Steven G. Kargl <kargls@gcc.gnu.org>
460 * resolve.c (resolve_assoc_var): Fix CHARACTER type-spec for a
461 selector in ASSOCIATE.
462 (resolve_fl_variable): Skip checks for an ASSOCIATE variable.
464 2016-10-05 Fritz Reese <fritzoreese@gmail.com>
466 * interface.c (gfc_compare_types): Don't compare BT_UNION components
467 until we know they're both UNIONs.
468 * interface.c (gfc_compare_union_types): Guard against empty
471 2016-10-05 Louis Krupp <louis.krupp@zoho.com>
474 * resolve.c (resolve_symbol): Don't apply default type rules to
475 mixed-entry master created for function entry points.
477 2016-09-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
480 * io.c (match_dt_unit): Peek check for missing format.
482 2016-09-30 Fritz Reese <fritzoreese@gmail.com>
485 * interface.c (gfc_compare_union_types): Null-guard map components.
487 2016-09-30 Fritz Reese <fritzoreese@gmail.com>
490 * interface.c (gfc_compare_derived_types): Use gfc_compare_union_types
491 to compare union types.
493 2016-09-30 Andre Vehreschild <vehre@gcc.gnu.org>
495 * trans-array.c (gfc_array_allocate): Use the token from coarray's
497 * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Only generate
498 caf-reference chains from the first coarray references on.
499 * trans-types.c (gfc_get_derived_type): Switch on mandatory .token
500 member generation for allocatable arrays in coarrays in derived types.
502 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
504 * options.c (gfc_post_options): Remove special case for
505 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard.
507 2016-09-27 Jakub Jelinek <jakub@redhat.com>
509 * dependency.c (gfc_dep_compare_expr): Remove break after return.
510 * frontend-passes.c (optimize_op): Likewise.
511 * interface.c (gfc_current_interface_head): Likewise.
512 * symbol.c (check_conflict): Likewise.
513 * trans-intrinsic.c (build_fix_expr): Likewise.
516 * trans-openmp.c (gfc_omp_private_outer_ref): Return true even for
517 references to allocatable arrays.
519 2016-09-26 Steven G. Kargl <kargl@gcc.gnu.org>
522 * trans-common.c: Handle array elements in equivalence when
523 the lower and upper bounds of array spec are NULL.
525 2016-09-26 Paul Thomas <pault@gcc.gnu.org>
528 * interface.c (gfc_find_specific_dtio_proc) : Return NULL if
529 the derived type is broken, as indicated by a flavor other than
532 2016-09-26 Marek Polacek <polacek@redhat.com>
535 * arith.c (eval_intrinsic): Add gcc_fallthrough.
536 * frontend-passes.c (optimize_op): Likewise.
537 (gfc_expr_walker): Likewise.
538 * parse.c (next_fixed): Likewise.
539 * primary.c (match_variable): Likewise.
540 * trans-array.c: Likewise.
541 * trans-expr.c (flatten_array_ctors_without_strlen): Likewise.
542 * trans-io.c (transfer_expr): Likewise.
544 2016-09-25 Steven G. Kargl <kargl@gcc.gnu.org>
547 * dependency.c (gfc_check_dependency): Convert gcc_assert() to
548 a conditional and possible call to gfc_internal_error().
550 2016-09-25 Steven G. Kargl <kargl@gcc.gnu.org>
553 * frontend-passes.c (optimize_binop_array_assignment): Check pointer
556 2016-09-23 Fritz Reese <fritzoreese@gmail.com>
558 * lang.opt, invoke.texi, gfortran.texi: New flag -fdec-static.
559 * options.c (set_dec_flags): Set -fdec-static with -fdec.
560 * gfortran.h (symbol_attribute): New attribute automatic.
561 * gfortran.h (gfc_add_automatic): New prototype.
562 * match.h (gfc_match_automatic, gfc_match_static): New functions.
563 * decl.c (gfc_match_automatic, gfc_match_static): Ditto.
564 * symbol.c (gfc_add_automatic): Ditto.
565 * decl.c (match_attr_spec): Match AUTOMATIC and STATIC decls.
566 * parse.c (decode_specification_statement, decode_statement): Ditto.
567 * resolve.c (apply_default_init_local, resolve_fl_variable_derived,
568 resolve_symbol): Support for automatic attribute.
569 * symbol.c (check_conflict, gfc_copy_attr, gfc_is_var_automatic):
571 * trans-decl.c (gfc_finish_var_decl): Ditto.
573 2016-09-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
576 * gfortran.h (gfc_dt): Add *udtio.
577 * ioparm.def: Add bit IOPARM_dt_f2003 to align with library use of bit
578 25. Add IOPARM_dt_dtio bit to common flags.
579 * resolve.c (resolve_transfer): Set dt->udtio to expression.
580 * io.c (gfc_match_inquire): Adjust error message for internal
582 * libgfortran.h: Adjust defines for GFC_INTERNAL_UNIT4,
583 GFC_INTERNAL_UNIT, and GFC_INVALID_UNIT.
584 * trans-io.c (build_dt): Set common_unit to reflect the KIND of
585 the internal unit. Set mask bit for presence of dt->udtio.
587 2016-09-22 Andre Vehreschild <vehre@gcc.gnu.org>
589 * trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Use the old caf-
590 interface where possible.
592 2016-09-22 Paul Thomas <pault@gcc.gnu.org>
594 * interface.c (check_dtio_interface1): Introduce errors for
595 alternate returns and incorrect numbers of arguments.
596 (gfc_find_specific_dtio_proc): Return cleanly if the derived
597 type either doesn't exist or has no namespace.
599 2016-09-21 Louis Krupp <louis.krupp@zoho.com>
602 * decl.c (add_init_expr_to_sym): Catch variable character length
605 2016-09-21 Paul Thomas <pault@gcc.gnu.org>
609 * interface.c (gfc_find_specific_dtio_proc): Borrow trick from
610 resolve_typebound_generic_call to find dtio procedures that
611 over-ride those in the declared type.
613 2016-09-20 Marek Polacek <polacek@redhat.com>
615 * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Adjust fall through
618 2016-09-19 Andre Vehreschild <vehre@gcc.gnu.org>
621 * expr.c (gfc_check_assign): Added flag to control whether datatype
622 conversion is allowed.
623 * gfortran.h: Added caf-token-tree to gfc_component. Changed
624 prototypes mostly to add whether datatype conversion is allowed.
625 * gfortran.texi: Added documentation for the caf_reference_t and the
626 caf_*_by_ref function.
627 * primary.c (caf_variable_attr): Similar to gfc_variable_attr but
628 focused on the needs of coarrays.
629 (gfc_caf_attr): Same.
630 * resolve.c (resolve_ordinary_assign): Set the conversion allowed
631 flag when not in a coarray.
632 * trans-array.c (gfc_array_init_size): Moved setting of array
633 descriptor's datatype before the alloc, because caf_register needs it.
634 (gfc_array_allocate): Changed notion of whether an array is a coarray.
635 (gfc_array_deallocate): Same.
636 (gfc_alloc_allocatable_for_assignment): Added setting of coarray's
637 array descriptor datatype before the register. And using deregister/
638 register to mimmick a realloc for coarrays.
639 * trans-decl.c (gfc_build_builtin_function_decls): Corrected signatures
640 of old caf-functions and added signature definitions of the _by_ref
642 (generate_coarray_sym_init): Adapted to new caf_register signature.
643 * trans-expr.c (gfc_conv_scalar_to_descriptor): Make sure a constant
644 is translated to an lvalue expression before use in an array
646 (gfc_get_ultimate_alloc_ptr_comps_caf_token): New function. Get the
647 last allocatable component's coarray token.
648 (gfc_get_tree_for_caf_expr): For top-level object get the coarray
649 token and check for unsupported features.
650 (gfc_get_caf_token_offset): Getting the offset might procude new
651 statements, which now are stored in the pre and post of the current se.
652 (gfc_caf_get_image_index): For this image return a call to
654 (expr_may_alias_variables): Check that the result is set for testing
656 (alloc_scalar_allocatable_for_assignment): Added auto allocation of
658 (gfc_trans_assignment_1): Rewrite an assign to a coarray object to
660 * trans-intrinsic.c (conv_caf_vector_subscript_elem): Corrected
662 (compute_component_offset): Compute the correct offset a structure
664 (conv_expr_ref_to_caf_ref): Convert to a chain of refs into
666 (gfc_conv_intrinsic_caf_get): Call caf_get_by_ref instead of caf_get.
667 (conv_caf_send): Call caf_*_by_ref for coarrays that need
669 (gfc_conv_intrinsic_function): Adapted to new signuature of the caf
671 (conv_intrinsic_atomic_op): Add pre and post statements correctly.
672 (conv_intrinsic_atomic_ref): Same.
673 (conv_intrinsic_atomic_cas): Same.
674 (conv_intrinsic_event_query): Same.
675 * trans-stmt.c (gfc_trans_lock_unlock): Same.
676 (gfc_trans_event_post_wait): Same.
677 (gfc_trans_allocate): Support allocation of allocatable coarrays.
678 (gfc_trans_deallocate): And there deallocation.
679 * trans-types.c (gfc_typenode_for_spec): Added flag to control whether
680 a component is part of coarray. When so, then add space to store a
682 (gfc_build_array_type): Same.
683 (gfc_get_array_descriptor_base): Same.
684 (gfc_get_array_type_bounds): Same.
685 (gfc_sym_type): Same.
686 (gfc_get_derived_type): Same.
687 (gfc_get_caf_reference_type): Declare the caf_reference_type.
688 * trans-types.h: Prototype changes only.
689 * trans.c (gfc_allocate_using_lib): Use the updated caf_register
691 (gfc_allocate_allocatable): Same.
692 (gfc_deallocate_with_status): Same.
693 * trans.h: Defined the runtime types for caf_reference_t and the enums.
695 2016-09-19 Fritz Reese <fritzoreese@gmail.com>
698 * decl.c (match_record_decl, gfc_match_decl_type_spec): Fixes to
699 handling of structure/record from declaration-type-spec.
701 2016_09_17 Louis Krupp <louis.krupp@zoho.com>
704 * resolve.c (resolve_allocate_expr): Check that derived type
705 pointer, object or array has been successfully allocated before
708 2016-09-16 Steven G. Kargl <kargl@gcc.gnu.org>
711 * decl.c (char_len_param_value): Check parent namespace for
714 2016-09-15 Louis Krupp <louis.krupp@zoho.com>
717 * parse.c (reject_statement): Clear charlen pointers in implicit
718 character typespecs before those charlen structures are freed.
720 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
722 * simplify.c (gfc_simplify_repeat): Fix a misplaced closing ')'.
724 2016-09-13 Steven G. Kargl <kargl@gcc.gnu.org>
727 * module.c (load_equiv): Revert revision 240063.
729 2016-09-10 Paul Thomas <pault@gcc.gnu.org>
730 Steven G. Kargl <kargl@gcc.gnu.org>
733 * interface.c (check_dtio_arg_TKR_intent): Return after error.
734 (check_dtio_interface1): Remove asserts, test for NULL and return
737 2016-09-09 Steven G. Kargl <kargl@gcc.gnu.org>
740 * module.c (load_equiv): If the current namespace has a list of
741 equivalence statements, initialize duplicate to false and then
742 look for duplicates; otherwise, initialize it to true.
744 2016-09-09 Steven G. Kargl <kargl@gcc.gnu.org>
747 * array.c (gfc_match_array_constructor): CHARACTER(len=*) cannot
748 appear in an array constructor.
750 2016-09-09 Steven G. Kargl <kargl@gcc.gnu.org>
753 * intrinsic.c (add_functions): Use correct keyword.
755 2016-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
758 * array.c (gfc_match_array_constructor): If type-spec is present,
759 walk the array constructor performing possible conversions for
762 2016-09-08 Jakub Jelinek <jakub@redhat.com>
765 * trans-openmp.c (gfc_trans_omp_atomic): For atomic write or
766 swap, don't try to look through GFC_ISYM_CONVERSION. In other cases,
767 check that value.function.isym is non-NULL before dereferencing it.
769 2016-09-04 Steven G. Kargl <kargl@gcc.gnu.org>
772 * resolve.c (deferred_requirements): New function to check F2008:C402.
773 (resolve_fl_variable,resolve_fl_parameter): Use it.
775 2016-09-04 Steven G. Kargl <kargl@gcc.gnu.org>
778 * simplify.c (simplify_transformation_to_scalar): On error, result
779 may be NULL, simply return.
781 2016-08-31 Jakub Jelinek <jakub@redhat.com>
784 * trans-openmp.c (gfc_trans_omp_parallel_workshare): Always add a
785 BIND_EXPR with BLOCK around what gfc_trans_omp_workshare returns.
788 * parse.c (parse_omp_oacc_atomic): Copy over cp->ext.omp_atomic
789 to cp->block->ext.omp_atomic.
790 * resolve.c (gfc_resolve_blocks): Assert block with one or two
791 EXEC_ASSIGNs for EXEC_*_ATOMIC.
792 * openmp.c (resolve_omp_atomic): Don't assert one or two
793 EXEC_ASSIGNs, instead return quietly for EXEC_NOPs and otherwise
794 error unexpected statements.
796 2016-08-31 Paul Thomas <pault@gcc.gnu.org>
797 Jerry DeLisle <jvdelisle@gcc.gnu.org>
800 * decl.c (access_attr_decl): Include case INTERFACE_DTIO as
802 * gfortran.h : Add INTRINSIC_FORMATTED and
803 INTRINSIC_UNFORMATTED to gfc_intrinsic_op. Add INTERFACE_DTIO
804 to interface type. Add new enum 'dtio_codes'. Add bitfield
805 'has_dtio_procs' to symbol_attr. Add prototypes
806 'gfc_check_dtio_interfaces' and 'gfc_find_specific_dtio_proc'.
807 * interface.c (dtio_op): New function.
808 (gfc_match_generic_spec): Match generic DTIO interfaces.
809 (gfc_match_interface): Treat DTIO interfaces in the same way as
810 (gfc_current_interface_head): Add INTERFACE_DTIO appropriately.
811 (check_dtio_arg_TKR_intent): New function.
812 (check_dtio_interface1): New function.
813 (gfc_check_dtio_interfaces): New function.
814 (gfc_find_specific_dtio_proc): New function.
815 * io.c : Add FMT_DT to format_token.
816 (format_lex): Handle DTIO formatting.
817 * match.c (gfc_op2string): Add DTIO operators.
818 * resolve.c (derived_inaccessible): Ignore pointer components
819 to enclosing derived type.
820 (resolve_transfer): Resolve transfers that involve DTIO.
821 procedures. Find the specific subroutine for the transfer and
822 use its existence to over-ride some of the constraints on
823 derived types. If the transfer is recursive, require that the
824 subroutine be so qualified.
825 (dtio_procs_present): New function.
826 (resolve_fl_namelist): Remove inhibition of polymorphic objects
827 in namelists if DTIO read and write subroutines exist. Likewise
829 (resolve_types): Invoke 'gfc_verify_dtio_procedures'.
830 * symbol.c : Set 'dtio_procs' using 'minit'.
831 * trans-decl.c (gfc_finish_var_decl): If a derived-type/class
832 object is associated with DTIO procedures, make it TREE_STATIC.
833 * trans-expr.c (gfc_get_vptr_from_expr): If the expression
834 drills down to a PARM_DECL, extract the vptr correctly.
835 (gfc_conv_derived_to_class): Check 'info' in the test for
836 'useflags'. If the se expression exists and is a pointer, use
837 it as the class _data.
838 * trans-io.c : Add IOCALL_X_DERIVED to iocall and the function
839 prototype. Likewise for IOCALL_SET_NML_DTIO_VAL.
840 (set_parameter_tree): Renamed from 'set_parameter_const', now
841 returns void and has new tree argument. Calls modified to match
843 (transfer_namelist_element): Transfer DTIO procedure pointer
844 and vpointer using the new function IOCALL_SET_NML_DTIO_VAL.
845 (get_dtio_proc): New function.
846 (transfer_expr): Add new argument for the vptr field of class
847 objects. Add the code to call the specific DTIO proc, convert
848 derived types to class and call IOCALL_X_DERIVED.
849 (trans_transfer): Add BT_CLASS to structures for treatment by
850 the scalarizer. Obtain the vptr for the dynamic type, both for
851 scalar and array transfer.
853 2016-08-30 Fritz Reese <fritzoreese@gmail.com>
855 * gfortran.texi: Fix typo in STRUCTURE documentation.
857 2016-08-29 Fritz Reese <fritzoreese@gmail.com>
859 Fix, reorganize, and clarify comparisons of anonymous types/components.
862 * interface.c (is_anonymous_component, is_anonymous_dt): New functions.
863 * interface.c (compare_components, gfc_compare_derived_types): Use new
866 2016-08-27 Steven G. Kargl <kargl@gcc.gnu.org>
869 * dependency.c (gfc_check_dependency): Do not assert with
872 2016-08-27 Steven G. Kargl <kargl@gcc.gnu.org>
875 simplify.c (simplify_ieee_selected_real_kind): Check for NULL pointers.
877 2016-08-25 Steven g. Kargl <kargl@gcc.gnu.org>
880 * frontend-passes.c (remove_trim,combine_array_constructor): Check for
883 2016-08-24 Paul Thomas <pault@gcc.gnu.org>
886 * resolve.c (resolve_fl_procedure): Use the correct gfc_charlen
887 for deferred character length module procedures.
889 2016-08-23 Fritz Reese <fritzoreese@gmail.com>
891 * decl.c (gfc_match_structure_decl): Make gfc_structure_id static.
893 2016-08-23 Fritz Reese <fritzoreese@gmail.com>
895 * interface.c (compare_components): Fix typo in name check conditional.
897 2016-08-22 Steven G. Kargl <kargl@gcc.gnu.org>
898 Bud Davis <jmdavis@link.com>
901 * parse.c (next_free,next_fixed): Issue error for statement label
904 2016-08-22 Steven G. Kargl <kargl@gcc.gnu.org>
907 * interface.c (compare_parameter): Use better locus for error message.
909 2016-08-22 Steven G. Kargl <kargl@gcc.gnu.org>
912 * gcc/fortran/trans-decl.c (generate_local_decl): Suppress warning
913 for unused variable if symbol is entry point.
915 2016-08-19 Joseph Myers <joseph@codesourcery.com>
918 * trans-types.h (float128_type_node): Rename to
919 gfc_float128_type_node.
920 (complex_float128_type_node): Rename to
921 gfc_complex_float128_type_node.
922 * iso-c-binding.def, trans-intrinsic.c, trans-types.c: All users
925 2016-08-19 Jakub Jelinek <jakub@redhat.com>
928 * resolve.c (gfc_resolve): For ns->construct_entities don't save, clear
929 and restore omp state around the resolving.
932 * trans-openmp.c (gfc_trans_omp_parallel, gfc_trans_omp_task,
933 gfc_trans_omp_target): Wrap gfc_trans_omp_code result in an extra
934 BIND_EXPR with its own forced BLOCK.
936 2016-08-19 Janne Blomqvist <jb@gcc.gnu.org>
938 * intrinsics.texi (RANDOM_NUMBER): Remove reference to
939 init_random_seed in example.
940 (RANDOM_SEED): Remove warning to not set all seed values to 0.
942 2016-08-18 David Malcolm <dmalcolm@redhat.com>
944 * error.c (gfc_diagnostic_starter): Update for change to
945 diagnostic_show_locus.
947 2016-08-17 Jakub Jelinek <jakub@redhat.com>
950 * trans-array.c (trans_array_constructor): Load
951 expr->ts.u.cl->length_from_typespec only if expr->ts.type is
954 2016-08-15 Fritz Reese <fritzoreese@gmail.com>
956 * lang.opt, invoke.texi: New flag -finit-derived.
957 * gfortran.h (gfc_build_default_init_expr, gfc_apply_init,
958 gfc_generate_initializer): New prototypes.
959 * expr.c (gfc_build_default_init_expr, gfc_apply_init,
960 component_initializer, gfc_generate_initializer): New functions.
961 * expr.c (gfc_default_initializer): Wrap gfc_generate_initializer.
962 * decl.c (build_struct): Move common code to gfc_apply_init.
963 * resolve.c (can_generate_init): New function.
964 * resolve.c (build_default_init_expr): Wrap gfc_build_default_init_expr.
965 * resolve.c (apply_default_init, resolve_fl_variable_derived): Use
966 gfc_generate_initializer.
967 * trans-decl.c (gfc_generate_function_code): Use
968 gfc_generate_initializer.
970 2016-08-15 Thomas Koenig <tkoenig@gcc.gnu.org>
972 * frontend-passes.c (create_var): Set ts.deferred for
973 deferred-length character variables.
974 * dump-parse-tree.c (show_typespec): Also dump
975 is_c_interop, is_iso_c and deferred flags.
977 2016-08-15 Jakub Jelinek <jakub@redhat.com>
980 * trans-decl.c (gfc_get_symbol_decl): Call gfc_finish_var_decl
981 for decl's character length before gfc_finish_var_decl on the
984 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
987 * openmp.c (resolve_omp_clauses): Adjust use_device clause
988 handling to only allow pointers and arrays.
990 2016-08-12 Marek Polacek <polacek@redhat.com>
993 * decl.c (match_attr_spec): Add FALLTHRU.
994 * primary.c (match_arg_list_function): Likewise.
995 * resolve.c (resolve_operator): Adjust fall through comment.
996 (fixup_charlen): Add FALLTHRU.
997 (resolve_allocate_expr): Adjust fall through comment.
998 * trans-array.c (gfc_conv_ss_startstride): Add FALLTHRU.
999 * trans-intrinsic.c (gfc_conv_intrinsic_len): Adjust fall through
1002 2016-08-11 Janne Blomqvist <jb@gcc.gnu.org>
1004 * check.c (gfc_check_random_seed): Use new seed size in check.
1005 * intrinsic.texi (RANDOM_NUMBER): Updated documentation.
1006 (RANDOM_SEED): Likewise.
1008 2016-08-08 Jakub Jelinek <jakub@redhat.com>
1011 * openmp.c (gfc_match_omp_declare_simd): Don't stick anything into
1012 BLOCK DATA ns, it will be rejected later.
1014 2016-08-08 Andre Vehreschild <vehre@gcc.gnu.org>
1017 * trans-array.c (gfc_array_allocate): When SOURCE= is a function
1018 stick with the ref of the object to allocate.
1020 2016-08-08 Andre Vehreschild <vehre@gcc.gnu.org>
1023 * trans-stmt.c (gfc_trans_allocate): Prevent generating code for
1024 copy of zero sized string and with it an ICE.
1026 2016-08-08 Andre Vehreschild <vehre@gcc.gnu.org>
1029 * trans-array.c (gfc_trans_dummy_array_bias): Ensure that the
1030 location information is correctly set.
1031 * trans-decl.c (gfc_trans_deferred_vars): Set the locus of the
1032 current construct early.
1034 2016-08-03 Fritz Reese <fritzoreese@gmail.com>
1036 * lang.opt: New option -fdec-intrinsic-ints.
1037 * options.c (set_dec_flags): Enable with -fdec.
1038 * gfortran.texi, invoke.texi, intrinsics.texi: Update documentation.
1039 * intrinsic.c (add_function, add_subroutine): New B/I/J/K intrinsic
1042 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
1045 * target-memory.c (expr_to_char): Pass in locus and use it in error
1047 (gfc_merge_initializers): Ditto.
1048 * target-memory.h: Update prototype for gfc_merge_initializers ().
1049 * trans-common.c (get_init_field): Use the correct locus.
1051 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
1054 * check.c (gfc_check_reshape): Check for constant expression.
1056 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
1059 * decl.c (build_struct): Ensure that pointers point to something.
1061 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
1064 * decl.c (gfc_set_constant_character_len): if expr is not
1065 constant issue an error instead of an ICE.
1067 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
1070 * io.c (gfc_resolve_dt): Use correct locus.
1071 * resolve.c (resolve_branch): Ditto.
1073 2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
1076 * decl.c (char_len_param_value): Check return value of
1077 gfc_reduce_init_expr().
1079 2016-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1081 * trans-array.c (gfc_conv_array_ref): Fix allocation of diagnostic
1082 message (was too small).
1084 2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
1087 * decl.c (match_data_constant): On error, set 'result' to NULL.
1089 2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
1092 * resolve.c(gfc_resolve_iterator): Failure of type conversion need
1095 2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
1098 * check.c(numeric_check): Prevent ICE. Issue error for invalid
1099 subroutine as an actual argument when numeric argument is expected.
1101 2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
1102 Thomas Koenig <tkoenig@gcc.gnu.org>
1105 * frontend-passes.c (gfc_run_passes): Bail out if there are any
1107 * error.c (gfc_internal_error): If there are any errors in the
1108 buffer, exit with EXIT_FAILURE.
1110 2016-07-28 Renlin Li <renlin.li@arm.com>
1113 2016-07-19 Thomas Koenig <tkoenig@gcc.gnu.org>
1116 * dependency.c (gfc_check_dependency): Use dep_ref. Handle case
1117 if identical is true and two array element references differ.
1118 (gfc_dep_resovler): Move most of the code to dep_ref.
1119 (dep_ref): New function.
1120 * frontend-passes.c (realloc_string_callback): Name temporary
1121 variable "realloc_string".
1123 2016-07-26 Steven G. Kargl <kargl@gcc.gnu.org>
1126 * class.c: Remove assert. Iterate over component only if non-null.
1128 2016-07-22 Steven G. Kargl <kargl@gcc.gnu.org>
1131 * check.c (is_c_interoperable): Simplify right expression.
1133 2016-07-22 Thomas Koenig <tkoenig@gcc.gnu.org>
1136 * frontend-passes.c (combine_array_constructor): Don't
1137 do anything if the expression is inside an array iterator.
1139 2016-07-22 Andre Vehreschild <vehre@gcc.gnu.org>
1141 * expr.c (gfc_find_stat_co): Fixed whitespaces.
1142 * gfortran.texi: Fixed typos and reversed meaning of caf_get()'s
1143 src and dst description.
1144 * trans-decl.c (gfc_build_builtin_function_decls): Fixed style
1145 and corrected fnspec for caf functions.
1146 * trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Fixed style.
1147 (conv_caf_send): Dito.
1149 2016-07-19 Thomas Koenig <tkoenig@gcc.gnu.org>
1152 * dependency.c (gfc_check_dependency): Use dep_ref. Handle case
1153 if identical is true and two array element references differ.
1154 (gfc_dep_resovler): Move most of the code to dep_ref.
1155 (dep_ref): New function.
1156 * frontend-passes.c (realloc_string_callback): Name temporary
1157 variable "realloc_string".
1159 2016-07-17 Fritz Reese <fritzoreese@gmail.com>
1162 * trans-decl.c (gfc_finish_var_decl): Replace automatic initializer with
1165 2016-07-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1166 Marco Restelli <mrestelli@gmail.com>
1169 * symbol.c (select_type_insert_tmp): Recursively call self to take care
1170 of nested select type.
1172 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
1174 * openmp.c (gfc_match_omp_clauses): Scan for clause vector_length
1177 2016-07-15 Andre Vehreschild <vehre@gcc.gnu.org>
1180 * trans-expr.c (gfc_trans_subcomponent_assign): Special casing
1181 when allocatable component is set to null() in initializer.
1183 2016-07-14 Steven G. Kargl <kargl@gcc.gnu.org>
1186 * parse.c (parse_contained): Use proper locus.
1188 2016-07-14 Andre Vehreschild <vehre@gcc.gnu.org>
1191 * simplify.c (gfc_simplify_len): Only for unlimited polymorphic
1192 types replace the expression's _data ref with a _len ref.
1194 2016-07-09 Thomas Koenig <tkoenig@gcc.gnu.org>
1197 * frontend-passes.c (create_var): Always allocate a charlen
1198 for character variables.
1200 2016-07-08 Steven G. Kargl <kargl@gcc.gnu.org>
1203 * simplify (gfc_simplify_spread): Adjust locus.
1205 2016-07-08 Cesar Philippidis <cesar@codesourcery.com>
1207 * parse.c (matcha): Define.
1208 (decode_oacc_directive): Add spec_only local var and set it. Use
1209 matcha to parse acc directives except for routine and declare. Return
1210 ST_GET_FCN_CHARACTERISTICS if a non-declarative directive could be
1213 2016-07-08 Martin Liska <mliska@suse.cz>
1215 * invoke.texi (Wundefined-do-loop): Enhance documentation.
1217 2016-07-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1220 * trans-expr.c (gfc_trans_structure_assign): Remove assert.
1222 2016-07-07 Martin Liska <mliska@suse.cz>
1224 * lang.opt (Wundefined-do-loop): New option.
1225 * resolve.c (gfc_resolve_iterator): Warn for Wundefined-do-loop.
1226 (gfc_trans_simple_do): Generate a c-style loop.
1227 (gfc_trans_do): Fix GNU coding style.
1228 * invoke.texi: Mention the new warning.
1230 2016-07-07 Martin Liska <mliska@suse.cz>
1232 * trans-stmt.c (gfc_trans_do): Add expect builtin for DO
1233 loops with step bigger than +-1.
1235 2016-07-05 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
1237 * array.c (gfc_match_array_ref): Add parsing support for
1238 STAT= attribute in CAF reference.
1239 * expr.c (gfc_find_stat_co): New function that returns
1240 the STAT= assignment.
1241 * gfortran.h (gfc_array_ref): New member.
1242 * trans-decl.c (gfc_build_builtin_function_decls):
1243 new attribute for caf_get and caf_send functions.
1244 * trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Passing
1245 the stat attribute to external function.
1246 (gfc_conv_intrinsic_caf_send): Ditto.
1248 2016-07-05 Andre Vehreschild <vehre@gcc.gnu.org>
1251 * trans-stmt.c (gfc_trans_allocate): Add code of pre block of typespec
1252 in allocate to parent block.
1254 2016-07-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1257 * decl.c (match_procedure_interface): Exit loop if procedure
1258 interface refers to itself.
1260 2016-07-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1261 Steven G. Kargl <kargl@gcc.gnu.org>
1264 * simplify.c (gfc_simplify_ishftc): Check that absolute value of
1265 SHIFT is less than or equal to SIZE.
1267 2016-07-01 Jakub Jelinek <jakub@redhat.com>
1270 * f95-lang.c (struct binding_level): Add reversed field.
1271 (clear_binding_level): Adjust initializer.
1272 (getdecls): If reversed is clear, set it and nreverse the names
1273 chain before returning it.
1274 (poplevel): Use getdecls.
1275 * trans-decl.c (gfc_generate_function_code, gfc_process_block_locals):
1276 Use nreverse to pushdecl decls in the declaration order.
1279 * trans-openmp.c (gfc_omp_privatize_by_reference): Return false
1280 for GFC_DECL_ASSOCIATE_VAR_P with POINTER_TYPE.
1282 2016-06-30 Jakub Jelinek <jakub@redhat.com>
1285 * parse.c (matchs, matcho): Move right before decode_omp_directive.
1286 If spec_only, only gfc_match the keyword and if successful, goto
1288 (matchds, matchdo): Define.
1289 (decode_omp_directive): Add spec_only local var and set it.
1290 Use matchds or matchdo macros instead of matchs or matcho
1291 for declare target, declare simd, declare reduction and threadprivate
1292 directives. Return ST_GET_FCN_CHARACTERISTICS if a non-declarative
1293 directive could be matched.
1294 (next_statement): For ST_GET_FCN_CHARACTERISTICS restore
1295 gfc_current_locus from old_locus even if there is no label.
1298 * trans-openmp.c (gfc_trans_omp_clauses): Set TREE_ADDRESSABLE on
1299 decls in to/from clauses.
1301 2016-06-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1304 * scanner.c (gfc_next_char_literal): Only decrement nextc if it
1307 2016-06-29 Cesar Philippidis <cesar@codesourcery.com>
1309 * openmp.c (match_oacc_clause_gang): Rename to ...
1310 (match_oacc_clause_gwv): this. Add support for OpenACC worker and
1312 (gfc_match_omp_clauses): Use match_oacc_clause_gwv for
1313 OMP_CLAUSE_{GANG,WORKER,VECTOR}. Propagate any MATCH_ERRORs for
1314 invalid OMP_CLAUSE_{ASYNC,WAIT,GANG,WORKER,VECTOR} clauses.
1315 (gfc_match_oacc_wait): Propagate MATCH_ERROR for invalid
1316 oacc_expr_lists. Adjust the first and needs_space arguments to
1317 gfc_match_omp_clauses.
1319 2016-06-29 Richard Biener <rguenther@suse.de>
1322 * f95-lang.c (LANG_HOOKS_GET_ALIAS_SET): Remove (un-)define.
1323 (gfc_get_alias_set): Remove.
1325 2016-06-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1328 * module.c (create_intrinsic_function): Check for NULL values and
1329 return after giving error.
1331 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
1333 * trans-types.c (gfc_build_complex_type): Move setting complex
1334 MODE to layout_type, instead of setting it ahead of time by the
1337 2016-06-21 Tobias Burnus <burnus@net-b.de>
1340 * resolve.c (resolve_function): Don't resolve caf_get/caf_send.
1341 (check_data_variable): Strip-off caf_get before checking.
1343 2016-06-20 Tobias Burnus <burnus@net-b.de>
1346 * trans-expr.c (gfc_trans_pointer_assignment): Correctly handle
1347 RHS pointer functions.
1349 2016-06-19 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1351 * class.c (gfc_add_class_array_ref): Call gfc_add_data_component()
1352 instead of gfc_add_component_ref().
1353 (gfc_get_len_component): Call gfc_add_len_component() instead of
1354 gfc_add_component_ref().
1355 * trans-intrinsic.c (gfc_conv_intrinsic_loc): Call
1356 gfc_add_data_component() instead of gfc_add_component_ref().
1357 * trans.c (gfc_add_finalizer_call): Call
1358 gfc_add_final_component() and gfc_add_size_component() instead
1359 of gfc_add_component_ref.
1361 2016-06-18 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1363 * trans-types.c (gfc_typenode_for_spec): Commentary typo fix.
1365 2016-06-17 Cesar Philippidis <cesar@codesourcery.com>
1367 * openmp.c (match_acc): New generic function to parse OpenACC
1369 (gfc_match_oacc_parallel_loop): Use it.
1370 (gfc_match_oacc_parallel): Likewise.
1371 (gfc_match_oacc_kernels_loop): Likewise.
1372 (gfc_match_oacc_kernels): Likewise.
1373 (gfc_match_oacc_data): Likewise.
1374 (gfc_match_oacc_host_data): Likewise.
1375 (gfc_match_oacc_loop): Likewise.
1376 (gfc_match_oacc_enter_data): Likewise.
1377 (gfc_match_oacc_exit_data): Likewise.
1379 2016-06-16 Martin Liska <mliska@suse.cz>
1381 * trans-stmt.c (gfc_trans_simple_do): Predict the edge.
1383 2016-06-16 Martin Liska <mliska@suse.cz>
1385 * trans-array.c (gfc_array_allocate): Do not generate expect
1387 * trans.c (gfc_allocate_using_malloc): Properly set FAIL_ALLOC
1388 predictor for malloc return value.
1389 (gfc_allocate_allocatable): Use REALLOC predictor instead of
1391 (gfc_deallocate_with_status): Likewise.
1393 2016-06-13 Paul Thomas <pault@gcc.gnu.org>
1396 * frontend-passes.c (realloc_string_callback): Add a call to
1397 gfc_dep_compare_expr.
1399 2016-06-11 Dominique d'Humieres <dominiq@lps.ens.fr>
1402 * io.c (gfc_resolve_dt): Replace GFC_STD_GNU with GFC_STD_LEGACY.
1404 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
1407 * openmp.c (gfc_match_oacc_cache): Add comment.
1409 2016-06-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1412 * io.c (match_io): For READ, commit in pending symbols in the
1413 current statement before trying to match an expression so that
1414 if the match fails and we undo symbols we dont toss good symbols.
1416 2016-06-05 Andre Vehreschild <vehre@gcc.gnu.org>
1419 * trans-array.c (gfc_trans_dummy_array_bias): For class arrays use
1420 the address of the _data component to reference the arrays data
1423 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
1425 * trans-openmp.c (gfc_trans_omp_reduction_list): Add mark_addressable
1426 bool parameter, set reduction clause DECLs as addressable when true.
1427 (gfc_trans_omp_clauses): Pass clauses->async to
1428 gfc_trans_omp_reduction_list, add comment describing OpenACC situation.
1430 2016-06-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1433 * io.c (match_io): For READ, try to match a default character
1434 expression. If found, set the dt format expression to this,
1435 otherwise go back and try control list.
1437 2016-06-01 Paul Thomas <pault@gcc.gnu.org>
1440 * decl.c (copy_prefix): Add checks that the module procedure
1441 declaration prefixes are compliant with the interface. Invert
1442 order of existing elemental and pure checks.
1443 * resolve.c (resolve_fl_procedure): Invert order of elemental
1446 2016-06-01 Jakub Jelinek <jakub@redhat.com>
1448 * parse.c (case_decl): Move ST_OMP_* to ...
1449 (case_omp_decl): ... here, new macro.
1450 (verify_st_order): For case_omp_decl, complain about
1451 p->state >= ORDER_EXEC, but don't change p->state otherwise.
1453 2016-05-26 Jakub Jelinek <jakub@redhat.com>
1455 * openmp.c (resolve_omp_clauses): Warn if chunk_size is known not to
1458 2016-05-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1461 * scanner.c (gfc_next_char_literal): Clear end_flag when adjusting
1462 current locus back to old_locus.
1464 2016-05-20 Jakub Jelinek <jakub@redhat.com>
1467 * frontend-passes.c (realloc_string_callback): Clear inserted_block
1468 and changed_statement before calling create_var.
1470 2016-05-15 Harald Anlauf <anlauf@gmx.de>
1473 * interface.c (compare_parameter): Check for non-NULL pointer.
1475 2016-05-14 Fritz Reese <fritzoreese@gmail.com>
1477 * gfortran.texi: Update example of DEC UNION extension.
1479 2016-05-14 Fritz Reese <fritzoreese@gmail.com>
1482 * expr.c (gfc_default_initializer): Avoid extra component refs in
1483 constructors for derived types and classes.
1485 2016-05-11 Jakub Jelinek <jakub@redhat.com>
1488 * frontend-passes.c (inline_matmul_assign): Disable in !$omp workshare.
1490 2016-05-09 Richard Biener <rguenther@suse.de>
1493 * trans-decl.c: Include gimplify.h for unshare_expr.
1494 (gfc_trans_vla_one_sizepos): Unshare exprs before inserting
1497 2016-05-07 Fritz Reese <fritzoreese@gmail.com>
1500 * module.c (dt_upper_string): Rename to gfc_dt_upper_string
1501 (dt_lower_string): Likewise.
1502 * gfortran.h: Make new gfc_dt_upper/lower_string global.
1503 * class.c: Use gfc_dt_upper_string.
1505 * symbol.c: Likewise.
1506 * resolve.c (resolve_component): New function.
1507 (resolve_fl_derived0): Move component loop code to resolve_component.
1508 * parse.c (check_component): New function.
1509 (parse_derived): Move loop code to check_component.
1510 * lang.opt, invoke.texi, options.c : New option -fdec-structure.
1511 * libgfortran.h (bt): New basic type BT_UNION.
1512 * gfortran.h (gfc_option): New option -fdec-structure.
1513 (gfc_get_union_type, gfc_compare_union_types): New prototypes.
1514 (gfc_bt_struct, gfc_fl_struct, case_bt_struct, case_fl_struct): New
1516 (gfc_find_component): Change prototype.
1517 * match.h (gfc_match_member_sep, gfc_match_map, gfc_match_union,
1518 gfc_match_structure_decl): New prototypes.
1519 * parse.h (gfc_comp_struct): New macro.
1520 * symbol.c (gfc_find_component): Search for components in nested unions
1521 * class.c (insert_component_ref, gfc_add_component_ref, add_proc_comp,
1522 copy_vtab_proc_comps): Update calls to gfc_find_component.
1523 * primary.c (gfc_convert_to_structure_constructor): Likewise.
1524 * symbol.c (gfc_add_component): Likewise.
1525 * resolve.c (resolve_typebound_function, resolve_typebound_subroutine,
1526 resolve_typebound_procedure, resolve_component, resolve_fl_derived):
1528 * expr.c (get_union_init, component_init): New functions.
1529 * decl.c (match_clist_expr, match_record_decl, get_struct_decl,
1530 gfc_match_map, gfc_match_union, gfc_match_structure_decl): Likewise.
1531 * interface.c (compare_components, gfc_compare_union_types): Likewise.
1532 * match.c (gfc_match_member_sep): Likewise.
1533 * parse.c (check_component, parse_union, parse_struct_map): Likewise.
1534 * resolve.c (resolve_fl_struct): Likewise.
1535 * symbol.c (find_union_component): Likewise.
1536 * trans-types.c (gfc_get_union_type): Likewise.
1537 * parse.c (parse_derived): Use new functions.
1538 * interface.c (gfc_compare_derived_types, gfc_compare_types): Likewise.
1539 * expr.c (gfc_default_initializer): Likewise.
1540 * gfortran.texi: Support for DEC structures, unions, and maps.
1541 * gfortran.h (gfc_statement, sym_flavor): Likewise.
1542 * check.c (gfc_check_kill_sub): Likewise.
1543 * expr.c (gfc_copy_expr, simplify_const_ref,
1544 gfc_has_default_initializer): Likewise.
1545 * decl.c (build_sym, match_data_constant, add_init_expr_to_sym,
1546 match_pointer_init, build_struct, variable_decl,
1547 gfc_match_decl_type_spec, gfc_mach_data-decl, gfc_match_entry,
1548 gfc_match_end, gfc_match_derived_decl): Likewise.
1549 * interface.c (check_interface0, check_interface1,
1550 gfc_search_interface): Likewise.
1551 * misc.c (gfc_basic_typename, gfc_typename): Likewise.
1552 * module.c (add_true_name, build_tnt, bt_types, mio_typespec,
1553 fix_mio_expr, load_needed, mio_symbol, read_module, write_symbol,
1554 gfc_get_module_backend_decl): Likewise.
1555 * parse.h (gfc_compile_state): Likewise.
1556 * parse.c (decode_specification_statement, decode_statement,
1557 gfc_ascii_statement, verify_st_order, parse_spec): Likewise.
1558 * primary.c (gfc_match_varspec, gfc_match_structure_constructor,
1559 gfc_match_rvalue, match_variable): Likewise.
1560 * resolve.c (find_arglists, resolve_structure_cons,
1561 is_illegal_recursion, resolve_generic_f, get_declared_from_expr,
1562 resolve_typebound_subroutine, resolve_allocate_expr,
1563 nonscalar_typebound_assign, generate_component_assignments,
1564 resolve_fl_variable_derived, check_defined_assignments,
1565 resolve_component, resolve_symbol, resolve_equivalence_derived):
1567 * symbol.c (flavors, check_conflict, gfc_add_flavor, gfc_use_derived,
1568 gfc_restore_last_undo_checkpoint, gfc_type_compatible,
1569 gfc_find_dt_in_generic): Likewise.
1570 * trans-decl.c (gfc_get_module_backend_decl, create_function_arglist,
1571 gfc_create_module_variable, check_constant_initializer): Likewise.
1572 * trans-expr.c (gfc_conv_component_ref, gfc_conv_initializer,
1573 gfc_trans_alloc_subarray_assign, gfc_trans_subcomponent_assign,
1574 gfc_conv_structure, gfc_trans_scalar_assign, copyable_array_p):
1576 * trans-io.c (transfer_namelist_element, transfer_expr,
1577 gfc_trans_transfer): Likewise.
1578 * trans-stmt.c (gfc_trans_deallocate): Likewise.
1579 * trans-types.c (gfc_typenode_for_spec, gfc_copy_dt_decls_ifequal,
1580 gfc_get_derived_type): Likewise.
1582 2016-05-05 Jakub Jelinek <jakub@redhat.com>
1584 * openmp.c (gfc_match_omp_clauses): Restructuralize, so that clause
1585 parsing is done in a big switch based on gfc_peek_ascii_char and
1586 individual clauses under their first letters are sorted too.
1588 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1590 * trans-types.c (gfc_build_complex_type):
1592 2016-05-02 Richard Biener <rguenther@suse.de>
1594 * trans-array.c (gfc_trans_create_temp_array): Properly
1595 create a DECL_EXPR for the anonymous VLA array type.
1597 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
1600 * trans-openmp.c (gfc_trans_oacc_combined_directive): Duplicate
1601 the reduction clause in both parallel and loop directives.
1603 2016-04-18 Michael Matz <matz@suse.de>
1605 * trans-io.c (gfc_build_io_library_fndecls): Use SET_TYPE_ALIGN.
1606 * trans-common.c (build_common_decl): Use SET_DECL_ALIGN.
1607 * trans-types.c (gfc_add_field_to_struct): Use SET_DECL_ALIGN.
1609 2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr>
1612 * intrinsic.texi: Correct the documentation of pseudorandom
1615 2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr>
1618 * gfortran.texi: Document OPEN( ... NAME=) as not implemented
1621 2016-04-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1624 * array.c (match_array_element_spec): Add check for non-integer.
1625 * simplify.c (gfc_simplify_reshape): If source shape is NULL return.
1627 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
1630 * openmp.c (gfc_find_omp_udr): Add explicit braces to resolve a
1631 future -Wparentheses warning.
1633 2016-04-04 Andre Vehreschild <vehre@gcc.gnu.org>
1636 * resolve.c (resolve_allocate_expr): Emit error message when no
1637 array spec and no array valued source= expression is given in an
1638 F2008 allocate() for an array to allocate.
1640 2016-04-04 Andre Vehreschild <vehre@gcc.gnu.org>
1643 * trans-array.c (gfc_array_allocate): When the array is a coarray,
1644 do not nullyfing its allocatable components in array_allocate, because
1645 the nullify missed the array ref and nullifies the wrong component.
1648 2016-03-29 Andre Vehreschild <vehre@gcc.gnu.org>
1651 * trans-expr.c (gfc_class_len_or_zero_get): Add function to return a
1652 constant zero tree, when the class to get the _len component from is
1653 not unlimited polymorphic.
1654 (gfc_copy_class_to_class): Use the new function.
1655 * trans.h: Added interface of new function gfc_class_len_or_zero_get.
1657 2016-03-28 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
1659 * trans-decl.c (gfc_build_builtin_function_decls):
1660 caf_stop_numeric and caf_stop_str definition.
1661 * trans-stmt.c (gfc_trans_stop): invoke external functions
1662 for stop and stop_str when coarrays are used.
1663 * trans.h: extern for new functions.
1665 2016-03-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1668 * scanner.c (load_file): Update to use S_ISREG macro.
1670 2016-03-17 Thomas Schwinge <thomas@codesourcery.com>
1672 * gfortran.h (enum gfc_omp_map_op): Rename OMP_MAP_FORCE_DEALLOC
1673 to OMP_MAP_DELETE. Adjust all users.
1675 2016-03-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1676 Jim MacArthur <jim.macarthur@codethink.co.uk>
1679 * scanner.c (load_file): Check that included file is regular.
1681 2016-03-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1682 Harold Anlauf <anlauf@gmx.de>
1685 * invoke.texi: Explain use of the 'no-' construct within the
1687 * options.c (gfc_handle_runtime_check_option): Enable use of
1688 'no-' prefix for the various options with -fcheck= to allow
1689 negating previously enabled check options.
1691 2016-03-12 Paul Thomas <pault@gcc.gnu.org>
1694 * decl.c (gfc_match_prefix): Treat the 'module' prefix in the
1695 same way as the others, rather than fixing it to come last.
1696 (gfc_match_function_decl, gfc_match_subroutine): After errors
1697 in 'copy_prefix', emit them immediately in the case of module
1698 procedures to prevent a later ICE.
1701 * decl.c (gfc_match_submod_proc): Permit 'module procedure'
1702 declarations within the contains section of modules as well as
1704 * resolve.c (resolve_fl_procedure): Likewise.
1705 *trans-decl.c (build_function_decl): Change the gcc_assert to
1706 allow all forms of module procedure declarations within module
1709 2016-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
1713 * frontend-passes.c (realloc_string_callback): Don't set
1716 2016-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
1718 * dump-parse-tree.c (show_code_node): Print association
1719 list of a block if present. Handle EXEC_END_BLOCK.
1721 2016-02-28 Harald Anlauf <anlauf@gmx.de>
1722 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1725 * match.c (gfc_match_iterator): Add diagnostic for array variable
1728 2016-02-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1729 Steven G. Kargl <kargl@gcc.gnu.org>
1732 * io.c (gfc_match_open): Check that open status is an expression
1733 constant before comparing string to 'scratch' with NEWUNIT.
1735 2016-02-27 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
1737 * trans.c (gfc_allocate_allocatable): size conversion
1738 from byte to number of elements for event variables.
1739 * trans-types.c (gfc_get_derived_type): event variables
1740 represented as a pointer (like lock variable).
1742 2016-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1745 * scanner.c (add_path_to_list): If include path is not a directory,
1746 issue a fatal error.
1748 2016-02-23 Andre Vehreschild <vehre@gcc.gnu.org>
1751 * trans-array.c (gfc_array_allocate): Take the attributes from the
1752 expression to allocate and not from the source=-expression.
1754 2016-02-20 Paul Thomas <pault@gcc.gnu.org>
1757 * trans-decl.c (create_function_arglist): Deferred character
1758 length functions, with and without declared results, address
1759 the passed reference type as '.result' and the local string
1760 length as '..result'.
1761 (gfc_null_and_pass_deferred_len): Helper function to null and
1762 return deferred string lengths, as needed.
1763 (gfc_trans_deferred_vars): Call it, thereby reducing repeated
1764 code, add call for deferred arrays and reroute pointer function
1765 results. Avoid using 'tmp' for anything other that a temporary
1766 tree by introducing 'type_of_array' for the arrayspec type.
1768 2015-02-16 Thomas Koenig <tkoenig@gcc.gnu.org>
1771 * frontend-passes.c (cfe-expr_0): Don't register functions
1772 from within an ASSOCIATE statement.
1774 2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
1777 * decl.c (build_sym): If the name has already been defined as a
1778 type, it has a symtree with an upper case letter at the beginning.
1779 If such a symtree exists, issue an error and exit. Don't do
1780 this if there is no corresponding upper case letter.
1782 2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
1786 * decl.c (build_sym): Reverted previous patch.
1788 2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
1791 * decl.c (build_sym): If the name has already been defined as a
1792 type, issue error and return false.
1794 2016-02-12 David Malcolm <dmalcolm@redhat.com>
1797 * error.c (gfc_diagnostic_start_span): New function.
1798 (gfc_diagnostics_init): Initialize global_dc's start_span.
1800 2016-02-11 Andre Vehreschild <vehre@gcc.gnu.org>
1803 * gfortran.h: Added flag to gfc_association_list indicating that
1804 the rank of an associate variable has been guessed only.
1805 * parse.c (parse_associate): Set the guess flag mentioned above
1806 when guessing the rank of an expression.
1807 * resolve.c (resolve_assoc_var): When the rank has been guessed,
1808 make sure, that the guess was correct else overwrite with the actual
1810 * trans-stmt.c (trans_associate_var): For subref_array_pointers in
1811 class objects, take the span from the _data component.
1813 2016-02-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1816 * primary.c (match_actual_arg): If symbol has attribute flavor of
1817 namelist, generate an error. (gfc_match_rvalue): Likewise return
1819 * resolve.c (resolve_symbol): Scan arument list of procedures and
1820 generate an error if a namelist is found.
1822 2016-02-05 Mikael Morin <mikael@gcc.gnu.org>
1825 * trans-expr.c (expr_is_variable, gfc_expr_is_variable): Rename
1826 the former to the latter and make it non-static. Update callers.
1827 * gfortran.h (gfc_expr_is_variable): New declaration.
1828 (struct gfc_ss_info): Add field needs_temporary.
1829 * trans-array.c (gfc_scalar_elemental_arg_saved_as_argument):
1830 Tighten the condition on aggregate expressions with a check
1831 that the expression is a variable and doesn't need a temporary.
1832 (gfc_conv_resolve_dependency): Add intermediary reference variable.
1833 Set the needs_temporary field.
1835 2016-02-03 Andre Vehreschild <vehre@gcc.gnu.org>
1839 * trans-expr.c (gfc_copy_class_to_class): For coarrays just the
1840 pointer is passed. Take it as is without trying to deref the
1842 * trans-stmt.c (gfc_trans_allocate): Take care of coarrays as
1843 argument to source=-expression.
1845 2016-02-02 Nathan Sidwell <nathan@codesourcery.com>
1847 * lang.opt (fopenacc-dim=): New option.
1849 2016-01-31 Paul Thomas <pault@gcc.gnu.org>
1852 * trans-expr.c (gfc_conv_procedure_call): For the vtable copy
1853 subroutines, add a string length argument, when the actual
1854 argument is an unlimited polymorphic class object.
1856 2016-01-30 Paul Thomas <pault@gcc.gnu.org>
1859 * trans-expr.c (gfc_conv_procedure_call): Correct expression
1860 for 'ulim_copy', which was missing a test for 'comp'.
1862 2016-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
1865 * decl.c (gfc_match_end): Only unnest and remove BLOCK namespaces
1866 when the END encountered does not match a BLOCK's end.
1868 2016-01-27 Janus Weil <janus@gcc.gnu.org>
1871 * invoke.texi: Fix documentation of -Wall with respect to -Wtabs.
1873 2016-01-27 Paul Thomas <pault@gcc.gnu.org>
1876 * trans-expr.c (is_scalar_reallocatable_lhs): Remove the check
1877 for allocatable components, whilst checking if the symbol is a
1878 derived or class entity..
1880 2016-01-26 Paul Thomas <pault@gcc.gnu.org>
1883 * trans-expr.c (gfc_trans_assignment_1): Exclude initialization
1884 assignments from check on assignment of scalars to unassigned
1885 arrays and correct wrong code within the corresponding block.
1887 2016-01-26 David Malcolm <dmalcolm@redhat.com>
1890 * error.c (gfc_diagnostic_starter): Delete use of pp_newline.
1892 2016-01-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1896 * interface.c (gfc_arglist_matches_symbol): Replace assert with
1897 a return false if not a procedure.
1898 * resolve.c (resolve_generic_f): Test if we are resolving an
1899 initialization expression and adjust error message accordingly.
1901 2016-01-24 Thomas Koenig <tkoenig@gcc.gnu.org>
1904 * frontend-passes.c (matmul_lhs_realloc): Add
1905 forgotten break statement.
1907 2016-01-24 Dominique d'Humieres <dominiq@lps.ens.fr>
1910 * primary.c (gfc_variable_attr): revert revision r221955,
1911 call gfc_internal_error only if there is no error.
1913 2016-01-24 Thomas Koenig <tkoenig@gcc.gnu.org>
1916 * frontend-passes.c (enum matrix_case): Add case A2B2T for
1917 MATMUL(A,TRANSPoSE(B)) where A and B are rank 2.
1918 (inline_limit_check): Also add A2B2T.
1919 (matmul_lhs_realloc): Handle A2B2T.
1920 (check_conjg_variable): Rename to
1921 (check_conjg_transpose_variable): and also count TRANSPOSE.
1922 (inline_matmul_assign): Handle A2B2T.
1924 2016-01-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1927 * error.c (gfc_error): Save the state of abort_on_error and set
1928 it to false for buffered errors to allow normal processing.
1929 Restore the state before leaving.
1931 2016-01-19 Martin Jambor <mjambor@suse.cz>
1933 * types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
1934 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
1935 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
1937 2016-01-15 Paul Thomas <pault@gcc.gnu.org>
1940 * resolve.c (check_uop_procedure): Prevent deferred length
1941 characters from being trapped by assumed length error.
1949 * trans-array.c (gfc_conv_scalarized_array_ref): Pass decl for
1950 function as well as variable expressions.
1951 (gfc_array_init_size): Add 'expr' as an argument. Use this to
1952 correctly set the descriptor dtype for deferred characters.
1953 (gfc_array_allocate): Add 'expr' to the call to
1954 'gfc_array_init_size'.
1955 * trans.c (gfc_build_array_ref): Expand logic for setting span
1956 to include indirect references to character lengths.
1957 * trans-decl.c (gfc_get_symbol_decl): Ensure that deferred
1958 result char lengths that are PARM_DECLs are indirectly
1959 referenced both for directly passed and by reference.
1960 (create_function_arglist): If the length type is a pointer type
1961 then store the length as the 'passed_length' and make the char
1962 length an indirect reference to it.
1963 (gfc_trans_deferred_vars): If a character length has escaped
1964 being set as an indirect reference, return it via the 'passed
1966 * trans-expr.c (gfc_conv_procedure_call): The length of
1967 deferred character length results is set TREE_STATIC and set to
1969 (gfc_trans_assignment_1): Do not fix the rse string_length if
1970 it is a variable, a parameter or an indirect reference. Add the
1971 code to trap assignment of scalars to unallocated arrays.
1972 * trans-stmt.c (gfc_trans_allocate): Remove 'def_str_len' and
1973 all references to it. Instead, replicate the code to obtain a
1974 explicitly defined string length and provide a value before
1975 array allocation so that the dtype is correctly set.
1976 trans-types.c (gfc_get_character_type): If the character length
1977 is a pointer, use the indirect reference.
1979 2016-01-10 Thomas Koenig <tkoenig@gcc.gnu.org>
1982 * frontend-passes.c (in_where): New variable.
1983 (inline_matmul_assign): Don't try this if we are within
1985 (gfc_code_walker): Keep track of in_where.
1987 2016-01-10 Paul Thomas <pault@gcc.gnu.org>
1990 * trans_array.c (gfc_conv_scalarized_array_ref): Add missing
1991 se->use_offset from condition for calculation of 'base'.
1993 2016-01-08 Jakub Jelinek <jakub@redhat.com>
1996 * trans.h (OMPWS_SCALARIZER_BODY): Define.
1997 (OMPWS_NOWAIT): Renumber.
1998 * trans-stmt.c (gfc_trans_where_3): Only set OMPWS_SCALARIZER_WS
1999 if OMPWS_SCALARIZER_BODY is not set already, and set also
2000 OMPWS_SCALARIZER_BODY until the final loop creation.
2001 * trans-expr.c (gfc_trans_assignment_1): Likewise.
2002 * trans-openmp.c (gfc_trans_omp_workshare): Also clear
2003 OMPWS_SCALARIZER_BODY.
2004 * trans-array.c (gfc_trans_scalarized_loop_end): Don't create
2005 OMP_FOR if OMPWS_SCALARIZER_BODY is set.
2007 2016-01-04 Jakub Jelinek <jakub@redhat.com>
2009 Update copyright years.
2011 * gfortranspec.c (lang_specific_driver): Update copyright notice
2013 * gfc-internals.texi: Bump @copying's copyright year.
2014 * gfortran.texi: Ditto.
2015 * intrinsic.texi: Ditto.
2016 * invoke.texi: Ditto.
2018 2016-01-01 Paul Thomas <pault@gcc.gnu.org>
2021 * trans-array.c (evaluate_bound): If deferred, test that 'desc'
2022 is an array descriptor before using gfc_conv_descriptor_xxx.
2024 Copyright (C) 2016 Free Software Foundation, Inc.
2026 Copying and distribution of this file, with or without modification,
2027 are permitted in any medium without royalty provided the copyright
2028 notice and this notice are preserved.