1 2012-01-09 Mikael Morin <mikael@gcc.gnu.org>
4 * trans-array.c (gfc_walk_elemental_function_args):
5 Skip over NULL() actual arguments.
7 2012-01-09 Tobias Burnus <burnus@net-b.de>
9 * gfortran.texi: Bump copyright year.
10 (Fortran 2003 Status): Update polymorphism item, add
11 item for generic interface with DT name.
13 2012-01-09 Tobias Burnus <burnus@net-b.de>
16 * gfortran.h (gfc_use_list):
17 * match.h (gfc_use_module): Rename to ...
18 (gfc_use_modules): ... this.
19 * module.c (use_locus, specified_nonint, specified_int): Remove
21 (module_name): Change type to const char*, used with gfc_get_string.
22 (module_list): New global variable.
23 (free_rename): Free argument not global var.
24 (gfc_match_use): Save match to module_list.
25 (load_generic_interfaces, read_module): Don't free symtree.
26 (write_dt_extensions, gfc_dump_module): Fix module-name I/O due to the
27 type change of module_name.
28 (write_symbol0, write_generic): Optimize due to the type change.
29 (import_iso_c_binding_module, use_iso_fortran_env_module): Use
30 locus of rename->where.
31 (gfc_use_module): Take module_list as argument.
32 (gfc_use_modules): New function.
33 (gfc_module_init_2, gfc_module_done_2): Init module_list, rename_list.
34 * parse.c (last_was_use_stmt): New global variable.
35 (use_modules): New function.
36 (decode_specification_statement, decode_statement): Move USE match up
38 (next_free, next_fixed): Call use_modules.
39 (accept_statement): Don't call gfc_module_use.
41 2012-01-06 Tobias Burnus <burnus@net-b.de>
43 * trans-openmp.c (gfc_omp_clause_dtor, gfc_trans_omp_array_reduction):
44 Update call to gfc_trans_dealloc_allocated.
45 * trans.c (gfc_allocate_using_malloc): Fix spacing.
46 (gfc_allocate_allocatable): For gfc_allocate_using_lib, jump to
47 label_finish when an error occurs.
48 (gfc_deallocate_with_status): Call caf_deregister for -fcoarray=lib.
49 * trans.h (gfc_allocate_allocatable, gfc_deallocate_with_status):
51 (gfor_fndecl_caf_deregister): New tree symbol.
52 * trans-expr.c (gfc_conv_procedure_call): Update
53 gfc_deallocate_with_status and gfc_trans_dealloc_allocated calls.
54 * trans-array.c (gfc_array_allocate, gfc_trans_dealloc_allocated,
55 structure_alloc_comps, gfc_trans_deferred_array): Ditto.
56 (gfc_array_deallocate): Handle coarrays with -fcoarray=lib.
57 * trans-array.h (gfc_array_deallocate, gfc_array_allocate,
58 gfc_trans_dealloc_allocated): Update prototypes.
59 * trans-stmt.c (gfc_trans_sync): Fix indentation.
60 (gfc_trans_allocate): Fix errmsg padding and label handling.
61 (gfc_trans_deallocate): Ditto and handle -fcoarray=lib.
62 * expr.c (gfc_is_coarray): Fix algorithm for BT_CLASS.
63 * libgfortran.h (GFC_STAT_STOPPED_IMAGE): Use large value
64 to avoid other stats accidentally matching this one.
65 * trans-decl.c (gfor_fndecl_caf_deregister): New global var.
66 (gfc_build_builtin_function_decls): Fix prototype decl of caf_register
67 and add decl for caf_deregister.
68 (gfc_trans_deferred_vars): Handle CAF vars with -fcoarrays=lib.
69 * trans-intrinsic.c (conv_intrinsic_move_alloc): Update call to
70 gfc_deallocate_with_status.
72 2012-01-05 Paul Thomas <pault@gcc.gnu.org>
75 * resolve.c (resolve_typebound_static): If the typebound
76 procedure is 'deferred' try to find the correct specific
77 procedure in the derived type operator space itself.
79 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
82 * trans-array.h (gfc_walk_elemental_function_args): New argument.
83 * trans-intrinsic.c (gfc_walk_intrinsic_function): Update call.
84 * trans-stmt.c (gfc_trans_call): Ditto.
85 * trans-array.c (gfc_walk_function_expr): Ditto.
86 (gfc_walk_elemental_function_args): Get the dummy argument list
87 if possible. Check that the dummy and the actual argument are both
88 optional, and set can_be_null_ref accordingly.
90 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
93 * trans.h (struct gfc_ss_info): New field data::scalar::can_be_null_ref
94 * trans-array.c: If the reference can be NULL, save the reference
96 * trans-expr.c (gfc_conv_expr): If we have saved a reference,
99 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
101 * trans-expr.c (gfc_conv_expr): Move address taking...
102 (gfc_conv_expr_reference): ... here.
104 2012-01-04 Thomas Koenig <tkoenig@gcc.gnu.org>
107 * trans-common.c (create_common): Update copyright years. Mark
108 variables as used to avoid warnings about unused variables in
111 2012-01-03 Hans-Peter Nilsson <hp@axis.com>
113 * gfortran.h (struct gfc_expr): Add missing "struct"
114 qualifier for member base_expr.
116 2012-01-02 Paul Thomas <pault@gcc.gnu.org>
119 * trans-array.c (gfc_array_allocate): Null allocated memory of
120 newly allocted class arrays.
125 * interface.c(build_compcall_for_operator): Add a type to the
127 * trans-expr.c (conv_base_obj_fcn_val): New function.
128 (gfc_conv_procedure_call): Use base_expr to detect non-variable
129 base objects and, ensuring that there is a temporary variable,
130 build up the typebound call using conv_base_obj_fcn_val.
131 (gfc_trans_class_assign): Pick out class procedure pointer
132 assignments and do the assignment with no further prcessing.
133 (gfc_trans_class_array_init_assign, gfc_trans_class_init_assign
134 gfc_trans_class_assign): Move to top of file.
135 * gfortran.h : Add 'base_expr' field to gfc_expr.
136 * resolve.c (get_declared_from_expr): Add 'types' argument to
137 switch checking of derived types on or off.
138 (resolve_typebound_generic_call): Set the new argument.
139 (resolve_typebound_function, resolve_typebound_subroutine):
140 Set 'types' argument for get_declared_from_expr appropriately.
141 Identify base expression, if not a variable, in the argument
142 list of class valued calls. Assign it to the 'base_expr' field
143 of the final expression. Strip away all references after the
144 last class reference.
146 2012-01-02 Tobias Burnus <burnus@net-b.de>
149 * trans-intrinsic.c (trans_this_image, trans_image_index,
150 trans_num_images, conv_intrinsic_cobound): Fold_convert the
151 caf_num_images/caf_this_images variables to the correct int kind.
153 2012-01-01 Jakub Jelinek <jakub@redhat.com>
155 * gfortranspec.c (lang_specific_driver): Update copyright notice
158 Copyright (C) 2012 Free Software Foundation, Inc.
160 Copying and distribution of this file, with or without modification,
161 are permitted in any medium without royalty provided the copyright
162 notice and this notice are preserved.