1 2012-01-06 Tobias Burnus <burnus@net-b.de>
3 * trans-openmp.c (gfc_omp_clause_dtor, gfc_trans_omp_array_reduction):
4 Update call to gfc_trans_dealloc_allocated.
5 * trans.c (gfc_allocate_using_malloc): Fix spacing.
6 (gfc_allocate_allocatable): For gfc_allocate_using_lib, jump to
7 label_finish when an error occurs.
8 (gfc_deallocate_with_status): Call caf_deregister for -fcoarray=lib.
9 * trans.h (gfc_allocate_allocatable, gfc_deallocate_with_status):
11 (gfor_fndecl_caf_deregister): New tree symbol.
12 * trans-expr.c (gfc_conv_procedure_call): Update
13 gfc_deallocate_with_status and gfc_trans_dealloc_allocated calls.
14 * trans-array.c (gfc_array_allocate, gfc_trans_dealloc_allocated,
15 structure_alloc_comps, gfc_trans_deferred_array): Ditto.
16 (gfc_array_deallocate): Handle coarrays with -fcoarray=lib.
17 * trans-array.h (gfc_array_deallocate, gfc_array_allocate,
18 gfc_trans_dealloc_allocated): Update prototypes.
19 * trans-stmt.c (gfc_trans_sync): Fix indentation.
20 (gfc_trans_allocate): Fix errmsg padding and label handling.
21 (gfc_trans_deallocate): Ditto and handle -fcoarray=lib.
22 * expr.c (gfc_is_coarray): Fix algorithm for BT_CLASS.
23 * libgfortran.h (GFC_STAT_STOPPED_IMAGE): Use large value
24 to avoid other stats accidentally matching this one.
25 * trans-decl.c (gfor_fndecl_caf_deregister): New global var.
26 (gfc_build_builtin_function_decls): Fix prototype decl of caf_register
27 and add decl for caf_deregister.
28 (gfc_trans_deferred_vars): Handle CAF vars with -fcoarrays=lib.
29 * trans-intrinsic.c (conv_intrinsic_move_alloc): Update call to
30 gfc_deallocate_with_status.
32 2012-01-05 Paul Thomas <pault@gcc.gnu.org>
35 * resolve.c (resolve_typebound_static): If the typebound
36 procedure is 'deferred' try to find the correct specific
37 procedure in the derived type operator space itself.
39 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
42 * trans-array.h (gfc_walk_elemental_function_args): New argument.
43 * trans-intrinsic.c (gfc_walk_intrinsic_function): Update call.
44 * trans-stmt.c (gfc_trans_call): Ditto.
45 * trans-array.c (gfc_walk_function_expr): Ditto.
46 (gfc_walk_elemental_function_args): Get the dummy argument list
47 if possible. Check that the dummy and the actual argument are both
48 optional, and set can_be_null_ref accordingly.
50 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
53 * trans.h (struct gfc_ss_info): New field data::scalar::can_be_null_ref
54 * trans-array.c: If the reference can be NULL, save the reference
56 * trans-expr.c (gfc_conv_expr): If we have saved a reference,
59 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
61 * trans-expr.c (gfc_conv_expr): Move address taking...
62 (gfc_conv_expr_reference): ... here.
64 2012-01-04 Thomas Koenig <tkoenig@gcc.gnu.org>
67 * trans-common.c (create_common): Update copyright years. Mark
68 variables as used to avoid warnings about unused variables in
71 2012-01-03 Hans-Peter Nilsson <hp@axis.com>
73 * gfortran.h (struct gfc_expr): Add missing "struct"
74 qualifier for member base_expr.
76 2012-01-02 Paul Thomas <pault@gcc.gnu.org>
79 * trans-array.c (gfc_array_allocate): Null allocated memory of
80 newly allocted class arrays.
85 * interface.c(build_compcall_for_operator): Add a type to the
87 * trans-expr.c (conv_base_obj_fcn_val): New function.
88 (gfc_conv_procedure_call): Use base_expr to detect non-variable
89 base objects and, ensuring that there is a temporary variable,
90 build up the typebound call using conv_base_obj_fcn_val.
91 (gfc_trans_class_assign): Pick out class procedure pointer
92 assignments and do the assignment with no further prcessing.
93 (gfc_trans_class_array_init_assign, gfc_trans_class_init_assign
94 gfc_trans_class_assign): Move to top of file.
95 * gfortran.h : Add 'base_expr' field to gfc_expr.
96 * resolve.c (get_declared_from_expr): Add 'types' argument to
97 switch checking of derived types on or off.
98 (resolve_typebound_generic_call): Set the new argument.
99 (resolve_typebound_function, resolve_typebound_subroutine):
100 Set 'types' argument for get_declared_from_expr appropriately.
101 Identify base expression, if not a variable, in the argument
102 list of class valued calls. Assign it to the 'base_expr' field
103 of the final expression. Strip away all references after the
104 last class reference.
106 2012-01-02 Tobias Burnus <burnus@net-b.de>
109 * trans-intrinsic.c (trans_this_image, trans_image_index,
110 trans_num_images, conv_intrinsic_cobound): Fold_convert the
111 caf_num_images/caf_this_images variables to the correct int kind.
113 2012-01-01 Jakub Jelinek <jakub@redhat.com>
115 * gfortranspec.c (lang_specific_driver): Update copyright notice
118 Copyright (C) 2012 Free Software Foundation, Inc.
120 Copying and distribution of this file, with or without modification,
121 are permitted in any medium without royalty provided the copyright
122 notice and this notice are preserved.