1 2012-01-09 Tobias Burnus <burnus@net-b.de>
4 * gfortran.h (gfc_use_list):
5 * match.h (gfc_use_module): Rename to ...
6 (gfc_use_modules): ... this.
7 * module.c (use_locus, specified_nonint, specified_int): Remove
9 (module_name): Change type to const char*, used with gfc_get_string.
10 (module_list): New global variable.
11 (free_rename): Free argument not global var.
12 (gfc_match_use): Save match to module_list.
13 (load_generic_interfaces, read_module): Don't free symtree.
14 (write_dt_extensions, gfc_dump_module): Fix module-name I/O due to the
15 type change of module_name.
16 (write_symbol0, write_generic): Optimize due to the type change.
17 (import_iso_c_binding_module, use_iso_fortran_env_module): Use
18 locus of rename->where.
19 (gfc_use_module): Take module_list as argument.
20 (gfc_use_modules): New function.
21 (gfc_module_init_2, gfc_module_done_2): Init module_list, rename_list.
22 * parse.c (last_was_use_stmt): New global variable.
23 (use_modules): New function.
24 (decode_specification_statement, decode_statement): Move USE match up
26 (next_free, next_fixed): Call use_modules.
27 (accept_statement): Don't call gfc_module_use.
29 2012-01-06 Tobias Burnus <burnus@net-b.de>
31 * trans-openmp.c (gfc_omp_clause_dtor, gfc_trans_omp_array_reduction):
32 Update call to gfc_trans_dealloc_allocated.
33 * trans.c (gfc_allocate_using_malloc): Fix spacing.
34 (gfc_allocate_allocatable): For gfc_allocate_using_lib, jump to
35 label_finish when an error occurs.
36 (gfc_deallocate_with_status): Call caf_deregister for -fcoarray=lib.
37 * trans.h (gfc_allocate_allocatable, gfc_deallocate_with_status):
39 (gfor_fndecl_caf_deregister): New tree symbol.
40 * trans-expr.c (gfc_conv_procedure_call): Update
41 gfc_deallocate_with_status and gfc_trans_dealloc_allocated calls.
42 * trans-array.c (gfc_array_allocate, gfc_trans_dealloc_allocated,
43 structure_alloc_comps, gfc_trans_deferred_array): Ditto.
44 (gfc_array_deallocate): Handle coarrays with -fcoarray=lib.
45 * trans-array.h (gfc_array_deallocate, gfc_array_allocate,
46 gfc_trans_dealloc_allocated): Update prototypes.
47 * trans-stmt.c (gfc_trans_sync): Fix indentation.
48 (gfc_trans_allocate): Fix errmsg padding and label handling.
49 (gfc_trans_deallocate): Ditto and handle -fcoarray=lib.
50 * expr.c (gfc_is_coarray): Fix algorithm for BT_CLASS.
51 * libgfortran.h (GFC_STAT_STOPPED_IMAGE): Use large value
52 to avoid other stats accidentally matching this one.
53 * trans-decl.c (gfor_fndecl_caf_deregister): New global var.
54 (gfc_build_builtin_function_decls): Fix prototype decl of caf_register
55 and add decl for caf_deregister.
56 (gfc_trans_deferred_vars): Handle CAF vars with -fcoarrays=lib.
57 * trans-intrinsic.c (conv_intrinsic_move_alloc): Update call to
58 gfc_deallocate_with_status.
60 2012-01-05 Paul Thomas <pault@gcc.gnu.org>
63 * resolve.c (resolve_typebound_static): If the typebound
64 procedure is 'deferred' try to find the correct specific
65 procedure in the derived type operator space itself.
67 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
70 * trans-array.h (gfc_walk_elemental_function_args): New argument.
71 * trans-intrinsic.c (gfc_walk_intrinsic_function): Update call.
72 * trans-stmt.c (gfc_trans_call): Ditto.
73 * trans-array.c (gfc_walk_function_expr): Ditto.
74 (gfc_walk_elemental_function_args): Get the dummy argument list
75 if possible. Check that the dummy and the actual argument are both
76 optional, and set can_be_null_ref accordingly.
78 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
81 * trans.h (struct gfc_ss_info): New field data::scalar::can_be_null_ref
82 * trans-array.c: If the reference can be NULL, save the reference
84 * trans-expr.c (gfc_conv_expr): If we have saved a reference,
87 2012-01-04 Mikael Morin <mikael@gcc.gnu.org>
89 * trans-expr.c (gfc_conv_expr): Move address taking...
90 (gfc_conv_expr_reference): ... here.
92 2012-01-04 Thomas Koenig <tkoenig@gcc.gnu.org>
95 * trans-common.c (create_common): Update copyright years. Mark
96 variables as used to avoid warnings about unused variables in
99 2012-01-03 Hans-Peter Nilsson <hp@axis.com>
101 * gfortran.h (struct gfc_expr): Add missing "struct"
102 qualifier for member base_expr.
104 2012-01-02 Paul Thomas <pault@gcc.gnu.org>
107 * trans-array.c (gfc_array_allocate): Null allocated memory of
108 newly allocted class arrays.
113 * interface.c(build_compcall_for_operator): Add a type to the
115 * trans-expr.c (conv_base_obj_fcn_val): New function.
116 (gfc_conv_procedure_call): Use base_expr to detect non-variable
117 base objects and, ensuring that there is a temporary variable,
118 build up the typebound call using conv_base_obj_fcn_val.
119 (gfc_trans_class_assign): Pick out class procedure pointer
120 assignments and do the assignment with no further prcessing.
121 (gfc_trans_class_array_init_assign, gfc_trans_class_init_assign
122 gfc_trans_class_assign): Move to top of file.
123 * gfortran.h : Add 'base_expr' field to gfc_expr.
124 * resolve.c (get_declared_from_expr): Add 'types' argument to
125 switch checking of derived types on or off.
126 (resolve_typebound_generic_call): Set the new argument.
127 (resolve_typebound_function, resolve_typebound_subroutine):
128 Set 'types' argument for get_declared_from_expr appropriately.
129 Identify base expression, if not a variable, in the argument
130 list of class valued calls. Assign it to the 'base_expr' field
131 of the final expression. Strip away all references after the
132 last class reference.
134 2012-01-02 Tobias Burnus <burnus@net-b.de>
137 * trans-intrinsic.c (trans_this_image, trans_image_index,
138 trans_num_images, conv_intrinsic_cobound): Fold_convert the
139 caf_num_images/caf_this_images variables to the correct int kind.
141 2012-01-01 Jakub Jelinek <jakub@redhat.com>
143 * gfortranspec.c (lang_specific_driver): Update copyright notice
146 Copyright (C) 2012 Free Software Foundation, Inc.
148 Copying and distribution of this file, with or without modification,
149 are permitted in any medium without royalty provided the copyright
150 notice and this notice are preserved.