1 2014-01-26 Mikael Morin <mikael@gcc.gnu.org>
4 * module.c (fp2, find_pointer2): Remove.
5 (mio_component_ref): Don't forcedfully set the containing derived type
6 symbol for loading. Remove unused argument.
7 (mio_ref): Update caller
8 (skip_list): New argument nest_level. Initialize level with the new
10 (read_module): Add forced pointer components association for derived
13 2014-01-11 Janus Weil <janus@gcc.gnu.org>
15 Backport from mainline
16 2013-12-29 Janus Weil <janus@gcc.gnu.org>
20 * dump-parse-tree.c (show_typespec): Check for charlen.
21 * invoke.texi: Fix documentation of -fdump-fortran-optimized and
24 2013-11-17 Paul Thomas <pault@gcc.gnu.org>
27 * trans-io.c (transfer_expr): If the backend_decl for a derived
28 type is missing, build it with gfc_typenode_for_spec.
30 2013-11-02 Janus Weil <janus@gcc.gnu.org>
32 Backport from mainline
33 2013-09-23 Janus Weil <janus@gcc.gnu.org>
36 * decl.c (check_extended_derived_type): Prevent segfault, modify error
39 2013-08-11 Janus Weil <janus@gcc.gnu.org>
42 2013-08-09 Janus Weil <janus@gcc.gnu.org>
45 * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Free the temporary
48 2013-07-08 Tobias Burnus <burnus@net-b.de>
51 * simplify.c (compute_dot_product): Complex conjugate for
53 (gfc_simplify_dot_product, gfc_simplify_matmul): Update call.
55 2013-06-06 Tobias Burnus <burnus@net-b.de>
57 Backport from mainline
58 2012-08-27 Tobias Burnus <burnus@net-b.de>
61 * trans-stmt.c (gfc_trans_do_while): Don't change the logical
62 kind for negation of the condition.
64 2013-06-01 Janus Weil <janus@gcc.gnu.org>
65 Tobias Burnus <burnus@net-b.de>
68 * interface.c (check_dummy_characteristics): Symmetrize type check.
70 2013-05-22 Janne Blomqvist <jb@gcc.gnu.org>
72 * intrinsic.texi (RANDOM_SEED): Improve example.
74 2013-05-07 Tobias Burnus <burnus@net-b.de>
76 Backport from mainline
77 2013-05-02 Tobias Burnus <burnus@net-b.de>
80 * simplify.c (gfc_simplify_size): Renamed from
81 simplify_size; fix kind=8 handling.
82 (gfc_simplify_size): New function.
83 (gfc_simplify_shape): Add range check.
84 * resolve.c (resolve_function): Fix handling
87 2013-04-26 Janus Weil <janus@gcc.gnu.org>
92 * expr.c (gfc_check_pointer_assign): Handle generic functions returning
97 * check.c (gfc_calculate_transfer_sizes): Fix for array-valued SOURCE
99 * target-memory.h (gfc_element_size): New prototype.
100 * target-memory.c (size_array): Remove.
101 (gfc_element_size): New function.
102 (gfc_target_expr_size): Modified to always return the full size of the
105 2013-04-18 Tobias Burnus <burnus@net-b.de>
108 * invoke.texi (NEAREST): S argument is not optional.
110 2013-04-11 Release Manager
112 * GCC 4.7.3 released.
114 2013-03-15 Tobias Burnus <burnus@net-b.de>
117 * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Pack arrays
118 if they are not simply contiguous.
120 2013-03-13 Paul Thomas <pault@gcc.gnu.org>
123 * expr.c (gfc_default_initializer): Check that a class declared
124 type has any components.
125 * resolve.c (resolve_fl_derived0): On failing the test for C437
126 set the type to BT_UNKNOWN to prevent repeat error messages.
128 2013-03-10 Paul Thomas <pault@gcc.gnu.org>
131 * check.c (array_check): It is an error if a procedure is
134 2013-02-22 Janus Weil <janus@gcc.gnu.org>
137 * trans-array.c (structure_alloc_comps): Handle procedure-pointer
138 components with allocatable result.
140 2013-02-17 Tobias Burnus <burnus@net-b.de>
141 Mikael Morin <mikael@gcc.gnu.org>
144 2013-01-28 Tobias Burnus <burnus@net-b.de>
145 Mikael Morin <mikael@gcc.gnu.org>
148 * symbol.c (gfc_find_sym_tree): Don't look for the symbol outside an
150 (gfc_get_ha_symtree): Let gfc_find_sym_tree lookup the parent namespace.
151 * decl.c (gfc_match_data_decl): Ditto.
152 (variable_decl): Remove undeclared type error.
153 (gfc_match_import): Use renamed instead of original name.
155 2013-02-15 Tobias Burnus <burnus@net-b.de>
156 Mikael Morin <mikael@gcc.gnu.org>
159 * simplify.c (gfc_simplify_matmul): Fix result shape
162 2013-02-02 Thomas Koenig <tkoenig@gcc.gnu.org>
167 * decl.c (gfc_match_end): Remove half-ready namespace
168 from parent if the end of a block is missing.
169 * parse.c (parse_module): Do not put namespace into
172 2013-02-01 Jakub Jelinek <jakub@redhat.com>
174 Backported from mainline
175 2013-01-23 Jakub Jelinek <jakub@redhat.com>
178 * trans-decl.c (gfc_get_symbol_decl): Set DECL_ARTIFICIAL
179 and DECL_IGNORED_P on select_type_temporary and don't set
182 2013-01-24 Janus Weil <janus@gcc.gnu.org>
185 * resolve.c (resolve_select): Add argument 'select_type', reject
186 non-scalar expressions.
187 (resolve_select_type,resolve_code): Pass new argument to
190 2013-01-17 Janus Weil <janus@gcc.gnu.org>
193 * class.c (find_typebound_proc_uop): Check for f2k_derived instead of
196 2013-01-13 Janus Weil <janus@gcc.gnu.org>
199 * trans-array.c (gfc_conv_array_parameter): No packing was done for
200 full arrays of derived type.
202 2013-01-13 Paul Thomas <pault@gcc.gnu.org>
205 * trans-expr.c (gfc_conv_procedure_call): Dereference scalar
206 character function arguments to elemental procedures in
209 2013-01-08 Mikael Morin <mikael@gcc.gnu.org>
214 * module.c (read_module): Don't reuse local symtree if the associated
215 symbol isn't exactly the one wanted. Don't reuse local symtree if it is
217 * resolve.c (resolve_call): Use symtree's name instead of symbol's to
220 2013-01-07 Tobias Burnus <burnus@net-b.de>
221 Thomas Koenig <tkoenig@gcc.gnu.org>
222 Jakub Jelinek <jakub@redhat.com>
225 * expr.c (gfc_build_intrinsic_call): Avoid clashes
226 with user's procedures.
227 * gfortran.h (gfc_build_intrinsic_call): Update prototype.
228 (GFC_PREFIX): Define.
229 * simplify.c (gfc_simplify_size): Update call.
231 2013-01-07 Steven G. Kargl <kargl@gcc.gnu.org>
232 Mikael Morin <mikael@gcc.gnu.org>
235 * class.c (gfc_fix_class_refs): Adapt ts initialization for the case
237 * trans-expr.c (gfc_conv_function_expr): Init sym earlier. Use it.
239 2012-12-20 Tobias Burnus <burnus@net-b.de>
242 * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Ensure that
243 the string length is of type gfc_charlen_type_node.
245 2012-11-24 Thomas Koenig <tkoenig@gcc.gnu.org>
249 * resolve.c (resolve_allocate_deallocate): Compare all
250 subscripts when deciding if to reject a (de)allocate
253 2012-11-23 Janus Weil <janus@gcc.gnu.org>
256 * trans-decl.c (generate_local_decl): Don't warn for explicitly imported
257 but unused module variables which are in a namelist or common block.
259 2012-11-06 Janus Weil <janus@gcc.gnu.org>
262 * target-memory.c (gfc_target_expr_size,gfc_target_interpret_expr):
265 2012-10-14 Janus Weil <janus@gcc.gnu.org>
268 * trans-stmt.c (gfc_trans_allocate): Correctly determine the reference
269 to the _data component for polymorphic allocation with SOURCE.
271 2012-09-20 Release Manager
273 * GCC 4.7.2 released.
275 2012-09-13 Tobias Burnus <burnus@net-b.de>
278 * resolve.c (resolve_formal_arglist): Allow VALUE arguments
280 (gfc_impure_variable): Don't check gfc_pure such that the
281 function also works for gfc_implicit_pure procedures.
283 2012-09-12 Tobias Burnus <burnus@net-b.de>
287 * array.c (match_subscript, gfc_match_array_ref): Fix
288 diagnostic of coarray's '*'.
290 2012-09-10 Janus Weil <janus@gcc.gnu.org>
294 * match.c (gfc_match_select_type): Make sure to only access CLASS_DATA
297 2012-09-08 Mikael Morin <mikael@gcc.gnu.org>
300 * simplify.c (simplify_bound_dim): Resolve array spec before
301 proceeding with simplification.
303 2012-07-06 Mikael Morin <mikael@gcc.gnu.org>
306 * trans-array.c (gfc_add_loop_ss_code): Disable self recursive calls
307 handling nested loop(s) if the subscript flag is true.
309 2012-06-22 Tobias Burnus <burnus@net-b.de>
311 Backport from mainline
312 2012-06-17 Tobias Burnus <burnus@net-b.de>
316 * check.c (gfc_calculate_transfer_sizes): Return if
317 SIZE= is not constant or source-size cannot be determined.
319 2012-06-14 Tobias Burnus <burnus@net-b.de>
321 Backport from mainline
322 2012-06-04 Tobias Burnus <burnus@net-b.de>
325 * resolve.c (build_default_init_expr): Don't initialize
328 2012-06-14 Tobias Burnus <burnus@net-b.de>
331 * decl.c (match_attr_spec): Only mark module variables
332 as SAVE_IMPLICIT for Fortran 2008 and later.
334 2012-06-14 Release Manager
336 * GCC 4.7.1 released.
338 2012-06-01 Tobias Burnus <burnus@net-b.de>
341 * trans.c (gfc_deallocate_scalar_with_status): Properly
342 handle the case size == 0.
344 2012-05-23 Tobias Burnus <burnus@net-b.de>
347 * trans-array.c (gfc_add_loop_ss_code): Don't evaluate expression, if
348 ss->is_alloc_lhs is set.
350 2012-05-07 Tobias Burnus <burnus@net-b.de>
352 Backport from mainline:
353 2012-05-07 Tobias Burnus <burnus@net-b.de>
356 * resolve.c (resolve_typebound_static): Fix handling
357 of overridden specific to generic operator.
359 2012-05-05 Tobias Burnus <burnus@net-b.de>
361 Backport from mainline:
362 2012-05-04 Tobias Burnus <burnus@net-b.de>
365 * resolve.c (resolve_fl_derived): Fix -std=f95
366 diagnostic for generic vs. DT names.
368 2012-05-02 Tobias Burnus <burnus@net-b.de>
370 Backport from mainline
371 2012-04-12 Tobias Burnus <burnus@net-b.de>
374 * expr.c (gfc_check_vardef_context): Fix assignment check for
377 2012-04-30 Thomas Koenig <tkoenig@gcc.gnu.org>
381 * frontend-passes.c (create_var): If the statement has a label,
382 put the label around the block.
384 2012-04-07 Thomas Koenig <tkoenig@gcc.gnu.org>
388 * frontend-passes.c: Keep track of wether we are in an implicit
389 DO loop; do not do function elimination if we are.
391 2012-04-07 Thomas Koenig <tkoenig@gcc.gnu.org>
395 * module.c: Only mark symbols as use_only if they have been
396 imported via an only list.
398 2012-03-22 Tobias Burnus <burnus@net-b.de>
401 * resolve.c (resolve_intrinsic): Don't search for a
402 function if we know that it is a subroutine.
404 2012-03-22 Release Manager
406 * GCC 4.7.0 released.
408 2012-03-10 Tobias Burnus <burnus@net-b.de>
411 * trans-types.c (gfc_get_function_type): Handle backend_decl
412 of a procedure pointer.
414 2012-02-29 Paul Thomas <pault@gcc.gnu.org>
417 * trans-expr.c (fcncall_realloc_result): Dereference the
418 descriptor if needed.
420 2012-02-22 Tobias Burnus <burnus@net-b.de>
423 * io.c (gfc_match_open): Remove bogus F2003 DELIM= check.
425 2012-02-18 Tobias Burnus <burnus@net-b.de>
428 * interface.c (check_interface0): Internal procs in
429 generic interfaces are allowed in Fortran 2008.
431 2012-02-17 Tobias Burnus <burnus@net-b.de>
432 Roland Stigge <stigge@antcom.de>
435 * interface.c (compare_actual_formal): Fix typo "at at".
437 2012-02-17 Tobias Burnus <burnus@net-b.de>
439 * gfortran.texi (Q exponent-letter): Fix grammar.
441 2012-02-17 Tobias Burnus <burnus@net-b.de>
443 * gfortran.texi (Status): Fix typos.
444 * invoke.texi (ffixed-form, fstack-arrays): Spell Fortran with
447 2012-02-17 Tobias Burnus <burnus@net-b.de>
448 Roland Stigge <stigge@antcom.de>
456 * io.c (gfc_match_open): Fix typo.
457 * interface.c (compare_actual_formal): Ditto.
458 * lang.opt (freal-4-real-8, freal-4-real-16, freal-8-real-16): Ditto.
459 * match.c (alloc_opt_list, gfc_match_nullify): Ditto.
460 * check.c (gfc_check_associated, gfc_check_null): Ditto.
462 2012-02-12 Mikael Morin <mikael@gcc.gnu.org>
465 * trans-stmt.c (gfc_get_proc_ifc_for_call): New function.
466 (gfc_trans_call): Use gfc_get_proc_ifc_for_call.
468 2012-02-12 Mikael Morin <mikael@gcc.gnu.org>
470 * trans-array.c (gfc_walk_elemental_function_args,
471 gfc_walk_function_expr): Move call to gfc_get_proc_ifc_for_expr out
472 of gfc_walk_elemental_function_args.
473 * trans-stmt.c (gfc_trans_call): Ditto.
474 * trans-array.h (gfc_get_proc_ifc_for_expr): New prototype.
475 (gfc_walk_elemental_function_args): Update prototype.
477 2012-02-12 Mikael Morin <mikael@gcc.gnu.org>
479 * trans-array.c (gfc_get_proc_ifc_for_expr): New function.
480 (gfc_walk_elemental_function_args): Move code to
481 gfc_get_proc_ifc_for_expr and call it.
483 2012-02-08 Tobias Burnus <burnus@net-b.de>
486 * trans-expr.c (fcncall_realloc_result): Set also the stride.
488 2012-02-07 Tobias Burnus <burnus@net-b.de>
491 * trans-expr.c (gfc_conv_procedure_call): Add _data component
492 for calls of scalar CLASS actuals to TYPE dummies.
494 2012-02-05 Thomas König <tkoenig@gcc.gnu.org>
497 * trans-decl.c: Warn about unused dummy procedure arguments
498 if -Wunused-dummy-argument is specified. Suppress middle-end
499 warnings about procedure arguments.
501 2012-02-05 Paul Thomas <pault@gcc.gnu.org>
503 * trans-array.c (gfc_array_allocate): Zero memory for all class
505 * trans-stmt.c (gfc_trans_allocate): Ditto for class scalars.
508 * trans-stmt.c (gfc_trans_allocate): Before correcting a class
509 array reference, ensure that 'dataref' points to the _data
510 component that is followed by the array reference..
512 2012-02-02 Mikael Morin <mikael@gcc.gnu.org>
518 * class.c (insert_component_ref, class_data_ref_missing,
519 gfc_fix_class_refs): New functions.
520 * gfortran.h (gfc_fix_class_refs): New prototype.
521 * trans-expr.c (gfc_conv_expr): Remove special case handling and call
522 gfc_fix_class_refs instead.
524 2012-02-02 Paul Thomas <pault@gcc.gnu.org>
527 * trans-expr.c (fcncall_realloc_result): If variable shape is
528 correct, retain the bounds, whatever they are.
530 2012-02-02 Tobias Burnus <burnus@net-b.de>
533 * simplify.c (gfc_simplify_size): Handle INTRINSIC_PARENTHESES.
535 2012-02-01 Thomas König <tkoenig@gcc.gnu.org>
538 * frontend-passes.c (convert_elseif): New function.
539 (optimize_namespace): Call it.
541 2012-02-01 Tobias Burnus <burnus@net-b.de>
544 * module.c (MOD_VERSION): Bump.
545 (mio_typebound_proc): Read/write is_operator from/to the
548 2012-02-01 Tobias Burnus <burnus@net-b.de>
551 * trans-expr.c (gfc_conv_procedure_call): Add array ref
554 2012-01-31 Tobias Burnus <burnus@net-b.de>
557 * gfortran.h (gfc_tbp_generic): Store whether the
558 generic is an operator.
559 * decl.c (gfc_match_generic): Set that flag.
560 * resolve.c (check_generic_tbp_ambiguity): Use it in the
561 gfc_compare_interfaces check.
563 2012-01-31 Tobias Burnus <burnus@net-b.de>
566 * class.c (gfc_find_derived_vtab): Mark _copy function as pure.
568 2012-01-31 Tobias Burnus <burnus@net-b.de>
571 * class.c (get_unique_hashed_string): Adapt trim length.
572 (gfc_build_class_symbol) Encode also corank in the container name.
574 2012-01-31 Paul Thomas <pault@gcc.gnu.org>
577 * trans-expr.c (fcncall_realloc_result): Correct calculation of
580 2012-01-29 Janne Blomqvist <jb@gcc.gnu.org>
582 * module.c (pointer_info): Make true_name and module pointers
583 rather than arrays, order pointers before other fields.
584 (free_pi_tree): free true_name and module as well.
585 (mio_read_string): Rename to read_string.
586 (mio_write_string): Remove.
587 (load_commons): Use read_string.
588 (read_module): Use read_string rather than mio_internal_string.
589 (write_blank_common): Call write_atom directly.
590 (write_symbol): Likewise.
592 2012-01-29 Tobias Burnus <burnus@net-b.de>
595 * expr.c (gfc_default_initializer): Convert the values if
596 the type does not match.
598 2012-01-29 Tobias Burnus <burnus@net-b.de>
601 * trans-array.c (structure_alloc_comps): Fix assignment of
602 polymorphic components (polymorphic deep copying).
604 2012-01-29 Janne Blomqvist <jb@gcc.gnu.org>
607 * decl.c (set_binding_label): Make binding_label argument const.
608 (curr_binding_label): Constify.
609 * gfortran.h (gfc_symbol): Constify binding_label.
610 (gfc_common_head): Likewise.
611 (get_iso_c_sym): Likewise.
612 * match.c (gfc_match_name_C): Constify buffer argument.
613 * match.h (gfc_match_name_C): Likewise.
614 * resolve.c (set_name_and_label): Constify binding_label argument.
615 (gfc_iso_c_sub_interface): Constify binding_label variable.
616 * symbol.c (get_iso_c_sym): Constify binding_label argument.
618 2012-01-29 Janne Blomqvist <jb@gcc.gnu.org>
621 * decl.c (set_binding_label): Move prototype from match.h to here.
622 (curr_binding_label): Make a pointer rather than static array.
623 (build_sym): Check sym->binding_label pointer rather than array,
624 update set_binding_label call, handle curr_binding_label changes.
625 (set_binding_label): Handle new curr_binding_label, dest_label
626 double ptr, and sym->binding_label.
627 (verify_bind_c_sym): Handle sym->binding_label being a pointer.
628 (set_verify_bind_c_sym): Check sym->binding_label pointer rather
629 than array, update set_binding_label call.
630 (gfc_match_bind_c_stmt): Handle curr_binding_label change.
631 (match_procedure_decl): Update set_binding_label call.
632 (gfc_match_bind_c): Change binding_label to pointer, update
633 gfc_match_name_C call.
634 * gfortran.h (GFC_MAX_BINDING_LABEL_LEN): Remove macro.
635 (gfc_symbol): Make binding_label a pointer.
636 (gfc_common_head): Likewise.
637 * match.c (gfc_match_name_C): Heap allocate bind(C) name.
638 * match.h (gfc_match_name_C): Change prototype argument.
639 (set_binding_label): Move prototype to decl.c.
640 * module.c (struct pointer_info): Make binding_label a pointer.
641 (free_pi_tree): Free unused binding_label.
642 (mio_read_string): New function.
643 (mio_write_string): New function.
644 (load_commons): Redo reading of binding_label.
645 (read_module): Likewise.
646 (write_common_0): Change to write empty string instead of name if
648 (write_blank_common): Write empty string for binding label.
649 (write_symbol): Change to write empty string instead of name if no
651 * resolve.c (gfc_iso_c_func_interface): Don't set binding_label.
652 (set_name_and_label): Make binding_label double pointer, use
654 (gfc_iso_c_sub_interface): Make binding_label a pointer.
655 (resolve_bind_c_comms): Handle cases if
656 gfc_common_head->binding_label is NULL.
657 (gfc_verify_binding_labels): sym->binding_label is a pointer.
658 * symbol.c (gfc_new_symbol): Rely on XCNEW zero init for
660 (gen_special_c_interop_ptr): Don't set binding label.
661 (generate_isocbinding_symbol): Insert binding_label into symbol
663 (get_iso_c_sym): Use pointer assignment instead of strcpy.
664 * trans-common.c (gfc_sym_mangled_common_id): Handle
665 com->binding_label being a pointer.
666 * trans-decl.c (gfc_sym_mangled_identifier): Handle
667 sym->binding_label being a pointer.
668 (gfc_sym_mangled_function_id): Likewise.
670 2012-01-29 Tobias Burnus <burnus@net-b.de>
673 * resolve.c (symbol_as): Remove unused, accidentally
676 2012-01-28 Tobias Burnus <burnus@net-b.de>
679 * trans-stmt.c (gfc_trans_allocate): Properly check whether
680 we have a BT_CLASS which needs to be memset.
682 2012-01-27 Tobias Burnus <burnus@net-b.de>
685 * trans-expr.c (gfc_conv_procedure_call): Fix passing
686 of functions, which return allocatables.
688 2012-01-27 Tobias Burnus <burnus@net-b.de>
691 * resolve.c (resolve_formal_arglist): Fix elemental
692 constraint checks for polymorphic dummies also for
695 2012-01-27 Tobias Burnus <burnus@net-b.de>
699 * primary.c (gfc_match_varspec. gfc_match_rvalue): Set
700 handle array spec for BT_CLASS.
701 * expr.c (gfc_get_variable_expr, gfc_lval_expr_from_sym)
702 * frontend-passes.c (create_var): Ditto.
703 * resolve.c (resolve_actual_arglist, resolve_assoc_var): Ditto.
704 * trans-decl.c (gfc_trans_deferred_vars): Use class_pointer
705 instead of attr.pointer.
706 (gfc_generate_function_code): Use CLASS_DATA (sym) for BT_CLASS.
707 * trans-intrinsic.c (conv_intrinsic_move_alloc): Move assert.
708 * trans-stmt.c (trans_associate_var): Ask for the descriptor.
710 2012-01-27 Tobias Burnus <burnus@net-b.de>
713 * match.c (gfc_match_allocate): Allow more than allocate
716 2012-01-27 Tobias Burnus <burnus@net-b.de>
719 * resolve.c (resolve_formal_arglist): Fix elemental
720 constraint checks for polymorphic dummies.
722 2012-01-27 Paul Thomas <pault@gcc.gnu.org>
723 Tobias Burnus <burnus@gcc.gnu.org>
729 * trans-array.c (gfc_array_init_size): Add two extra arguments
730 to convey the dynamic element size of a calls object and to
731 return the number of elements that have been allocated.
732 (gfc_array_allocate): Add the same arguments and use them to
733 call gfc_array_init_size. Before the allocation dereference
734 the data pointer, if necessary. Set the allocated array to zero
735 if the class element size or expr3 are non-null.
736 * trans-expr.c (gfc_conv_class_to_class): Give this function
738 (get_class_array_ref): New function.
739 (gfc_copy_class_to_class): New function.
740 * trans-array.h : Update prototype for gfc_array_allocate.
741 * trans-stmt.c (gfc_trans_allocate): For non-variable class
742 STATUS expressions extract the class object and the dynamic
743 element size. Use the latter to call gfc_array_allocate and
744 the former for setting the vptr and, via
745 gfc_copy_class_to_clasfc_cs, to copy to the allocated data.
746 * trans.h : Prototypes for gfc_get_class_array_ref,
747 gfc_copy_class_to_class and gfc_conv_class_to_class.
749 2012-01-25 Tobias Burnus <burnus@net-b.de>
751 * resolve.c (symbol_as): Check also for attr.class_ok.
753 2012-01-25 Tobias Burnus <burnus@net-b.de>
756 * class.c (gfc_build_class_symbol): Fix invalid freeing
757 issue with fclass->f2k_derived.
759 2012-01-25 Tobias Burnus <burnus@net-b.de>
762 * class.c (gfc_build_class_symbol): Ensure that
763 fclass->f2k_derived is set.
765 2012-01-25 Tobias Burnus <burnus@net-b.de>
768 * resolve.c (resolve_structure_cons): Only create an
769 array constructors for nonscalars.
771 2012-01-23 Tobias Burnus <burnus@net-b.de>
774 * check.c (variable_check): Fix checking for
775 variables and deeply nested BLOCKs.
777 2012-01-21 Tobias Burnus <burnus@net-b.de>
778 Steven G. Kargl <kargl@gcc.gnu.org>
781 * symbol.c (check_conflict): namelist-group-name cannot have the SAVE
784 2012-01-21 Tobias Burnus <burnus@net-b.de>
787 * interface.c (compare_parameter): Fix CLASS comparison.
789 2012-01-20 Tobias Burnus <burnus@net-b.de>
790 Janus Weil <janus@gcc.gnu.org>
793 * module.c (load_needed, read_module): Don't mark __vtab etc.
796 2012-01-19 Tobias Burnus <burnus@net-b.de>
799 * expr.c (gfc_build_intrinsic_call): Also set the symtree.
801 2012-01-18 Paul Thomas <pault@gcc.gnu.org>
804 * trans-expr.c (gfc_conv_procedure_call): Deallocate allocatable
805 components of temporary class arguments.
807 2012-01-17 Tobias Burnus <burnus@net-b.de>
808 Janne Blomqvist <jb@gcc.gnu.org>
811 * trans-expr.c (alloc_scalar_allocatable_for_assignment): Nullify
812 LHS after allocation, if it has allocatable components.
813 * f95-lang.c (gfc_init_builtin_functions): Add BUILT_IN_CALLOC.
815 2012-01-16 Mikael Morin <mikael@gcc.gnu.org>
816 Tobias Burnus <burnus@net-b.de>
819 * trans-array.c (gfc_walk_elemental_function_args): Fix
820 passing of deallocated allocatables/pointers as absent argument.
822 2012-01-16 Tobias Burnus <burnus@net-b.de>
825 * class.c (gfc_find_derived_vtab): Mark __vtab and
826 __def_init as FL_VARIABLE not as FL_PARAMETER.
827 * expr.c (gfc_simplify_expr): Remove special
829 * resolve.c (resolve_values): Ditto.
830 * trans-decl.c (gfc_get_symbol_decl): Mark __vtab
831 and __def_init as TREE_READONLY.
833 2012-01-16 Zydrunas Gimbutas <gimbutas@cims.nyu.edu>
834 Andreas Kloeckner <kloeckner@cims.nyu.edu>
835 Steven G. Kargl <kargl@gcc.gnu.org>
838 * gfortran.h (gfc_option_t): Add members flag_*_kind to store kind.
839 * lang.opt: Add options -freal-4-real-8, -freal-4-real-10,
840 -freal-4-real-16, -freal-8-real-4, -freal-8-real-10, -freal-8-real-16
841 and -finteger-4-integer-8. User-desired type conversion information.
842 * decl.c (gfc_match_old_kind_spec,kind_expr): Type conversions
843 in declaration parsing.
844 * trans-types.c (gfc_init_kinds): User-specified type conversion
845 checked for current backend.
846 * primary.c (match_integer_constant,match_real_constant): Implement
847 type conversion in constant parsing.
848 * options.c (gfc_init_options,gfc_handle_option): Translate input
849 options to flags in internal options data structure.
850 * invoke.texi: Document new options. Re-order options in Options
853 2012-01-16 Paul Thomas <pault@gcc.gnu.org>
855 * trans-array.c (gfc_trans_create_temp_array): In the case of a
856 class array temporary, detect a null 'eltype' on entry and use
857 'initial' to provde the class reference and so, through the
858 vtable, the element size for the dynamic type.
859 * trans-stmt.c (gfc_conv_elemental_dependencies): For class
860 expressions, set 'eltype' to null and pass the values via the
861 'initial' expression.
863 2012-01-14 Tobias Burnus <burnus@net-b.de>
866 * resolve.c (build_default_init_expr): Also initialize
867 nonconstant-length strings with -finit-character=<n>.
869 2011-01-14 Tobias Burnus <burnus@net-b.de>
872 * module.c (read_module): Don't make nonexisting
873 intrinsic operators as found.
874 (rename_list_remove_duplicate): New function.
875 (gfc_use_modules): Use it.
877 2012-01-13 Paul Thomas <pault@gcc.gnu.org>
880 * trans-array.c (structure_alloc_comps): Suppress interative
881 call to self, when current component is deallocated using
882 gfc_trans_dealloc_allocated.
883 * class.c (gfc_build_class_symbol): Copy the 'alloc_comp'
884 attribute from the declared type to the class structure.
886 2012-01-13 Tobias Burnus <burnus@net-b.de>
889 * fortran/trans-types.c (gfc_init_kinds): Use PTRDIFF_TYPE
890 instead of a signed int of size POINTER_SIZE for
891 gfc_index_integer_kind.
893 2012-01-12 Tobias Burnus <burnus@net-b.de>
896 * intrinsic.texi (CHMOD): Extend a bit and remove statement
897 that /bin/chmod is called.
899 2012-01-10 Gerald Pfeifer <gerald@pfeifer.com>
901 * gfortran.texi (Fortran 2003 Status): Fix grammar.
903 2012-01-10 Tobias Burnus <burnus@net-b.de>
906 * resolve.c (resolve_allocate_expr): For non-deferred char lengths,
907 check whether type-spec matches declaration.
909 2012-01-10 Tobias Burnus <burnus@net-b.de>
911 * resolve.c (resolve_ordinary_assign): Improve error wording.
913 2012-01-09 Paul Thomas <pault@gcc.gnu.org>
916 * interface.c (matching_typebound_op): Drill down through
917 possible parentheses to obtain base expression. Do not test for
918 'class_ok' but, instead for the class structure components.
919 * resolve.c (resolve_ordinary_assign): Extend error message for
920 polymorphic assignment to advise checking for specific
924 * resolve.c (resolve_typebound_function): Restore 'static' to
927 2012-01-09 Mikael Morin <mikael@gcc.gnu.org>
930 * trans-array.c (gfc_walk_elemental_function_args):
931 Skip over NULL() actual arguments.
933 2012-01-09 Tobias Burnus <burnus@net-b.de>
935 * gfortran.texi: Bump copyright year.
936 (Fortran 2003 Status): Update polymorphism item, add
937 item for generic interface with DT name.
939 2012-01-09 Tobias Burnus <burnus@net-b.de>
942 * gfortran.h (gfc_use_list):
943 * match.h (gfc_use_module): Rename to ...
944 (gfc_use_modules): ... this.
945 * module.c (use_locus, specified_nonint, specified_int): Remove
947 (module_name): Change type to const char*, used with gfc_get_string.
948 (module_list): New global variable.
949 (free_rename): Free argument not global var.
950 (gfc_match_use): Save match to module_list.
951 (load_generic_interfaces, read_module): Don't free symtree.
952 (write_dt_extensions, gfc_dump_module): Fix module-name I/O due to the
953 type change of module_name.
954 (write_symbol0, write_generic): Optimize due to the type change.
955 (import_iso_c_binding_module, use_iso_fortran_env_module): Use
956 locus of rename->where.
957 (gfc_use_module): Take module_list as argument.
958 (gfc_use_modules): New function.
959 (gfc_module_init_2, gfc_module_done_2): Init module_list, rename_list.
960 * parse.c (last_was_use_stmt): New global variable.
961 (use_modules): New function.
962 (decode_specification_statement, decode_statement): Move USE match up
963 and call use_modules.
964 (next_free, next_fixed): Call use_modules.
965 (accept_statement): Don't call gfc_module_use.
967 2012-01-06 Tobias Burnus <burnus@net-b.de>
969 * trans-openmp.c (gfc_omp_clause_dtor, gfc_trans_omp_array_reduction):
970 Update call to gfc_trans_dealloc_allocated.
971 * trans.c (gfc_allocate_using_malloc): Fix spacing.
972 (gfc_allocate_allocatable): For gfc_allocate_using_lib, jump to
973 label_finish when an error occurs.
974 (gfc_deallocate_with_status): Call caf_deregister for -fcoarray=lib.
975 * trans.h (gfc_allocate_allocatable, gfc_deallocate_with_status):
977 (gfor_fndecl_caf_deregister): New tree symbol.
978 * trans-expr.c (gfc_conv_procedure_call): Update
979 gfc_deallocate_with_status and gfc_trans_dealloc_allocated calls.
980 * trans-array.c (gfc_array_allocate, gfc_trans_dealloc_allocated,
981 structure_alloc_comps, gfc_trans_deferred_array): Ditto.
982 (gfc_array_deallocate): Handle coarrays with -fcoarray=lib.
983 * trans-array.h (gfc_array_deallocate, gfc_array_allocate,
984 gfc_trans_dealloc_allocated): Update prototypes.
985 * trans-stmt.c (gfc_trans_sync): Fix indentation.
986 (gfc_trans_allocate): Fix errmsg padding and label handling.
987 (gfc_trans_deallocate): Ditto and handle -fcoarray=lib.
988 * expr.c (gfc_is_coarray): Fix algorithm for BT_CLASS.
989 * libgfortran.h (GFC_STAT_STOPPED_IMAGE): Use large value
990 to avoid other stats accidentally matching this one.
991 * trans-decl.c (gfor_fndecl_caf_deregister): New global var.
992 (gfc_build_builtin_function_decls): Fix prototype decl of caf_register
993 and add decl for caf_deregister.
994 (gfc_trans_deferred_vars): Handle CAF vars with -fcoarrays=lib.
995 * trans-intrinsic.c (conv_intrinsic_move_alloc): Update call to
996 gfc_deallocate_with_status.
998 2012-01-05 Paul Thomas <pault@gcc.gnu.org>
1001 * resolve.c (resolve_typebound_static): If the typebound
1002 procedure is 'deferred' try to find the correct specific
1003 procedure in the derived type operator space itself.
1005 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
1008 * trans-array.h (gfc_walk_elemental_function_args): New argument.
1009 * trans-intrinsic.c (gfc_walk_intrinsic_function): Update call.
1010 * trans-stmt.c (gfc_trans_call): Ditto.
1011 * trans-array.c (gfc_walk_function_expr): Ditto.
1012 (gfc_walk_elemental_function_args): Get the dummy argument list
1013 if possible. Check that the dummy and the actual argument are both
1014 optional, and set can_be_null_ref accordingly.
1016 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
1019 * trans.h (struct gfc_ss_info): New field data::scalar::can_be_null_ref
1020 * trans-array.c: If the reference can be NULL, save the reference
1021 instead of the value.
1022 * trans-expr.c (gfc_conv_expr): If we have saved a reference,
1025 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
1027 * trans-expr.c (gfc_conv_expr): Move address taking...
1028 (gfc_conv_expr_reference): ... here.
1030 2012-01-04 Thomas Koenig <tkoenig@gcc.gnu.org>
1033 * trans-common.c (create_common): Update copyright years. Mark
1034 variables as used to avoid warnings about unused variables in
1037 2012-01-03 Hans-Peter Nilsson <hp@axis.com>
1039 * gfortran.h (struct gfc_expr): Add missing "struct"
1040 qualifier for member base_expr.
1042 2012-01-02 Paul Thomas <pault@gcc.gnu.org>
1045 * trans-array.c (gfc_array_allocate): Null allocated memory of
1046 newly allocted class arrays.
1051 * interface.c(build_compcall_for_operator): Add a type to the
1053 * trans-expr.c (conv_base_obj_fcn_val): New function.
1054 (gfc_conv_procedure_call): Use base_expr to detect non-variable
1055 base objects and, ensuring that there is a temporary variable,
1056 build up the typebound call using conv_base_obj_fcn_val.
1057 (gfc_trans_class_assign): Pick out class procedure pointer
1058 assignments and do the assignment with no further prcessing.
1059 (gfc_trans_class_array_init_assign, gfc_trans_class_init_assign
1060 gfc_trans_class_assign): Move to top of file.
1061 * gfortran.h : Add 'base_expr' field to gfc_expr.
1062 * resolve.c (get_declared_from_expr): Add 'types' argument to
1063 switch checking of derived types on or off.
1064 (resolve_typebound_generic_call): Set the new argument.
1065 (resolve_typebound_function, resolve_typebound_subroutine):
1066 Set 'types' argument for get_declared_from_expr appropriately.
1067 Identify base expression, if not a variable, in the argument
1068 list of class valued calls. Assign it to the 'base_expr' field
1069 of the final expression. Strip away all references after the
1070 last class reference.
1072 2012-01-02 Tobias Burnus <burnus@net-b.de>
1075 * trans-intrinsic.c (trans_this_image, trans_image_index,
1076 trans_num_images, conv_intrinsic_cobound): Fold_convert the
1077 caf_num_images/caf_this_images variables to the correct int kind.
1079 2012-01-01 Jakub Jelinek <jakub@redhat.com>
1081 * gfortranspec.c (lang_specific_driver): Update copyright notice
1084 Copyright (C) 2012 Free Software Foundation, Inc.
1086 Copying and distribution of this file, with or without modification,
1087 are permitted in any medium without royalty provided the copyright
1088 notice and this notice are preserved.