1 2010-07-11 Mikael Morin <mikael@gcc.gnu.org>
3 * arith.c (gfc_arith_done_1): Release mpfr internal caches.
5 2010-07-11 Janus Weil <janus@gcc.gnu.org>
8 * decl.c (build_sym,attr_decl1): Only build the class container if the
9 symbol has sufficient attributes.
10 * expr.c (gfc_check_pointer_assign): Use class_pointer instead of
11 pointer attribute for classes.
12 * match.c (gfc_match_allocate,gfc_match_deallocate): Ditto.
13 * module.c (MOD_VERSION): Bump.
14 (enum ab_attribute,attr_bits): Add AB_CLASS_POINTER.
15 (mio_symbol_attribute): Handle class_pointer attribute.
16 * parse.c (parse_derived): Use class_pointer instead of pointer
17 attribute for classes.
18 * primary.c (gfc_variable_attr,gfc_expr_attr): Ditto.
19 * resolve.c (resolve_structure_cons,resolve_deallocate_expr,
20 resolve_allocate_expr,resolve_fl_derived): Ditto.
21 (resolve_fl_var_and_proc): Check for class_ok attribute.
23 2010-07-10 Mikael Morin <mikael@gcc.gnu.org>
25 * trans-io.c (gfc_build_st_parameter): Update calls to
26 gfc_add_field_to_struct.
27 * trans-stmt.c (ADD_FIELD): Ditto.
29 (gfc_get_derived_type): Ditto. Don't create backend_decl for C_PTR's
31 (gfc_add_field_to_struct_1): Set TYPE_FIELDS(context) instead of
32 fieldlist, remove fieldlist from argument list.
33 (gfc_add_field_to_struct): Update call to gfc_add_field_to_struct_1
34 and remove fieldlist from argument list.
35 (gfc_get_desc_dim_type, gfc_get_array_descriptor_base,
36 gfc_get_mixed_entry_union): Move setting
37 TYPE_FIELDS to gfc_add_field_to_struct_1 and update calls to it.
38 * trans-types.h (gfc_add_field_to_struct): Update prototype.
40 2010-07-10 Paul Thomas <pault@gcc.gnu.org>
43 * trans-expr.c (arrayfunc_assign_needs_temporary): No temporary
44 if the lhs has never been host associated, as well as not being
45 use associated, a pointer or a target.
46 * resolve.c (resolve_variable): Mark variables that are host
48 * gfortran.h: Add the host_assoc bit to the symbol_attribute
51 2010-07-09 Janus Weil <janus@gcc.gnu.org>
53 * intrinsic.texi: Add documentation for SAME_TYPE_AS, EXTENDS_TYPE_OF,
54 STORAGE_SIZE, C_NULL_PTR and C_NULL_FUNPTR. Modify documentation of
57 2010-07-08 Janus Weil <janus@gcc.gnu.org>
60 * gfortran.h (gfc_isym_id): Add GFC_ISYM_C_SIZEOF,GFC_ISYM_STORAGE_SIZE.
61 * intrinsic.h (gfc_check_c_sizeof,gfc_check_storage_size,
62 gfc_resolve_storage_size): New prototypes.
63 * check.c (gfc_check_c_sizeof,gfc_check_storage_size): New functions.
64 * intrinsic.c (add_functions): Add STORAGE_SIZE.
65 * iresolve.c (gfc_resolve_storage_size): New function.
66 * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): Handle polymorphic
68 (gfc_conv_intrinsic_storage_size): New function.
69 (gfc_conv_intrinsic_function): Handle STORAGE_SIZE.
71 2010-07-08 Jakub Jelinek <jakub@redhat.com>
74 * match.c (match_exit_cycle): Error on EXIT also from collapsed
75 !$omp do loops. Error on CYCLE to non-innermost collapsed
78 2010-07-08 Tobias Burnus <burnus@net-b.de>
81 * array.c (gfc_match_array_ref): Better error message for
82 coarrays with too few ranks.
83 (match_subscript): Move one diagnostic to caller.
84 * gfortran.h (gfc_get_corank): Add prottype.
85 * expr.c (gfc_get_corank): New function.
86 * iresolve.c (resolve_bound): Fix rank for cobounds.
87 (gfc_resolve_lbound,gfc_resolve_lcobound, gfc_resolve_ubound,
88 gfc_resolve_ucobound, gfc_resolve_this_image): Update
91 2010-07-06 Tobias Burnus <burnus@net-b.de>
94 * array.c (gfc_expand_constructor): Add optional diagnostic.
95 * gfortran.h (gfc_expand_constructor): Update prototype.
96 * expr.c (gfc_simplify_expr, check_init_expr,
97 gfc_reduce_init_expr): Update gfc_expand_constructor call.
98 * resolve.c (gfc_resolve_expr): Ditto.
100 2010-07-06 Tobias Burnus <burnus@net-b.de>
102 * trans-decl.c: Include diagnostic-core.h besides toplev.h.
103 * trans-intrinsic.c: Ditto.
104 * trans-types.c: Ditto.
105 * convert.c: Include diagnostic-core.h instead of toplev.h.
107 * trans-array.c: Ditto.
108 * trans-const.c: Ditto.
109 * trans-expr.c: Ditto.
111 * trans-openmp.c: Ditto.
114 2010-07-06 Thomas Koenig <tkoenig@gcc.gnu.org>
117 * check.c (dim_rank_check): Also check intrinsic functions.
118 Adjust permissible rank for functions which reduce the rank of
119 their argument. Spread is an exception, where DIM can
120 be one larger than the rank of array.
122 2010-07-05 Steven G. Kargl <kargl@gcc.gnu.org>
125 * fortran/io.c (resolve_tag): Check EXIST tag is a default logical.
127 2010-07-05 Paul Thomas <pault@gcc.gnu.org>
130 * trans-types.c (gfc_get_derived_type): Derived type fields
131 with the vtype attribute must have TYPE_REF_CAN_ALIAS_ALL set
132 but build_pointer_type_for_mode must be used for this.
134 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
136 * trans.h (gfc_conv_procedure_call): Take a VEC instead of a tree.
137 * trans-intrinsic.c (gfc_conv_intrinsic_funcall): Adjust for new
138 type of gfc_conv_procedure_call.
139 (conv_generic_with_optional_char_arg): Likewise.
140 * trans-stmt.c (gfc_trans_call): Likewise.
141 * trans-expr.c (gfc_conv_function_expr): Likewise.
142 (gfc_conv_procedure_call): Use build_call_vec instead of
145 2010-07-04 Daniel Kraft <d@domob.eu>
147 * gfc-internals.texi (gfc_code): Document BLOCK and ASSOCIATE.
149 2010-07-04 Paul Thomas <pault@gcc.gnu.org>
153 * trans-types.c (gfc_get_derived_type): Derived type fields
154 with the vtype attribute must have TYPE_REF_CAN_ALIAS_ALL set.
156 2010-07-02 Mikael Morin <mikael@gcc.gnu.org>
159 * decl.c (match_procedure_in_type): Clear structure before using.
160 (gfc_match_generic): Ditto.
162 2010-07-02 Nathan Froyd <froydnj@codesourcery.com>
164 * trans-types.h (gfc_add_field_to_struct): Add tree ** parameter.
165 * trans-types.c (gfc_add_field_to_struct_1): New function, most
166 of which comes from...
167 (gfc_add_field_to_struct): ...here. Call it. Add new parameter.
168 (gfc_get_desc_dim_type): Call gfc_add_field_to_struct_1 for
170 (gfc_get_array_descriptor_base): Likewise.
171 (gfc_get_mixed_entry_union): Likewise.
172 (gfc_get_derived_type): Add extra chain parameter for
173 gfc_add_field_to_struct.
174 * trans-stmt.c (gfc_trans_character_select): Likewise.
175 * trans-io.c (gfc_build_st_parameter): Likewise.
177 2010-06-29 Janus Weil <janus@gcc.gnu.org>
180 * resolve.c (is_external_proc): Prevent procedure pointers from being
181 regarded as external procedures.
183 2010-06-29 Janus Weil <janus@gcc.gnu.org>
186 * trans-intrinsic.c (gfc_conv_associated): Handle polymorphic variables
187 passed as second argument of ASSOCIATED.
189 2010-06-29 Paul Thomas <pault@gcc.gnu.org>
192 * trans-expr.c (arrayfunc_assign_needs_temporary): New function
193 to determine if a function assignment can be made without a
195 (gfc_trans_arrayfunc_assign): Move all the conditions that
196 suppress the direct function call to the above new functon and
199 2010-06-28 Paul Thomas <pault@gcc.gnu.org>
202 * interface.c (argument_rank_mismatch): New function.
203 (compare_parameter): Call new function instead of generating
206 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
208 * trans-openmp.c (dovar_init): Define. Define VECs containing it.
209 (gfc_trans_omp_do): Use a VEC to accumulate variables and their
212 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
214 * Make-lang.in: Update dependencies.
216 2010-06-27 Nathan Froyd <froydnj@codesourcery.com>
218 * gfortran.h (gfc_code): Split backend_decl field into cycle_label
219 and exit_label fields.
220 * trans-openmp.c (gfc_trans_omp_do): Assign to new fields
222 * trans-stmt.c (gfc_trans_simple_do): Likewise.
223 (gfc_trans_do): Likewise.
224 (gfc_trans_do_while): Likewise.
225 (gfc_trans_cycle): Use cycle_label directly.
226 (gfc_trans_exit): Use exit_label directly.
228 2010-06-27 Daniel Kraft <d@domob.eu>
230 * dump-parse-tree.c (show_symbol): Dump target-expression for
232 (show_code_node): Make distinction between BLOCK and ASSOCIATE.
233 (show_namespace): Use show_level for correct indentation of
234 "inner namespaces" (contained procedures or BLOCK).
236 2010-06-27 Thomas Koenig <tkoenig@gcc.gnu.org>
239 * dump-parse-tree.c (show_code_node): Show namespace for
242 2010-06-26 Tobias Burnus <burnus@net-b.de>
244 * decl.c (gfc_match_decl_type_spec): Support
245 TYPE(intrinsic-type-spec).
247 2010-06-25 Tobias Burnus <burnus@net-b.de>
249 * intrinsic.h (gfc_check_selected_real_kind,
250 gfc_simplify_selected_real_kind): Update prototypes.
251 * intrinsic.c (add_functions): Add radix support to
253 * check.c (gfc_check_selected_real_kind): Ditto.
254 * simplify.c (gfc_simplify_selected_real_kind): Ditto.
255 * trans-decl.c (gfc_build_intrinsic_function_decls):
256 Change call from selected_real_kind to selected_real_kind2008.
257 * intrinsic.texi (SELECTED_REAL_KIND): Update for radix.
258 (PRECISION, RANGE, RADIX): Add cross @refs.
260 2010-06-25 Tobias Burnus <burnus@net-b.de>
262 * decl.c (gfc_match_entry): Mark ENTRY as GFC_STD_F2008_OBS.
263 * gfortran.texi (_gfortran_set_options): Update for
264 GFC_STD_F2008_OBS addition.
265 * libgfortran.h: Add GFC_STD_F2008_OBS.
266 * options.c (set_default_std_flags, gfc_handle_option): Handle
268 io.c (check_format): Fix allow_std check.
270 2010-06-25 Tobias Burnus <burnus@net-b.de>
272 * decl.c (gfc_match_entry): Allow END besides
273 END SUBROUTINE/END FUNCTION for contained procedures.
275 2010-06-25 Tobias Burnus <burnus@net-b.de>
277 * parse.c (next_free, next_fixed): Allow ";" as first character.
279 2010-06-24 Tobias Burnus <burnus@net-b.de>
282 * decl.c (variable_decl): Fix IMPORT diagnostic for CLASS.
284 2010-06-22 Janus Weil <janus@gcc.gnu.org>
287 * resolve.c (resolve_fl_derived): Avoid checking for abstract on class
290 2010-06-21 Tobias Burnus <burnus@net-b.de>
293 * interface.c (compare_parameter): Add gfc_is_simply_contiguous
295 * symbol.c (gfc_add_contiguous): New function.
296 (gfc_copy_attr, check_conflict): Handle contiguous attribute.
297 * decl.c (match_attr_spec): Ditto.
298 (gfc_match_contiguous): New function.
299 * resolve.c (resolve_fl_derived, resolve_symbol): Handle
301 * gfortran.h (symbol_attribute): Add contiguous.
302 (gfc_is_simply_contiguous): Add prototype.
303 (gfc_add_contiguous): Add prototype.
304 * match.h (gfc_match_contiguous): Add prototype.
305 * parse.c (decode_specification_statement,
306 decode_statement): Handle contiguous attribute.
307 * expr.c (gfc_is_simply_contiguous): New function.
308 * dump-parse-tree.c (show_attr): Handle contiguous.
309 * module.c (ab_attribute, attr_bits, mio_symbol_attribute):
311 * trans-expr.c (gfc_add_interface_mapping): Copy
313 * trans-array.c (gfc_conv_descriptor_stride_get,
314 gfc_conv_array_parameter): Handle contiguous arrays.
315 * trans-types.c (gfc_build_array_type, gfc_build_array_type,
316 gfc_sym_type, gfc_get_derived_type, gfc_get_array_descr_info):
318 * trans.h (gfc_array_kind): Ditto.
319 * trans-decl.c (gfc_get_symbol_decl): Ditto.
321 2010-06-20 Joseph Myers <joseph@codesourcery.com>
323 * options.c (gfc_handle_option): Don't handle N_OPTS.
325 2010-06-19 Janus Weil <janus@gcc.gnu.org>
328 * resolve.c (resolve_fl_derived): Reverse ordering of conditions
331 2010-06-18 Tobias Burnus <burnus@net-b.de>
334 * resolve.c (resolve_allocate_deallocate): Properly check
335 part-refs in stat=/errmsg= for invalid use.
337 2010-06-17 Janus Weil <janus@gcc.gnu.org>
340 * resolve.c (resolve_typebound_function,resolve_typebound_subroutine):
341 Return directly in case of an error.
343 2010-06-16 Janus Weil <janus@gcc.gnu.org>
346 * gfortran.h (gfc_get_typebound_proc): Modified Prototype.
347 * decl.c (match_procedure_in_type): Give a unique gfc_typebound_proc
348 structure to each procedure in a procedure list.
349 * module.c (mio_typebound_proc): Add NULL argument to
350 'gfc_get_typebound_proc'.
351 * symbol.c (gfc_get_typebound_proc): Add a new argument, which is used
352 to initialize the new structure.
354 2010-06-15 Janus Weil <janus@gcc.gnu.org>
357 * gfortran.h (gfc_expr): Add new member 'mold'.
358 * match.c (gfc_match_allocate): Implement the MOLD tag.
359 * resolve.c (resolve_allocate_expr): Ditto.
360 * trans-stmt.c (gfc_trans_allocate): Ditto.
362 2010-06-15 Jakub Jelinek <jakub@redhat.com>
365 * trans-openmp.c (gfc_omp_predetermined_sharing): Don't return
366 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with
367 GFC_DECL_SAVED_DESCRIPTOR set.
368 (gfc_omp_report_decl): New function.
369 * trans.h (gfc_omp_report_decl): New prototype.
370 * f95-lang.c (LANG_HOOKS_OMP_REPORT_DECL): Redefine.
372 2010-06-13 Daniel Franke <franke.daniel@gmail.com>
376 * gfortranspec.c (lang_specific_driver): Removed deprecation
378 * lang.opt: Add options -M, -MM, -MD, -MMD, -MF, -MG, -MP, -MT, -MQ.
379 * lang-specs.h (CPP_FORWARD_OPTIONS): Add -M* options.
380 * cpp.h (gfc_cpp_makedep): New.
381 (gfc_cpp_add_dep): New.
382 (gfc_cpp_add_target): New.
383 * cpp.c (gfc_cpp_option): Add deps* members.
384 (gfc_cpp_makedep): New.
385 (gfc_cpp_add_dep): New.
386 (gfc_cpp_add_target): New.
387 (gfc_cpp_init_options): Initialize new options.
388 (gfc_cpp_handle_option): Handle new options.
389 (gfc_cpp_post_options): Map new options to libcpp-options.
390 (gfc_cpp_init): Handle deferred -MQ and -MT options.
391 (gfc_cpp_done): If requested, write dependencies to file.
392 * module.c (gfc_dump_module): Add a module filename as target.
393 * scanner.c (open_included_file): New parameter system; add the
394 included file as dependency.
395 (gfc_open_included_file): Add the included file as dependency.
396 (gfc_open_intrinsic_module): Likewise.
397 * invoke.texi: Removed deprecation warning for -M.
398 * gfortran.texi: Removed Makefile-dependencies project.
400 2010-06-12 Daniel Franke <franke.daniel@gmail.com>
402 * resolve.c (resolve_global_procedure): Improved checking if an
403 explicit interface is required.
405 2010-06-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
407 * trans-decl.c (gfc_build_intrinsic_function_decls): Fix
409 * trans-intrinsic.c (gfc_conv_intrinsic_fdate): Fix argument type.
410 (gfc_conv_intrinsic_ttynam): Likewise.
411 (gfc_conv_intrinsic_trim): Likewise.
413 2010-06-12 Janus Weil <janus@gcc.gnu.org>
416 * decl.c (match_procedure_in_type): Allow procedure lists (F08).
418 2010-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
420 * trans-intrinsic.c (gfc_build_intrinsic_lib_fndecls): Fix comment.
422 2010-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
424 * mathbuiltins.def: Add builtins that do not directly correspond
425 to a Fortran intrinsic, with new macro OTHER_BUILTIN.
426 * f95-lang.c (gfc_init_builtin_functions): Define OTHER_BUILTIN.
427 * trans-intrinsic.c (gfc_intrinsic_map_t): Remove
428 code_{r,c}{4,8,10,16} fields. Add
429 {,complex}{float,double,long_double}_built_in fields.
430 (gfc_intrinsic_map): Adjust definitions of DEFINE_MATH_BUILTIN,
431 DEFINE_MATH_BUILTIN_C and LIB_FUNCTION accordingly. Add
432 definition of OTHER_BUILTIN.
433 (real_compnt_info): Remove unused struct.
434 (builtin_decl_for_precision, builtin_decl_for_float_kind): New
436 (build_round_expr): Call builtin_decl_for_precision instead of
438 (gfc_conv_intrinsic_aint): Call builtin_decl_for_float_kind
440 (gfc_build_intrinsic_lib_fndecls): Match
441 {real,complex}{4,8,10,16}decl into the C-style built_in_decls.
442 (gfc_get_intrinsic_lib_fndecl): Do not hardcode floating-point
444 (gfc_conv_intrinsic_lib_function): Go through all the extended
446 (gfc_trans_same_strlen_check): Call builtin_decl_for_float_kind
448 (gfc_conv_intrinsic_abs): Likewise.
449 (gfc_conv_intrinsic_mod): Likewise.
450 (gfc_conv_intrinsic_sign): Likewise.
451 (gfc_conv_intrinsic_fraction): Likewise.
452 (gfc_conv_intrinsic_nearest): Likewise.
453 (gfc_conv_intrinsic_spacing): Likewise.
454 (gfc_conv_intrinsic_rrspacing): Likewise.
455 (gfc_conv_intrinsic_scale): Likewise.
456 (gfc_conv_intrinsic_set_exponent): Likewise.
458 2010-06-11 Paul Thomas <pault@gcc.gnu.org>
462 * trans-expr.c (gfc_conv_derived_to_class): Handle array-valued
463 functions with CLASS formal arguments.
465 2010-06-10 Janus Weil <janus@gcc.gnu.org>
468 * resolve.c (conformable_arrays): Handle allocatable components.
470 2010-06-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
473 * gfortran.texi: Document that Cray pointers cannot be function
476 2010-06-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
479 * gfortran.texi: Document lack of support for syntax
480 "complex FUNCTION name*16()", and existence of alternative
481 legacy syntax "complex*16 FUNCTION name()".
483 2010-06-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
486 * intrinsic.texi (FLUSH): Note the difference between FLUSH and
487 POSIX's fsync(), and how to call the latter from Fortran code.
489 2010-06-10 Daniel Franke <franke.daniel@gmail.com>
492 * interface.c (compare_actual_formal): Reject actual arguments with
493 array subscript passed to ASYNCHRONOUS dummys.
495 2010-06-10 Daniel Kraft <d@domob.eu>
498 * gfortran.h (enum gfc_statement): Add ST_ASSOCIATE, ST_END_ASSOCIATE.
499 (struct gfc_symbol): New field `assoc'.
500 (struct gfc_association_list): New struct.
501 (struct gfc_code): New struct `block' in union, move `ns' there
502 and add association list.
503 (gfc_free_association_list): New method.
504 (gfc_has_vector_subscript): Made public;
505 * match.h (gfc_match_associate): New method.
506 * parse.h (enum gfc_compile_state): Add COMP_ASSOCIATE.
507 * decl.c (gfc_match_end): Handle ST_END_ASSOCIATE.
508 * interface.c (gfc_has_vector_subscript): Made public.
509 (compare_actual_formal): Rename `has_vector_subscript' accordingly.
510 * match.c (gfc_match_associate): New method.
511 (gfc_match_select_type): Change reference to gfc_code's `ns' field.
512 * primary.c (match_variable): Don't allow names associated to expr here.
513 * parse.c (decode_statement): Try matching ASSOCIATE statement.
514 (case_exec_markers, case_end): Add ASSOCIATE statement.
515 (gfc_ascii_statement): Hande ST_ASSOCIATE and ST_END_ASSOCIATE.
516 (parse_associate): New method.
517 (parse_executable): Handle ST_ASSOCIATE.
518 (parse_block_construct): Change reference to gfc_code's `ns' field.
519 * resolve.c (resolve_select_type): Ditto.
520 (resolve_code): Ditto.
521 (resolve_block_construct): Ditto and add comment.
522 (resolve_select_type): Set association list in generated BLOCK to NULL.
523 (resolve_symbol): Resolve associate names.
524 * st.c (gfc_free_statement): Change reference to gfc_code's `ns' field
525 and free association list.
526 (gfc_free_association_list): New method.
527 * symbol.c (gfc_new_symbol): NULL new field `assoc'.
528 * trans-stmt.c (gfc_trans_block_construct): Change reference to
529 gfc_code's `ns' field.
531 2010-06-10 Kai Tietz <kai.tietz@onevision.com>
533 * error.c (error_print): Pre-initialize loc by NULL.
534 * openmp.c (resolve_omp_clauses): Add explicit
535 braces to avoid ambigous else.
536 * array.c (match_subscript): Pre-initialize m to MATCH_ERROR.
538 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
540 * gfc-internals.texi: Move to GFDL 1.3.
541 * gfortran.texi: Ditto.
542 * intrinsic.texi: Ditto.
543 * invoke.texi: Ditto.
545 2010-06-09 Daniel Franke <franke.daniel@gmail.com>
548 * check.c (gfc_check_selected_real_kind): Verify that the
549 actual arguments are scalar.
551 2010-06-09 Daniel Franke <franke.daniel@gmail.com>
554 * intrinsic.c (gfc_convert_type_warn): Further improve -Wconversion.
556 2010-06-09 Janus Weil <janus@gcc.gnu.org>
559 * dump-parse-tree.c (show_symbol): Avoid infinite loop.
561 2010-06-09 Steven G. Kargl <kargl@gcc.gnu.org>
563 * fortran/symbol.c (check_conflict): Remove an invalid conflict check.
565 2010-06-09 Steven G. Kargl <kargl@gcc.gnu.org>
567 * fortran/intrinsic.c (add_functions): Change gfc_check_btest,
568 gfc_check_ibclr, and gfc_check_ibset to gfc_check_bitfcn.
569 * fortran/intrinsic.h: Remove prototypes for gfc_check_btest,
570 gfc_check_ibclr, and gfc_check_ibset. Add prototype for
572 * fortran/check.c (nonnegative_check, less_than_bitsize1,
573 less_than_bitsize2): New functions.
574 (gfc_check_btest): Renamed to gfc_check_bitfcn. Use
575 nonnegative_check and less_than_bitsize1.
576 (gfc_check_ibclr, gfc_check_ibset): Removed.
577 (gfc_check_ibits,gfc_check_mvbits): Use nonnegative_check and
580 2010-06-09 Janus Weil <janus@gcc.gnu.org>
583 * resolve.c (resolve_typebound_function,resolve_typebound_subroutine):
586 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
588 * resolve.c (resolve_deallocate_expr): Avoid warning
589 about possible use of iunitialized sym.
590 (resolve_allocate_expr): Pre-initialize sym by NULL.
592 2010-06-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
595 * f95-lang.c (gfc_init_builtin_functions): Remove comment.
597 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
599 * trans-types.c (gfc_get_nodesc_array_type): Use typed GC
601 (gfc_get_array_type_bounds): Likewise.
603 * trans-decl.c (gfc_allocate_lang_decl): Likewise.
604 (gfc_find_module): Likewise.
606 * f95-lang.c (pushlevel): Likewise.
608 * trans.h (struct lang_type): Add variable_size GTY option.
609 (struct lang_decl): Likewise.
611 2010-06-08 Tobias Burnus <burnus@net-b.de>
614 * symbol.c (check_conflict): Move protected--external/procedure check ...
615 * resolve.c (resolve_select_type): ... to the resolution stage.
617 2010-06-07 Tobias Burnus <burnus@net-b.de>
619 * options.c (gfc_handle_option): Fix -fno-recursive.
621 2010-06-07 Tobias Burnus <burnus@net-b.de>
623 * gfc-internals.texi (copyrights-gfortran): Fix copyright year format.
624 * gfortran.texi (copyrights-gfortran): Ditto.
626 2010-06-07 Joseph Myers <joseph@codesourcery.com>
628 * lang.opt (fshort-enums): Define using Var and VarExists.
629 * options.c (gfc_handle_option): Don't set flag_short_enums here.
631 2010-06-05 Paul Thomas <pault@gcc.gnu.org>
632 Janus Weil <janus@gcc.gnu.org>
635 * resolve.c (get_declared_from_expr): Move to before
636 resolve_typebound_generic_call. Make new_ref and class_ref
637 ignorable if set to NULL.
638 (resolve_typebound_generic_call): Once we have resolved the
639 generic call, check that the specific instance is that which
640 is bound to the declared type.
641 (resolve_typebound_function,resolve_typebound_subroutine): Avoid
642 freeing 'class_ref->next' twice.
644 2010-06-05 Paul Thomas <pault@gcc.gnu.org>
647 * trans-array.c (structure_alloc_comps): Dereference scalar
648 'decl' if it is a REFERENCE_TYPE. Tidy expressions containing
651 2010-06-04 Joseph Myers <joseph@codesourcery.com>
653 * gfortranspec.c (append_arg, lang_specific_driver): Use
654 GCC-specific formats in diagnostics.
656 2010-06-02 Tobias Burnus <burnus@net-b.de>
659 * parse.c (gfc_fixup_sibling_symbols): Do not "fix" use-associated
662 2010-06-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
665 * match.c (gfc_match_stopcode): Move gfc_match_eos call inside
668 2010-05-31 Steven G. Kargl <kargl@gcc.gnu.org>
670 * fortran/gfortran.texi: Fix typos in description of variable-format-
673 2010-05-31 Thomas Koenig <tkoenig@gcc.gnu.org>
676 * dependency.c (gfc_check_section_vs_section): Check
677 for interleaving array assignments without conflicts.
679 2010-05-30 Janus Weil <janus@gcc.gnu.org>
681 * gcc/fortran/gfortran.h (CLASS_DATA): New macro for accessing the
682 $data component of a class container.
683 * gcc/fortran/decl.c (attr_decl1): Use macro CLASS_DATA.
684 * gcc/fortran/expr.c (gfc_check_pointer_assign,gfc_check_assign_symbol,
685 gfc_has_ultimate_allocatable,gfc_has_ultimate_pointer): Ditto.
686 * gcc/fortran/interface.c (matching_typebound_op): Ditto.
687 * gcc/fortran/match.c (gfc_match_allocate, gfc_match_deallocate): Ditto.
688 * gcc/fortran/parse.c (parse_derived): Ditto.
689 * gcc/fortran/primary.c (gfc_match_varspec, gfc_variable_attr,
690 gfc_expr_attr): Ditto.
691 * gcc/fortran/resolve.c (resolve_structure_cons, find_array_spec,
692 resolve_deallocate_expr, resolve_allocate_expr, resolve_select_type,
693 resolve_fl_var_and_proc, resolve_typebound_procedure,
694 resolve_fl_derived): Ditto.
695 * gcc/fortran/symbol.c (gfc_type_compatible): Restructured.
696 * gcc/fortran/trans-array.c (structure_alloc_comps): Use macro
698 * gcc/fortran/trans-decl.c (gfc_get_symbol_decl,
699 gfc_trans_deferred_vars): Ditto.
700 * gcc/fortran/trans-stmt.c (gfc_trans_allocate): Ditto.
702 2010-05-28 Tobias Burnus <burnus@net-b.de>
704 * options.c (gfc_handle_option): Fix handling of -fno-whole-file.
706 2010-05-28 Joseph Myers <joseph@codesourcery.com>
708 * gfortranspec.c (append_arg, lang_specific_driver): Use
709 fatal_error instead of fatal. Use warning instead of fprintf for
712 2010-05-28 Joseph Myers <joseph@codesourcery.com>
714 * cpp.c (gfc_cpp_init_0): Use xstrerror instead of strerror.
715 * module.c (write_char, gfc_dump_module, gfc_use_module): Use
716 xstrerror instead of strerror.
718 2010-05-26 Joseph Myers <joseph@codesourcery.com>
720 * cpp.c (cb_cpp_error): Save and restore
721 global_dc->warn_system_headers, not variable warn_system_headers.
723 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
725 * fortran/f95-lang.c: Do not include libfuncs.h, expr.h, and except.h.
727 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
729 * trans-common.c: Do not include rtl.h, include output.h instead.
730 * trans-decl.c: Likewise.
732 2010-05-26 Paul Thomas <pault@gcc.gnu.org>
735 * resolve.c (resolve_global_procedure): Resolve the gsymbol's
736 namespace before trying to reorder the gsymbols.
738 2010-05-25 Daniel Franke <franke.daniel@gmail.com>
743 * resolve.c (resolve_global_procedure): Add check for global
744 procedures with implicit interfaces and assumed-shape or optional
745 dummy arguments. Verify that function return type, kind and string
748 2010-05-21 Tobias Burnus <burnus@net-b.de>
750 * gfortran.h: Do not include system.h.
751 * bbt.c: Include system.h.
753 * dependency.c: Ditto.
754 * dump-parse-tree.c: Ditto.
755 * arith.h: Do not include gfortran.h.
756 * constructor.h: Do not include gfortran.h and splay-tree.h.
757 * match.h: Do not include gfortran.h.
759 * target-memory.h: Ditto.
760 * openmp.c: Do not include toplev.h and target.h.
761 * trans-stmt.c: Ditto not include toplev.h.
763 * trans-common.c: Tell why toplev.h is needed. And
764 do not include target.h.
765 * trans-expr.c: Tell why toplev.h is needed.
766 * trans-array.c: Ditto.
767 * trans-openmp.c: Ditto.
768 * trans-const.c: Ditto.
770 * trans-types.c: Ditto.
772 * trans-decl.c: Ditto.
775 * trans-intrinsic.c: Ditto.
778 2010-05-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
781 * match.c (gfc_match_stopcode): Use gfc_match_init_expr. Go to cleanup
782 before returning MATCH_ERROR. Add check for scalar. Add check for
783 default integer kind.
785 2010-05-22 Janus Weil <janus@gcc.gnu.org>
788 * match.c (gfc_match_select_type): On error jump back out of the local
790 * parse.c (parse_derived): Defer creation of vtab symbols to resolution
791 stage, more precisely to ...
792 * resolve.c (resolve_fl_derived): ... this place.
794 2010-05-22 Janus Weil <janus@gcc.gnu.org>
797 * resolve.c (ensure_not_abstract): Allow abstract types with
798 non-abstract ancestors.
800 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
802 * trans-const.c: Include realmpfr.h.
803 * Make-lang.in: Update dependencies.
805 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
807 * trans-const.c, trans-types.c, trans-intrinsic.c:
808 Clean up redundant includes.
810 2010-05-20 Daniel Franke <franke.daniel@gmail.com>
813 * lang.opt (Wunused-dummy-argument): New option.
814 * gfortran.h (gfc_option_t): Add warn_unused_dummy_argument.
815 * options.c (gfc_init_options): Disable warn_unused_dummy_argument.
816 (set_Wall): Enable warn_unused_dummy_argument.
817 (gfc_handle_option): Set warn_unused_dummy_argument according to
819 * trans-decl.c (generate_local_decl): Separate warnings about
820 unused variables and unused dummy arguments.
821 * invoke.texi: Documented new option.
823 2010-05-20 Steven Bosscher <steven@gcc.gnu.org>
825 * trans-expr.c: Do not include convert.h, ggc.h, real.h, and gimple.h.
826 (gfc_conv_string_tmp): Do not assert type comparibilty.
827 * trans-array.c: Do not include gimple.h, ggc.h, and real.h.
828 (gfc_conv_expr_descriptor): Remove assert.
829 * trans-common.c: Clarify why rtl.h and tm.h are included.
830 * trans-openmp.c: Do not include ggc.h and real.h.
831 Explain why gimple.h is included.
832 * trans-const.c: Do not include ggc.h.
833 * trans-stmt.c: Do not include gimple.h, ggc.h, and real.h.
834 * trans.c: Do not include ggc.h and real.h.
835 Explain why gimple.h is included.
836 * trans-types.c: Do not include tm.h. Explain why langhooks.h
837 and dwarf2out.h are included.
838 * trans-io.c: Do not include gimple.h and real.h.
839 * trans-decl.c: Explain why gimple.h, tm.h, and rtl.h are included.
840 * trans-intrinsic.c: Do not include gimple.h. Explain why tm.h
843 2010-05-20 Tobias Burnus <burnus@net-b.de>
845 * options.c (gfc_init_options,gfc_post_options): Enable
846 flag_associative_math by default.
848 2010-05-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
851 * trans-stmt.c (gfc_trans_stop): Add generation of call to
852 gfortran_error_stop_numeric. Fix up some whitespace. Use stop_string for
853 blank STOP, handling a null expression. (gfc_trans_pause): Use
854 pause_string for blank PAUSE.
855 * trans.h: Add external function declaration for error_stop_numeric.
856 * trans-decl.c (gfc_build_builtin_function_decls): Add the building of
857 the declaration for the library call. Adjust whitespaces.
858 * match.c (gfc_match_stopcode): Remove use of the actual stop code to
859 signal no stop code. Match the expression following the stop and pass
860 that to the translators. Remove the old use of digit matching. Add
861 checks that the stop_code expression is INTEGER or CHARACTER, constant,
862 and if CHARACTER, default character KIND.
864 2010-05-19 Daniel Franke <franke.daniel@gmail.com>
867 * lang.opt (Wconversion-extra): New option.
868 * gfortran.h (gfc_option_t): Add warn_conversion_extra.
869 * options.c (gfc_init_options): Disable -Wconversion-extra by default.
870 (set_Wall): Enable -Wconversion.
871 (gfc_handle_option): Set warn_conversion_extra.
872 * intrinsic.c (gfc_convert_type_warn): Ignore kind conditions
873 introduced for -Wconversion if -Wconversion-extra is present.
874 * invoke.texi: Add -Wconversion to -Wall; document new behaviour of
875 -Wconversion; document -Wconversion-extra.
877 2010-05-19 Daniel Franke <franke.daniel@gmail.com>
880 * gfortran.h (gfc_has_default_initializer): New.
881 * expr.c (gfc_has_default_initializer): New.
882 * resolve.c (has_default_initializer): Removed, use
883 gfc_has_default_initializer() instead. Updated all callers.
884 * trans-array.c (has_default_initializer): Removed, use
885 gfc_has_default_initializer() instead. Updated all callers.
886 * trans-decl.c (generate_local_decl): Do not check the
887 first component only to check for initializers, but use
888 gfc_has_default_initializer() instead.
890 2010-05-19 Daniel Franke <franke.daniel@gmail.com>
893 * primary.c (match_string_constant): Move start_locus just inside
895 * data.c (create_character_intializer): Clarified truncation warning.
897 2010-05-19 Daniel Franke <franke.daniel@gmail.com>
900 * intrinsic.h (gfc_check_float): New prototype.
901 (gfc_check_sngl): New prototype.
902 * check.c (gfc_check_float): New.
903 (gfc_check_sngl): New.
904 * intrinsic.c (add_functions): Moved DFLOAT from aliasing DBLE
905 to be a specific for REAL. Added check routines for FLOAT, DFLOAT
907 * intrinsic.texi: Removed individual nodes of FLOAT, DFLOAT and SNGL,
908 added them to the list of specifics of REAL instead.
910 2010-05-17 Janus Weil <janus@gcc.gnu.org>
913 * trans-expr.c (gfc_conv_structure): Remove unneeded and buggy code.
914 This is now handled via 'gfc_class_null_initializer'.
916 2010-05-17 Janus Weil <janus@gcc.gnu.org>
918 * class.c (gfc_add_component_ref,gfc_class_null_initializer,
919 gfc_build_class_symbol,add_proc_component,add_proc_comps,
920 add_procs_to_declared_vtab1,copy_vtab_proc_comps,
921 add_procs_to_declared_vtab,add_generic_specifics,
922 add_generics_to_declared_vtab,gfc_find_derived_vtab,
923 find_typebound_proc_uop,gfc_find_typebound_proc,
924 gfc_find_typebound_user_op,gfc_find_typebound_intrinsic_op,
925 gfc_get_tbp_symtree): Moved here from other places.
926 * expr.c (gfc_add_component_ref,gfc_class_null_initializer): Move to
928 * gfortran.h (gfc_build_class_symbol,gfc_find_derived_vtab,
929 gfc_find_typebound_proc,gfc_find_typebound_user_op,
930 gfc_find_typebound_intrinsic_op,gfc_get_tbp_symtree,
931 gfc_add_component_ref, gfc_class_null_initializer): Moved to class.c.
932 * Make-lang.in: Add class.o.
933 * symbol.c (gfc_build_class_symbol,add_proc_component,add_proc_comps,
934 add_procs_to_declared_vtab1,copy_vtab_proc_comps,
935 add_procs_to_declared_vtab,add_generic_specifics,
936 add_generics_to_declared_vtab,gfc_find_derived_vtab,
937 find_typebound_proc_uop,gfc_find_typebound_proc,
938 gfc_find_typebound_user_op,gfc_find_typebound_intrinsic_op,
939 gfc_get_tbp_symtree): Move to class.c.
941 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
943 * trans-types.c (gfc_init_types): Use build_function_type_list.
944 (gfc_get_ppc_type): Likewise.
945 * trans-decl.c (gfc_generate_constructors): Likewise.
946 * f95-lang.c (build_builtin_fntypes): Likewise.
947 (gfc_init_builtin_functions): Likewise.
948 (DEF_FUNCTION_TYPE_0): Likewise.
949 (DEF_FUNCTION_TYPE_1): Likewise.
950 (DEF_FUNCTION_TYPE_2): Likewise.
951 (DEF_FUNCTION_TYPE_3): Likewise.
952 (DEF_FUNCTION_TYPE_4): Likewise.
953 (DEF_FUNCTION_TYPE_5): Likewise.
954 (DEF_FUNCTION_TYPE_6): Likewise.
955 (DEF_FUNCTION_TYPE_7): Likewise. Use ARG7.
956 (DEF_FUNCTION_TYPE_VAR_0): Use build_varags_function_type_list.
958 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
960 * trans-array.c (gfc_trans_array_constructor_value): Use
961 build_constructor instead of build_constructor_from_list.
962 (gfc_build_constant_array_constructor): Likewise.
963 * trans-decl.c (create_main_function): Likewise.
964 * trans-stmt.c (gfc_trans_character_select): Likewise.
966 2010-05-17 Janus Weil <janus@gcc.gnu.org>
969 * resolve.c (resolve_fl_var_and_proc): Move error messages here from ...
970 (resolve_fl_variable_derived): ... this place.
971 (resolve_symbol): Make sure function symbols (and their result
972 variables) are not resolved twice.
974 2010-05-16 Daniel Franke <franke.daniel@gmail.com>
977 * array.c (match_array_list): Revert change from 2010-05-13.
979 2010-05-16 Richard Guenther <rguenther@suse.de>
981 * trans-decl.c (module_htab_decls_hash): Revert last change.
983 2010-05-16 Richard Guenther <rguenther@suse.de>
985 * trans-decl.c (module_htab_decls_hash): Use IDENTIFIER_HASH_VALUE.
987 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
989 * options.c (set_Wall): Remove special logic for Wuninitialized
992 2010-05-15 Janus Weil <janus@gcc.gnu.org>
996 * trans-decl.c (gfc_trans_deferred_vars): Modify ordering of
999 2010-05-15 Janus Weil <janus@gcc.gnu.org>
1003 * gfortran.h (gfc_class_null_initializer): New prototype.
1004 * expr.c (gfc_class_null_initializer): New function to build a NULL
1005 initializer for CLASS pointers.
1006 * symbol.c (gfc_build_class_symbol): Modify internal naming of class
1007 containers. Remove default NULL initialization of $data component.
1008 * trans.c (gfc_allocate_array_with_status): Fix wording of an error
1010 * trans-expr.c (gfc_conv_initializer,gfc_trans_subcomponent_assign):
1011 Use new function 'gfc_class_null_initializer'.
1012 * trans-intrinsic.c (gfc_conv_allocated): Handle allocatable scalar
1015 2010-05-14 Steven G. Kargl <kargl@gcc.gnu.org>
1018 * fortran/interface.c (get_sym_storage_size): Use signed instead of
1019 unsigned mpz_get_?i routines.
1021 2010-05-14 Jakub Jelinek <jakub@redhat.com>
1023 * trans.c (trans_code): Set backend locus early.
1024 * trans-decl.c (gfc_get_fake_result_decl): Use source location
1025 of the function instead of current input_location.
1027 2010-05-13 Daniel Franke <franke.daniel@gmail.com>
1030 * intrinsic.c (gfc_init_expr): Renamed to gfc_init_expr_flag.
1032 * expr.c (init_flag): Removed; use gfc_init_expr_flag everywhere.
1033 * array.c (match_array_list): Pass on gfc_init_expr_flag when matching
1036 2010-05-13 Jakub Jelinek <jakub@redhat.com>
1039 * openmp.c (resolve_omp_clauses): Allow procedure pointers in clause
1041 * trans-openmp.c (gfc_omp_privatize_by_reference): Don't privatize
1042 by reference dummy procedures or non-dummy procedure pointers.
1043 (gfc_omp_predetermined_sharing): Return
1044 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE for dummy procedures.
1046 2010-05-11 Daniel Franke <franke.daniel@gmail.com>
1049 * openmp.c (gfc_match_omp_taskwait): Report unexpected characters
1050 after OMP statement.
1051 (gfc_match_omp_critical): Likewise.
1052 (gfc_match_omp_flush): Likewise.
1053 (gfc_match_omp_workshare): Likewise.
1054 (gfc_match_omp_master): Likewise.
1055 (gfc_match_omp_ordered): Likewise.
1056 (gfc_match_omp_atomic): Likewise.
1057 (gfc_match_omp_barrier): Likewise.
1058 (gfc_match_omp_end_nowait): Likewise.
1060 2010-05-11 Daniel Franke <franke.daniel@gmail.com>
1063 * resolve.c (validate_case_label_expr): Removed FIXME.
1064 (resolve_select): Raise default warning on case labels out of range
1065 of the case expression.
1067 2010-05-10 Daniel Franke <franke.daniel@gmail.com>
1072 * intrinsic.c (gfc_convert_type_warn): Be more discriminative
1073 about conversion warnings.
1075 2010-05-10 Janus Weil <janus@gcc.gnu.org>
1078 * match.c (gfc_match_select_type): Move error message to
1079 resolve_select_type.
1080 * resolve.c (resolve_select_type): Error message moved here from
1081 gfc_match_select_type. Correctly set type of temporary.
1083 2010-05-10 Richard Guenther <rguenther@suse.de>
1085 * trans-decl.c (gfc_build_library_function_decl): Split out
1087 (build_library_function_decl_1): ... this new function.
1088 Set a fnspec attribute if a specification was provided.
1089 (gfc_build_library_function_decl_with_spec): New function.
1090 (gfc_build_intrinsic_function_decls): Annotate internal_pack
1091 and internal_unpack.
1093 2010-05-07 Daniel Franke <franke.daniel@gmail.com>
1096 * intrinc.c (gfc_is_intrinsic): Do not prematurely mark symbol
1099 2010-05-07 Jason Merrill <jason@redhat.com>
1101 * trans-expr.c (gfc_conv_procedure_call): Rename nullptr to null_ptr
1102 to avoid -Wc++-compat warning.
1104 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
1107 * options.c (gfc_handle_option): Add argument kind.
1108 * gfortran.h (gfc_handle_option): Update declaration.
1110 2010-05-06 Tobias Burnus <burnus@net-b.de>
1113 * trans-types.c (gfc_sym_type): Mark Cray pointees as
1116 2010-05-05 Daniel Franke <franke.daniel@gmail.com>
1119 * resolve.c (traverse_data_list): Rephrase error message for
1120 non-constant bounds in data-implied-do.
1122 2010-05-05 Daniel Franke <franke.daniel@gmail.com>
1125 * gfortran.h: Removed repeat count from constructor, removed
1127 * data.h (gfc_assign_data_value_range): Changed return value from
1129 * data.c (gfc_assign_data_value): Add location to constructor element.
1130 (gfc_assign_data_value_range): Call gfc_assign_data_value()
1131 for each element in range. Return early if an error was generated.
1132 * resolve.c (check_data_variable): Stop early if range assignment
1135 2010-05-05 Janus Weil <janus@gcc.gnu.org>
1138 * resolve.c (resolve_fl_derived): Some fixes for class variables.
1139 * symbol.c (gfc_build_class_symbol): Add separate class container for
1142 2010-05-03 Steven G. Kargl <kargl@gcc.gnu.org>
1145 * fortran/parse.c (parse_interface): Do not dereference a NULL pointer.
1147 2010-05-02 Tobias Burnus <burnus@net-b.de>
1150 * intrinsic.c (add_functions): Fix GFC_STD and add gfc_resolve_ calls
1151 for lcobound, ucobound, image_index and this_image.
1152 * intrinsic.h (gfc_resolve_lcobound, gfc_resolve_this_image,
1153 gfc_resolve_image_index, gfc_resolve_ucobound): New prototypes.
1154 * iresolve.c (gfc_resolve_lcobound, gfc_resolve_this_image,
1155 gfc_resolve_image_index, gfc_resolve_ucobound, resolve_bound): New
1157 (gfc_resolve_lbound, gfc_resolve_ubound): Use resolve_bound.
1159 2010-04-30 Tobias Burnus <burnus@net-b.de>
1163 * trans-types.c (gfc_get_array_descriptor_base): Fix index
1164 calculation for array descriptor types.
1166 2010-04-29 Janus Weil <janus@gcc.gnu.org>
1169 * symbol.c (add_proc_component,copy_vtab_proc_comps): Remove
1170 initializers for PPC members of the vtabs.
1172 2010-04-29 Janus Weil <janus@gcc.gnu.org>
1175 * symbol.c (add_proc_component,add_proc_comps): Correctly set the 'ppc'
1176 attribute for all PPC members of the vtypes.
1177 (copy_vtab_proc_comps): Copy the correct interface.
1178 * trans.h (gfc_trans_assign_vtab_procs): Modified prototype.
1179 * trans-expr.c (gfc_trans_assign_vtab_procs): Pass the derived type as
1180 a dummy argument and make sure all PPC members of the vtab are
1181 initialized correctly.
1182 (gfc_conv_derived_to_class,gfc_trans_class_assign): Additional argument
1183 in call to gfc_trans_assign_vtab_procs.
1184 * trans-stmt.c (gfc_trans_allocate): Ditto.
1186 2010-04-29 Paul Thomas <pault@gcc.gnu.org>
1189 * resolve.c (resolve_typebound_function): Renamed
1190 resolve_class_compcall.Do all the detection of class references
1192 (resolve_typebound_subroutine): resolve_class_typebound_call
1193 renamed. Otherwise same as resolve_typebound_function.
1194 (gfc_resolve_expr): Call resolve_typebound_function.
1195 (resolve_code): Call resolve_typebound_subroutine.
1197 2010-04-29 Janus Weil <janus@gcc.gnu.org>
1200 * resolve.c (resolve_typebound_generic_call): For CLASS methods
1201 pass back the specific symtree name, rather than the target
1204 2010-04-29 Paul Thomas <pault@gcc.gnu.org>
1207 * resolve.c (resolve_structure_cons): Make the initializer of
1208 the vtab component 'extends' the same type as the component.
1210 2010-04-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1213 * interface.c (check_interface1): Pass symbol name rather than NULL to
1214 gfc_compare_interfaces.(gfc_compare_interfaces): Add assert to
1215 trap MULL. (gfc_compare_derived_types): Revert previous change
1216 incorporated incorrectly during merge from trunk, r155778.
1217 * resolve.c (check_generic_tbp_ambiguity): Pass symbol name rather
1218 than NULL to gfc_compare_interfaces.
1219 * symbol.c (add_generic_specifics): Likewise.
1221 2010-02-29 Janus Weil <janus@gcc.gnu.org>
1224 * interface.c (gfc_compare_derived_types): Add condition for vtype.
1225 * symbol.c (gfc_find_derived_vtab): Sey access to private.
1226 (gfc_find_derived_vtab): Likewise.
1227 * module.c (ab_attribute): Add enumerator AB_VTAB.
1228 (mio_symbol_attribute): Use new attribute, AB_VTAB.
1229 (check_for_ambiguous): Likewise.
1231 2010-04-29 Paul Thomas <pault@gcc.gnu.org>
1232 Janus Weil <janus@gcc.gnu.org>
1235 * trans-expr.c (select_class_proc): Remove function.
1236 (conv_function_val): Delete reference to previous.
1237 (gfc_conv_derived_to_class): Add second argument to the call to
1238 gfc_find_derived_vtab.
1239 (gfc_conv_structure): Exclude proc_pointer components when
1240 accessing $data field of class objects.
1241 (gfc_trans_assign_vtab_procs): New function.
1242 (gfc_trans_class_assign): Add second argument to the call to
1243 gfc_find_derived_vtab.
1244 * symbol.c (gfc_build_class_symbol): Add delayed_vtab arg and
1245 implement holding off searching for the vptr derived type.
1246 (add_proc_component): New function.
1247 (add_proc_comps): New function.
1248 (add_procs_to_declared_vtab1): New function.
1249 (copy_vtab_proc_comps): New function.
1250 (add_procs_to_declared_vtab): New function.
1251 (void add_generic_specifics): New function.
1252 (add_generics_to_declared_vtab): New function.
1253 (gfc_find_derived_vtab): Add second argument to the call to
1254 gfc_find_derived_vtab. Add the calls to
1255 add_procs_to_declared_vtab and add_generics_to_declared_vtab.
1256 * decl.c (build_sym, build_struct): Use new arg in calls to
1257 gfc_build_class_symbol.
1258 * gfortran.h : Add vtype bitfield to symbol_attr. Remove the
1259 definition of struct gfc_class_esym_list. Modify prototypes
1260 of gfc_build_class_symbol and gfc_find_derived_vtab.
1261 * trans-stmt.c (gfc_trans_allocate): Add second argument to the
1262 call to gfc_find_derived_vtab.
1263 * module.c : Add the vtype attribute.
1264 * trans.h : Add prototype for gfc_trans_assign_vtab_procs.
1265 * resolve.c (resolve_typebound_generic_call): Add second arg
1266 to pass along the generic name for class methods.
1267 (resolve_typebound_call): The same.
1268 (resolve_compcall): Use the second arg to carry the generic
1269 name from the above. Remove the reference to class_esym.
1270 (check_members, check_class_members, resolve_class_esym,
1271 hash_value_expr): Remove functions.
1272 (resolve_class_compcall, resolve_class_typebound_call): Modify
1273 to use vtable rather than member by member calls.
1274 (gfc_resolve_expr): Modify second arg in call to
1276 (resolve_select_type): Add second arg in call to
1277 gfc_find_derived_vtab.
1278 (resolve_code): Add second arg in call resolve_typebound_call.
1279 (resolve_fl_derived): Exclude vtypes from check for late
1280 procedure definitions. Likewise for checking of explicit
1281 interface and checking of pass arg.
1282 * iresolve.c (gfc_resolve_extends_type_of): Add second arg in
1283 calls to gfc_find_derived_vtab.
1284 * match.c (select_type_set_tmp): Use new arg in call to
1285 gfc_build_class_symbol.
1286 * trans-decl.c (gfc_get_symbol_decl): Complete vtable if
1288 * parse.c (endType): Finish incomplete classes.
1290 2010-04-28 Tobias Burnus <burnus@net-b.de>
1294 * simplify.c (simplify_cobound): Handle scalar coarrays.
1296 2010-04-27 Tobias Burnus <burnus@net-b.de>
1298 * gfc-internals.texi: Update copyright year.
1299 * gfortran.texi: Ditto.
1300 * invoke.texi: Ditto.
1302 2010-04-27 Tobias Burnus <burnus@net-b.de>
1305 * resolve.c (resolve_allocate_expr): Allow array coarrays.
1306 * trans-types.h (gfc_get_array_type_bounds): Update prototype.
1307 * trans-types.c (gfc_get_array_type_bounds,
1308 gfc_get_array_descriptor_base): Add corank argument.
1309 * trans-array.c (gfc_array_init_size): Handle corank.
1310 (gfc_trans_create_temp_array, gfc_array_allocate,
1311 gfc_conv_expr_descriptor): Add corank argument to call.
1312 * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Ditto.
1314 2010-04-24 Steven G. Kargl <kargl@gcc.gnu.org>
1318 * trans-array.c (gfc_trans_array_bound_check): Use TREE_CODE instead
1319 of mucking with a tree directly.
1321 2010-04-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1324 * io.c (gfc_match_open): Remove branch to syntax error. Add call to
1325 gfc_error with new error message.
1327 2010-04-24 Paul Thomas <pault@gcc.gnu.org>
1331 * trans-expr.c (gfc_conv_expr): Supply an address expression for
1333 (gfc_conv_expr_reference): Call gfc_conv_expr and return for
1335 * trans-array.c (gfc_add_loop_ss_code): Store the value rather
1336 than the address of a GFC_SS_REFERENCE.
1337 * trans.h : Change comment on GFC_SS_REFERENCE.
1339 2010-04-22 Richard Guenther <rguenther@suse.de>
1342 * resolve.c (gfc_resolve_index): Wrap around ...
1343 (gfc_resolve_index_1): ... this. Add parameter to allow
1344 any integer kind index type.
1345 (resolve_array_ref): Allow any integer kind for the start
1346 index of an array ref.
1348 2010-04-21 Jakub Jelinek <jakub@redhat.com>
1351 * f95-lang.c (gfc_define_builtin): Set TREE_NOTHROW on
1354 2010-04-20 Harald Anlauf <anlauf@gmx.de>
1356 * intrinsic.c (sort_actual): Remove 'is' in error message.
1358 2010-04-20 Paul Thomas <pault@gcc.gnu.org>
1361 * resolve.c (resolve_fl_derived): If a component character
1362 length has not been resolved, do so now.
1363 (resolve_symbol): The same as above for a symbol character
1365 * trans-decl.c (gfc_create_module_variable): A 'length' decl is
1366 not needed for a character valued, procedure pointer.
1369 * resolve.c (ensure_not_abstract_walker): If 'overriding' is
1370 not found, return FAILURE rather than ICEing.
1372 2010-04-19 Jakub Jelinek <jakub@redhat.com>
1375 * openmp.c (gfc_resolve_do_iterator): Only make iteration vars for
1376 sequential loops private in the innermost containing task region.
1378 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
1380 * f95-lang.c (gfc_init_decl_processing): Remove second argument in call
1381 to build_common_tree_nodes.
1383 2010-04-17 Steven G. Kargl <kargl@gcc.gnu.org>
1386 * fortran/trans-array.c (gfc_conv_ss_startstride): Remove the use of
1387 gfc_msg_bounds by using 'Array bound mismatch' directly.
1388 (gfc_trans_dummy_array_bias): Remove the use of gfc_msg_bounds. Reword
1389 error message to include the mismatch in the extent of array bound.
1390 * fortran/trans.c: Remove gfc_msg_bounds. It is only used in one place.
1391 * fortran/trans.h: Remove extern definition of gfc_msg_bounds.
1393 2010-04-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1395 * gfortran.texi: Update information on temporary file locations.
1397 2010-04-16 Jakub Jelinek <jakub@redhat.com>
1399 * trans-decl.c (gfc_build_qualified_array): Ensure
1400 ubound.N and lbound.N artificial variable names don't appear
1403 2010-04-15 Steven G. Kargl <kargl@gcc.gnu.org>
1406 * trans-array.c (gfc_trans_array_bound_check): Eliminate a redundant
1407 block of code. Set name to the variable associated with the descriptor.
1409 2010-04-15 Jakub Jelinek <jakub@redhat.com>
1411 * trans-decl.c (gfc_build_qualified_array): Clear DECL_IGNORED_P
1412 on VAR_DECL LBOUND and/or UBOUND, even for -O1.
1414 2010-04-14 Steven G. Kargl <kargl@gcc.gnu.org>
1416 * intrinsic.texi: Add the missing specific name of intrinsic
1417 procedure where the specific name is identical to the generic name.
1418 Fix inconsistent or mismatch in the argument names in intrinsic
1419 procedure descriptions. Add the SCALAR allocatable description to
1422 2010-04-14 Tobias Burnus <burnus@net-b.de>
1425 * array.c (gfc_find_array_ref): Handle codimensions.
1426 (gfc_match_array_spec,gfc_match_array_ref): Use gfc_fatal_error.
1427 * check.c (is_coarray, dim_corank_check, gfc_check_lcobound,
1428 gfc_check_image_index, gfc_check_this_image, gfc_check_ucobound):
1430 * gfortran.h (gfc_isym_id): Add GFC_ISYM_IMAGE_INDEX,
1431 GFC_ISYM_LCOBOUND, GFC_ISYM_THIS_IMAGE,
1433 * intrinsic.h (add_functions): Add this_image, image_index,
1434 lcobound and ucobound intrinsics.
1435 * intrinsic.c (gfc_check_lcobound,gfc_check_ucobound,
1436 gfc_check_image_index, gfc_check_this_image,
1437 gfc_simplify_image_index, gfc_simplify_lcobound,
1438 gfc_simplify_this_image, gfc_simplify_ucobound):
1439 New function prototypes.
1440 * intrinsic.texi (IMAGE_INDEX, LCOBOUND, THIS_IMAGE
1441 IMAGE_INDEX): Document new intrinsic functions.
1442 * match.c (gfc_match_critical, sync_statement): Make -fcoarray=none
1444 * simplify.c (simplify_bound_dim): Handle coarrays.
1445 (simplify_bound): Update simplify_bound_dim call.
1446 (gfc_simplify_num_images): Add -fcoarray=none check.
1447 (simplify_cobound, gfc_simplify_lcobound, gfc_simplify_ucobound,
1448 gfc_simplify_ucobound, gfc_simplify_ucobound): New functions.
1450 2010-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1453 * constructor.c: Fix typo in comment.
1454 * expr.c (find_array_section): Add check for max array limit.
1456 2010-04-13 Iain Sandoe <iains@gcc.gnu.org>
1459 * gfortranspec.c (lookup_option): Check for -static and return
1461 (lang_specific_driver): Break when OPTION_static is discovered.
1463 2010-04-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1465 * array.c (extract_element): Restore function from trunk.
1466 (gfc_get_array_element): Restore function from trunk.
1467 (gfc_expand_constructor): Restore check against
1468 flag_max_array_constructor.
1469 * constructor.c (node_copy_and_append): Delete unused.
1470 * gfortran.h: Delete comment and extra include.
1471 * constructor.h: Bump copyright and clean up TODO comments.
1472 * resolve.c: Whitespace.
1474 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
1476 * simplify.c (compute_dot_product): Replaced usage of ADVANCE macro
1477 with direct access access to elements. Adjusted prototype, fixed all
1479 (gfc_simplify_dot_product): Removed duplicate check for zero-sized
1481 (gfc_simplify_matmul): Removed usage of ADVANCE macro.
1482 (gfc_simplify_spread): Removed workaround, directly insert elements
1483 at a given array position.
1484 (gfc_simplify_transpose): Likewise.
1485 (gfc_simplify_pack): Replaced usage of ADVANCE macro with corresponding
1487 (gfc_simplify_unpack): Likewise.
1489 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
1491 * simplify.c (only_convert_cmplx_boz): Renamed to ...
1492 (convert_boz): ... this and moved to start of file.
1493 (gfc_simplify_abs): Whitespace fix.
1494 (gfc_simplify_acos): Whitespace fix.
1495 (gfc_simplify_acosh): Whitespace fix.
1496 (gfc_simplify_aint): Whitespace fix.
1497 (gfc_simplify_dint): Whitespace fix.
1498 (gfc_simplify_anint): Whitespace fix.
1499 (gfc_simplify_and): Replaced if-gate by more common switch-over-type.
1500 (gfc_simplify_dnint): Whitespace fix.
1501 (gfc_simplify_asin): Whitespace fix.
1502 (gfc_simplify_asinh): Moved creation of result-expr out of switch.
1503 (gfc_simplify_atan): Likewise.
1504 (gfc_simplify_atanh): Whitespace fix.
1505 (gfc_simplify_atan2): Whitespace fix.
1506 (gfc_simplify_bessel_j0): Removed ATTRIBUTE_UNUSED.
1507 (gfc_simplify_bessel_j1): Likewise.
1508 (gfc_simplify_bessel_jn): Likewise.
1509 (gfc_simplify_bessel_y0): Likewise.
1510 (gfc_simplify_bessel_y1): Likewise.
1511 (gfc_simplify_bessel_yn): Likewise.
1512 (gfc_simplify_ceiling): Reorderd statements.
1513 (simplify_cmplx): Use convert_boz(), check for constant arguments.
1515 (gfc_simplify_cmplx): Use correct default kind. Removed check for
1517 (gfc_simplify_complex): Replaced if-gate. Removed check for
1519 (gfc_simplify_conjg): Whitespace fix.
1520 (gfc_simplify_cos): Whitespace fix.
1521 (gfc_simplify_cosh): Replaced if-gate by more common switch-over-type.
1522 (gfc_simplify_dcmplx): Removed check for constant arguments.
1523 (gfc_simplify_dble): Use convert_boz() and gfc_convert_constant().
1524 (gfc_simplify_digits): Whitespace fix.
1525 (gfc_simplify_dim): Whitespace fix.
1526 (gfc_simplify_dprod): Reordered statements.
1527 (gfc_simplify_erf): Whitespace fix.
1528 (gfc_simplify_erfc): Whitespace fix.
1529 (gfc_simplify_epsilon): Whitespace fix.
1530 (gfc_simplify_exp): Whitespace fix.
1531 (gfc_simplify_exponent): Use convert_boz().
1532 (gfc_simplify_floor): Reorderd statements.
1533 (gfc_simplify_gamma): Whitespace fix.
1534 (gfc_simplify_huge): Whitespace fix.
1535 (gfc_simplify_iand): Whitespace fix.
1536 (gfc_simplify_ieor): Whitespace fix.
1537 (simplify_intconv): Use gfc_convert_constant().
1538 (gfc_simplify_int): Use simplify_intconv().
1539 (gfc_simplify_int2): Reorderd statements.
1540 (gfc_simplify_idint): Reorderd statements.
1541 (gfc_simplify_ior): Whitespace fix.
1542 (gfc_simplify_ishftc): Removed duplicate type check.
1543 (gfc_simplify_len): Use range_check() instead of manual range check.
1544 (gfc_simplify_lgamma): Removed ATTRIBUTE_UNUSED. Whitespace fix.
1545 (gfc_simplify_log): Whitespace fix.
1546 (gfc_simplify_log10): Whitespace fix.
1547 (gfc_simplify_minval): Whitespace fix.
1548 (gfc_simplify_maxval): Whitespace fix.
1549 (gfc_simplify_mod): Whitespace fix.
1550 (gfc_simplify_modulo): Whitespace fix.
1551 (simplify_nint): Reorderd statements.
1552 (gfc_simplify_not): Whitespace fix.
1553 (gfc_simplify_or): Replaced if-gate by more common switch-over-type.
1554 (gfc_simplify_radix): Removed unused result-variable. Whitespace fix.
1555 (gfc_simplify_range): Removed unused result-variable. Whitespace fix.
1556 (gfc_simplify_real): Use convert_boz() and gfc_convert_constant().
1557 (gfc_simplify_realpart): Whitespace fix.
1558 (gfc_simplify_selected_char_kind): Removed unused result-variable.
1559 (gfc_simplify_selected_int_kind): Removed unused result-variable.
1560 (gfc_simplify_selected_real_kind): Removed unused result-variable.
1561 (gfc_simplify_sign): Whitespace fix.
1562 (gfc_simplify_sin): Whitespace fix.
1563 (gfc_simplify_sinh): Replaced if-gate by more common switch-over-type.
1564 (gfc_simplify_sqrt): Avoided goto by inlining check. Whitespace fix.
1565 (gfc_simplify_tan): Replaced if-gate by more common switch-over-type.
1566 (gfc_simplify_tanh): Replaced if-gate by more common switch-over-type.
1567 (gfc_simplify_xor): Replaced if-gate by more common switch-over-type.
1569 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
1571 * gfortran.h (gfc_start_constructor): Removed.
1572 (gfc_get_array_element): Removed.
1573 * array.c (gfc_start_constructor): Removed, use gfc_get_array_expr
1574 instead. Fixed all callers.
1575 (extract_element): Removed.
1576 (gfc_expand_constructor): Temporarily removed check for
1577 max-array-constructor. Will be re-introduced later if still required.
1578 (gfc_get_array_element): Removed, use gfc_constructor_lookup_expr
1579 instead. Fixed all callers.
1580 * expr.c (find_array_section): Replaced manual lookup of elements
1581 by gfc_constructor_lookup.
1583 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
1585 * gfortran.h (gfc_get_null_expr): New prototype.
1586 (gfc_get_operator_expr): New prototype.
1587 (gfc_get_character_expr): New prototype.
1588 (gfc_get_iokind_expr): New prototype.
1589 * expr.c (gfc_get_null_expr): New.
1590 (gfc_get_character_expr): New.
1591 (gfc_get_iokind_expr): New.
1592 (gfc_get_operator_expr): Moved here from matchexp.c (build_node).
1593 * matchexp.c (build_node): Renamed and moved to
1594 expr.c (gfc_get_operator_expr). Reordered arguments to match
1595 other functions. Fixed all callers.
1596 (gfc_get_parentheses): Use specific function to build expr.
1597 * array.c (gfc_match_array_constructor): Likewise.
1598 * arith.c (eval_intrinsic): Likewise.
1599 (gfc_hollerith2int): Likewise.
1600 (gfc_hollerith2real): Likewise.
1601 (gfc_hollerith2complex): Likewise.
1602 (gfc_hollerith2logical): Likewise.
1603 * data.c (create_character_intializer): Likewise.
1604 * decl.c (gfc_match_null): Likewise.
1605 (enum_initializer): Likewise.
1606 * io.c (gfc_match_format): Likewise.
1607 (match_io): Likewise.
1608 * match.c (gfc_match_nullify): Likewise.
1609 * primary.c (match_string_constant): Likewise.
1610 (match_logical_constant): Likewise.
1611 (build_actual_constructor): Likewise.
1612 * resolve.c (build_default_init_expr): Likewise.
1613 * symbol.c (generate_isocbinding_symbol): Likewise.
1614 (gfc_build_class_symbol): Likewise.
1615 (gfc_find_derived_vtab): Likewise.
1616 * simplify.c (simplify_achar_char): Likewise.
1617 (gfc_simplify_adjustl): Likewise.
1618 (gfc_simplify_adjustr): Likewise.
1619 (gfc_simplify_and): Likewise.
1620 (gfc_simplify_bit_size): Likewise.
1621 (gfc_simplify_is_iostat_end): Likewise.
1622 (gfc_simplify_is_iostat_eor): Likewise.
1623 (gfc_simplify_isnan): Likewise.
1624 (simplify_bound): Likewise.
1625 (gfc_simplify_leadz): Likewise.
1626 (gfc_simplify_len_trim): Likewise.
1627 (gfc_simplify_logical): Likewise.
1628 (gfc_simplify_maxexponent): Likewise.
1629 (gfc_simplify_minexponent): Likewise.
1630 (gfc_simplify_new_line): Likewise.
1631 (gfc_simplify_null): Likewise.
1632 (gfc_simplify_or): Likewise.
1633 (gfc_simplify_precision): Likewise.
1634 (gfc_simplify_repeat): Likewise.
1635 (gfc_simplify_scan): Likewise.
1636 (gfc_simplify_size): Likewise.
1637 (gfc_simplify_trailz): Likewise.
1638 (gfc_simplify_trim): Likewise.
1639 (gfc_simplify_verify): Likewise.
1640 (gfc_simplify_xor): Likewise.
1641 * trans-io.c (build_dt): Likewise.
1642 (gfc_new_nml_name_expr): Removed.
1644 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
1646 * arith.h (gfc_constant_result): Removed prototype.
1647 * constructor.h (gfc_build_array_expr): Removed prototype.
1648 (gfc_build_structure_constructor_expr): Removed prototype.
1649 * gfortran.h (gfc_int_expr): Removed prototype.
1650 (gfc_logical_expr): Removed prototype.
1651 (gfc_get_array_expr): New prototype.
1652 (gfc_get_structure_constructor_expr): New prototype.
1653 (gfc_get_constant_expr): New prototype.
1654 (gfc_get_int_expr): New prototype.
1655 (gfc_get_logical_expr): New prototype.
1656 * arith.c (gfc_constant_result): Moved and renamed to
1657 expr.c (gfc_get_constant_expr). Fixed all callers.
1658 * constructor.c (gfc_build_array_expr): Moved and renamed to
1659 expr.c (gfc_get_array_expr). Split gfc_typespec argument to type
1660 and kind. Fixed all callers.
1661 (gfc_build_structure_constructor_expr): Moved and renamed to
1662 expr.c (gfc_get_structure_constructor_expr). Split gfc_typespec argument
1663 to type and kind. Fixed all callers.
1664 * expr.c (gfc_logical_expr): Renamed to ...
1665 (gfc_get_logical_expr): ... this. Added kind argument. Fixed all callers.
1666 (gfc_int_expr): Renamed to ...
1667 (gfc_get_int_expr): ... this. Added kind and where arguments. Fixed all
1669 (gfc_get_constant_expr): New.
1670 (gfc_get_array_expr): New.
1671 (gfc_get_structure_constructor_expr): New.
1672 * simplify.c (int_expr_with_kind): Removed, callers use gfc_get_int_expr
1675 2010-04-12 Daniel Franke <franke.daniel@gmail.com>
1677 * constructor.h: New.
1678 * constructor.c: New.
1679 * Make-lang.in: Add new files to F95_PARSER_OBJS.
1680 * arith.c (reducy_unary): Use constructor API.
1681 (reduce_binary_ac): Likewise.
1682 (reduce_binary_ca): Likewise.
1683 (reduce_binary_aa): Likewise.
1684 * check.c (gfc_check_pack): Likewise.
1685 (gfc_check_reshape): Likewise.
1686 (gfc_check_unpack): Likewise.
1687 * decl.c (add_init_expr_to_sym): Likewise.
1688 (build_struct): Likewise.
1689 * dependency.c (gfc_check_dependency): Likewise.
1690 (contains_forall_index_p): Likewise.
1691 * dump-parse-tree.c (show_constructor): Likewise.
1692 * expr.c (free_expr0): Likewise.
1693 (gfc_copy_expr): Likewise.
1694 (gfc_is_constant_expr): Likewise.
1695 (simplify_constructor): Likewise.
1696 (find_array_element): Likewise.
1697 (find_component_ref): Likewise.
1698 (find_array_section): Likewise.
1699 (find_substring_ref): Likewise.
1700 (simplify_const_ref): Likewise.
1701 (scalarize_intrinsic_call): Likewise.
1702 (check_alloc_comp_init): Likewise.
1703 (gfc_default_initializer): Likewise.
1704 (gfc_traverse_expr): Likewise.
1705 * iresolve.c (check_charlen_present): Likewise.
1706 (gfc_resolve_reshape): Likewise.
1707 (gfc_resolve_transfer): Likewise.
1708 * module.c (mio_constructor): Likewise.
1709 * primary.c (build_actual_constructor): Likewise.
1710 (gfc_match_structure_constructor): Likewise.
1711 * resolve.c (resolve_structure_cons): Likewise.
1712 * simplify.c (is_constant_array_expr): Likewise.
1713 (init_result_expr): Likewise.
1714 (transformational_result): Likewise.
1715 (simplify_transformation_to_scalar): Likewise.
1716 (simplify_transformation_to_array): Likewise.
1717 (gfc_simplify_dot_product): Likewise.
1718 (simplify_bound): Likewise.
1719 (simplify_matmul): Likewise.
1720 (simplify_minval_maxval): Likewise.
1721 (gfc_simplify_pack): Likewise.
1722 (gfc_simplify_reshape): Likewise.
1723 (gfc_simplify_shape): Likewise.
1724 (gfc_simplify_spread): Likewise.
1725 (gfc_simplify_transpose): Likewise.
1726 (gfc_simplify_unpack): Likewise.q
1727 (gfc_convert_constant): Likewise.
1728 (gfc_convert_char_constant): Likewise.
1729 * target-memory.c (size_array): Likewise.
1730 (encode_array): Likewise.
1731 (encode_derived): Likewise.
1732 (interpret_array): Likewise.
1733 (gfc_interpret_derived): Likewise.
1734 (expr_to_char): Likewise.
1735 (gfc_merge_initializers): Likewise.
1736 * trans-array.c (gfc_get_array_constructor_size): Likewise.
1737 (gfc_trans_array_constructor_value): Likewise.
1738 (get_array_ctor_strlen): Likewise.
1739 (gfc_constant_array_constructor_p): Likewise.
1740 (gfc_build_constant_array_constructor): Likewise.
1741 (gfc_trans_array_constructor): Likewise.
1742 (gfc_conv_array_initializer): Likewise.
1743 * trans-decl.c (check_constant_initializer): Likewise.
1744 * trans-expr.c (flatten_array_ctors_without_strlen): Likewise.
1745 (gfc_apply_interface_mapping_to_cons): Likewise.
1746 (gfc_trans_structure_assign): Likewise.
1747 (gfc_conv_structure): Likewise.
1748 * array.c (check_duplicate_iterator): Likewise.
1749 (match_array_list): Likewise.
1750 (match_array_cons_element): Likewise.
1751 (gfc_match_array_constructor): Likewise.
1752 (check_constructor_type): Likewise.
1753 (check_constructor): Likewise.
1755 (expand_constructor): Likewise.
1756 (extract_element): Likewise.
1757 (gfc_expanded_ac): Likewise.
1758 (resolve_array_list): Likewise.
1759 (gfc_resolve_character_array_constructor): Likewise.
1760 (copy_iterator): Renamed to ...
1761 (gfc_copy_iterator): ... this.
1762 (gfc_append_constructor): Removed.
1763 (gfc_insert_constructor): Removed unused function.
1764 (gfc_get_constructor): Removed.
1765 (gfc_free_constructor): Removed.
1766 (qgfc_copy_constructor): Removed.
1767 * gfortran.h (struct gfc_expr): Removed member 'con_by_offset'.
1768 Removed all references. Replaced constructor list by splay-tree.
1769 (struct gfc_constructor): Removed member 'next', moved 'offset' from
1770 the inner struct, added member 'base'.
1771 (gfc_append_constructor): Removed prototype.
1772 (gfc_insert_constructor): Removed prototype.
1773 (gfc_get_constructor): Removed prototype.
1774 (gfc_free_constructor): Removed prototype.
1775 (qgfc_copy_constructor): Removed prototype.
1776 (gfc_copy_iterator): New prototype.
1777 * trans-array.h (gfc_constant_array_constructor_p): Adjusted prototype.
1779 2010-04-10 Tobias Burnus <burnus@net-b.de>
1782 * expr.c (gfc_is_constant_expr, gfc_traverse_expr): Handle
1783 proc-pointers and type-bound procedures.
1784 (gfc_specification_expr): Check proc-pointers for pureness.
1786 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
1789 * gfortranspec.c (lang_specific_driver): Do not expose vars
1790 only used by HAVE_LD_STATIC_DYNAMIC targets unless compiling
1793 2010-04-09 Tobias Burnus <burnus@net-b.de>
1796 * decl.c (variable_decl, match_attr_spec): Fix setting the array
1798 * array.c (match_subscript,gfc_match_array_ref): Add coarray support.
1799 * data.c (gfc_assign_data_value): Ditto.
1800 * expr.c (gfc_check_pointer_assign): Add check for coarray constraint.
1801 (gfc_traverse_expr): Traverse also through codimension expressions.
1802 (gfc_is_coindexed, gfc_has_ultimate_allocatable,
1803 gfc_has_ultimate_pointer): New functions.
1804 * gfortran.h (gfc_array_ref_dimen_type): Add DIMEN_STAR for coarrays.
1805 (gfc_array_ref): Add codimen.
1806 (gfc_array_ref): Add in_allocate.
1807 (gfc_is_coindexed, gfc_has_ultimate_allocatable,
1808 gfc_has_ultimate_pointer): Add prototypes.
1809 * interface.c (compare_parameter, compare_actual_formal,
1810 check_intents): Add coarray constraints.
1811 * match.c (gfc_match_iterator): Add coarray constraint.
1812 * match.h (gfc_match_array_ref): Update interface.
1813 * primary.c (gfc_match_varspec): Handle codimensions.
1814 * resolve.c (coarray_alloc, inquiry_argument): New static variables.
1815 (check_class_members): Return gfc_try instead for error recovery.
1816 (resolve_typebound_function,resolve_typebound_subroutine,
1817 check_members): Handle return value of check_class_members.
1818 (resolve_structure_cons, resolve_actual_arglist, resolve_function,
1819 check_dimension, compare_spec_to_ref, resolve_array_ref,
1820 resolve_ref, resolve_variable, gfc_resolve_expr, conformable_arrays,
1821 resolve_allocate_expr, resolve_ordinary_assign): Add coarray
1823 * trans-array.c (gfc_conv_array_ref, gfc_walk_variable_expr):
1824 Skip over coarray refs.
1825 (gfc_array_allocate) Add support for references containing coindexes.
1826 * trans-expr.c (gfc_add_interface_mapping): Copy coarray attribute.
1827 (gfc_map_intrinsic_function): Ignore codimensions.
1829 2010-04-08 Bud Davis <bdavis9659@sbcglobal.net>
1832 * io.c (check_format_string): Added check for additional non
1833 blank characters after the format string was successfully
1835 * io.c (check_format): Changed the error messages for positive
1836 int required and period required to drop through the error logic
1837 and report with gfc_error instead of gfc_error_now. Corrected
1838 format postion for hollerith strings.
1840 2010-04-08 Tobias Burnus <burnus@net-b.de>
1842 * module.c (use_iso_fortran_env_module): Fix standard check.
1844 2010-04-07 Jakub Jelinek <jakub@redhat.com>
1846 * parse.c (parse_derived, parse_enum): Avoid set but not used
1849 2010-04-07 Janne Blomqvist <jb@gcc.gnu.org>
1852 * gfortran.texi: Add section about representation of
1855 2010-04-07 Simon Baldwin <simonb@google.com>
1857 * cpp.c (cb_cpp_error): Add warning reason argument, set a value
1858 for diagnostic_override_option_index if CPP_W_WARNING_DIRECTIVE.
1860 2010-04-07 Richard Guenther <rguenther@suse.de>
1862 * options.c (gfc_init_options): Do not set.
1864 2010-04-06 Tobias Burnus <burnus@net-b.de>
1867 * array.c (gfc_match_array_spec): Add error for -fcoarray=none.
1868 * match.c (gfc_match_critical, sync_statement): Ditto.
1869 * gfortran.h (gfc_fcoarray): New enum.
1870 (gfc_option_t): Use it.
1871 * lang.opt (fcoarray): Add new flag.
1872 * invoke.texi (fcoarray): Document it.
1873 * options.c (gfc_init_options,gfc_handle_option): Handle -fcoarray=.
1874 (gfc_handle_coarray_option): New function.
1876 2010-04-06 Tobias Burnus <burnus@net-b.de>
1879 * gfortran.h (gfc_array_spec): Add cotype.
1880 * array.c (gfc_match_array_spec,gfc_set_array_spec): Use it
1881 and defer error diagnostic.
1882 * resolve.c (resolve_fl_derived): Add missing check.
1883 (resolve_symbol): Add cotype/type check.
1884 * parse.c (parse_derived): Fix setting of coarray_comp.
1886 2010-04-06 Tobias Burnus <burnus@net-b.de>
1889 * array.c (gfc_free_array_spec,gfc_resolve_array_spec,
1890 match_array_element_spec,gfc_copy_array_spec,
1891 gfc_compare_array_spec): Include corank.
1892 (match_array_element_spec,gfc_set_array_spec): Support codimension.
1893 * decl.c (build_sym,build_struct,variable_decl,
1894 match_attr_spec,attr_decl1,cray_pointer_decl,
1895 gfc_match_volatile): Add codimension.
1896 (gfc_match_codimension): New function.
1897 * dump-parse-tree.c (show_array_spec,show_attr): Support codimension.
1898 * gfortran.h (symbol_attribute,gfc_array_spec): Ditto.
1899 (gfc_add_codimension): New function prototype.
1900 * match.h (gfc_match_codimension): New function prototype.
1901 (gfc_match_array_spec): Update prototype
1902 * match.c (gfc_match_common): Update gfc_match_array_spec call.
1903 * module.c (MOD_VERSION): Bump.
1904 (mio_symbol_attribute): Support coarray attributes.
1905 (mio_array_spec): Add corank support.
1906 * parse.c (decode_specification_statement,decode_statement,
1907 parse_derived): Add coarray support.
1908 * resolve.c (resolve_formal_arglist, was_declared,
1909 is_non_constant_shape_array, resolve_fl_variable,
1910 resolve_fl_derived, resolve_symbol): Add coarray support.
1911 * symbol.c (check_conflict, gfc_add_volatile, gfc_copy_attr,
1912 gfc_build_class_symbol): Add coarray support.
1913 (gfc_add_codimension): New function.
1915 2010-04-06 Tobias Burnus <burnus@net-b.de>
1918 * iso-fortran-env.def: Add the integer parameters atomic_int_kind,
1919 atomic_logical_kind, iostat_inquire_internal_unit, stat_locked,
1920 stat_locked_other_image, stat_stopped_image and stat_unlocked of
1922 * intrinsic.texi (iso_fortran_env): Ditto.
1923 * libgfortran.h (libgfortran_stat_codes): New enum.
1924 * module.c (use_iso_fortran_env_module): Honour -std= when loading
1925 constants from the intrinsic module.
1927 2010-04-06 Tobias Burnus <burnus@net-b.de>
1930 * intrinsic.c (add_functions): Add num_images.
1931 * decl.c (gfc_match_end): Handle END CRITICAL.
1932 * intrinsic.h (gfc_simplify_num_images): Add prototype.
1933 * dump-parse-tree.c (show_code_node): Dump CRITICAL, ERROR STOP,
1935 * gfortran.h (gfc_statement): Add enum items for those.
1936 (gfc_exec_op) Ditto.
1937 (gfc_isym_id): Add num_images.
1938 * trans-stmt.c (gfc_trans_stop): Handle ERROR STOP.
1939 (gfc_trans_sync,gfc_trans_critical): New functions.
1940 * trans-stmt.h (gfc_trans_stop,gfc_trans_sync,
1941 gfc_trans_critical): Add/update prototypes.
1942 * trans.c (gfc_trans_code): Handle CRITICAL, ERROR STOP,
1943 and SYNC statements.
1944 * trans.h (gfor_fndecl_error_stop_string) Add variable.
1945 * resolve.c (resolve_sync): Add function.
1946 (gfc_resolve_blocks): Handle CRITICAL.
1947 (resolve_code): Handle CRITICAL, ERROR STOP,
1948 (resolve_branch): Add CRITICAL constraint check.
1949 and SYNC statements.
1950 * st.c (gfc_free_statement): Add new statements.
1951 * trans-decl.c (gfor_fndecl_error_stop_string): Global variable.
1952 (gfc_build_builtin_function_decls): Initialize it.
1953 * match.c (gfc_match_if): Handle ERROR STOP and SYNC.
1954 (gfc_match_critical, gfc_match_error_stop, sync_statement,
1955 gfc_match_sync_all, gfc_match_sync_images, gfc_match_sync_memory):
1957 (match_exit_cycle): Handle CRITICAL constraint.
1958 (gfc_match_stopcode): Handle ERROR STOP.
1959 * match.h (gfc_match_critical, gfc_match_error_stop,
1960 gfc_match_sync_all, gfc_match_sync_images,
1961 gfc_match_sync_memory): Add prototype.
1962 * parse.c (decode_statement, gfc_ascii_statement,
1963 parse_executable): Handle new statements.
1964 (parse_critical_block): New function.
1965 * parse.h (gfc_compile_state): Add COMP_CRITICAL.
1966 * intrinsic.texi (num_images): Document new function.
1967 * simplify.c (gfc_simplify_num_images): Add function.
1969 2010-04-06 Tobias Burnus <burnus@net-b.de>
1972 * trans-array.c (gfc_conv_expr_descriptor): Update
1973 gfc_trans_scalar_assign call.
1974 (has_default_initializer): New function.
1975 (gfc_trans_deferred_array): Nullify less often.
1976 * trans-expr.c (gfc_conv_subref_array_arg,
1977 gfc_trans_subcomponent_assign): Update call to
1978 gfc_trans_scalar_assign.
1979 (gfc_trans_scalar_assign): Add parameter and pass it on.
1980 (gfc_trans_assignment_1): Optionally, do not dealloc before
1982 * trans-openmp.c (gfc_trans_omp_array_reduction): Update
1983 call to gfc_trans_scalar_assign.
1984 * trans-decl.c (gfc_get_symbol_decl): Do not always apply
1985 initializer to static variables.
1986 (gfc_init_default_dt): Add dealloc parameter and pass it on.
1987 * trans-stmt.c (forall_make_variable_temp,
1988 generate_loop_for_temp_to_lhs, generate_loop_for_rhs_to_temp,
1989 gfc_trans_forall_1, gfc_trans_where_assign, gfc_trans_where_3
1990 gfc_trans_allocate): Update gfc_trans_assignment call.
1991 * trans.h (gfc_trans_scalar_assign, gfc_init_default_dt,
1992 gfc_init_default_dt, gfc_trans_assignment): Add bool dealloc
1993 parameter to prototype.
1995 2010-03-31 Paul Thomas <pault@gcc.gnu.org>
1997 * ioparm.def : Update copyright.
1999 * trans-array.c : ditto
2000 * trans-array.h : ditto
2002 * trans-types.c: ditto
2003 * dependency.c : ditto
2004 * gfortran.h : ditto
2006 * trans-io.c : ditto
2007 * trans-intrinsic.c : ditto
2008 * libgfortran.h : ditto
2009 * invoke.texi : ditto
2010 * intrinsic.texi : ditto
2013 * intrinsic.c : ditto
2014 * interface.c : ditto
2015 * iresolve.c : ditto
2016 * trans-stmt.c : ditto
2017 * trans-stmt.h : ditto
2022 2010-03-20 Paul Thomas <pault@gcc.gnu.org>
2025 * trans-decl.c (gfc_create_module_variable): With -fwhole-file
2026 do not assert the context of derived types.
2028 2010-03-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2031 * ioparm.def: Change inquire size variable to type pointer to
2034 2010-03-18 Paul Thomas <pault@gcc.gnu.org>
2037 * trans-expr.c (conv_parent_component_references): Ensure that
2038 'dt' has a backend_decl.
2041 * trans-expr.c (gfc_conv_structure): Ensure that the derived
2042 type has a backend_decl.
2045 * resolve.c (resolve_global_procedure): Check that the 'cl'
2046 structure is not NULL.
2048 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
2050 * lang.opt (-ffixed-line-length-, ffree-line-length-): Remove
2053 2010-03-17 Tobias Burnus <burnus@net-b.de>
2056 * trans-array.c (gfc_conv_array_index_offset,gfc_conv_array_ref,
2057 gfc_conv_ss_startstride): Remove no-longer-needed cp_was_assumed
2059 * decl.c (gfc_match_derived_decl): Don't mark assumed-size Cray
2060 pointees as having explizit size.
2061 * expr.c (gfc_check_assign): Remove now unreachable Cray pointee
2063 * trans-types.c (gfc_is_nodesc_array): Add cp_was_assumed to assert.
2064 (gfc_sym_type): Don't mark Cray pointees as restricted pointers.
2065 * resolve.c (resolve_symbol): Handle cp_was_assumed.
2066 * trans-decl.c (gfc_trans_deferred_vars): Ditto.
2067 (gfc_finish_var_decl): Don't mark Cray pointees as restricted
2070 2010-03-14 Tobias Burnus <burnus@net-b.de>
2073 * resolve.c (resolve_structure_cons): Add missing PURE constraint.
2074 (resolve_ordinary_assign): Add check to avoid segfault.
2076 2010-03-12 Paul Thomas <pault@gcc.gnu.org>
2080 * resolve.c (resolve_compcall): Add new boolean dummy argument
2081 'class_members'. Only resolve expression at end if false.
2082 Remove redundant, static variable 'class_object'.
2083 (check_class_members): Add extra argument to call of
2085 (resolve_typebound_function): Renamed resolve_class_compcall.
2086 Do all the detection of class references here. Correct calls to
2087 resolve_compcall for extra argument.
2088 (resolve_typebound_subroutine): resolve_class_typebound_call
2089 renamed. Otherwise same as resolve_typebound_function.
2090 (gfc_resolve_expr): Call resolve_typebound_function.
2091 (resolve_code): Call resolve_typebound_subroutine.
2093 2010-03-10 Tobias Burnus <burnus@net-b.de
2096 * symbol.c (get_iso_c_sym): Set sym->result.
2098 2010-03-08 Janus Weil <janus@gcc.gnu.org>
2101 * resolve.c (resolve_compcall): Don't set 'value.function.name' here
2102 for TBPs, otherwise they will not be resolved properly.
2103 (resolve_function): Use 'value.function.esym' instead of
2104 'value.function.name' to check if we're dealing with a TBP.
2105 (check_class_members): Set correct type of passed object for all TBPs,
2106 not only generic ones, except if the type is abstract.
2108 2010-03-04 Janus Weil <janus@gcc.gnu.org>
2111 * decl.c (gfc_match_final_decl): Make sure variable names starting with
2112 'final...' are not misinterpreted as FINAL statements.
2114 2010-03-03 Paul Thomas <pault@gcc.gnu.org>
2117 * trans-array.c (gfc_conv_array_parameter): Contiguous refs to
2118 allocatable ultimate components do not need temporaries, whilst
2119 ultimate pointer components do.
2121 2010-03-03 Janus Weil <janus@gcc.gnu.org>
2124 * resolve.c (resolve_code): Correctly set gfc_current_ns for
2126 (gfc_impure_variable): Make it work with sub-namespaces (BLOCK etc).
2129 2010-03-02 Paul Thomas <pault@gcc.gnu.org>
2132 * trans-array.c (gfc_conv_array_parameter): A full array of
2133 derived type need not be restricted to a symbol without an
2134 array spec to use the call to gfc_conv_expr_descriptor.
2137 * trans-array.c (gfc_conv_array_parameter): Contiguous refs to
2138 allocatable arrays do not need temporaries.
2140 2010-03-01 Tobias Burnus <burnus@net-b.de>
2143 * resolve.c (find_array_spec): Handle REF_COMPONENT with
2146 2010-02-28 Tobias Burnus <burnus@net-b.de>
2149 * trans-expr.c (is_zero_initializer_p): Move up in the file.
2150 (gfc_conv_initializer): Handle zero initializer as special case.
2152 2010-02-27 Tobias Burnus <burnus@net-b.de>
2155 * resolve.c (resolve_fl_variable_derived): Imply SAVE
2156 for module variables for Fortran 2008.
2158 2010-02-25 Jakub Jelinek <jakub@redhat.com>
2161 * trans-common.c (build_common_decl): Also update DECL_MODE,
2162 and DECL_SIZE when encountering a larger common block and call
2165 2010-02-24 Tobias Burnus <burnus@net-b.de>
2168 * trans-expr.c (gfc_conv_initializer): Call directly
2169 gfc_conv_constant for C_NULL_(FUN)PTR.
2171 2010-02-22 Paul Thomas <pault@gcc.gnu.org>
2174 * dependency.c (gfc_full_array_ref_p): Check for contiguous by
2175 checking the rest of the dimensions for elements.
2177 2010-02-21 Tobias Burnus <burnus@net-b.de>
2180 * gfortran.h (gfc_option_t): New flag -fprotect-parens.
2182 * option.c (gfc_init_options,gfc_handle_option): Ditto.
2183 * trans-expr.c (gfc_conv_expr_op): Use the flag.
2184 * invoke.texi: Document new -fno-protect-parens flag.
2186 2010-02-20 Paul Thomas <pault@gcc.gnu.org>
2192 * dependency.c (gfc_check_argument_var_dependency): Use enum
2193 value instead of arithmetic vaue for 'elemental'.
2194 (check_data_pointer_types): New function.
2195 (gfc_check_dependency): Call check_data_pointer_types.
2196 * trans-array.h : Change fourth argument of
2197 gfc_conv_array_parameter to boolean.
2198 * trans-array.c (gfc_conv_array_parameter): A contiguous array
2199 can be a dummy but it must not be assumed shape or deferred.
2200 Change fourth argument to boolean. Array constructor exprs will
2201 always be contiguous and do not need packing and unpacking.
2202 * trans-expr.c (gfc_conv_procedure_call): Clean up some white
2203 space and change fourth argument of gfc_conv_array_parameter
2205 (gfc_trans_arrayfunc_assign): Change fourth argument of
2206 gfc_conv_array_parameter to boolean.
2207 * trans-io.c (gfc_convert_array_to_string): The same.
2208 * trans-intrinsic.c (gfc_conv_intrinsic_loc): The same.
2210 2010-02-20 Tobias Burnus <burnus@net-b.de>
2213 * libgfortran.h: Add GFC_RTCHECK_MEM.
2214 * invoke.texi (-fcheck=): Document -fcheck=mem.
2215 * tranc.c (gfc_call_malloc): Remove negative-size run-time error
2216 and enable malloc-success check only with -fcheck=mem.
2217 * option.c (gfc_handle_runtime_check_option): Add -fcheck=mem.
2219 2010-02-16 Tobias Burnus <burnus@net-b.de>
2222 * gfortran.h (gfc_isym_id): Rename GFS_ISYM_GAMMA to GFS_ISYM_TGAMMA.
2223 * intrinsic.c (add_functions): Ditto.
2224 * iresolve.c (gfc_resolve_gamma): Call tgamma instead of gamma.
2225 * mathbuiltins.def: Use TGAMMA instead of GAMMA with "tgamma".
2227 2010-02-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2230 * trans-stmt.h: Add prototype for gfc_trans_code_cond. Add tree cond to
2231 gfc_trans_do prototype.
2232 * trans-stmt.c (gfc_trans_simple_do): Add optional argument to pass in
2233 a loop exit condition. If exit condition is given, build the loop exit
2234 code, checking IO results of implied do loops in READ and WRITE.
2235 (gfc_trans_do): Likewise.
2236 * trans.c (trans_code): New static work function, previously
2237 gfc_trans_code. Passes exit condition to gfc_trans_do.
2238 (gfc_trans_code): Calls trans_code with NULL_TREE condition.
2239 (gfc_trans_code_cond): Calls trans_code with loop exit condition.
2240 * trans-io.c (build_dt): Build an exit condition to allow checking IO
2241 result status bits in the dtparm structure. Use this condition in call
2242 to gfc_trans_code_cond.
2244 2010-02-13 Paul Thomas <pault@gcc.gnu.org>
2248 * trans-array.c (gfc_conv_array_parameter): Use
2249 gfc_full_array_ref_p to detect full and contiguous variable
2250 arrays. Full array components and contiguous arrays do not need
2251 internal_pack and internal_unpack.
2253 2010-02-11 Jakub Jelinek <jakub@redhat.com>
2256 * resolve.c (gfc_resolve_dim_arg): Call gfc_clear_ts.
2259 * decl.c (enumerator_decl): Don't call gfc_free_enum_history
2261 (gfc_match_enumerator_def): But here whenever enumerator_decl returns
2264 2010-02-10 Joost VandeVondele <jv244@cam.ac.uk>
2265 Tobias Burnus <burnus@net-b.de>
2268 * decl.c (gfc_match_subroutine): Explicitly set sym->declared_at.
2270 2010-02-10 Tobias Burnus <burnus@net-b.de>
2273 * trans-decl.c (gfc_generate_function_code): Only check
2274 actual-vs.-dummy character bounds if not bind(C).
2276 2010-02-10 Jakub Jelinek <jakub@redhat.com>
2279 * trans-expr.c (gfc_conv_subref_array_arg): Avoid accessing
2280 info->dimen after info has been freed.
2282 2010-02-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2285 * array.c (gfc_constant_ac): Do not prevent expansion of constructors
2288 2010-02-09 Jakub Jelinek <jakub@redhat.com>
2290 * module.c (fix_mio_expr): Declare sym.
2292 2010-02-09 Paul Thomas <pault@gcc.gnu.org>
2295 * module.c (fix_mio_expr): Fix for private generic procedures.
2297 2010-02-09 Daniel Kraft <d@domob.eu>
2300 * resolve.c (resolve_charlen): Change warning about negative CHARACTER
2301 length to be correct and issue only with -Wsurprising.
2302 * invoke.texi (Wsurprising): Mention this new warning that is
2303 turned on by -Wsurprising.
2305 2010-02-09 Daniel Kraft <d@domob.eu>
2308 * intrinsic.texi (MAXVAL): Remove wrong claim that array argument
2309 can be CHARACTER type.
2310 (MINVAL), (MAXLOC), (MINLOC): Ditto.
2312 2010-02-05 Paul Thomas <pault@gcc.gnu.org>
2315 * trans-expr.c (gfc_conv_subref_array_arg): Add new argument
2316 'formal_ptr'. If this is true, give returned descriptor unity
2317 lbounds, in all dimensions, and the appropriate offset.
2318 (gfc_conv_procedure_call); If formal is a pointer, set the last
2319 argument of gfc_conv_subref_array_arg to true.
2320 * trans.h : Add last argument for gfc_conv_subref_array_arg.
2321 * trans-io.c (set_internal_unit, gfc_trans_transfer): Set the
2322 new arg of gfc_conv_subref_array_arg to false.
2323 * trans-stmt.c (forall_make_variable_temp): The same.
2325 2010-02-03 Tobias Burnus <burnus@net-b.de>
2328 * interface.c (compare_parameter): Disable rank-checking
2331 2010-02-02 Tobias Burnus <burnus@net-b.de>
2334 * parse.c (decode_specification_statement): Use sym->result not sym.
2336 2010-02-01 Tobias Burnus <burnus@net-b.de>
2339 * decl.c (variable_decl): Allow default initializer in
2340 TYPE declarations in PURE functions.
2342 2010-01-31 Janus Weil <janus@gcc.gnu.org>
2345 * resolve.c (resolve_allocate_expr): Move default initialization code
2346 here from gfc_trans_allocate.
2347 * trans.c (gfc_trans_code): Call gfc_trans_class_assign also for
2349 * trans-expr.c (gfc_trans_class_assign): Handle default initialization
2350 of CLASS variables via memcpy.
2351 * trans-stmt.c (gfc_trans_allocate): Move default initialization code
2352 to resolve_allocate_expr.
2354 2010-01-31 Paul Thomas <pault@gcc.gnu.org>
2357 * expr.c (gfc_get_full_arrayspec_from_expr): New function.
2358 * gfortran.h : Add prototype for above.
2359 * trans-expr.c (gfc_trans_alloc_subarray_assign): New function.
2360 (gfc_trans_subcomponent_assign): Call new function to replace
2361 the code to deal with allocatable components.
2362 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Call
2363 gfc_get_full_arrayspec_from_expr to replace existing code.
2365 2010-01-25 Tobias Burnus <burnus@net-b.de>
2368 * array.c (gfc_array_dimen_size): Fix intrinsic procedure
2371 2010-01-24 Paul Thomas <pault@gcc.gnu.org>
2375 * expr.c (remove_subobject_ref): If the constructor is NULL use
2376 the expression as the source.
2377 (simplify_const_ref): Change the type of expression if
2378 there are component references. Allow for substring to be at
2379 the end of an arbitrarily long chain of references. If an
2380 element is found that is not in an EXPR_ARRAY, assume that this
2381 is scalar initialization of array. Call remove_subobject_ref in
2382 this case with NULL second argument.
2384 2010-01-24 Tobias Burnus <burnus@net-b.de>
2387 * array.c (gfc_array_dimen_size): Use correct specific
2388 function in the check.
2390 2010-01-21 Paul Thomas <pault@gcc.gnu.org>
2393 * trans-stmt.c (gfc_conv_elemental_dependencies): If temporary
2394 is required, turn any trailing array elements after a range
2395 into ranges so that offsets can be calculated.
2397 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
2399 * module.c (mio_f2k_derived): Use enumerator as initializer of
2403 * gfortran.h (struct gfc_namespace) <resolved>: Change to signed
2404 bitfield of width 2.
2406 2010-01-19 Janus Weil <janus@gcc.gnu.org>
2409 * resolve.c (extract_compcall_passed_object): Set locus for
2410 passed-object argument.
2411 (extract_ppc_passed_object): Set locus and correctly remove PPC
2414 2010-01-19 Paul Thomas <pault@gcc.gnu.org>
2417 * trans-decl.c (add_argument_checking): Do not use the backend
2418 decl directly to test for the presence of an optional dummy
2419 argument. Use gfc_conv_expr_present, remembering to set the
2423 * trans-decl.c (gfc_generate_function_code): Small white space
2424 changes. If 'recurcheckvar' is NULL do not try to reset it.
2426 2010-01-19 Janus Weil <janus@gcc.gnu.org>
2429 * resolve.c (resolve_fl_derived): Set the accessibility of the parent
2430 component for extended types.
2431 * symbol.c (gfc_find_component): Remove a wrongly-worded error message
2432 and take care of parent component accessibility.
2434 2010-01-17 Janus Weil <janus@gcc.gnu.org>
2437 * gfortran.h (symbol_attribute): Remove 'ambiguous_interfaces'.
2438 * interface.c (check_interface1): Move a warning message here from
2439 resolve_fl_procedure.
2440 (check_sym_interfaces): Removed 'attr.ambiguous_interfaces'.
2441 * module.c (read_module): Remove call to gfc_check_interfaces, since
2442 this comes too early here.
2443 * resolve.c (resolve_fl_procedure): Move warning message to
2446 2010-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2449 * interface.c (check_interface1): Pass symbol name rather than NULL to
2450 gfc_compare_interfaces. (gfc_compare_interfaces): Add assert to
2452 * resolve.c (check_generic_tbp_ambiguity): Pass symbol name rather
2453 than NULL to gfc_compare_interfaces.
2455 2010-01-14 Paul Thomas <pault@gcc.gnu.org>
2458 * trans-array.c (duplicate_allocatable): Static version of
2459 gfc_duplicate_allocatable with provision to handle scalar
2460 components. New boolean argument to switch off call to malloc
2462 (gfc_duplicate_allocatable): New function to call above with
2464 (gfc_copy_allocatable_data): New function to call above with
2466 (structure_alloc_comps): Do not apply indirect reference to
2467 scalar pointers. Add new section to copy allocatable components
2468 of arrays. Extend copying of allocatable components to include
2470 (gfc_copy_only_alloc_comp): New function to copy allocatable
2471 component derived types, without allocating the base structure.
2472 * trans-array.h : Add primitive for gfc_copy_allocatable_data.
2473 Add primitive for gfc_copy_only_alloc_comp.
2474 * trans-expr.c (gfc_conv_procedure_call): After calls to
2475 transformational functions with results that are derived types
2476 with allocatable components, copy the components in the result.
2477 (gfc_trans_arrayfunc_assign): Deallocate allocatable components
2478 of lhs derived types before allocation.
2480 2010-01-14 Paul Thomas <pault@gcc.gnu.org>
2483 * module.c (load_generic_interfaces): If a procedure that is
2484 use associated but not generic is given an interface that
2485 includes itself, then make it generic.
2487 2010-01-11 Joseph Myers <joseph@codesourcery.com>
2488 Shujing Zhao <pearly.zhao@oracle.com>
2490 PR translation/42469
2491 * lang.opt (fblas-matmul-limit=, finit-character=, finit-integer=,
2492 finit-logical=, finit-real=, fmax-array-constructor=): Use tab
2493 character between option name and help text.
2495 2010-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2499 * trans-array.c (gfc_conv_array_initializer): Change call to
2500 gfc_error_now to call to gfc_fatal_error.
2501 * array.c (count_elements): Whitespace. (extract_element): Whitespace.
2502 (is_constant_element): Changed name from constant_element.
2503 (gfc_constant_ac): Only use expand_construuctor for expression
2504 types of EXPR_ARRAY. If expression type is EXPR_CONSTANT, no need to
2505 call gfc_is_constant_expr.
2506 * expr.c (gfc_reduce_init_expr): Adjust conditionals and delete error
2508 * resolve.c (gfc_is_expandable_expr): New function that determiners if
2509 array expressions should have their constructors expanded.
2510 (gfc_resolve_expr): Use new function to determine whether or not to call
2511 gfc_expand_constructor.
2513 2010-01-09 Tobias Burnus <burnus@net-b.de>
2516 * trans-expr.c (gfc_trans_structure_assign): Handle
2518 * symbol.c (gen_special_c_interop_ptr): Add NULL_EXPR
2519 to the constructor for c_null_(fun)ptr.
2520 * resolve.c (resolve_structure_cons): Add special case
2521 for c_null_(fun)ptr.
2523 2010-01-09 Jakub Jelinek <jakub@redhat.com>
2525 * gfortranspec.c (lang_specific_driver): Update copyright notice
2528 2010-01-08 Tobias Burnus <burnus@net-b.de>
2531 * symbol.c (check_conflict, gfc_copy_attr): Add
2532 ASYNCHRONOUS support.
2533 (gfc_add_asynchronous): New function.
2534 * decl.c (match_attr_spec): Add ASYNCHRONOUS support.
2535 (gfc_match_asynchronous): New function.
2536 * dump-parse-tree.c (show_attr): Add ASYNCHRONOUS support.
2537 * gfortran.h (symbol_attribute): New ASYNCHRONOUS bit.
2538 (gfc_add_asynchronous): New Prototype.
2539 * module.c (ab_attribute, mio_symbol_attribute): Add
2540 ASYNCHRONOUS support.
2541 * resolve.c (was_declared): Ditto.
2542 * match.h (gfc_match_asynchronous): New prototype.
2543 * parse.c (decode_specification_statement,decode_statement):
2544 Add ASYNCHRONOUS support.
2546 2010-01-07 Tobias Burnus <burnus@net-b.de>
2549 * trans-decl.c (get_proc_pointer_decl): Fix call to
2550 gfc_conv_initializer for array-valued proc-pointer funcs.
2552 2010-01-07 Tobias Burnus <burnus@net-b.de>
2555 * trans-decl.c (gfc_trans_deferred_vars): Don't initialize
2556 allocatable scalars with SAVE attribute.
2558 2010-01-05 Tobias Burnus <burnus@net-b.de>
2561 * options.c (gfc_post_options): Set -frecursion
2562 when -fopenmp is used.
2564 2010-01-05 Tobias Burnus <burnus@net-b.de>
2567 * trans-expr.c (gfc_conv_procedure_call): Nullify
2568 return value for allocatable-scalar character functions.
2570 2010-01-04 Tobias Burnus <burnus@net-b.de>
2573 * error.c (error_printf, gfc_warning, gfc_notify_std,
2574 gfc_warning_now, gfc_error, gfc_error_now,
2575 gfc_fatal_error): Change argument name from nocmsgid to
2576 gmsgid to enable (x)gettext's % checking.
2578 2010-01-04 Tobias Burnus <burnus@net-b.de>
2580 * trans-decl.c (gfc_trans_deferred_vars): Fix spelling.
2582 2010-01-04 Tobias Burnus <burnus@net-b.de>
2585 * trans-expr.c (gfc_conv_procedure_call): Add indirect ref
2586 for functions returning allocatable scalars.
2587 * trans-stmt.c (gfc_trans_allocate): Emmit error when
2588 reallocating an allocatable scalar.
2589 * trans.c (gfc_allocate_with_status): Fix pseudocode syntax
2591 * trans-decl.c (gfc_trans_deferred_vars): Nullify local
2592 allocatable scalars.
2593 (gfc_generate_function_code): Nullify result variable for
2594 allocatable scalars.
2597 * module.c (gfc_use_module): Fix warning string to allow
2601 * invoke.texi (-fcheck=recursion): Mention that the checking
2602 is also disabled for -frecursive.
2603 * trans-decl.c (gfc_generate_function_code): Disable
2604 -fcheck=recursion when -frecursive is used.
2606 * intrinsic.texi (iso_c_binding): Improve wording.
2609 Copyright (C) 2010 Free Software Foundation, Inc.
2611 Copying and distribution of this file, with or without modification,
2612 are permitted in any medium without royalty provided the copyright
2613 notice and this notice are preserved.