1 2012-11-24 Thomas Koenig <tkoenig@gcc.gnu.org>
5 * resolve.c (resolve_allocate_deallocate): Compare all
6 subscripts when deciding if to reject a (de)allocate
9 2012-11-23 Janus Weil <janus@gcc.gnu.org>
12 * trans-decl.c (generate_local_decl): Don't warn for explicitly imported
13 but unused module variables which are in a namelist or common block.
15 2012-11-06 Janus Weil <janus@gcc.gnu.org>
18 * target-memory.c (gfc_target_expr_size,gfc_target_interpret_expr):
21 2012-10-14 Janus Weil <janus@gcc.gnu.org>
24 * trans-stmt.c (gfc_trans_allocate): Correctly determine the reference
25 to the _data component for polymorphic allocation with SOURCE.
27 2012-09-20 Release Manager
31 2012-09-13 Tobias Burnus <burnus@net-b.de>
34 * resolve.c (resolve_formal_arglist): Allow VALUE arguments
36 (gfc_impure_variable): Don't check gfc_pure such that the
37 function also works for gfc_implicit_pure procedures.
39 2012-09-12 Tobias Burnus <burnus@net-b.de>
43 * array.c (match_subscript, gfc_match_array_ref): Fix
44 diagnostic of coarray's '*'.
46 2012-09-10 Janus Weil <janus@gcc.gnu.org>
50 * match.c (gfc_match_select_type): Make sure to only access CLASS_DATA
53 2012-09-08 Mikael Morin <mikael@gcc.gnu.org>
56 * simplify.c (simplify_bound_dim): Resolve array spec before
57 proceeding with simplification.
59 2012-07-06 Mikael Morin <mikael@gcc.gnu.org>
62 * trans-array.c (gfc_add_loop_ss_code): Disable self recursive calls
63 handling nested loop(s) if the subscript flag is true.
65 2012-06-22 Tobias Burnus <burnus@net-b.de>
67 Backport from mainline
68 2012-06-17 Tobias Burnus <burnus@net-b.de>
72 * check.c (gfc_calculate_transfer_sizes): Return if
73 SIZE= is not constant or source-size cannot be determined.
75 2012-06-14 Tobias Burnus <burnus@net-b.de>
77 Backport from mainline
78 2012-06-04 Tobias Burnus <burnus@net-b.de>
81 * resolve.c (build_default_init_expr): Don't initialize
84 2012-06-14 Tobias Burnus <burnus@net-b.de>
87 * decl.c (match_attr_spec): Only mark module variables
88 as SAVE_IMPLICIT for Fortran 2008 and later.
90 2012-06-14 Release Manager
94 2012-06-01 Tobias Burnus <burnus@net-b.de>
97 * trans.c (gfc_deallocate_scalar_with_status): Properly
98 handle the case size == 0.
100 2012-05-23 Tobias Burnus <burnus@net-b.de>
103 * trans-array.c (gfc_add_loop_ss_code): Don't evaluate expression, if
104 ss->is_alloc_lhs is set.
106 2012-05-07 Tobias Burnus <burnus@net-b.de>
108 Backport from mainline:
109 2012-05-07 Tobias Burnus <burnus@net-b.de>
112 * resolve.c (resolve_typebound_static): Fix handling
113 of overridden specific to generic operator.
115 2012-05-05 Tobias Burnus <burnus@net-b.de>
117 Backport from mainline:
118 2012-05-04 Tobias Burnus <burnus@net-b.de>
121 * resolve.c (resolve_fl_derived): Fix -std=f95
122 diagnostic for generic vs. DT names.
124 2012-05-02 Tobias Burnus <burnus@net-b.de>
126 Backport from mainline
127 2012-04-12 Tobias Burnus <burnus@net-b.de>
130 * expr.c (gfc_check_vardef_context): Fix assignment check for
133 2012-04-30 Thomas Koenig <tkoenig@gcc.gnu.org>
137 * frontend-passes.c (create_var): If the statement has a label,
138 put the label around the block.
140 2012-04-07 Thomas Koenig <tkoenig@gcc.gnu.org>
144 * frontend-passes.c: Keep track of wether we are in an implicit
145 DO loop; do not do function elimination if we are.
147 2012-04-07 Thomas Koenig <tkoenig@gcc.gnu.org>
151 * module.c: Only mark symbols as use_only if they have been
152 imported via an only list.
154 2012-03-22 Tobias Burnus <burnus@net-b.de>
157 * resolve.c (resolve_intrinsic): Don't search for a
158 function if we know that it is a subroutine.
160 2012-03-22 Release Manager
162 * GCC 4.7.0 released.
164 2012-03-10 Tobias Burnus <burnus@net-b.de>
167 * trans-types.c (gfc_get_function_type): Handle backend_decl
168 of a procedure pointer.
170 2012-02-29 Paul Thomas <pault@gcc.gnu.org>
173 * trans-expr.c (fcncall_realloc_result): Dereference the
174 descriptor if needed.
176 2012-02-22 Tobias Burnus <burnus@net-b.de>
179 * io.c (gfc_match_open): Remove bogus F2003 DELIM= check.
181 2012-02-18 Tobias Burnus <burnus@net-b.de>
184 * interface.c (check_interface0): Internal procs in
185 generic interfaces are allowed in Fortran 2008.
187 2012-02-17 Tobias Burnus <burnus@net-b.de>
188 Roland Stigge <stigge@antcom.de>
191 * interface.c (compare_actual_formal): Fix typo "at at".
193 2012-02-17 Tobias Burnus <burnus@net-b.de>
195 * gfortran.texi (Q exponent-letter): Fix grammar.
197 2012-02-17 Tobias Burnus <burnus@net-b.de>
199 * gfortran.texi (Status): Fix typos.
200 * invoke.texi (ffixed-form, fstack-arrays): Spell Fortran with
203 2012-02-17 Tobias Burnus <burnus@net-b.de>
204 Roland Stigge <stigge@antcom.de>
212 * io.c (gfc_match_open): Fix typo.
213 * interface.c (compare_actual_formal): Ditto.
214 * lang.opt (freal-4-real-8, freal-4-real-16, freal-8-real-16): Ditto.
215 * match.c (alloc_opt_list, gfc_match_nullify): Ditto.
216 * check.c (gfc_check_associated, gfc_check_null): Ditto.
218 2012-02-12 Mikael Morin <mikael@gcc.gnu.org>
221 * trans-stmt.c (gfc_get_proc_ifc_for_call): New function.
222 (gfc_trans_call): Use gfc_get_proc_ifc_for_call.
224 2012-02-12 Mikael Morin <mikael@gcc.gnu.org>
226 * trans-array.c (gfc_walk_elemental_function_args,
227 gfc_walk_function_expr): Move call to gfc_get_proc_ifc_for_expr out
228 of gfc_walk_elemental_function_args.
229 * trans-stmt.c (gfc_trans_call): Ditto.
230 * trans-array.h (gfc_get_proc_ifc_for_expr): New prototype.
231 (gfc_walk_elemental_function_args): Update prototype.
233 2012-02-12 Mikael Morin <mikael@gcc.gnu.org>
235 * trans-array.c (gfc_get_proc_ifc_for_expr): New function.
236 (gfc_walk_elemental_function_args): Move code to
237 gfc_get_proc_ifc_for_expr and call it.
239 2012-02-08 Tobias Burnus <burnus@net-b.de>
242 * trans-expr.c (fcncall_realloc_result): Set also the stride.
244 2012-02-07 Tobias Burnus <burnus@net-b.de>
247 * trans-expr.c (gfc_conv_procedure_call): Add _data component
248 for calls of scalar CLASS actuals to TYPE dummies.
250 2012-02-05 Thomas König <tkoenig@gcc.gnu.org>
253 * trans-decl.c: Warn about unused dummy procedure arguments
254 if -Wunused-dummy-argument is specified. Suppress middle-end
255 warnings about procedure arguments.
257 2012-02-05 Paul Thomas <pault@gcc.gnu.org>
259 * trans-array.c (gfc_array_allocate): Zero memory for all class
261 * trans-stmt.c (gfc_trans_allocate): Ditto for class scalars.
264 * trans-stmt.c (gfc_trans_allocate): Before correcting a class
265 array reference, ensure that 'dataref' points to the _data
266 component that is followed by the array reference..
268 2012-02-02 Mikael Morin <mikael@gcc.gnu.org>
274 * class.c (insert_component_ref, class_data_ref_missing,
275 gfc_fix_class_refs): New functions.
276 * gfortran.h (gfc_fix_class_refs): New prototype.
277 * trans-expr.c (gfc_conv_expr): Remove special case handling and call
278 gfc_fix_class_refs instead.
280 2012-02-02 Paul Thomas <pault@gcc.gnu.org>
283 * trans-expr.c (fcncall_realloc_result): If variable shape is
284 correct, retain the bounds, whatever they are.
286 2012-02-02 Tobias Burnus <burnus@net-b.de>
289 * simplify.c (gfc_simplify_size): Handle INTRINSIC_PARENTHESES.
291 2012-02-01 Thomas König <tkoenig@gcc.gnu.org>
294 * frontend-passes.c (convert_elseif): New function.
295 (optimize_namespace): Call it.
297 2012-02-01 Tobias Burnus <burnus@net-b.de>
300 * module.c (MOD_VERSION): Bump.
301 (mio_typebound_proc): Read/write is_operator from/to the
304 2012-02-01 Tobias Burnus <burnus@net-b.de>
307 * trans-expr.c (gfc_conv_procedure_call): Add array ref
310 2012-01-31 Tobias Burnus <burnus@net-b.de>
313 * gfortran.h (gfc_tbp_generic): Store whether the
314 generic is an operator.
315 * decl.c (gfc_match_generic): Set that flag.
316 * resolve.c (check_generic_tbp_ambiguity): Use it in the
317 gfc_compare_interfaces check.
319 2012-01-31 Tobias Burnus <burnus@net-b.de>
322 * class.c (gfc_find_derived_vtab): Mark _copy function as pure.
324 2012-01-31 Tobias Burnus <burnus@net-b.de>
327 * class.c (get_unique_hashed_string): Adapt trim length.
328 (gfc_build_class_symbol) Encode also corank in the container name.
330 2012-01-31 Paul Thomas <pault@gcc.gnu.org>
333 * trans-expr.c (fcncall_realloc_result): Correct calculation of
336 2012-01-29 Janne Blomqvist <jb@gcc.gnu.org>
338 * module.c (pointer_info): Make true_name and module pointers
339 rather than arrays, order pointers before other fields.
340 (free_pi_tree): free true_name and module as well.
341 (mio_read_string): Rename to read_string.
342 (mio_write_string): Remove.
343 (load_commons): Use read_string.
344 (read_module): Use read_string rather than mio_internal_string.
345 (write_blank_common): Call write_atom directly.
346 (write_symbol): Likewise.
348 2012-01-29 Tobias Burnus <burnus@net-b.de>
351 * expr.c (gfc_default_initializer): Convert the values if
352 the type does not match.
354 2012-01-29 Tobias Burnus <burnus@net-b.de>
357 * trans-array.c (structure_alloc_comps): Fix assignment of
358 polymorphic components (polymorphic deep copying).
360 2012-01-29 Janne Blomqvist <jb@gcc.gnu.org>
363 * decl.c (set_binding_label): Make binding_label argument const.
364 (curr_binding_label): Constify.
365 * gfortran.h (gfc_symbol): Constify binding_label.
366 (gfc_common_head): Likewise.
367 (get_iso_c_sym): Likewise.
368 * match.c (gfc_match_name_C): Constify buffer argument.
369 * match.h (gfc_match_name_C): Likewise.
370 * resolve.c (set_name_and_label): Constify binding_label argument.
371 (gfc_iso_c_sub_interface): Constify binding_label variable.
372 * symbol.c (get_iso_c_sym): Constify binding_label argument.
374 2012-01-29 Janne Blomqvist <jb@gcc.gnu.org>
377 * decl.c (set_binding_label): Move prototype from match.h to here.
378 (curr_binding_label): Make a pointer rather than static array.
379 (build_sym): Check sym->binding_label pointer rather than array,
380 update set_binding_label call, handle curr_binding_label changes.
381 (set_binding_label): Handle new curr_binding_label, dest_label
382 double ptr, and sym->binding_label.
383 (verify_bind_c_sym): Handle sym->binding_label being a pointer.
384 (set_verify_bind_c_sym): Check sym->binding_label pointer rather
385 than array, update set_binding_label call.
386 (gfc_match_bind_c_stmt): Handle curr_binding_label change.
387 (match_procedure_decl): Update set_binding_label call.
388 (gfc_match_bind_c): Change binding_label to pointer, update
389 gfc_match_name_C call.
390 * gfortran.h (GFC_MAX_BINDING_LABEL_LEN): Remove macro.
391 (gfc_symbol): Make binding_label a pointer.
392 (gfc_common_head): Likewise.
393 * match.c (gfc_match_name_C): Heap allocate bind(C) name.
394 * match.h (gfc_match_name_C): Change prototype argument.
395 (set_binding_label): Move prototype to decl.c.
396 * module.c (struct pointer_info): Make binding_label a pointer.
397 (free_pi_tree): Free unused binding_label.
398 (mio_read_string): New function.
399 (mio_write_string): New function.
400 (load_commons): Redo reading of binding_label.
401 (read_module): Likewise.
402 (write_common_0): Change to write empty string instead of name if
404 (write_blank_common): Write empty string for binding label.
405 (write_symbol): Change to write empty string instead of name if no
407 * resolve.c (gfc_iso_c_func_interface): Don't set binding_label.
408 (set_name_and_label): Make binding_label double pointer, use
410 (gfc_iso_c_sub_interface): Make binding_label a pointer.
411 (resolve_bind_c_comms): Handle cases if
412 gfc_common_head->binding_label is NULL.
413 (gfc_verify_binding_labels): sym->binding_label is a pointer.
414 * symbol.c (gfc_new_symbol): Rely on XCNEW zero init for
416 (gen_special_c_interop_ptr): Don't set binding label.
417 (generate_isocbinding_symbol): Insert binding_label into symbol
419 (get_iso_c_sym): Use pointer assignment instead of strcpy.
420 * trans-common.c (gfc_sym_mangled_common_id): Handle
421 com->binding_label being a pointer.
422 * trans-decl.c (gfc_sym_mangled_identifier): Handle
423 sym->binding_label being a pointer.
424 (gfc_sym_mangled_function_id): Likewise.
426 2012-01-29 Tobias Burnus <burnus@net-b.de>
429 * resolve.c (symbol_as): Remove unused, accidentally
432 2012-01-28 Tobias Burnus <burnus@net-b.de>
435 * trans-stmt.c (gfc_trans_allocate): Properly check whether
436 we have a BT_CLASS which needs to be memset.
438 2012-01-27 Tobias Burnus <burnus@net-b.de>
441 * trans-expr.c (gfc_conv_procedure_call): Fix passing
442 of functions, which return allocatables.
444 2012-01-27 Tobias Burnus <burnus@net-b.de>
447 * resolve.c (resolve_formal_arglist): Fix elemental
448 constraint checks for polymorphic dummies also for
451 2012-01-27 Tobias Burnus <burnus@net-b.de>
455 * primary.c (gfc_match_varspec. gfc_match_rvalue): Set
456 handle array spec for BT_CLASS.
457 * expr.c (gfc_get_variable_expr, gfc_lval_expr_from_sym)
458 * frontend-passes.c (create_var): Ditto.
459 * resolve.c (resolve_actual_arglist, resolve_assoc_var): Ditto.
460 * trans-decl.c (gfc_trans_deferred_vars): Use class_pointer
461 instead of attr.pointer.
462 (gfc_generate_function_code): Use CLASS_DATA (sym) for BT_CLASS.
463 * trans-intrinsic.c (conv_intrinsic_move_alloc): Move assert.
464 * trans-stmt.c (trans_associate_var): Ask for the descriptor.
466 2012-01-27 Tobias Burnus <burnus@net-b.de>
469 * match.c (gfc_match_allocate): Allow more than allocate
472 2012-01-27 Tobias Burnus <burnus@net-b.de>
475 * resolve.c (resolve_formal_arglist): Fix elemental
476 constraint checks for polymorphic dummies.
478 2012-01-27 Paul Thomas <pault@gcc.gnu.org>
479 Tobias Burnus <burnus@gcc.gnu.org>
485 * trans-array.c (gfc_array_init_size): Add two extra arguments
486 to convey the dynamic element size of a calls object and to
487 return the number of elements that have been allocated.
488 (gfc_array_allocate): Add the same arguments and use them to
489 call gfc_array_init_size. Before the allocation dereference
490 the data pointer, if necessary. Set the allocated array to zero
491 if the class element size or expr3 are non-null.
492 * trans-expr.c (gfc_conv_class_to_class): Give this function
494 (get_class_array_ref): New function.
495 (gfc_copy_class_to_class): New function.
496 * trans-array.h : Update prototype for gfc_array_allocate.
497 * trans-stmt.c (gfc_trans_allocate): For non-variable class
498 STATUS expressions extract the class object and the dynamic
499 element size. Use the latter to call gfc_array_allocate and
500 the former for setting the vptr and, via
501 gfc_copy_class_to_clasfc_cs, to copy to the allocated data.
502 * trans.h : Prototypes for gfc_get_class_array_ref,
503 gfc_copy_class_to_class and gfc_conv_class_to_class.
505 2012-01-25 Tobias Burnus <burnus@net-b.de>
507 * resolve.c (symbol_as): Check also for attr.class_ok.
509 2012-01-25 Tobias Burnus <burnus@net-b.de>
512 * class.c (gfc_build_class_symbol): Fix invalid freeing
513 issue with fclass->f2k_derived.
515 2012-01-25 Tobias Burnus <burnus@net-b.de>
518 * class.c (gfc_build_class_symbol): Ensure that
519 fclass->f2k_derived is set.
521 2012-01-25 Tobias Burnus <burnus@net-b.de>
524 * resolve.c (resolve_structure_cons): Only create an
525 array constructors for nonscalars.
527 2012-01-23 Tobias Burnus <burnus@net-b.de>
530 * check.c (variable_check): Fix checking for
531 variables and deeply nested BLOCKs.
533 2012-01-21 Tobias Burnus <burnus@net-b.de>
534 Steven G. Kargl <kargl@gcc.gnu.org>
537 * symbol.c (check_conflict): namelist-group-name cannot have the SAVE
540 2012-01-21 Tobias Burnus <burnus@net-b.de>
543 * interface.c (compare_parameter): Fix CLASS comparison.
545 2012-01-20 Tobias Burnus <burnus@net-b.de>
546 Janus Weil <janus@gcc.gnu.org>
549 * module.c (load_needed, read_module): Don't mark __vtab etc.
552 2012-01-19 Tobias Burnus <burnus@net-b.de>
555 * expr.c (gfc_build_intrinsic_call): Also set the symtree.
557 2012-01-18 Paul Thomas <pault@gcc.gnu.org>
560 * trans-expr.c (gfc_conv_procedure_call): Deallocate allocatable
561 components of temporary class arguments.
563 2012-01-17 Tobias Burnus <burnus@net-b.de>
564 Janne Blomqvist <jb@gcc.gnu.org>
567 * trans-expr.c (alloc_scalar_allocatable_for_assignment): Nullify
568 LHS after allocation, if it has allocatable components.
569 * f95-lang.c (gfc_init_builtin_functions): Add BUILT_IN_CALLOC.
571 2012-01-16 Mikael Morin <mikael@gcc.gnu.org>
572 Tobias Burnus <burnus@net-b.de>
575 * trans-array.c (gfc_walk_elemental_function_args): Fix
576 passing of deallocated allocatables/pointers as absent argument.
578 2012-01-16 Tobias Burnus <burnus@net-b.de>
581 * class.c (gfc_find_derived_vtab): Mark __vtab and
582 __def_init as FL_VARIABLE not as FL_PARAMETER.
583 * expr.c (gfc_simplify_expr): Remove special
585 * resolve.c (resolve_values): Ditto.
586 * trans-decl.c (gfc_get_symbol_decl): Mark __vtab
587 and __def_init as TREE_READONLY.
589 2012-01-16 Zydrunas Gimbutas <gimbutas@cims.nyu.edu>
590 Andreas Kloeckner <kloeckner@cims.nyu.edu>
591 Steven G. Kargl <kargl@gcc.gnu.org>
594 * gfortran.h (gfc_option_t): Add members flag_*_kind to store kind.
595 * lang.opt: Add options -freal-4-real-8, -freal-4-real-10,
596 -freal-4-real-16, -freal-8-real-4, -freal-8-real-10, -freal-8-real-16
597 and -finteger-4-integer-8. User-desired type conversion information.
598 * decl.c (gfc_match_old_kind_spec,kind_expr): Type conversions
599 in declaration parsing.
600 * trans-types.c (gfc_init_kinds): User-specified type conversion
601 checked for current backend.
602 * primary.c (match_integer_constant,match_real_constant): Implement
603 type conversion in constant parsing.
604 * options.c (gfc_init_options,gfc_handle_option): Translate input
605 options to flags in internal options data structure.
606 * invoke.texi: Document new options. Re-order options in Options
609 2012-01-16 Paul Thomas <pault@gcc.gnu.org>
611 * trans-array.c (gfc_trans_create_temp_array): In the case of a
612 class array temporary, detect a null 'eltype' on entry and use
613 'initial' to provde the class reference and so, through the
614 vtable, the element size for the dynamic type.
615 * trans-stmt.c (gfc_conv_elemental_dependencies): For class
616 expressions, set 'eltype' to null and pass the values via the
617 'initial' expression.
619 2012-01-14 Tobias Burnus <burnus@net-b.de>
622 * resolve.c (build_default_init_expr): Also initialize
623 nonconstant-length strings with -finit-character=<n>.
625 2011-01-14 Tobias Burnus <burnus@net-b.de>
628 * module.c (read_module): Don't make nonexisting
629 intrinsic operators as found.
630 (rename_list_remove_duplicate): New function.
631 (gfc_use_modules): Use it.
633 2012-01-13 Paul Thomas <pault@gcc.gnu.org>
636 * trans-array.c (structure_alloc_comps): Suppress interative
637 call to self, when current component is deallocated using
638 gfc_trans_dealloc_allocated.
639 * class.c (gfc_build_class_symbol): Copy the 'alloc_comp'
640 attribute from the declared type to the class structure.
642 2012-01-13 Tobias Burnus <burnus@net-b.de>
645 * fortran/trans-types.c (gfc_init_kinds): Use PTRDIFF_TYPE
646 instead of a signed int of size POINTER_SIZE for
647 gfc_index_integer_kind.
649 2012-01-12 Tobias Burnus <burnus@net-b.de>
652 * intrinsic.texi (CHMOD): Extend a bit and remove statement
653 that /bin/chmod is called.
655 2012-01-10 Gerald Pfeifer <gerald@pfeifer.com>
657 * gfortran.texi (Fortran 2003 Status): Fix grammar.
659 2012-01-10 Tobias Burnus <burnus@net-b.de>
662 * resolve.c (resolve_allocate_expr): For non-deferred char lengths,
663 check whether type-spec matches declaration.
665 2012-01-10 Tobias Burnus <burnus@net-b.de>
667 * resolve.c (resolve_ordinary_assign): Improve error wording.
669 2012-01-09 Paul Thomas <pault@gcc.gnu.org>
672 * interface.c (matching_typebound_op): Drill down through
673 possible parentheses to obtain base expression. Do not test for
674 'class_ok' but, instead for the class structure components.
675 * resolve.c (resolve_ordinary_assign): Extend error message for
676 polymorphic assignment to advise checking for specific
680 * resolve.c (resolve_typebound_function): Restore 'static' to
683 2012-01-09 Mikael Morin <mikael@gcc.gnu.org>
686 * trans-array.c (gfc_walk_elemental_function_args):
687 Skip over NULL() actual arguments.
689 2012-01-09 Tobias Burnus <burnus@net-b.de>
691 * gfortran.texi: Bump copyright year.
692 (Fortran 2003 Status): Update polymorphism item, add
693 item for generic interface with DT name.
695 2012-01-09 Tobias Burnus <burnus@net-b.de>
698 * gfortran.h (gfc_use_list):
699 * match.h (gfc_use_module): Rename to ...
700 (gfc_use_modules): ... this.
701 * module.c (use_locus, specified_nonint, specified_int): Remove
703 (module_name): Change type to const char*, used with gfc_get_string.
704 (module_list): New global variable.
705 (free_rename): Free argument not global var.
706 (gfc_match_use): Save match to module_list.
707 (load_generic_interfaces, read_module): Don't free symtree.
708 (write_dt_extensions, gfc_dump_module): Fix module-name I/O due to the
709 type change of module_name.
710 (write_symbol0, write_generic): Optimize due to the type change.
711 (import_iso_c_binding_module, use_iso_fortran_env_module): Use
712 locus of rename->where.
713 (gfc_use_module): Take module_list as argument.
714 (gfc_use_modules): New function.
715 (gfc_module_init_2, gfc_module_done_2): Init module_list, rename_list.
716 * parse.c (last_was_use_stmt): New global variable.
717 (use_modules): New function.
718 (decode_specification_statement, decode_statement): Move USE match up
719 and call use_modules.
720 (next_free, next_fixed): Call use_modules.
721 (accept_statement): Don't call gfc_module_use.
723 2012-01-06 Tobias Burnus <burnus@net-b.de>
725 * trans-openmp.c (gfc_omp_clause_dtor, gfc_trans_omp_array_reduction):
726 Update call to gfc_trans_dealloc_allocated.
727 * trans.c (gfc_allocate_using_malloc): Fix spacing.
728 (gfc_allocate_allocatable): For gfc_allocate_using_lib, jump to
729 label_finish when an error occurs.
730 (gfc_deallocate_with_status): Call caf_deregister for -fcoarray=lib.
731 * trans.h (gfc_allocate_allocatable, gfc_deallocate_with_status):
733 (gfor_fndecl_caf_deregister): New tree symbol.
734 * trans-expr.c (gfc_conv_procedure_call): Update
735 gfc_deallocate_with_status and gfc_trans_dealloc_allocated calls.
736 * trans-array.c (gfc_array_allocate, gfc_trans_dealloc_allocated,
737 structure_alloc_comps, gfc_trans_deferred_array): Ditto.
738 (gfc_array_deallocate): Handle coarrays with -fcoarray=lib.
739 * trans-array.h (gfc_array_deallocate, gfc_array_allocate,
740 gfc_trans_dealloc_allocated): Update prototypes.
741 * trans-stmt.c (gfc_trans_sync): Fix indentation.
742 (gfc_trans_allocate): Fix errmsg padding and label handling.
743 (gfc_trans_deallocate): Ditto and handle -fcoarray=lib.
744 * expr.c (gfc_is_coarray): Fix algorithm for BT_CLASS.
745 * libgfortran.h (GFC_STAT_STOPPED_IMAGE): Use large value
746 to avoid other stats accidentally matching this one.
747 * trans-decl.c (gfor_fndecl_caf_deregister): New global var.
748 (gfc_build_builtin_function_decls): Fix prototype decl of caf_register
749 and add decl for caf_deregister.
750 (gfc_trans_deferred_vars): Handle CAF vars with -fcoarrays=lib.
751 * trans-intrinsic.c (conv_intrinsic_move_alloc): Update call to
752 gfc_deallocate_with_status.
754 2012-01-05 Paul Thomas <pault@gcc.gnu.org>
757 * resolve.c (resolve_typebound_static): If the typebound
758 procedure is 'deferred' try to find the correct specific
759 procedure in the derived type operator space itself.
761 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
764 * trans-array.h (gfc_walk_elemental_function_args): New argument.
765 * trans-intrinsic.c (gfc_walk_intrinsic_function): Update call.
766 * trans-stmt.c (gfc_trans_call): Ditto.
767 * trans-array.c (gfc_walk_function_expr): Ditto.
768 (gfc_walk_elemental_function_args): Get the dummy argument list
769 if possible. Check that the dummy and the actual argument are both
770 optional, and set can_be_null_ref accordingly.
772 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
775 * trans.h (struct gfc_ss_info): New field data::scalar::can_be_null_ref
776 * trans-array.c: If the reference can be NULL, save the reference
777 instead of the value.
778 * trans-expr.c (gfc_conv_expr): If we have saved a reference,
781 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
783 * trans-expr.c (gfc_conv_expr): Move address taking...
784 (gfc_conv_expr_reference): ... here.
786 2012-01-04 Thomas Koenig <tkoenig@gcc.gnu.org>
789 * trans-common.c (create_common): Update copyright years. Mark
790 variables as used to avoid warnings about unused variables in
793 2012-01-03 Hans-Peter Nilsson <hp@axis.com>
795 * gfortran.h (struct gfc_expr): Add missing "struct"
796 qualifier for member base_expr.
798 2012-01-02 Paul Thomas <pault@gcc.gnu.org>
801 * trans-array.c (gfc_array_allocate): Null allocated memory of
802 newly allocted class arrays.
807 * interface.c(build_compcall_for_operator): Add a type to the
809 * trans-expr.c (conv_base_obj_fcn_val): New function.
810 (gfc_conv_procedure_call): Use base_expr to detect non-variable
811 base objects and, ensuring that there is a temporary variable,
812 build up the typebound call using conv_base_obj_fcn_val.
813 (gfc_trans_class_assign): Pick out class procedure pointer
814 assignments and do the assignment with no further prcessing.
815 (gfc_trans_class_array_init_assign, gfc_trans_class_init_assign
816 gfc_trans_class_assign): Move to top of file.
817 * gfortran.h : Add 'base_expr' field to gfc_expr.
818 * resolve.c (get_declared_from_expr): Add 'types' argument to
819 switch checking of derived types on or off.
820 (resolve_typebound_generic_call): Set the new argument.
821 (resolve_typebound_function, resolve_typebound_subroutine):
822 Set 'types' argument for get_declared_from_expr appropriately.
823 Identify base expression, if not a variable, in the argument
824 list of class valued calls. Assign it to the 'base_expr' field
825 of the final expression. Strip away all references after the
826 last class reference.
828 2012-01-02 Tobias Burnus <burnus@net-b.de>
831 * trans-intrinsic.c (trans_this_image, trans_image_index,
832 trans_num_images, conv_intrinsic_cobound): Fold_convert the
833 caf_num_images/caf_this_images variables to the correct int kind.
835 2012-01-01 Jakub Jelinek <jakub@redhat.com>
837 * gfortranspec.c (lang_specific_driver): Update copyright notice
840 Copyright (C) 2012 Free Software Foundation, Inc.
842 Copying and distribution of this file, with or without modification,
843 are permitted in any medium without royalty provided the copyright
844 notice and this notice are preserved.