1 2013-01-07 Tobias Burnus <burnus@net-b.de>
2 Thomas Koenig <tkoenig@gcc.gnu.org>
3 Jakub Jelinek <jakub@redhat.com>
6 * expr.c (gfc_build_intrinsic_call): Avoid clashes
7 with user's procedures.
8 * gfortran.h (gfc_build_intrinsic_call): Update prototype.
10 * simplify.c (gfc_simplify_size): Update call.
12 2013-01-07 Steven G. Kargl <kargl@gcc.gnu.org>
13 Mikael Morin <mikael@gcc.gnu.org>
16 * class.c (gfc_fix_class_refs): Adapt ts initialization for the case
18 * trans-expr.c (gfc_conv_function_expr): Init sym earlier. Use it.
20 2012-12-20 Tobias Burnus <burnus@net-b.de>
23 * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Ensure that
24 the string length is of type gfc_charlen_type_node.
26 2012-11-24 Thomas Koenig <tkoenig@gcc.gnu.org>
30 * resolve.c (resolve_allocate_deallocate): Compare all
31 subscripts when deciding if to reject a (de)allocate
34 2012-11-23 Janus Weil <janus@gcc.gnu.org>
37 * trans-decl.c (generate_local_decl): Don't warn for explicitly imported
38 but unused module variables which are in a namelist or common block.
40 2012-11-06 Janus Weil <janus@gcc.gnu.org>
43 * target-memory.c (gfc_target_expr_size,gfc_target_interpret_expr):
46 2012-10-14 Janus Weil <janus@gcc.gnu.org>
49 * trans-stmt.c (gfc_trans_allocate): Correctly determine the reference
50 to the _data component for polymorphic allocation with SOURCE.
52 2012-09-20 Release Manager
56 2012-09-13 Tobias Burnus <burnus@net-b.de>
59 * resolve.c (resolve_formal_arglist): Allow VALUE arguments
61 (gfc_impure_variable): Don't check gfc_pure such that the
62 function also works for gfc_implicit_pure procedures.
64 2012-09-12 Tobias Burnus <burnus@net-b.de>
68 * array.c (match_subscript, gfc_match_array_ref): Fix
69 diagnostic of coarray's '*'.
71 2012-09-10 Janus Weil <janus@gcc.gnu.org>
75 * match.c (gfc_match_select_type): Make sure to only access CLASS_DATA
78 2012-09-08 Mikael Morin <mikael@gcc.gnu.org>
81 * simplify.c (simplify_bound_dim): Resolve array spec before
82 proceeding with simplification.
84 2012-07-06 Mikael Morin <mikael@gcc.gnu.org>
87 * trans-array.c (gfc_add_loop_ss_code): Disable self recursive calls
88 handling nested loop(s) if the subscript flag is true.
90 2012-06-22 Tobias Burnus <burnus@net-b.de>
92 Backport from mainline
93 2012-06-17 Tobias Burnus <burnus@net-b.de>
97 * check.c (gfc_calculate_transfer_sizes): Return if
98 SIZE= is not constant or source-size cannot be determined.
100 2012-06-14 Tobias Burnus <burnus@net-b.de>
102 Backport from mainline
103 2012-06-04 Tobias Burnus <burnus@net-b.de>
106 * resolve.c (build_default_init_expr): Don't initialize
109 2012-06-14 Tobias Burnus <burnus@net-b.de>
112 * decl.c (match_attr_spec): Only mark module variables
113 as SAVE_IMPLICIT for Fortran 2008 and later.
115 2012-06-14 Release Manager
117 * GCC 4.7.1 released.
119 2012-06-01 Tobias Burnus <burnus@net-b.de>
122 * trans.c (gfc_deallocate_scalar_with_status): Properly
123 handle the case size == 0.
125 2012-05-23 Tobias Burnus <burnus@net-b.de>
128 * trans-array.c (gfc_add_loop_ss_code): Don't evaluate expression, if
129 ss->is_alloc_lhs is set.
131 2012-05-07 Tobias Burnus <burnus@net-b.de>
133 Backport from mainline:
134 2012-05-07 Tobias Burnus <burnus@net-b.de>
137 * resolve.c (resolve_typebound_static): Fix handling
138 of overridden specific to generic operator.
140 2012-05-05 Tobias Burnus <burnus@net-b.de>
142 Backport from mainline:
143 2012-05-04 Tobias Burnus <burnus@net-b.de>
146 * resolve.c (resolve_fl_derived): Fix -std=f95
147 diagnostic for generic vs. DT names.
149 2012-05-02 Tobias Burnus <burnus@net-b.de>
151 Backport from mainline
152 2012-04-12 Tobias Burnus <burnus@net-b.de>
155 * expr.c (gfc_check_vardef_context): Fix assignment check for
158 2012-04-30 Thomas Koenig <tkoenig@gcc.gnu.org>
162 * frontend-passes.c (create_var): If the statement has a label,
163 put the label around the block.
165 2012-04-07 Thomas Koenig <tkoenig@gcc.gnu.org>
169 * frontend-passes.c: Keep track of wether we are in an implicit
170 DO loop; do not do function elimination if we are.
172 2012-04-07 Thomas Koenig <tkoenig@gcc.gnu.org>
176 * module.c: Only mark symbols as use_only if they have been
177 imported via an only list.
179 2012-03-22 Tobias Burnus <burnus@net-b.de>
182 * resolve.c (resolve_intrinsic): Don't search for a
183 function if we know that it is a subroutine.
185 2012-03-22 Release Manager
187 * GCC 4.7.0 released.
189 2012-03-10 Tobias Burnus <burnus@net-b.de>
192 * trans-types.c (gfc_get_function_type): Handle backend_decl
193 of a procedure pointer.
195 2012-02-29 Paul Thomas <pault@gcc.gnu.org>
198 * trans-expr.c (fcncall_realloc_result): Dereference the
199 descriptor if needed.
201 2012-02-22 Tobias Burnus <burnus@net-b.de>
204 * io.c (gfc_match_open): Remove bogus F2003 DELIM= check.
206 2012-02-18 Tobias Burnus <burnus@net-b.de>
209 * interface.c (check_interface0): Internal procs in
210 generic interfaces are allowed in Fortran 2008.
212 2012-02-17 Tobias Burnus <burnus@net-b.de>
213 Roland Stigge <stigge@antcom.de>
216 * interface.c (compare_actual_formal): Fix typo "at at".
218 2012-02-17 Tobias Burnus <burnus@net-b.de>
220 * gfortran.texi (Q exponent-letter): Fix grammar.
222 2012-02-17 Tobias Burnus <burnus@net-b.de>
224 * gfortran.texi (Status): Fix typos.
225 * invoke.texi (ffixed-form, fstack-arrays): Spell Fortran with
228 2012-02-17 Tobias Burnus <burnus@net-b.de>
229 Roland Stigge <stigge@antcom.de>
237 * io.c (gfc_match_open): Fix typo.
238 * interface.c (compare_actual_formal): Ditto.
239 * lang.opt (freal-4-real-8, freal-4-real-16, freal-8-real-16): Ditto.
240 * match.c (alloc_opt_list, gfc_match_nullify): Ditto.
241 * check.c (gfc_check_associated, gfc_check_null): Ditto.
243 2012-02-12 Mikael Morin <mikael@gcc.gnu.org>
246 * trans-stmt.c (gfc_get_proc_ifc_for_call): New function.
247 (gfc_trans_call): Use gfc_get_proc_ifc_for_call.
249 2012-02-12 Mikael Morin <mikael@gcc.gnu.org>
251 * trans-array.c (gfc_walk_elemental_function_args,
252 gfc_walk_function_expr): Move call to gfc_get_proc_ifc_for_expr out
253 of gfc_walk_elemental_function_args.
254 * trans-stmt.c (gfc_trans_call): Ditto.
255 * trans-array.h (gfc_get_proc_ifc_for_expr): New prototype.
256 (gfc_walk_elemental_function_args): Update prototype.
258 2012-02-12 Mikael Morin <mikael@gcc.gnu.org>
260 * trans-array.c (gfc_get_proc_ifc_for_expr): New function.
261 (gfc_walk_elemental_function_args): Move code to
262 gfc_get_proc_ifc_for_expr and call it.
264 2012-02-08 Tobias Burnus <burnus@net-b.de>
267 * trans-expr.c (fcncall_realloc_result): Set also the stride.
269 2012-02-07 Tobias Burnus <burnus@net-b.de>
272 * trans-expr.c (gfc_conv_procedure_call): Add _data component
273 for calls of scalar CLASS actuals to TYPE dummies.
275 2012-02-05 Thomas König <tkoenig@gcc.gnu.org>
278 * trans-decl.c: Warn about unused dummy procedure arguments
279 if -Wunused-dummy-argument is specified. Suppress middle-end
280 warnings about procedure arguments.
282 2012-02-05 Paul Thomas <pault@gcc.gnu.org>
284 * trans-array.c (gfc_array_allocate): Zero memory for all class
286 * trans-stmt.c (gfc_trans_allocate): Ditto for class scalars.
289 * trans-stmt.c (gfc_trans_allocate): Before correcting a class
290 array reference, ensure that 'dataref' points to the _data
291 component that is followed by the array reference..
293 2012-02-02 Mikael Morin <mikael@gcc.gnu.org>
299 * class.c (insert_component_ref, class_data_ref_missing,
300 gfc_fix_class_refs): New functions.
301 * gfortran.h (gfc_fix_class_refs): New prototype.
302 * trans-expr.c (gfc_conv_expr): Remove special case handling and call
303 gfc_fix_class_refs instead.
305 2012-02-02 Paul Thomas <pault@gcc.gnu.org>
308 * trans-expr.c (fcncall_realloc_result): If variable shape is
309 correct, retain the bounds, whatever they are.
311 2012-02-02 Tobias Burnus <burnus@net-b.de>
314 * simplify.c (gfc_simplify_size): Handle INTRINSIC_PARENTHESES.
316 2012-02-01 Thomas König <tkoenig@gcc.gnu.org>
319 * frontend-passes.c (convert_elseif): New function.
320 (optimize_namespace): Call it.
322 2012-02-01 Tobias Burnus <burnus@net-b.de>
325 * module.c (MOD_VERSION): Bump.
326 (mio_typebound_proc): Read/write is_operator from/to the
329 2012-02-01 Tobias Burnus <burnus@net-b.de>
332 * trans-expr.c (gfc_conv_procedure_call): Add array ref
335 2012-01-31 Tobias Burnus <burnus@net-b.de>
338 * gfortran.h (gfc_tbp_generic): Store whether the
339 generic is an operator.
340 * decl.c (gfc_match_generic): Set that flag.
341 * resolve.c (check_generic_tbp_ambiguity): Use it in the
342 gfc_compare_interfaces check.
344 2012-01-31 Tobias Burnus <burnus@net-b.de>
347 * class.c (gfc_find_derived_vtab): Mark _copy function as pure.
349 2012-01-31 Tobias Burnus <burnus@net-b.de>
352 * class.c (get_unique_hashed_string): Adapt trim length.
353 (gfc_build_class_symbol) Encode also corank in the container name.
355 2012-01-31 Paul Thomas <pault@gcc.gnu.org>
358 * trans-expr.c (fcncall_realloc_result): Correct calculation of
361 2012-01-29 Janne Blomqvist <jb@gcc.gnu.org>
363 * module.c (pointer_info): Make true_name and module pointers
364 rather than arrays, order pointers before other fields.
365 (free_pi_tree): free true_name and module as well.
366 (mio_read_string): Rename to read_string.
367 (mio_write_string): Remove.
368 (load_commons): Use read_string.
369 (read_module): Use read_string rather than mio_internal_string.
370 (write_blank_common): Call write_atom directly.
371 (write_symbol): Likewise.
373 2012-01-29 Tobias Burnus <burnus@net-b.de>
376 * expr.c (gfc_default_initializer): Convert the values if
377 the type does not match.
379 2012-01-29 Tobias Burnus <burnus@net-b.de>
382 * trans-array.c (structure_alloc_comps): Fix assignment of
383 polymorphic components (polymorphic deep copying).
385 2012-01-29 Janne Blomqvist <jb@gcc.gnu.org>
388 * decl.c (set_binding_label): Make binding_label argument const.
389 (curr_binding_label): Constify.
390 * gfortran.h (gfc_symbol): Constify binding_label.
391 (gfc_common_head): Likewise.
392 (get_iso_c_sym): Likewise.
393 * match.c (gfc_match_name_C): Constify buffer argument.
394 * match.h (gfc_match_name_C): Likewise.
395 * resolve.c (set_name_and_label): Constify binding_label argument.
396 (gfc_iso_c_sub_interface): Constify binding_label variable.
397 * symbol.c (get_iso_c_sym): Constify binding_label argument.
399 2012-01-29 Janne Blomqvist <jb@gcc.gnu.org>
402 * decl.c (set_binding_label): Move prototype from match.h to here.
403 (curr_binding_label): Make a pointer rather than static array.
404 (build_sym): Check sym->binding_label pointer rather than array,
405 update set_binding_label call, handle curr_binding_label changes.
406 (set_binding_label): Handle new curr_binding_label, dest_label
407 double ptr, and sym->binding_label.
408 (verify_bind_c_sym): Handle sym->binding_label being a pointer.
409 (set_verify_bind_c_sym): Check sym->binding_label pointer rather
410 than array, update set_binding_label call.
411 (gfc_match_bind_c_stmt): Handle curr_binding_label change.
412 (match_procedure_decl): Update set_binding_label call.
413 (gfc_match_bind_c): Change binding_label to pointer, update
414 gfc_match_name_C call.
415 * gfortran.h (GFC_MAX_BINDING_LABEL_LEN): Remove macro.
416 (gfc_symbol): Make binding_label a pointer.
417 (gfc_common_head): Likewise.
418 * match.c (gfc_match_name_C): Heap allocate bind(C) name.
419 * match.h (gfc_match_name_C): Change prototype argument.
420 (set_binding_label): Move prototype to decl.c.
421 * module.c (struct pointer_info): Make binding_label a pointer.
422 (free_pi_tree): Free unused binding_label.
423 (mio_read_string): New function.
424 (mio_write_string): New function.
425 (load_commons): Redo reading of binding_label.
426 (read_module): Likewise.
427 (write_common_0): Change to write empty string instead of name if
429 (write_blank_common): Write empty string for binding label.
430 (write_symbol): Change to write empty string instead of name if no
432 * resolve.c (gfc_iso_c_func_interface): Don't set binding_label.
433 (set_name_and_label): Make binding_label double pointer, use
435 (gfc_iso_c_sub_interface): Make binding_label a pointer.
436 (resolve_bind_c_comms): Handle cases if
437 gfc_common_head->binding_label is NULL.
438 (gfc_verify_binding_labels): sym->binding_label is a pointer.
439 * symbol.c (gfc_new_symbol): Rely on XCNEW zero init for
441 (gen_special_c_interop_ptr): Don't set binding label.
442 (generate_isocbinding_symbol): Insert binding_label into symbol
444 (get_iso_c_sym): Use pointer assignment instead of strcpy.
445 * trans-common.c (gfc_sym_mangled_common_id): Handle
446 com->binding_label being a pointer.
447 * trans-decl.c (gfc_sym_mangled_identifier): Handle
448 sym->binding_label being a pointer.
449 (gfc_sym_mangled_function_id): Likewise.
451 2012-01-29 Tobias Burnus <burnus@net-b.de>
454 * resolve.c (symbol_as): Remove unused, accidentally
457 2012-01-28 Tobias Burnus <burnus@net-b.de>
460 * trans-stmt.c (gfc_trans_allocate): Properly check whether
461 we have a BT_CLASS which needs to be memset.
463 2012-01-27 Tobias Burnus <burnus@net-b.de>
466 * trans-expr.c (gfc_conv_procedure_call): Fix passing
467 of functions, which return allocatables.
469 2012-01-27 Tobias Burnus <burnus@net-b.de>
472 * resolve.c (resolve_formal_arglist): Fix elemental
473 constraint checks for polymorphic dummies also for
476 2012-01-27 Tobias Burnus <burnus@net-b.de>
480 * primary.c (gfc_match_varspec. gfc_match_rvalue): Set
481 handle array spec for BT_CLASS.
482 * expr.c (gfc_get_variable_expr, gfc_lval_expr_from_sym)
483 * frontend-passes.c (create_var): Ditto.
484 * resolve.c (resolve_actual_arglist, resolve_assoc_var): Ditto.
485 * trans-decl.c (gfc_trans_deferred_vars): Use class_pointer
486 instead of attr.pointer.
487 (gfc_generate_function_code): Use CLASS_DATA (sym) for BT_CLASS.
488 * trans-intrinsic.c (conv_intrinsic_move_alloc): Move assert.
489 * trans-stmt.c (trans_associate_var): Ask for the descriptor.
491 2012-01-27 Tobias Burnus <burnus@net-b.de>
494 * match.c (gfc_match_allocate): Allow more than allocate
497 2012-01-27 Tobias Burnus <burnus@net-b.de>
500 * resolve.c (resolve_formal_arglist): Fix elemental
501 constraint checks for polymorphic dummies.
503 2012-01-27 Paul Thomas <pault@gcc.gnu.org>
504 Tobias Burnus <burnus@gcc.gnu.org>
510 * trans-array.c (gfc_array_init_size): Add two extra arguments
511 to convey the dynamic element size of a calls object and to
512 return the number of elements that have been allocated.
513 (gfc_array_allocate): Add the same arguments and use them to
514 call gfc_array_init_size. Before the allocation dereference
515 the data pointer, if necessary. Set the allocated array to zero
516 if the class element size or expr3 are non-null.
517 * trans-expr.c (gfc_conv_class_to_class): Give this function
519 (get_class_array_ref): New function.
520 (gfc_copy_class_to_class): New function.
521 * trans-array.h : Update prototype for gfc_array_allocate.
522 * trans-stmt.c (gfc_trans_allocate): For non-variable class
523 STATUS expressions extract the class object and the dynamic
524 element size. Use the latter to call gfc_array_allocate and
525 the former for setting the vptr and, via
526 gfc_copy_class_to_clasfc_cs, to copy to the allocated data.
527 * trans.h : Prototypes for gfc_get_class_array_ref,
528 gfc_copy_class_to_class and gfc_conv_class_to_class.
530 2012-01-25 Tobias Burnus <burnus@net-b.de>
532 * resolve.c (symbol_as): Check also for attr.class_ok.
534 2012-01-25 Tobias Burnus <burnus@net-b.de>
537 * class.c (gfc_build_class_symbol): Fix invalid freeing
538 issue with fclass->f2k_derived.
540 2012-01-25 Tobias Burnus <burnus@net-b.de>
543 * class.c (gfc_build_class_symbol): Ensure that
544 fclass->f2k_derived is set.
546 2012-01-25 Tobias Burnus <burnus@net-b.de>
549 * resolve.c (resolve_structure_cons): Only create an
550 array constructors for nonscalars.
552 2012-01-23 Tobias Burnus <burnus@net-b.de>
555 * check.c (variable_check): Fix checking for
556 variables and deeply nested BLOCKs.
558 2012-01-21 Tobias Burnus <burnus@net-b.de>
559 Steven G. Kargl <kargl@gcc.gnu.org>
562 * symbol.c (check_conflict): namelist-group-name cannot have the SAVE
565 2012-01-21 Tobias Burnus <burnus@net-b.de>
568 * interface.c (compare_parameter): Fix CLASS comparison.
570 2012-01-20 Tobias Burnus <burnus@net-b.de>
571 Janus Weil <janus@gcc.gnu.org>
574 * module.c (load_needed, read_module): Don't mark __vtab etc.
577 2012-01-19 Tobias Burnus <burnus@net-b.de>
580 * expr.c (gfc_build_intrinsic_call): Also set the symtree.
582 2012-01-18 Paul Thomas <pault@gcc.gnu.org>
585 * trans-expr.c (gfc_conv_procedure_call): Deallocate allocatable
586 components of temporary class arguments.
588 2012-01-17 Tobias Burnus <burnus@net-b.de>
589 Janne Blomqvist <jb@gcc.gnu.org>
592 * trans-expr.c (alloc_scalar_allocatable_for_assignment): Nullify
593 LHS after allocation, if it has allocatable components.
594 * f95-lang.c (gfc_init_builtin_functions): Add BUILT_IN_CALLOC.
596 2012-01-16 Mikael Morin <mikael@gcc.gnu.org>
597 Tobias Burnus <burnus@net-b.de>
600 * trans-array.c (gfc_walk_elemental_function_args): Fix
601 passing of deallocated allocatables/pointers as absent argument.
603 2012-01-16 Tobias Burnus <burnus@net-b.de>
606 * class.c (gfc_find_derived_vtab): Mark __vtab and
607 __def_init as FL_VARIABLE not as FL_PARAMETER.
608 * expr.c (gfc_simplify_expr): Remove special
610 * resolve.c (resolve_values): Ditto.
611 * trans-decl.c (gfc_get_symbol_decl): Mark __vtab
612 and __def_init as TREE_READONLY.
614 2012-01-16 Zydrunas Gimbutas <gimbutas@cims.nyu.edu>
615 Andreas Kloeckner <kloeckner@cims.nyu.edu>
616 Steven G. Kargl <kargl@gcc.gnu.org>
619 * gfortran.h (gfc_option_t): Add members flag_*_kind to store kind.
620 * lang.opt: Add options -freal-4-real-8, -freal-4-real-10,
621 -freal-4-real-16, -freal-8-real-4, -freal-8-real-10, -freal-8-real-16
622 and -finteger-4-integer-8. User-desired type conversion information.
623 * decl.c (gfc_match_old_kind_spec,kind_expr): Type conversions
624 in declaration parsing.
625 * trans-types.c (gfc_init_kinds): User-specified type conversion
626 checked for current backend.
627 * primary.c (match_integer_constant,match_real_constant): Implement
628 type conversion in constant parsing.
629 * options.c (gfc_init_options,gfc_handle_option): Translate input
630 options to flags in internal options data structure.
631 * invoke.texi: Document new options. Re-order options in Options
634 2012-01-16 Paul Thomas <pault@gcc.gnu.org>
636 * trans-array.c (gfc_trans_create_temp_array): In the case of a
637 class array temporary, detect a null 'eltype' on entry and use
638 'initial' to provde the class reference and so, through the
639 vtable, the element size for the dynamic type.
640 * trans-stmt.c (gfc_conv_elemental_dependencies): For class
641 expressions, set 'eltype' to null and pass the values via the
642 'initial' expression.
644 2012-01-14 Tobias Burnus <burnus@net-b.de>
647 * resolve.c (build_default_init_expr): Also initialize
648 nonconstant-length strings with -finit-character=<n>.
650 2011-01-14 Tobias Burnus <burnus@net-b.de>
653 * module.c (read_module): Don't make nonexisting
654 intrinsic operators as found.
655 (rename_list_remove_duplicate): New function.
656 (gfc_use_modules): Use it.
658 2012-01-13 Paul Thomas <pault@gcc.gnu.org>
661 * trans-array.c (structure_alloc_comps): Suppress interative
662 call to self, when current component is deallocated using
663 gfc_trans_dealloc_allocated.
664 * class.c (gfc_build_class_symbol): Copy the 'alloc_comp'
665 attribute from the declared type to the class structure.
667 2012-01-13 Tobias Burnus <burnus@net-b.de>
670 * fortran/trans-types.c (gfc_init_kinds): Use PTRDIFF_TYPE
671 instead of a signed int of size POINTER_SIZE for
672 gfc_index_integer_kind.
674 2012-01-12 Tobias Burnus <burnus@net-b.de>
677 * intrinsic.texi (CHMOD): Extend a bit and remove statement
678 that /bin/chmod is called.
680 2012-01-10 Gerald Pfeifer <gerald@pfeifer.com>
682 * gfortran.texi (Fortran 2003 Status): Fix grammar.
684 2012-01-10 Tobias Burnus <burnus@net-b.de>
687 * resolve.c (resolve_allocate_expr): For non-deferred char lengths,
688 check whether type-spec matches declaration.
690 2012-01-10 Tobias Burnus <burnus@net-b.de>
692 * resolve.c (resolve_ordinary_assign): Improve error wording.
694 2012-01-09 Paul Thomas <pault@gcc.gnu.org>
697 * interface.c (matching_typebound_op): Drill down through
698 possible parentheses to obtain base expression. Do not test for
699 'class_ok' but, instead for the class structure components.
700 * resolve.c (resolve_ordinary_assign): Extend error message for
701 polymorphic assignment to advise checking for specific
705 * resolve.c (resolve_typebound_function): Restore 'static' to
708 2012-01-09 Mikael Morin <mikael@gcc.gnu.org>
711 * trans-array.c (gfc_walk_elemental_function_args):
712 Skip over NULL() actual arguments.
714 2012-01-09 Tobias Burnus <burnus@net-b.de>
716 * gfortran.texi: Bump copyright year.
717 (Fortran 2003 Status): Update polymorphism item, add
718 item for generic interface with DT name.
720 2012-01-09 Tobias Burnus <burnus@net-b.de>
723 * gfortran.h (gfc_use_list):
724 * match.h (gfc_use_module): Rename to ...
725 (gfc_use_modules): ... this.
726 * module.c (use_locus, specified_nonint, specified_int): Remove
728 (module_name): Change type to const char*, used with gfc_get_string.
729 (module_list): New global variable.
730 (free_rename): Free argument not global var.
731 (gfc_match_use): Save match to module_list.
732 (load_generic_interfaces, read_module): Don't free symtree.
733 (write_dt_extensions, gfc_dump_module): Fix module-name I/O due to the
734 type change of module_name.
735 (write_symbol0, write_generic): Optimize due to the type change.
736 (import_iso_c_binding_module, use_iso_fortran_env_module): Use
737 locus of rename->where.
738 (gfc_use_module): Take module_list as argument.
739 (gfc_use_modules): New function.
740 (gfc_module_init_2, gfc_module_done_2): Init module_list, rename_list.
741 * parse.c (last_was_use_stmt): New global variable.
742 (use_modules): New function.
743 (decode_specification_statement, decode_statement): Move USE match up
744 and call use_modules.
745 (next_free, next_fixed): Call use_modules.
746 (accept_statement): Don't call gfc_module_use.
748 2012-01-06 Tobias Burnus <burnus@net-b.de>
750 * trans-openmp.c (gfc_omp_clause_dtor, gfc_trans_omp_array_reduction):
751 Update call to gfc_trans_dealloc_allocated.
752 * trans.c (gfc_allocate_using_malloc): Fix spacing.
753 (gfc_allocate_allocatable): For gfc_allocate_using_lib, jump to
754 label_finish when an error occurs.
755 (gfc_deallocate_with_status): Call caf_deregister for -fcoarray=lib.
756 * trans.h (gfc_allocate_allocatable, gfc_deallocate_with_status):
758 (gfor_fndecl_caf_deregister): New tree symbol.
759 * trans-expr.c (gfc_conv_procedure_call): Update
760 gfc_deallocate_with_status and gfc_trans_dealloc_allocated calls.
761 * trans-array.c (gfc_array_allocate, gfc_trans_dealloc_allocated,
762 structure_alloc_comps, gfc_trans_deferred_array): Ditto.
763 (gfc_array_deallocate): Handle coarrays with -fcoarray=lib.
764 * trans-array.h (gfc_array_deallocate, gfc_array_allocate,
765 gfc_trans_dealloc_allocated): Update prototypes.
766 * trans-stmt.c (gfc_trans_sync): Fix indentation.
767 (gfc_trans_allocate): Fix errmsg padding and label handling.
768 (gfc_trans_deallocate): Ditto and handle -fcoarray=lib.
769 * expr.c (gfc_is_coarray): Fix algorithm for BT_CLASS.
770 * libgfortran.h (GFC_STAT_STOPPED_IMAGE): Use large value
771 to avoid other stats accidentally matching this one.
772 * trans-decl.c (gfor_fndecl_caf_deregister): New global var.
773 (gfc_build_builtin_function_decls): Fix prototype decl of caf_register
774 and add decl for caf_deregister.
775 (gfc_trans_deferred_vars): Handle CAF vars with -fcoarrays=lib.
776 * trans-intrinsic.c (conv_intrinsic_move_alloc): Update call to
777 gfc_deallocate_with_status.
779 2012-01-05 Paul Thomas <pault@gcc.gnu.org>
782 * resolve.c (resolve_typebound_static): If the typebound
783 procedure is 'deferred' try to find the correct specific
784 procedure in the derived type operator space itself.
786 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
789 * trans-array.h (gfc_walk_elemental_function_args): New argument.
790 * trans-intrinsic.c (gfc_walk_intrinsic_function): Update call.
791 * trans-stmt.c (gfc_trans_call): Ditto.
792 * trans-array.c (gfc_walk_function_expr): Ditto.
793 (gfc_walk_elemental_function_args): Get the dummy argument list
794 if possible. Check that the dummy and the actual argument are both
795 optional, and set can_be_null_ref accordingly.
797 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
800 * trans.h (struct gfc_ss_info): New field data::scalar::can_be_null_ref
801 * trans-array.c: If the reference can be NULL, save the reference
802 instead of the value.
803 * trans-expr.c (gfc_conv_expr): If we have saved a reference,
806 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
808 * trans-expr.c (gfc_conv_expr): Move address taking...
809 (gfc_conv_expr_reference): ... here.
811 2012-01-04 Thomas Koenig <tkoenig@gcc.gnu.org>
814 * trans-common.c (create_common): Update copyright years. Mark
815 variables as used to avoid warnings about unused variables in
818 2012-01-03 Hans-Peter Nilsson <hp@axis.com>
820 * gfortran.h (struct gfc_expr): Add missing "struct"
821 qualifier for member base_expr.
823 2012-01-02 Paul Thomas <pault@gcc.gnu.org>
826 * trans-array.c (gfc_array_allocate): Null allocated memory of
827 newly allocted class arrays.
832 * interface.c(build_compcall_for_operator): Add a type to the
834 * trans-expr.c (conv_base_obj_fcn_val): New function.
835 (gfc_conv_procedure_call): Use base_expr to detect non-variable
836 base objects and, ensuring that there is a temporary variable,
837 build up the typebound call using conv_base_obj_fcn_val.
838 (gfc_trans_class_assign): Pick out class procedure pointer
839 assignments and do the assignment with no further prcessing.
840 (gfc_trans_class_array_init_assign, gfc_trans_class_init_assign
841 gfc_trans_class_assign): Move to top of file.
842 * gfortran.h : Add 'base_expr' field to gfc_expr.
843 * resolve.c (get_declared_from_expr): Add 'types' argument to
844 switch checking of derived types on or off.
845 (resolve_typebound_generic_call): Set the new argument.
846 (resolve_typebound_function, resolve_typebound_subroutine):
847 Set 'types' argument for get_declared_from_expr appropriately.
848 Identify base expression, if not a variable, in the argument
849 list of class valued calls. Assign it to the 'base_expr' field
850 of the final expression. Strip away all references after the
851 last class reference.
853 2012-01-02 Tobias Burnus <burnus@net-b.de>
856 * trans-intrinsic.c (trans_this_image, trans_image_index,
857 trans_num_images, conv_intrinsic_cobound): Fold_convert the
858 caf_num_images/caf_this_images variables to the correct int kind.
860 2012-01-01 Jakub Jelinek <jakub@redhat.com>
862 * gfortranspec.c (lang_specific_driver): Update copyright notice
865 Copyright (C) 2012 Free Software Foundation, Inc.
867 Copying and distribution of this file, with or without modification,
868 are permitted in any medium without royalty provided the copyright
869 notice and this notice are preserved.