summaryrefslogtreecommitdiffstats
path: root/gcc/fortran
Commit message (Collapse)AuthorAgeFilesLines
...
* 2012-02-07 Tobias Burnus <burnus@net-b.de>burnus2012-02-072-0/+12
| | | | | | | | | | | | | | | PR fortran/51514 * trans-expr.c (gfc_conv_procedure_call): Add _data component for calls of scalar CLASS actuals to TYPE dummies. 2012-02-07 Tobias Burnus <burnus@net-b.de> PR fortran/51514 * gfortran.dg/class_to_type_2.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183954 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-05 Thomas König <tkoenig@gcc.gnu.org>tkoenig2012-02-052-0/+23
| | | | | | | | | | | | | | | | PR fortran/48847 * trans-decl.c: Warn about unused dummy procedure arguments if -Wunused-dummy-argument is specified. Suppress middle-end warnings about procedure arguments. 2012-02-05 Thomas König <tkoenig@gcc.gnu.org> PR fortran/48847 * gfortran.dg/warn_unused_dummy_argument_3.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183916 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-05 Paul Thomas <pault@gcc.gnu.org>pault2012-02-053-3/+19
| | | | | | | | | | | | | | | | | | | | | | | * trans-array.c (gfc_array_allocate): Zero memory for all class array allocations. * trans-stmt.c (gfc_trans_allocate): Ditto for class scalars. PR fortran/52102 * trans-stmt.c (gfc_trans_allocate): Before correcting a class array reference, ensure that 'dataref' points to the _data component that is followed by the array reference.. 2012-02-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/52102 * gfortran.dg/class_48.f90 : Add test of allocate class array component with source in subroutine test3. Remove commenting out in subroutine test4, since branching on unitialized variable is now fixed (no PR for this last.). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183915 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-02 Mikael Morin <mikael@gcc.gnu.org>mikael2012-02-024-5/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | PR fortran/41587 PR fortran/46356 PR fortran/51754 PR fortran/50981 * class.c (insert_component_ref, class_data_ref_missing, gfc_fix_class_refs): New functions. * gfortran.h (gfc_fix_class_refs): New prototype. * trans-expr.c (gfc_conv_expr): Remove special case handling and call gfc_fix_class_refs instead. 2012-02-02 Mikael Morin <mikael@gcc.gnu.org> PR fortran/41587 * gfortran.dg/class_array_10.f03: New test. PR fortran/46356 * gfortran.dg/class_array_11.f03: New test. PR fortran/51754 * gfortran.dg/class_array_12.f03: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183853 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-02 Paul Thomas <pault@gcc.gnu.org>pault2012-02-022-13/+63
| | | | | | | | | | | | | PR fortran/52012 * trans-expr.c (fcncall_realloc_result): If variable shape is correct, retain the bounds, whatever they are. 2012-02-02 Paul Thomas <pault@gcc.gnu.org> PR fortran/52012 * gfortran.dg/realloc_on_assign_11.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183849 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-02 Tobias Burnus <burnus@net-b.de>burnus2012-02-022-0/+6
| | | | | | | | | | | | | | PR fortran/52093 * simplify.c (gfc_simplify_size): Handle INTRINSIC_PARENTHESES. 2012-02-02 Tobias Burnus <burnus@net-b.de> PR fortran/52093 * gfortran.dg/shape_7.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183848 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-01 Thomas König <tkoenig@gcc.gnu.org>tkoenig2012-02-012-0/+70
| | | | | | | | | | | | | | | PR fortran/51958 * frontend-passes.c (convert_elseif): New function. (optimize_namespace): Call it. 2012-02-01 Thomas König <tkoenig@gcc.gnu.org> PR fortran/51958 * gfortran.dg/function_optimize_10.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183812 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-01 Tobias Burnus <burnus@net-b.de>burnus2012-02-012-2/+17
| | | | | | | | | | | | | | | | PR fortran/52024 * module.c (MOD_VERSION): Bump. (mio_typebound_proc): Read/write is_operator from/to the .mod file. 2012-02-01 Tobias Burnus <burnus@net-b.de> PR fortran/52024 * gfortran.dg/typebound_operator_14.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183808 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-01 Tobias Burnusburnus2012-02-012-1/+7
| | | | | | | | | | | | | | | PR fortran/52059 * trans-expr.c (gfc_conv_procedure_call): Add array ref only to variables. 2012-02-01 Tobias Burnus PR fortran/52059 * gfortran.dg/elemental_function_1.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183807 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-31 Tobias Burnus <burnus@net-b.de>burnus2012-01-314-1/+15
| | | | | | | | | | | | | | | | | | PR fortran/52024 * gfortran.h (gfc_tbp_generic): Store whether the generic is an operator. * decl.c (gfc_match_generic): Set that flag. * resolve.c (check_generic_tbp_ambiguity): Use it in the gfc_compare_interfaces check. 2012-01-31 Tobias Burnus <burnus@net-b.de> PR fortran/52024 * gfortran.dg/typebound_generic_11.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183771 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-31 Tobias Burnus <burnus@net-b.de>burnus2012-01-312-0/+6
| | | | | | | | | | | | | | PR fortran/52029 * class.c (gfc_find_derived_vtab): Mark _copy function as pure. 2012-01-31 Tobias Burnus <burnus@net-b.de> PR fortran/52029 * gfortran.dg/class_49.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183770 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-31 Tobias Burnus <burnus@net-b.de>burnus2012-01-312-6/+14
| | | | | | | | | | | | | | PR fortran/52013 * class.c (get_unique_hashed_string): Adapt trim length. (gfc_build_class_symbol) Encode also corank in the container name. 2012-01-31 Tobias Burnus <burnus@net-b.de> PR fortran/52013 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183769 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-31 Paul Thomas <pault@gcc.gnu.org>pault2012-01-312-16/+18
| | | | | | | | | | | | | PR fortran/52012 * trans-expr.c (fcncall_realloc_result): Correct calculation of result offset. 2012-01-31 Paul Thomas <pault@gcc.gnu.org> PR fortran/52012 * gfortran.dg/realloc_on_assign_10.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183757 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-29 Tobias Burnus <burnus@net-b.de>burnus2012-01-292-2/+14
| | | | | | | | | | | | | | | PR fortran/41600 * expr.c (gfc_default_initializer): Convert the values if the type does not match. 2012-01-29 Tobias Burnus <burnus@net-b.de> PR fortran/41600 * gfortran.dg/default_initialization_6.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183682 138bc75d-0d04-0410-961f-82ee72b054a4
* Reduce size of pointer_info tree, minor cleanups.jb2012-01-292-32/+39
| | | | | | | | | | | | | | | | | | 2012-01-29 Janne Blomqvist <jb@gcc.gnu.org> * module.c (pointer_info): Make true_name and module pointers rather than arrays, order pointers before other fields. (free_pi_tree): free true_name and module as well. (mio_read_string): Rename to read_string. (mio_write_string): Remove. (load_commons): Use read_string. (read_module): Use read_string rather than mio_internal_string. (write_blank_common): Call write_atom directly. (write_symbol): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183681 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-29 Tobias Burnus <burnus@net-b.de>burnus2012-01-292-0/+57
| | | | | | | | | | | | | | | | PR fortran/51972 * trans-array.c (structure_alloc_comps): Fix assignment of polymorphic components (polymorphic deep copying). 2012-01-29 Tobias Burnus <burnus@net-b.de> PR fortran/51972 * gfortran.dg/class_allocate_12.f90: Enable disabled test. * gfortran.dg/class_48.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183680 138bc75d-0d04-0410-961f-82ee72b054a4
* PR 51808 Constify binding_label.jb2012-01-297-12/+27
| | | | | | | | | | | | | | | | | | | 2012-01-29 Janne Blomqvist <jb@gcc.gnu.org> 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183679 138bc75d-0d04-0410-961f-82ee72b054a4
* PR 51808 Fix ChangeLog entryjb2012-01-291-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183678 138bc75d-0d04-0410-961f-82ee72b054a4
* PR 51808 Support arbitrarily long bind(C) binding labels.jb2012-01-2910-109/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-01-29 Janne Blomqvist <jb@gcc.gnu.org> 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_free_symbol): Free binding_label. (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. testsuite ChangeLog 2012-01-29 Janne Blomqvist <jb@gcc.gnu.org> PR fortran/51808 * gfortran.dg/module_md5_1.f90: Update MD5 sum. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183677 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-29 Tobias Burnus <burnus@net-b.de>burnus2012-01-292-10/+6
| | | | | | | | | | PR fortran/52038 * resolve.c (symbol_as): Remove unused, accidentally added function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183675 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-28 Tobias Burnus <burnus@net-b.de>burnus2012-01-282-1/+8
| | | | | | | | | | | | | | | PR fortran/51972 * trans-stmt.c (gfc_trans_allocate): Properly check whether we have a BT_CLASS which needs to be memset. 2012-01-28 Tobias Burnus <burnus@net-b.de> PR fortran/51972 * gfortran.dg/class_allocate_12.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183668 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-27 Tobias Burnus <burnus@net-b.de>burnus2012-01-272-1/+8
| | | | | | | | | | | | | | | PR fortran/52022 * trans-expr.c (gfc_conv_procedure_call): Fix passing of functions, which return allocatables. 2012-01-27 Tobias Burnus <burnus@net-b.de> PR fortran/52022 * gfortran.dg/dummy_procedure_7.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183643 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-27 Tobias Burnus <burnus@net-b.de>burnus2012-01-272-1/+10
| | | | | | | | | | | PR fortran/52016 * resolve.c (resolve_formal_arglist): Fix elemental constraint checks for polymorphic dummies also for pointers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183625 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-27 Tobias Burnus <burnus@net-b.de>burnus2012-01-278-31/+59
| | | | | | | | | | | | | | | | | | | | | | | | | 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 <burnus@net-b.de> PR fortran/51970 PR fortran/51977 * gfortran.dg/move_alloc_13.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183622 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-27 Tobias Burnus <burnus@net-b.de>burnus2012-01-272-6/+11
| | | | | | | | | | | | | | | | | PR fortran/51953 * match.c (gfc_match_allocate): Allow more than allocate object with SOURCE=. 2012-01-27 Tobias Burnus <burnus@net-b.de> PR fortran/51953 * gfortran.dg/allocate_alloc_opt_13.f90: New. * gfortran.dg/allocate_alloc_opt_4.f90: Add -std=f2003 and change dg-error string. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183621 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-27 Tobias Burnus <burnus@net-b.de>burnus2012-01-272-4/+29
| | | | | | | | | | | | | | | PR fortran/52016 * resolve.c (resolve_formal_arglist): Fix elemental constraint checks for polymorphic dummies. 2012-01-27 Tobias Burnus <burnus@net-b.de> PR fortran/52016 * gfortran.dg/elemental_args_check_5.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183620 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-27 Paul Thomas <pault@gcc.gnu.org>pault2012-01-276-28/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tobias Burnus <burnus@gcc.gnu.org> 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-27 Paul Thomas <pault@gcc.gnu.org> Tobias Burnus <burnus@gcc.gnu.org> PR fortran/48705 * gfortran.dg/class_allocate_11.f03: New. PR fortran/51870 PR fortran/51943 PR fortran/51946 * gfortran.dg/class_allocate_7.f03: New. * gfortran.dg/class_allocate_8.f03: New. * gfortran.dg/class_allocate_9.f03: New. * gfortran.dg/class_allocate_10.f03: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183613 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-25 Tobias Burnus <burnus@net-b.de>burnus2012-01-252-1/+7
| | | | | | | | | | PR fortran/51995 * class.c (gfc_build_class_symbol): Fix invalid freeing issue with fclass->f2k_derived. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183541 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-25 Tobias Burnus <burnus@net-b.de>burnus2012-01-252-1/+9
| | | | | | | | | | | | | | | PR fortran/51995 * class.c (gfc_build_class_symbol): Ensure that fclass->f2k_derived is set. 2012-01-25 Tobias Burnus <burnus@net-b.de> PR fortran/51995 * gfortran.dg/typebound_proc_25.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183528 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-24 Tobias Burnus <burnus@net-b.de>burnus2012-01-252-0/+7
| | | | | | | | | | | | | | | PR fortran/51966 * resolve.c (resolve_structure_cons): Only create an array constructors for nonscalars. 2012-01-24 Tobias Burnus <burnus@net-b.de> PR fortran/51966 * gfortran.dg/derived_constructor_char_3.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183510 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-23 Tobias Burnus <burnus@net-b.de>burnus2012-01-232-7/+16
| | | | | | | | | | | | | | | PR fortran/51948 * check.c (variable_check): Fix checking for result variables and deeply nested BLOCKs. 2012-01-23 Tobias Burnus <burnus@net-b.de> PR fortran/51948 * gfortran.dg/move_alloc_12.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183453 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-21 Tobias Burnus <burnus@net-b.de>kargl2012-01-212-2/+12
| | | | | | | | | | | | | | | | | Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/50556 * symbol.c (check_conflict): namelist-group-name cannot have the SAVE attribure. 2012-01-21 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/50556 * gfortran.dg/namelist_74.f90: New test. * gfortran.dg/namelist_59.f90: Remove SAVE attribute. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183370 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-21 Tobias Burnus <burnus@net-b.de>burnus2012-01-212-3/+8
| | | | | | | | | | | | | | PR fortran/51913 * interface.c (compare_parameter): Fix CLASS comparison. 2012-01-21 Tobias Burnus <burnus@net-b.de> PR fortran/51913 * gfortran.dg/class_47.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183368 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-20 Tobias Burnus <burnus@net-b.de>burnus2012-01-202-4/+19
| | | | | | | | | | | | | | | | | | Janus Weil <janus@gcc.gnu.org> PR fortran/51056 * module.c (load_needed, read_module): Don't mark __vtab etc. as use_only. 2012-01-20 Tobias Burnus <burnus@net-b.de> Janus Weil <janus@gcc.gnu.org> PR fortran/51056 * gfortran.dg/use_21.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183326 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-19 Tobias Burnus <burnus@net-b.de>burnus2012-01-192-0/+10
| | | | | | | | | | | | | | PR fortran/51904 * expr.c (gfc_build_intrinsic_call): Also set the symtree. 2012-01-19 Tobias Burnus <burnus@net-b.de> PR fortran/51904 * gfortran.dg/intrinsic_size_2.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183310 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-18 Paul Thomas <pault@gcc.gnu.org>pault2012-01-182-1/+17
| | | | | | | | | | | | | | | PR fortran/51634 * trans-expr.c (gfc_conv_procedure_call): Deallocate allocatable components of temporary class arguments. 2012-01-18 Paul Thomas <pault@gcc.gnu.org> PR fortran/51634 * gfortran.dg/typebound_operator_12.f03: New. * gfortran.dg/typebound_operator_13.f03: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183287 138bc75d-0d04-0410-961f-82ee72b054a4
* Insert ChangeLog entry that should have been includedkargl2012-01-181-0/+20
| | | | | | | in svn revision 183217 for PR fortran/48426. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183277 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-17 Tobias Burnus <burnus@net-b.de>burnus2012-01-173-5/+32
| | | | | | | | | | | | | | | | | | Janne Blomqvist <jb@gcc.gnu.org> PR fortran/51869 * trans-expr.c (alloc_scalar_allocatable_for_assignment): Nullify LHS after allocation, if it has allocatable components. * f95-lang.c (gfc_init_builtin_functions): Add BUILT_IN_CALLOC. 2012-01-17 Tobias Burnus <burnus@net-b.de> PR fortran/51869 * gfortran.dg/realloc_on_assign_9.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183247 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-16 Mikael Morin <mikael@gcc.gnu.org>burnus2012-01-162-3/+11
| | | | | | | | | | | | | | | | | | | Tobias Burnus <burnus@net-b.de> PR fortran/50981 * trans-array.c (gfc_walk_elemental_function_args): Fix passing of deallocated allocatables/pointers as absent argument. 2012-01-16 Mikael Morin <mikael@gcc.gnu.org> Tobias Burnus <burnus@net-b.de> PR fortran/50981 * gfortran.dg/elemental_optional_args_3.f90: New * gfortran.dg/elemental_optional_args_4.f90: New git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183220 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-16 Tobias Burnus <burnus@net-b.de>burnus2012-01-165-7/+20
| | | | | | | | | | | | | | | | | | | | PR fortran/51809 * class.c (gfc_find_derived_vtab): Mark __vtab and __def_init as FL_VARIABLE not as FL_PARAMETER. * expr.c (gfc_simplify_expr): Remove special handling of __vtab. * resolve.c (resolve_values): Ditto. * trans-decl.c (gfc_get_symbol_decl): Mark __vtab and __def_init as TREE_READONLY. 2012-01-16 Tobias Burnus <burnus@net-b.de> PR fortran/51809 * gfortran.dg/use_20.f90: New git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183219 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-16 Zydrunas Gimbutas <gimbutas@cims.nyu.edu>kargl2012-01-167-67/+313
| | | | | | | | | | | | | | | | | | | | | | | | Andreas Kloeckner <kloeckner@cims.nyu.edu> Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/48426 * gfortran.h (gfc_option_t): Add members flag_*_kind to store kind. * lang.opt: Add options -freal-4-real-8, -freal-4-real-10, -freal-4-real-16, -freal-8-real-4, -freal-8-real-10, -freal-8-real-16 and -finteger-4-integer-8. User-desired type conversion information. * decl.c (gfc_match_old_kind_spec,kind_expr): Type conversions in declaration parsing. * trans-types.c (gfc_init_kinds): User-specified type conversion checked for current backend. * primary.c (match_integer_constant,match_real_constant): Implement type conversion in constant parsing. * options.c (gfc_init_options,gfc_handle_option): Translate input options to flags in internal options data structure. * invoke.texi: Document new options. Re-order options in Options summary section. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183217 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-16 Paul Thomas <pault@gcc.gnu.org>pault2012-01-163-19/+76
| | | | | | | | | | | | | | | | | | * trans-array.c (gfc_trans_create_temp_array): In the case of a class array temporary, detect a null 'eltype' on entry and use 'initial' to provde the class reference and so, through the vtable, the element size for the dynamic type. * trans-stmt.c (gfc_conv_elemental_dependencies): For class expressions, set 'eltype' to null and pass the values via the 'initial' expression. 2012-01-16 Paul Thomas <pault@gcc.gnu.org> * gfortran.dg/class_array_3.f03: Remove the explicit loop in subroutine 'qsort' and use index array to assign the result. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183216 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-14 Tobias Burnus <burnus@net-b.de>burnus2012-01-142-3/+31
| | | | | | | | | | | | | | | | PR fortran/51800 * resolve.c (build_default_init_expr): Also initialize nonconstant-length strings with -finit-character=<n>. 2012-01-14 Tobias Burnus <burnus@net-b.de> PR fortran/51800 * gfortran.dg/init_flag_8.f90: New. * gfortran.dg/init_flag_9.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183180 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-01-14 Tobias Burnus <burnus@net-b.de>burnus2012-01-142-1/+37
| | | | | | | | | | | | | | | | | | PR fortran/51816 * module.c (read_module): Don't make nonexisting intrinsic operators as found. (rename_list_remove_duplicate): New function. (gfc_use_modules): Use it. 2011-01-14 Tobias Burnus <burnus@net-b.de> PR fortran/51816 * gfortran.dg/use_18.f90: New. * gfortran.dg/use_19.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183179 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-13 Paul Thomas <pault@gcc.gnu.org>pault2012-01-133-15/+42
| | | | | | | | | | | | | | | | | | | PR fortran/48351 * trans-array.c (structure_alloc_comps): Suppress interative call to self, when current component is deallocated using gfc_trans_dealloc_allocated. * class.c (gfc_build_class_symbol): Copy the 'alloc_comp' attribute from the declared type to the class structure. 2012-01-13 Paul Thomas <pault@gcc.gnu.org> PR fortran/48351 * gfortran.dg/alloc_comp_assign.f03: New. * gfortran.dg/allocatable_scalar_9.f90: Reduce count of __BUILTIN_FREE from 38 to 32. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183162 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-13 Tobias Burnus <burnus@net-b.de>burnus2012-01-132-2/+9
| | | | | | | | | | | PR fortran/51842 * fortran/trans-types.c (gfc_init_kinds): Use PTRDIFF_TYPE instead of a signed int of size POINTER_SIZE for gfc_index_integer_kind. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183154 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-12 Tobias Burnus <burnus@net-b.de>burnus2012-01-122-5/+11
| | | | | | | | | | | | | | | PR fortran/36755 * intrinsic.texi (CHMOD): Extend a bit and remove statement that /bin/chmod is called. 2012-01-12 Tobias Burnus <burnus@net-b.de> PR fortran/36755 * intrinsics/chmod.c (chmod_func): Replace call to /bin/chmod git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183137 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-10 Gerald Pfeifer <gerald@pfeifer.com>burnus2012-01-102-1/+5
| | | | | | | | * gfortran.texi (Fortran 2003 Status): Fix grammar. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183062 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-10 Tobias Burnus <burnus@net-b.de>burnus2012-01-102-0/+19
| | | | | | | | | | | | | | | PR fortran/51652 * resolve.c (resolve_allocate_expr): For non-deferred char lengths, check whether type-spec matches declaration. 2012-01-10 Tobias Burnus <burnus@net-b.de> PR fortran/51652 * gfortran.dg/allocate_with_typespec_5.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183061 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-10 Tobias Burnus <burnus@net-b.de>burnus2012-01-102-2/+6
| | | | | | | | | | | | * resolve.c (resolve_ordinary_assign): Improve error wording. 2012-01-10 Tobias Burnus <burnus@net-b.de> * gfortran.dg/class_39.f03: Update dg-error string. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183056 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud