X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gcc%2Ffortran%2FChangeLog;h=447479d631d6a2042ee132d4838143c5a0338bb7;hb=9975a30b5c5cab71620d94ddaec21517da9db12a;hp=c3106a5e1b0fc59d6ea36719bf989f16720831ba;hpb=8e19c582b18e18030c172cca406b5607114f80cc;p=gcc.git diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index c3106a5e1b0..447479d631d 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,195 @@ +2012-01-29 Janne Blomqvist + + PR fortran/51808 + * decl.c (set_binding_label): Make binding_label argument const. + (curr_binding_label): Constify. + * gfortran.h (gfc_symbol): Constify binding_label. + (gfc_common_head): Likewise. + (get_iso_c_sym): Likewise. + * match.c (gfc_match_name_C): Constify buffer argument. + * match.h (gfc_match_name_C): Likewise. + * resolve.c (set_name_and_label): Constify binding_label argument. + (gfc_iso_c_sub_interface): Constify binding_label variable. + * symbol.c (get_iso_c_sym): Constify binding_label argument. + +2012-01-29 Janne Blomqvist + + PR fortran/51808 + * decl.c (set_binding_label): Move prototype from match.h to here. + (curr_binding_label): Make a pointer rather than static array. + (build_sym): Check sym->binding_label pointer rather than array, + update set_binding_label call, handle curr_binding_label changes. + (set_binding_label): Handle new curr_binding_label, dest_label + double ptr, and sym->binding_label. + (verify_bind_c_sym): Handle sym->binding_label being a pointer. + (set_verify_bind_c_sym): Check sym->binding_label pointer rather + than array, update set_binding_label call. + (gfc_match_bind_c_stmt): Handle curr_binding_label change. + (match_procedure_decl): Update set_binding_label call. + (gfc_match_bind_c): Change binding_label to pointer, update + gfc_match_name_C call. + * gfortran.h (GFC_MAX_BINDING_LABEL_LEN): Remove macro. + (gfc_symbol): Make binding_label a pointer. + (gfc_common_head): Likewise. + * match.c (gfc_match_name_C): Heap allocate bind(C) name. + * match.h (gfc_match_name_C): Change prototype argument. + (set_binding_label): Move prototype to decl.c. + * module.c (struct pointer_info): Make binding_label a pointer. + (free_pi_tree): Free unused binding_label. + (mio_read_string): New function. + (mio_write_string): New function. + (load_commons): Redo reading of binding_label. + (read_module): Likewise. + (write_common_0): Change to write empty string instead of name if + no binding_label. + (write_blank_common): Write empty string for binding label. + (write_symbol): Change to write empty string instead of name if no + binding_label. + * resolve.c (gfc_iso_c_func_interface): Don't set binding_label. + (set_name_and_label): Make binding_label double pointer, use + asprintf. + (gfc_iso_c_sub_interface): Make binding_label a pointer. + (resolve_bind_c_comms): Handle cases if + gfc_common_head->binding_label is NULL. + (gfc_verify_binding_labels): sym->binding_label is a pointer. + * symbol.c (gfc_new_symbol): Rely on XCNEW zero init for + binding_label. + (gen_special_c_interop_ptr): Don't set binding label. + (generate_isocbinding_symbol): Insert binding_label into symbol + table. + (get_iso_c_sym): Use pointer assignment instead of strcpy. + * trans-common.c (gfc_sym_mangled_common_id): Handle + com->binding_label being a pointer. + * trans-decl.c (gfc_sym_mangled_identifier): Handle + sym->binding_label being a pointer. + (gfc_sym_mangled_function_id): Likewise. + +2012-01-29 Tobias Burnus + + PR fortran/52038 + * resolve.c (symbol_as): Remove unused, accidentally + added function. + +2012-01-28 Tobias Burnus + + PR fortran/51972 + * trans-stmt.c (gfc_trans_allocate): Properly check whether + we have a BT_CLASS which needs to be memset. + +2012-01-27 Tobias Burnus + + PR fortran/52022 + * trans-expr.c (gfc_conv_procedure_call): Fix passing + of functions, which return allocatables. + +2012-01-27 Tobias Burnus + + PR fortran/52016 + * resolve.c (resolve_formal_arglist): Fix elemental + constraint checks for polymorphic dummies also for + pointers. + +2012-01-27 Tobias Burnus + + PR fortran/51970 + PR fortran/51977 + * primary.c (gfc_match_varspec. gfc_match_rvalue): Set + handle array spec for BT_CLASS. + * expr.c (gfc_get_variable_expr, gfc_lval_expr_from_sym) + * frontend-passes.c (create_var): Ditto. + * resolve.c (resolve_actual_arglist, resolve_assoc_var): Ditto. + * trans-decl.c (gfc_trans_deferred_vars): Use class_pointer + instead of attr.pointer. + (gfc_generate_function_code): Use CLASS_DATA (sym) for BT_CLASS. + * trans-intrinsic.c (conv_intrinsic_move_alloc): Move assert. + * trans-stmt.c (trans_associate_var): Ask for the descriptor. + +2012-01-27 Tobias Burnus + + PR fortran/51953 + * match.c (gfc_match_allocate): Allow more than allocate + object with SOURCE=. + +2012-01-27 Tobias Burnus + + PR fortran/52016 + * resolve.c (resolve_formal_arglist): Fix elemental + constraint checks for polymorphic dummies. + +2012-01-27 Paul Thomas + Tobias Burnus + + PR fortran/48705 + PR fortran/51870 + PR fortran/51943 + PR fortran/51946 + * trans-array.c (gfc_array_init_size): Add two extra arguments + to convey the dynamic element size of a calls object and to + return the number of elements that have been allocated. + (gfc_array_allocate): Add the same arguments and use them to + call gfc_array_init_size. Before the allocation dereference + the data pointer, if necessary. Set the allocated array to zero + if the class element size or expr3 are non-null. + * trans-expr.c (gfc_conv_class_to_class): Give this function + global scope. + (get_class_array_ref): New function. + (gfc_copy_class_to_class): New function. + * trans-array.h : Update prototype for gfc_array_allocate. + * trans-stmt.c (gfc_trans_allocate): For non-variable class + STATUS expressions extract the class object and the dynamic + element size. Use the latter to call gfc_array_allocate and + the former for setting the vptr and, via + gfc_copy_class_to_clasfc_cs, to copy to the allocated data. + * trans.h : Prototypes for gfc_get_class_array_ref, + gfc_copy_class_to_class and gfc_conv_class_to_class. + +2012-01-25 Tobias Burnus + + * resolve.c (symbol_as): Check also for attr.class_ok. + +2012-01-25 Tobias Burnus + + PR fortran/51995 + * class.c (gfc_build_class_symbol): Fix invalid freeing + issue with fclass->f2k_derived. + +2012-01-25 Tobias Burnus + + PR fortran/51995 + * class.c (gfc_build_class_symbol): Ensure that + fclass->f2k_derived is set. + +2012-01-25 Tobias Burnus + + PR fortran/51966 + * resolve.c (resolve_structure_cons): Only create an + array constructors for nonscalars. + +2012-01-23 Tobias Burnus + + PR fortran/51948 + * check.c (variable_check): Fix checking for + variables and deeply nested BLOCKs. + +2012-01-21 Tobias Burnus + Steven G. Kargl + + PR fortran/50556 + * symbol.c (check_conflict): namelist-group-name cannot have the SAVE + attribure. + +2012-01-21 Tobias Burnus + + PR fortran/51913 + * interface.c (compare_parameter): Fix CLASS comparison. + +2012-01-20 Tobias Burnus + Janus Weil + + PR fortran/51056 + * module.c (load_needed, read_module): Don't mark __vtab etc. + as use_only. + 2012-01-19 Tobias Burnus PR fortran/51904