1 2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
2 Thomas Koenig <tkoenig@gcc.gnu.org>
5 * frontend-passes.c (gfc_run_passes): Bail out if there are any
7 * error.c (gfc_internal_error): If there are any errors in the
8 buffer, exit with EXIT_FAILURE.
10 2016-07-28 Renlin Li <renlin.li@arm.com>
13 2016-07-19 Thomas Koenig <tkoenig@gcc.gnu.org>
16 * dependency.c (gfc_check_dependency): Use dep_ref. Handle case
17 if identical is true and two array element references differ.
18 (gfc_dep_resovler): Move most of the code to dep_ref.
19 (dep_ref): New function.
20 * frontend-passes.c (realloc_string_callback): Name temporary
21 variable "realloc_string".
23 2016-07-26 Steven G. Kargl <kargl@gcc.gnu.org>
26 * class.c: Remove assert. Iterate over component only if non-null.
28 2016-07-22 Steven G. Kargl <kargl@gcc.gnu.org>
31 * check.c (is_c_interoperable): Simplify right expression.
33 2016-07-22 Thomas Koenig <tkoenig@gcc.gnu.org>
36 * frontend-passes.c (combine_array_constructor): Don't
37 do anything if the expression is inside an array iterator.
39 2016-07-22 Andre Vehreschild <vehre@gcc.gnu.org>
41 * expr.c (gfc_find_stat_co): Fixed whitespaces.
42 * gfortran.texi: Fixed typos and reversed meaning of caf_get()'s
43 src and dst description.
44 * trans-decl.c (gfc_build_builtin_function_decls): Fixed style
45 and corrected fnspec for caf functions.
46 * trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Fixed style.
47 (conv_caf_send): Dito.
49 2016-07-19 Thomas Koenig <tkoenig@gcc.gnu.org>
52 * dependency.c (gfc_check_dependency): Use dep_ref. Handle case
53 if identical is true and two array element references differ.
54 (gfc_dep_resovler): Move most of the code to dep_ref.
55 (dep_ref): New function.
56 * frontend-passes.c (realloc_string_callback): Name temporary
57 variable "realloc_string".
59 2016-07-17 Fritz Reese <fritzoreese@gmail.com>
62 * trans-decl.c (gfc_finish_var_decl): Replace automatic initializer with
65 2016-07-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
66 Marco Restelli <mrestelli@gmail.com>
69 * symbol.c (select_type_insert_tmp): Recursively call self to take care
70 of nested select type.
72 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
74 * openmp.c (gfc_match_omp_clauses): Scan for clause vector_length
77 2016-07-15 Andre Vehreschild <vehre@gcc.gnu.org>
80 * trans-expr.c (gfc_trans_subcomponent_assign): Special casing
81 when allocatable component is set to null() in initializer.
83 2016-07-14 Steven G. Kargl <kargl@gcc.gnu.org>
86 * parse.c (parse_contained): Use proper locus.
88 2016-07-14 Andre Vehreschild <vehre@gcc.gnu.org>
91 * simplify.c (gfc_simplify_len): Only for unlimited polymorphic
92 types replace the expression's _data ref with a _len ref.
94 2016-07-09 Thomas Koenig <tkoenig@gcc.gnu.org>
97 * frontend-passes.c (create_var): Always allocate a charlen
98 for character variables.
100 2016-07-08 Steven G. Kargl <kargl@gcc.gnu.org>
103 * simplify (gfc_simplify_spread): Adjust locus.
105 2016-07-08 Cesar Philippidis <cesar@codesourcery.com>
107 * parse.c (matcha): Define.
108 (decode_oacc_directive): Add spec_only local var and set it. Use
109 matcha to parse acc directives except for routine and declare. Return
110 ST_GET_FCN_CHARACTERISTICS if a non-declarative directive could be
113 2016-07-08 Martin Liska <mliska@suse.cz>
115 * invoke.texi (Wundefined-do-loop): Enhance documentation.
117 2016-07-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
120 * trans-expr.c (gfc_trans_structure_assign): Remove assert.
122 2016-07-07 Martin Liska <mliska@suse.cz>
124 * lang.opt (Wundefined-do-loop): New option.
125 * resolve.c (gfc_resolve_iterator): Warn for Wundefined-do-loop.
126 (gfc_trans_simple_do): Generate a c-style loop.
127 (gfc_trans_do): Fix GNU coding style.
128 * invoke.texi: Mention the new warning.
130 2016-07-07 Martin Liska <mliska@suse.cz>
132 * trans-stmt.c (gfc_trans_do): Add expect builtin for DO
133 loops with step bigger than +-1.
135 2016-07-05 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
137 * array.c (gfc_match_array_ref): Add parsing support for
138 STAT= attribute in CAF reference.
139 * expr.c (gfc_find_stat_co): New function that returns
140 the STAT= assignment.
141 * gfortran.h (gfc_array_ref): New member.
142 * trans-decl.c (gfc_build_builtin_function_decls):
143 new attribute for caf_get and caf_send functions.
144 * trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Passing
145 the stat attribute to external function.
146 (gfc_conv_intrinsic_caf_send): Ditto.
148 2016-07-05 Andre Vehreschild <vehre@gcc.gnu.org>
151 * trans-stmt.c (gfc_trans_allocate): Add code of pre block of typespec
152 in allocate to parent block.
154 2016-07-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
157 * decl.c (match_procedure_interface): Exit loop if procedure
158 interface refers to itself.
160 2016-07-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
161 Steven G. Kargl <kargl@gcc.gnu.org>
164 * simplify.c (gfc_simplify_ishftc): Check that absolute value of
165 SHIFT is less than or equal to SIZE.
167 2016-07-01 Jakub Jelinek <jakub@redhat.com>
170 * f95-lang.c (struct binding_level): Add reversed field.
171 (clear_binding_level): Adjust initializer.
172 (getdecls): If reversed is clear, set it and nreverse the names
173 chain before returning it.
174 (poplevel): Use getdecls.
175 * trans-decl.c (gfc_generate_function_code, gfc_process_block_locals):
176 Use nreverse to pushdecl decls in the declaration order.
179 * trans-openmp.c (gfc_omp_privatize_by_reference): Return false
180 for GFC_DECL_ASSOCIATE_VAR_P with POINTER_TYPE.
182 2016-06-30 Jakub Jelinek <jakub@redhat.com>
185 * parse.c (matchs, matcho): Move right before decode_omp_directive.
186 If spec_only, only gfc_match the keyword and if successful, goto
188 (matchds, matchdo): Define.
189 (decode_omp_directive): Add spec_only local var and set it.
190 Use matchds or matchdo macros instead of matchs or matcho
191 for declare target, declare simd, declare reduction and threadprivate
192 directives. Return ST_GET_FCN_CHARACTERISTICS if a non-declarative
193 directive could be matched.
194 (next_statement): For ST_GET_FCN_CHARACTERISTICS restore
195 gfc_current_locus from old_locus even if there is no label.
198 * trans-openmp.c (gfc_trans_omp_clauses): Set TREE_ADDRESSABLE on
199 decls in to/from clauses.
201 2016-06-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
204 * scanner.c (gfc_next_char_literal): Only decrement nextc if it
207 2016-06-29 Cesar Philippidis <cesar@codesourcery.com>
209 * openmp.c (match_oacc_clause_gang): Rename to ...
210 (match_oacc_clause_gwv): this. Add support for OpenACC worker and
212 (gfc_match_omp_clauses): Use match_oacc_clause_gwv for
213 OMP_CLAUSE_{GANG,WORKER,VECTOR}. Propagate any MATCH_ERRORs for
214 invalid OMP_CLAUSE_{ASYNC,WAIT,GANG,WORKER,VECTOR} clauses.
215 (gfc_match_oacc_wait): Propagate MATCH_ERROR for invalid
216 oacc_expr_lists. Adjust the first and needs_space arguments to
217 gfc_match_omp_clauses.
219 2016-06-29 Richard Biener <rguenther@suse.de>
222 * f95-lang.c (LANG_HOOKS_GET_ALIAS_SET): Remove (un-)define.
223 (gfc_get_alias_set): Remove.
225 2016-06-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
228 * module.c (create_intrinsic_function): Check for NULL values and
229 return after giving error.
231 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
233 * trans-types.c (gfc_build_complex_type): Move setting complex
234 MODE to layout_type, instead of setting it ahead of time by the
237 2016-06-21 Tobias Burnus <burnus@net-b.de>
240 * resolve.c (resolve_function): Don't resolve caf_get/caf_send.
241 (check_data_variable): Strip-off caf_get before checking.
243 2016-06-20 Tobias Burnus <burnus@net-b.de>
246 * trans-expr.c (gfc_trans_pointer_assignment): Correctly handle
247 RHS pointer functions.
249 2016-06-19 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
251 * class.c (gfc_add_class_array_ref): Call gfc_add_data_component()
252 instead of gfc_add_component_ref().
253 (gfc_get_len_component): Call gfc_add_len_component() instead of
254 gfc_add_component_ref().
255 * trans-intrinsic.c (gfc_conv_intrinsic_loc): Call
256 gfc_add_data_component() instead of gfc_add_component_ref().
257 * trans.c (gfc_add_finalizer_call): Call
258 gfc_add_final_component() and gfc_add_size_component() instead
259 of gfc_add_component_ref.
261 2016-06-18 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
263 * trans-types.c (gfc_typenode_for_spec): Commentary typo fix.
265 2016-06-17 Cesar Philippidis <cesar@codesourcery.com>
267 * openmp.c (match_acc): New generic function to parse OpenACC
269 (gfc_match_oacc_parallel_loop): Use it.
270 (gfc_match_oacc_parallel): Likewise.
271 (gfc_match_oacc_kernels_loop): Likewise.
272 (gfc_match_oacc_kernels): Likewise.
273 (gfc_match_oacc_data): Likewise.
274 (gfc_match_oacc_host_data): Likewise.
275 (gfc_match_oacc_loop): Likewise.
276 (gfc_match_oacc_enter_data): Likewise.
277 (gfc_match_oacc_exit_data): Likewise.
279 2016-06-16 Martin Liska <mliska@suse.cz>
281 * trans-stmt.c (gfc_trans_simple_do): Predict the edge.
283 2016-06-16 Martin Liska <mliska@suse.cz>
285 * trans-array.c (gfc_array_allocate): Do not generate expect
287 * trans.c (gfc_allocate_using_malloc): Properly set FAIL_ALLOC
288 predictor for malloc return value.
289 (gfc_allocate_allocatable): Use REALLOC predictor instead of
291 (gfc_deallocate_with_status): Likewise.
293 2016-06-13 Paul Thomas <pault@gcc.gnu.org>
296 * frontend-passes.c (realloc_string_callback): Add a call to
297 gfc_dep_compare_expr.
299 2016-06-11 Dominique d'Humieres <dominiq@lps.ens.fr>
302 * io.c (gfc_resolve_dt): Replace GFC_STD_GNU with GFC_STD_LEGACY.
304 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
307 * openmp.c (gfc_match_oacc_cache): Add comment.
309 2016-06-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
312 * io.c (match_io): For READ, commit in pending symbols in the
313 current statement before trying to match an expression so that
314 if the match fails and we undo symbols we dont toss good symbols.
316 2016-06-05 Andre Vehreschild <vehre@gcc.gnu.org>
319 * trans-array.c (gfc_trans_dummy_array_bias): For class arrays use
320 the address of the _data component to reference the arrays data
323 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
325 * trans-openmp.c (gfc_trans_omp_reduction_list): Add mark_addressable
326 bool parameter, set reduction clause DECLs as addressable when true.
327 (gfc_trans_omp_clauses): Pass clauses->async to
328 gfc_trans_omp_reduction_list, add comment describing OpenACC situation.
330 2016-06-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
333 * io.c (match_io): For READ, try to match a default character
334 expression. If found, set the dt format expression to this,
335 otherwise go back and try control list.
337 2016-06-01 Paul Thomas <pault@gcc.gnu.org>
340 * decl.c (copy_prefix): Add checks that the module procedure
341 declaration prefixes are compliant with the interface. Invert
342 order of existing elemental and pure checks.
343 * resolve.c (resolve_fl_procedure): Invert order of elemental
346 2016-06-01 Jakub Jelinek <jakub@redhat.com>
348 * parse.c (case_decl): Move ST_OMP_* to ...
349 (case_omp_decl): ... here, new macro.
350 (verify_st_order): For case_omp_decl, complain about
351 p->state >= ORDER_EXEC, but don't change p->state otherwise.
353 2016-05-26 Jakub Jelinek <jakub@redhat.com>
355 * openmp.c (resolve_omp_clauses): Warn if chunk_size is known not to
358 2016-05-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
361 * scanner.c (gfc_next_char_literal): Clear end_flag when adjusting
362 current locus back to old_locus.
364 2016-05-20 Jakub Jelinek <jakub@redhat.com>
367 * frontend-passes.c (realloc_string_callback): Clear inserted_block
368 and changed_statement before calling create_var.
370 2016-05-15 Harald Anlauf <anlauf@gmx.de>
373 * interface.c (compare_parameter): Check for non-NULL pointer.
375 2016-05-14 Fritz Reese <fritzoreese@gmail.com>
377 * gfortran.texi: Update example of DEC UNION extension.
379 2016-05-14 Fritz Reese <fritzoreese@gmail.com>
382 * expr.c (gfc_default_initializer): Avoid extra component refs in
383 constructors for derived types and classes.
385 2016-05-11 Jakub Jelinek <jakub@redhat.com>
388 * frontend-passes.c (inline_matmul_assign): Disable in !$omp workshare.
390 2016-05-09 Richard Biener <rguenther@suse.de>
393 * trans-decl.c: Include gimplify.h for unshare_expr.
394 (gfc_trans_vla_one_sizepos): Unshare exprs before inserting
397 2016-05-07 Fritz Reese <fritzoreese@gmail.com>
400 * module.c (dt_upper_string): Rename to gfc_dt_upper_string
401 (dt_lower_string): Likewise.
402 * gfortran.h: Make new gfc_dt_upper/lower_string global.
403 * class.c: Use gfc_dt_upper_string.
405 * symbol.c: Likewise.
406 * resolve.c (resolve_component): New function.
407 (resolve_fl_derived0): Move component loop code to resolve_component.
408 * parse.c (check_component): New function.
409 (parse_derived): Move loop code to check_component.
410 * lang.opt, invoke.texi, options.c : New option -fdec-structure.
411 * libgfortran.h (bt): New basic type BT_UNION.
412 * gfortran.h (gfc_option): New option -fdec-structure.
413 (gfc_get_union_type, gfc_compare_union_types): New prototypes.
414 (gfc_bt_struct, gfc_fl_struct, case_bt_struct, case_fl_struct): New
416 (gfc_find_component): Change prototype.
417 * match.h (gfc_match_member_sep, gfc_match_map, gfc_match_union,
418 gfc_match_structure_decl): New prototypes.
419 * parse.h (gfc_comp_struct): New macro.
420 * symbol.c (gfc_find_component): Search for components in nested unions
421 * class.c (insert_component_ref, gfc_add_component_ref, add_proc_comp,
422 copy_vtab_proc_comps): Update calls to gfc_find_component.
423 * primary.c (gfc_convert_to_structure_constructor): Likewise.
424 * symbol.c (gfc_add_component): Likewise.
425 * resolve.c (resolve_typebound_function, resolve_typebound_subroutine,
426 resolve_typebound_procedure, resolve_component, resolve_fl_derived):
428 * expr.c (get_union_init, component_init): New functions.
429 * decl.c (match_clist_expr, match_record_decl, get_struct_decl,
430 gfc_match_map, gfc_match_union, gfc_match_structure_decl): Likewise.
431 * interface.c (compare_components, gfc_compare_union_types): Likewise.
432 * match.c (gfc_match_member_sep): Likewise.
433 * parse.c (check_component, parse_union, parse_struct_map): Likewise.
434 * resolve.c (resolve_fl_struct): Likewise.
435 * symbol.c (find_union_component): Likewise.
436 * trans-types.c (gfc_get_union_type): Likewise.
437 * parse.c (parse_derived): Use new functions.
438 * interface.c (gfc_compare_derived_types, gfc_compare_types): Likewise.
439 * expr.c (gfc_default_initializer): Likewise.
440 * gfortran.texi: Support for DEC structures, unions, and maps.
441 * gfortran.h (gfc_statement, sym_flavor): Likewise.
442 * check.c (gfc_check_kill_sub): Likewise.
443 * expr.c (gfc_copy_expr, simplify_const_ref,
444 gfc_has_default_initializer): Likewise.
445 * decl.c (build_sym, match_data_constant, add_init_expr_to_sym,
446 match_pointer_init, build_struct, variable_decl,
447 gfc_match_decl_type_spec, gfc_mach_data-decl, gfc_match_entry,
448 gfc_match_end, gfc_match_derived_decl): Likewise.
449 * interface.c (check_interface0, check_interface1,
450 gfc_search_interface): Likewise.
451 * misc.c (gfc_basic_typename, gfc_typename): Likewise.
452 * module.c (add_true_name, build_tnt, bt_types, mio_typespec,
453 fix_mio_expr, load_needed, mio_symbol, read_module, write_symbol,
454 gfc_get_module_backend_decl): Likewise.
455 * parse.h (gfc_compile_state): Likewise.
456 * parse.c (decode_specification_statement, decode_statement,
457 gfc_ascii_statement, verify_st_order, parse_spec): Likewise.
458 * primary.c (gfc_match_varspec, gfc_match_structure_constructor,
459 gfc_match_rvalue, match_variable): Likewise.
460 * resolve.c (find_arglists, resolve_structure_cons,
461 is_illegal_recursion, resolve_generic_f, get_declared_from_expr,
462 resolve_typebound_subroutine, resolve_allocate_expr,
463 nonscalar_typebound_assign, generate_component_assignments,
464 resolve_fl_variable_derived, check_defined_assignments,
465 resolve_component, resolve_symbol, resolve_equivalence_derived):
467 * symbol.c (flavors, check_conflict, gfc_add_flavor, gfc_use_derived,
468 gfc_restore_last_undo_checkpoint, gfc_type_compatible,
469 gfc_find_dt_in_generic): Likewise.
470 * trans-decl.c (gfc_get_module_backend_decl, create_function_arglist,
471 gfc_create_module_variable, check_constant_initializer): Likewise.
472 * trans-expr.c (gfc_conv_component_ref, gfc_conv_initializer,
473 gfc_trans_alloc_subarray_assign, gfc_trans_subcomponent_assign,
474 gfc_conv_structure, gfc_trans_scalar_assign, copyable_array_p):
476 * trans-io.c (transfer_namelist_element, transfer_expr,
477 gfc_trans_transfer): Likewise.
478 * trans-stmt.c (gfc_trans_deallocate): Likewise.
479 * trans-types.c (gfc_typenode_for_spec, gfc_copy_dt_decls_ifequal,
480 gfc_get_derived_type): Likewise.
482 2016-05-05 Jakub Jelinek <jakub@redhat.com>
484 * openmp.c (gfc_match_omp_clauses): Restructuralize, so that clause
485 parsing is done in a big switch based on gfc_peek_ascii_char and
486 individual clauses under their first letters are sorted too.
488 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
490 * trans-types.c (gfc_build_complex_type):
492 2016-05-02 Richard Biener <rguenther@suse.de>
494 * trans-array.c (gfc_trans_create_temp_array): Properly
495 create a DECL_EXPR for the anonymous VLA array type.
497 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
500 * trans-openmp.c (gfc_trans_oacc_combined_directive): Duplicate
501 the reduction clause in both parallel and loop directives.
503 2016-04-18 Michael Matz <matz@suse.de>
505 * trans-io.c (gfc_build_io_library_fndecls): Use SET_TYPE_ALIGN.
506 * trans-common.c (build_common_decl): Use SET_DECL_ALIGN.
507 * trans-types.c (gfc_add_field_to_struct): Use SET_DECL_ALIGN.
509 2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr>
512 * intrinsic.texi: Correct the documentation of pseudorandom
515 2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr>
518 * gfortran.texi: Document OPEN( ... NAME=) as not implemented
521 2016-04-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
524 * array.c (match_array_element_spec): Add check for non-integer.
525 * simplify.c (gfc_simplify_reshape): If source shape is NULL return.
527 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
530 * openmp.c (gfc_find_omp_udr): Add explicit braces to resolve a
531 future -Wparentheses warning.
533 2016-04-04 Andre Vehreschild <vehre@gcc.gnu.org>
536 * resolve.c (resolve_allocate_expr): Emit error message when no
537 array spec and no array valued source= expression is given in an
538 F2008 allocate() for an array to allocate.
540 2016-04-04 Andre Vehreschild <vehre@gcc.gnu.org>
543 * trans-array.c (gfc_array_allocate): When the array is a coarray,
544 do not nullyfing its allocatable components in array_allocate, because
545 the nullify missed the array ref and nullifies the wrong component.
548 2016-03-29 Andre Vehreschild <vehre@gcc.gnu.org>
551 * trans-expr.c (gfc_class_len_or_zero_get): Add function to return a
552 constant zero tree, when the class to get the _len component from is
553 not unlimited polymorphic.
554 (gfc_copy_class_to_class): Use the new function.
555 * trans.h: Added interface of new function gfc_class_len_or_zero_get.
557 2016-03-28 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
559 * trans-decl.c (gfc_build_builtin_function_decls):
560 caf_stop_numeric and caf_stop_str definition.
561 * trans-stmt.c (gfc_trans_stop): invoke external functions
562 for stop and stop_str when coarrays are used.
563 * trans.h: extern for new functions.
565 2016-03-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
568 * scanner.c (load_file): Update to use S_ISREG macro.
570 2016-03-17 Thomas Schwinge <thomas@codesourcery.com>
572 * gfortran.h (enum gfc_omp_map_op): Rename OMP_MAP_FORCE_DEALLOC
573 to OMP_MAP_DELETE. Adjust all users.
575 2016-03-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
576 Jim MacArthur <jim.macarthur@codethink.co.uk>
579 * scanner.c (load_file): Check that included file is regular.
581 2016-03-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
582 Harold Anlauf <anlauf@gmx.de>
585 * invoke.texi: Explain use of the 'no-' construct within the
587 * options.c (gfc_handle_runtime_check_option): Enable use of
588 'no-' prefix for the various options with -fcheck= to allow
589 negating previously enabled check options.
591 2016-03-12 Paul Thomas <pault@gcc.gnu.org>
594 * decl.c (gfc_match_prefix): Treat the 'module' prefix in the
595 same way as the others, rather than fixing it to come last.
596 (gfc_match_function_decl, gfc_match_subroutine): After errors
597 in 'copy_prefix', emit them immediately in the case of module
598 procedures to prevent a later ICE.
601 * decl.c (gfc_match_submod_proc): Permit 'module procedure'
602 declarations within the contains section of modules as well as
604 * resolve.c (resolve_fl_procedure): Likewise.
605 *trans-decl.c (build_function_decl): Change the gcc_assert to
606 allow all forms of module procedure declarations within module
609 2016-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
613 * frontend-passes.c (realloc_string_callback): Don't set
616 2016-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
618 * dump-parse-tree.c (show_code_node): Print association
619 list of a block if present. Handle EXEC_END_BLOCK.
621 2016-02-28 Harald Anlauf <anlauf@gmx.de>
622 Jerry DeLisle <jvdelisle@gcc.gnu.org>
625 * match.c (gfc_match_iterator): Add diagnostic for array variable
628 2016-02-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
629 Steven G. Kargl <kargl@gcc.gnu.org>
632 * io.c (gfc_match_open): Check that open status is an expression
633 constant before comparing string to 'scratch' with NEWUNIT.
635 2016-02-27 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
637 * trans.c (gfc_allocate_allocatable): size conversion
638 from byte to number of elements for event variables.
639 * trans-types.c (gfc_get_derived_type): event variables
640 represented as a pointer (like lock variable).
642 2016-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
645 * scanner.c (add_path_to_list): If include path is not a directory,
648 2016-02-23 Andre Vehreschild <vehre@gcc.gnu.org>
651 * trans-array.c (gfc_array_allocate): Take the attributes from the
652 expression to allocate and not from the source=-expression.
654 2016-02-20 Paul Thomas <pault@gcc.gnu.org>
657 * trans-decl.c (create_function_arglist): Deferred character
658 length functions, with and without declared results, address
659 the passed reference type as '.result' and the local string
660 length as '..result'.
661 (gfc_null_and_pass_deferred_len): Helper function to null and
662 return deferred string lengths, as needed.
663 (gfc_trans_deferred_vars): Call it, thereby reducing repeated
664 code, add call for deferred arrays and reroute pointer function
665 results. Avoid using 'tmp' for anything other that a temporary
666 tree by introducing 'type_of_array' for the arrayspec type.
668 2015-02-16 Thomas Koenig <tkoenig@gcc.gnu.org>
671 * frontend-passes.c (cfe-expr_0): Don't register functions
672 from within an ASSOCIATE statement.
674 2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
677 * decl.c (build_sym): If the name has already been defined as a
678 type, it has a symtree with an upper case letter at the beginning.
679 If such a symtree exists, issue an error and exit. Don't do
680 this if there is no corresponding upper case letter.
682 2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
686 * decl.c (build_sym): Reverted previous patch.
688 2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
691 * decl.c (build_sym): If the name has already been defined as a
692 type, issue error and return false.
694 2016-02-12 David Malcolm <dmalcolm@redhat.com>
697 * error.c (gfc_diagnostic_start_span): New function.
698 (gfc_diagnostics_init): Initialize global_dc's start_span.
700 2016-02-11 Andre Vehreschild <vehre@gcc.gnu.org>
703 * gfortran.h: Added flag to gfc_association_list indicating that
704 the rank of an associate variable has been guessed only.
705 * parse.c (parse_associate): Set the guess flag mentioned above
706 when guessing the rank of an expression.
707 * resolve.c (resolve_assoc_var): When the rank has been guessed,
708 make sure, that the guess was correct else overwrite with the actual
710 * trans-stmt.c (trans_associate_var): For subref_array_pointers in
711 class objects, take the span from the _data component.
713 2016-02-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
716 * primary.c (match_actual_arg): If symbol has attribute flavor of
717 namelist, generate an error. (gfc_match_rvalue): Likewise return
719 * resolve.c (resolve_symbol): Scan arument list of procedures and
720 generate an error if a namelist is found.
722 2016-02-05 Mikael Morin <mikael@gcc.gnu.org>
725 * trans-expr.c (expr_is_variable, gfc_expr_is_variable): Rename
726 the former to the latter and make it non-static. Update callers.
727 * gfortran.h (gfc_expr_is_variable): New declaration.
728 (struct gfc_ss_info): Add field needs_temporary.
729 * trans-array.c (gfc_scalar_elemental_arg_saved_as_argument):
730 Tighten the condition on aggregate expressions with a check
731 that the expression is a variable and doesn't need a temporary.
732 (gfc_conv_resolve_dependency): Add intermediary reference variable.
733 Set the needs_temporary field.
735 2016-02-03 Andre Vehreschild <vehre@gcc.gnu.org>
739 * trans-expr.c (gfc_copy_class_to_class): For coarrays just the
740 pointer is passed. Take it as is without trying to deref the
742 * trans-stmt.c (gfc_trans_allocate): Take care of coarrays as
743 argument to source=-expression.
745 2016-02-02 Nathan Sidwell <nathan@codesourcery.com>
747 * lang.opt (fopenacc-dim=): New option.
749 2016-01-31 Paul Thomas <pault@gcc.gnu.org>
752 * trans-expr.c (gfc_conv_procedure_call): For the vtable copy
753 subroutines, add a string length argument, when the actual
754 argument is an unlimited polymorphic class object.
756 2016-01-30 Paul Thomas <pault@gcc.gnu.org>
759 * trans-expr.c (gfc_conv_procedure_call): Correct expression
760 for 'ulim_copy', which was missing a test for 'comp'.
762 2016-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
765 * decl.c (gfc_match_end): Only unnest and remove BLOCK namespaces
766 when the END encountered does not match a BLOCK's end.
768 2016-01-27 Janus Weil <janus@gcc.gnu.org>
771 * invoke.texi: Fix documentation of -Wall with respect to -Wtabs.
773 2016-01-27 Paul Thomas <pault@gcc.gnu.org>
776 * trans-expr.c (is_scalar_reallocatable_lhs): Remove the check
777 for allocatable components, whilst checking if the symbol is a
778 derived or class entity..
780 2016-01-26 Paul Thomas <pault@gcc.gnu.org>
783 * trans-expr.c (gfc_trans_assignment_1): Exclude initialization
784 assignments from check on assignment of scalars to unassigned
785 arrays and correct wrong code within the corresponding block.
787 2016-01-26 David Malcolm <dmalcolm@redhat.com>
790 * error.c (gfc_diagnostic_starter): Delete use of pp_newline.
792 2016-01-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
796 * interface.c (gfc_arglist_matches_symbol): Replace assert with
797 a return false if not a procedure.
798 * resolve.c (resolve_generic_f): Test if we are resolving an
799 initialization expression and adjust error message accordingly.
801 2016-01-24 Thomas Koenig <tkoenig@gcc.gnu.org>
804 * frontend-passes.c (matmul_lhs_realloc): Add
805 forgotten break statement.
807 2016-01-24 Dominique d'Humieres <dominiq@lps.ens.fr>
810 * primary.c (gfc_variable_attr): revert revision r221955,
811 call gfc_internal_error only if there is no error.
813 2016-01-24 Thomas Koenig <tkoenig@gcc.gnu.org>
816 * frontend-passes.c (enum matrix_case): Add case A2B2T for
817 MATMUL(A,TRANSPoSE(B)) where A and B are rank 2.
818 (inline_limit_check): Also add A2B2T.
819 (matmul_lhs_realloc): Handle A2B2T.
820 (check_conjg_variable): Rename to
821 (check_conjg_transpose_variable): and also count TRANSPOSE.
822 (inline_matmul_assign): Handle A2B2T.
824 2016-01-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
827 * error.c (gfc_error): Save the state of abort_on_error and set
828 it to false for buffered errors to allow normal processing.
829 Restore the state before leaving.
831 2016-01-19 Martin Jambor <mjambor@suse.cz>
833 * types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
834 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
835 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
837 2016-01-15 Paul Thomas <pault@gcc.gnu.org>
840 * resolve.c (check_uop_procedure): Prevent deferred length
841 characters from being trapped by assumed length error.
849 * trans-array.c (gfc_conv_scalarized_array_ref): Pass decl for
850 function as well as variable expressions.
851 (gfc_array_init_size): Add 'expr' as an argument. Use this to
852 correctly set the descriptor dtype for deferred characters.
853 (gfc_array_allocate): Add 'expr' to the call to
854 'gfc_array_init_size'.
855 * trans.c (gfc_build_array_ref): Expand logic for setting span
856 to include indirect references to character lengths.
857 * trans-decl.c (gfc_get_symbol_decl): Ensure that deferred
858 result char lengths that are PARM_DECLs are indirectly
859 referenced both for directly passed and by reference.
860 (create_function_arglist): If the length type is a pointer type
861 then store the length as the 'passed_length' and make the char
862 length an indirect reference to it.
863 (gfc_trans_deferred_vars): If a character length has escaped
864 being set as an indirect reference, return it via the 'passed
866 * trans-expr.c (gfc_conv_procedure_call): The length of
867 deferred character length results is set TREE_STATIC and set to
869 (gfc_trans_assignment_1): Do not fix the rse string_length if
870 it is a variable, a parameter or an indirect reference. Add the
871 code to trap assignment of scalars to unallocated arrays.
872 * trans-stmt.c (gfc_trans_allocate): Remove 'def_str_len' and
873 all references to it. Instead, replicate the code to obtain a
874 explicitly defined string length and provide a value before
875 array allocation so that the dtype is correctly set.
876 trans-types.c (gfc_get_character_type): If the character length
877 is a pointer, use the indirect reference.
879 2016-01-10 Thomas Koenig <tkoenig@gcc.gnu.org>
882 * frontend-passes.c (in_where): New variable.
883 (inline_matmul_assign): Don't try this if we are within
885 (gfc_code_walker): Keep track of in_where.
887 2016-01-10 Paul Thomas <pault@gcc.gnu.org>
890 * trans_array.c (gfc_conv_scalarized_array_ref): Add missing
891 se->use_offset from condition for calculation of 'base'.
893 2016-01-08 Jakub Jelinek <jakub@redhat.com>
896 * trans.h (OMPWS_SCALARIZER_BODY): Define.
897 (OMPWS_NOWAIT): Renumber.
898 * trans-stmt.c (gfc_trans_where_3): Only set OMPWS_SCALARIZER_WS
899 if OMPWS_SCALARIZER_BODY is not set already, and set also
900 OMPWS_SCALARIZER_BODY until the final loop creation.
901 * trans-expr.c (gfc_trans_assignment_1): Likewise.
902 * trans-openmp.c (gfc_trans_omp_workshare): Also clear
903 OMPWS_SCALARIZER_BODY.
904 * trans-array.c (gfc_trans_scalarized_loop_end): Don't create
905 OMP_FOR if OMPWS_SCALARIZER_BODY is set.
907 2016-01-04 Jakub Jelinek <jakub@redhat.com>
909 Update copyright years.
911 * gfortranspec.c (lang_specific_driver): Update copyright notice
913 * gfc-internals.texi: Bump @copying's copyright year.
914 * gfortran.texi: Ditto.
915 * intrinsic.texi: Ditto.
916 * invoke.texi: Ditto.
918 2016-01-01 Paul Thomas <pault@gcc.gnu.org>
921 * trans-array.c (evaluate_bound): If deferred, test that 'desc'
922 is an array descriptor before using gfc_conv_descriptor_xxx.
924 Copyright (C) 2016 Free Software Foundation, Inc.
926 Copying and distribution of this file, with or without modification,
927 are permitted in any medium without royalty provided the copyright
928 notice and this notice are preserved.