1 2012-01-16 Tobias Burnus <burnus@net-b.de>
4 * class.c (gfc_find_derived_vtab): Mark __vtab and
5 __def_init as FL_VARIABLE not as FL_PARAMETER.
6 * expr.c (gfc_simplify_expr): Remove special
8 * resolve.c (resolve_values): Ditto.
9 * trans-decl.c (gfc_get_symbol_decl): Mark __vtab
10 and __def_init as TREE_READONLY.
12 2012-01-16 Paul Thomas <pault@gcc.gnu.org>
14 * trans-array.c (gfc_trans_create_temp_array): In the case of a
15 class array temporary, detect a null 'eltype' on entry and use
16 'initial' to provde the class reference and so, through the
17 vtable, the element size for the dynamic type.
18 * trans-stmt.c (gfc_conv_elemental_dependencies): For class
19 expressions, set 'eltype' to null and pass the values via the
22 2012-01-14 Tobias Burnus <burnus@net-b.de>
25 * resolve.c (build_default_init_expr): Also initialize
26 nonconstant-length strings with -finit-character=<n>.
28 2011-01-14 Tobias Burnus <burnus@net-b.de>
31 * module.c (read_module): Don't make nonexisting
32 intrinsic operators as found.
33 (rename_list_remove_duplicate): New function.
34 (gfc_use_modules): Use it.
36 2012-01-13 Paul Thomas <pault@gcc.gnu.org>
39 * trans-array.c (structure_alloc_comps): Suppress interative
40 call to self, when current component is deallocated using
41 gfc_trans_dealloc_allocated.
42 * class.c (gfc_build_class_symbol): Copy the 'alloc_comp'
43 attribute from the declared type to the class structure.
45 2012-01-13 Tobias Burnus <burnus@net-b.de>
48 * fortran/trans-types.c (gfc_init_kinds): Use PTRDIFF_TYPE
49 instead of a signed int of size POINTER_SIZE for
50 gfc_index_integer_kind.
52 2012-01-12 Tobias Burnus <burnus@net-b.de>
55 * intrinsic.texi (CHMOD): Extend a bit and remove statement
56 that /bin/chmod is called.
58 2012-01-10 Gerald Pfeifer <gerald@pfeifer.com>
60 * gfortran.texi (Fortran 2003 Status): Fix grammar.
62 2012-01-10 Tobias Burnus <burnus@net-b.de>
65 * resolve.c (resolve_allocate_expr): For non-deferred char lengths,
66 check whether type-spec matches declaration.
68 2012-01-10 Tobias Burnus <burnus@net-b.de>
70 * resolve.c (resolve_ordinary_assign): Improve error wording.
72 2012-01-09 Paul Thomas <pault@gcc.gnu.org>
75 * interface.c (matching_typebound_op): Drill down through
76 possible parentheses to obtain base expression. Do not test for
77 'class_ok' but, instead for the class structure components.
78 * resolve.c (resolve_ordinary_assign): Extend error message for
79 polymorphic assignment to advise checking for specific
83 * resolve.c (resolve_typebound_function): Restore 'static' to
86 2012-01-09 Mikael Morin <mikael@gcc.gnu.org>
89 * trans-array.c (gfc_walk_elemental_function_args):
90 Skip over NULL() actual arguments.
92 2012-01-09 Tobias Burnus <burnus@net-b.de>
94 * gfortran.texi: Bump copyright year.
95 (Fortran 2003 Status): Update polymorphism item, add
96 item for generic interface with DT name.
98 2012-01-09 Tobias Burnus <burnus@net-b.de>
101 * gfortran.h (gfc_use_list):
102 * match.h (gfc_use_module): Rename to ...
103 (gfc_use_modules): ... this.
104 * module.c (use_locus, specified_nonint, specified_int): Remove
106 (module_name): Change type to const char*, used with gfc_get_string.
107 (module_list): New global variable.
108 (free_rename): Free argument not global var.
109 (gfc_match_use): Save match to module_list.
110 (load_generic_interfaces, read_module): Don't free symtree.
111 (write_dt_extensions, gfc_dump_module): Fix module-name I/O due to the
112 type change of module_name.
113 (write_symbol0, write_generic): Optimize due to the type change.
114 (import_iso_c_binding_module, use_iso_fortran_env_module): Use
115 locus of rename->where.
116 (gfc_use_module): Take module_list as argument.
117 (gfc_use_modules): New function.
118 (gfc_module_init_2, gfc_module_done_2): Init module_list, rename_list.
119 * parse.c (last_was_use_stmt): New global variable.
120 (use_modules): New function.
121 (decode_specification_statement, decode_statement): Move USE match up
122 and call use_modules.
123 (next_free, next_fixed): Call use_modules.
124 (accept_statement): Don't call gfc_module_use.
126 2012-01-06 Tobias Burnus <burnus@net-b.de>
128 * trans-openmp.c (gfc_omp_clause_dtor, gfc_trans_omp_array_reduction):
129 Update call to gfc_trans_dealloc_allocated.
130 * trans.c (gfc_allocate_using_malloc): Fix spacing.
131 (gfc_allocate_allocatable): For gfc_allocate_using_lib, jump to
132 label_finish when an error occurs.
133 (gfc_deallocate_with_status): Call caf_deregister for -fcoarray=lib.
134 * trans.h (gfc_allocate_allocatable, gfc_deallocate_with_status):
136 (gfor_fndecl_caf_deregister): New tree symbol.
137 * trans-expr.c (gfc_conv_procedure_call): Update
138 gfc_deallocate_with_status and gfc_trans_dealloc_allocated calls.
139 * trans-array.c (gfc_array_allocate, gfc_trans_dealloc_allocated,
140 structure_alloc_comps, gfc_trans_deferred_array): Ditto.
141 (gfc_array_deallocate): Handle coarrays with -fcoarray=lib.
142 * trans-array.h (gfc_array_deallocate, gfc_array_allocate,
143 gfc_trans_dealloc_allocated): Update prototypes.
144 * trans-stmt.c (gfc_trans_sync): Fix indentation.
145 (gfc_trans_allocate): Fix errmsg padding and label handling.
146 (gfc_trans_deallocate): Ditto and handle -fcoarray=lib.
147 * expr.c (gfc_is_coarray): Fix algorithm for BT_CLASS.
148 * libgfortran.h (GFC_STAT_STOPPED_IMAGE): Use large value
149 to avoid other stats accidentally matching this one.
150 * trans-decl.c (gfor_fndecl_caf_deregister): New global var.
151 (gfc_build_builtin_function_decls): Fix prototype decl of caf_register
152 and add decl for caf_deregister.
153 (gfc_trans_deferred_vars): Handle CAF vars with -fcoarrays=lib.
154 * trans-intrinsic.c (conv_intrinsic_move_alloc): Update call to
155 gfc_deallocate_with_status.
157 2012-01-05 Paul Thomas <pault@gcc.gnu.org>
160 * resolve.c (resolve_typebound_static): If the typebound
161 procedure is 'deferred' try to find the correct specific
162 procedure in the derived type operator space itself.
164 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
167 * trans-array.h (gfc_walk_elemental_function_args): New argument.
168 * trans-intrinsic.c (gfc_walk_intrinsic_function): Update call.
169 * trans-stmt.c (gfc_trans_call): Ditto.
170 * trans-array.c (gfc_walk_function_expr): Ditto.
171 (gfc_walk_elemental_function_args): Get the dummy argument list
172 if possible. Check that the dummy and the actual argument are both
173 optional, and set can_be_null_ref accordingly.
175 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
178 * trans.h (struct gfc_ss_info): New field data::scalar::can_be_null_ref
179 * trans-array.c: If the reference can be NULL, save the reference
180 instead of the value.
181 * trans-expr.c (gfc_conv_expr): If we have saved a reference,
184 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
186 * trans-expr.c (gfc_conv_expr): Move address taking...
187 (gfc_conv_expr_reference): ... here.
189 2012-01-04 Thomas Koenig <tkoenig@gcc.gnu.org>
192 * trans-common.c (create_common): Update copyright years. Mark
193 variables as used to avoid warnings about unused variables in
196 2012-01-03 Hans-Peter Nilsson <hp@axis.com>
198 * gfortran.h (struct gfc_expr): Add missing "struct"
199 qualifier for member base_expr.
201 2012-01-02 Paul Thomas <pault@gcc.gnu.org>
204 * trans-array.c (gfc_array_allocate): Null allocated memory of
205 newly allocted class arrays.
210 * interface.c(build_compcall_for_operator): Add a type to the
212 * trans-expr.c (conv_base_obj_fcn_val): New function.
213 (gfc_conv_procedure_call): Use base_expr to detect non-variable
214 base objects and, ensuring that there is a temporary variable,
215 build up the typebound call using conv_base_obj_fcn_val.
216 (gfc_trans_class_assign): Pick out class procedure pointer
217 assignments and do the assignment with no further prcessing.
218 (gfc_trans_class_array_init_assign, gfc_trans_class_init_assign
219 gfc_trans_class_assign): Move to top of file.
220 * gfortran.h : Add 'base_expr' field to gfc_expr.
221 * resolve.c (get_declared_from_expr): Add 'types' argument to
222 switch checking of derived types on or off.
223 (resolve_typebound_generic_call): Set the new argument.
224 (resolve_typebound_function, resolve_typebound_subroutine):
225 Set 'types' argument for get_declared_from_expr appropriately.
226 Identify base expression, if not a variable, in the argument
227 list of class valued calls. Assign it to the 'base_expr' field
228 of the final expression. Strip away all references after the
229 last class reference.
231 2012-01-02 Tobias Burnus <burnus@net-b.de>
234 * trans-intrinsic.c (trans_this_image, trans_image_index,
235 trans_num_images, conv_intrinsic_cobound): Fold_convert the
236 caf_num_images/caf_this_images variables to the correct int kind.
238 2012-01-01 Jakub Jelinek <jakub@redhat.com>
240 * gfortranspec.c (lang_specific_driver): Update copyright notice
243 Copyright (C) 2012 Free Software Foundation, Inc.
245 Copying and distribution of this file, with or without modification,
246 are permitted in any medium without royalty provided the copyright
247 notice and this notice are preserved.