1 2011-01-27 Tobias Burnus <burnus@net-b.de>
4 * options.c (gfc_handle_module_path_options): Save
5 module path without trailing slash as include path.
7 2011-01-25 Tobias Burnus <burnus@net-b.de>
10 * interface.c (gfc_check_operator_interface): Fix
11 defined-assignment check.
13 2011-01-23 Tobias Burnus <burnus@net-b.de>
16 * trans-decl.c (gfc_trans_deferred_vars): Do not nullify
17 scalar allocatable dummy arguments.
19 2011-01-22 Thomas Koenig <tkoenig@gcc.gnu.org>
22 * resolve.c (gfc_iso_c_func_interface): For C_LOC,
23 check for array sections followed by component references
24 which are illegal. Also check for coindexed arguments.
26 2011-01-22 Tobias Burnus <burnus@net-b.de>
29 * primary.c (gfc_match_varspec): Relax gcc_assert to allow for
32 2011-01-21 Tobias Burnus <burnus@net-b.de>
35 * error.c (gfc_error_now, gfc_fatal_error, gfc_error_check):
36 Use defined instead of magic number exit status codes.
37 * scanner.c (include_line, gfc_new_file): Ditto.
39 2011-01-21 Tobias Burnus <burnus@net-b.de>
42 * expr.c (gfc_check_pointer_assign): Reject expr data-targets
43 without pointer attribute.
45 2011-01-18 Janus Weil <janus@gcc.gnu.org>
48 * resolve.c (expression_rank): Fix rank of procedure poiner components.
49 * trans-expr.c (gfc_conv_procedure_call): Take care of procedure
50 pointer components as actual arguments.
52 2011-01-17 Jakub Jelinek <jakub@redhat.com>
55 * gfortran.h (struct gfc_omp_saved_state): New type.
56 (gfc_omp_save_and_clear_state, gfc_omp_restore_state): New prototypes.
57 * resolve.c (resolve_global_procedure): Call it around gfc_resolve
59 * openmp.c (gfc_omp_save_and_clear_state, gfc_omp_restore_state): New
62 2011-01-17 Tobias Burnus <burnus@net-b.de>
65 * invoke.texi (Options to request or suppress errors
66 and warnings): Fix cross link.
68 2011-01-15 Tobias Burnus <burnus@net-b.de>
70 * gfortran.texi: Update Fortran 2003 Status section.
73 * invoke.texi: Add missing "-E" to the -dM example.
75 2011-01-13 Tobias Burnus <burnus@net-b.de>
78 * intrinsic.texi (get_command_argument, get_environment_variable):
79 Mark arguments as optional in the Arguments section.
81 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
82 Tobias Burnus <burnus@net-b.de>
85 * trans-decl.c (gfc_get_extern_function_decl,
86 build_function_decl): Set TREE_PUBLIC/TREE_EXTERNAL before
87 calling decl_attributes.
89 2011-01-13 Tobias Burnus <burnus@net-b.de>
90 Mikael Morin <mikael@gcc.gnu.org>
94 * gfortran.h (gfc_code): Move union ext's case_list into
96 * dump-parse-tree.c (show_code_node): Adapt by prefixing case_list
98 * frontend-passes.c (gfc_code_walker): Ditto.
99 * match.c (gfc_match_goto, gfc_match_call, gfc_match_case,
100 gfc_match_type_is, gfc_match_class_is): Ditto.
101 * resolve.c (resolve_select, resolve_select_type): Ditto.
102 * st.c (gfc_free_statement): Ditto.
103 * trans-stmt.c (gfc_trans_integer_select, gfc_trans_logical_select,
104 gfc_trans_character_select): Ditto.
105 * parse.c (resolve_all_program_units): For error recovery, avoid
106 segfault is proc_name is NULL.
108 2011-01-11 Paul Thomas <pault@gcc.gnu.org>
111 * trans-array.c (gfc_alloc_allocatable_for_assignment): Change
112 to be standard compliant by testing for shape rather than size
113 before skipping reallocation. Improve comments.
115 2011-01-09 Janus Weil <janus@gcc.gnu.org>
118 * resolve.c (resolve_actual_arglist): Remove unneeded and buggy piece
121 2011-01-09 Thomas Koenig <tkoenig@gcc.gnu.org>
124 * resolve.c (is_scalar_expr_ptr): For a substring reference,
125 use gfc_dep_compare_expr to compare start and end expession.
126 Add FIXME for using gfc_deb_compare_expr elsewhere.
128 2011-01-09 Janus Weil <janus@gcc.gnu.org>
131 * class.c (get_unique_type_string): Make type name start with upper
134 2011-01-08 Thomas Koenig <tkoenig@gcc.gnu.org>
137 * invoke.texi: Mention -ffree-line-length-none and
138 -ffixed-line-length-none for preprocessing.
140 2011-01-08 Paul Thomas <pault@gcc.gnu.org>
143 * trans-expr.c (gfc_conv_procedure_call): With a non-copying
144 procedure argument (eg TRANSPOSE) use a temporary if there is
145 any chance of aliasing due to host or use association.
146 (arrayfunc_assign_needs_temporary): Correct logic for function
147 results and do not use a temporary for implicitly PURE
148 variables. Use a temporary for Cray pointees.
149 * symbol.c (gfc_add_save): Explicit SAVE not compatible with
150 implicit pureness of containing procedure.
151 * decl.c (match_old_style_init, gfc_match_data): Where decl
152 would fail in PURE procedure, set implicit_pure to zero.
153 * gfortran.h : Add implicit_pure to structure symbol_attr and
154 add prototype for function gfc_implicit_pure.
155 * expr.c (gfc_check_pointer_assign, gfc_check_vardef_context):
156 Where decl would fail in PURE procedure, reset implicit_pure.
157 * io.c (match_vtag, gfc_match_open, gfc_match_close,
158 gfc_match_print, gfc_match_inquire, gfc_match_wait): The same.
159 * match.c (gfc_match_critical, gfc_match_stopcode,
160 sync_statement, gfc_match_allocate, gfc_match_deallocate): The
162 * parse.c (decode_omp_directive): The same.
163 (parse_contained): If not PURE, set implicit pure attribute.
164 * resolve.c (resolve_formal_arglist, resolve_structure_cons,
165 resolve_function, resolve_ordinary_assign) : The same.
166 (gfc_implicit_pure): New function.
167 * module.c (mio_symbol_attribute): Introduce AB_IMPLICIT_PURE
168 to ab_attribute enum and use it in this function.
170 2011-01-08 Thomas Koenig <tkoenig@gcc.gnu.org>
173 * symbol.c (gfc_symbols_could_alias): Strip gfc_ prefix,
174 make static and move in front of its only caller, to ...
175 * trans-array.c (symbols_could_alias): ... here.
176 Pass information about pointer and target status as
177 arguments. Allocatable arrays don't alias anything
178 unless they have the POINTER attribute.
179 (gfc_could_be_alias): Keep track of pointer and target
180 status when following references. Also check if typespecs
181 of components match those of other components or symbols.
183 2011-01-07 Tobias Burnus <burnus@net-b.de>
186 * class.c (gfc_build_class_symbol): Mark __vtab as attr.vtab.
187 * intrinsic.c (add_functions): Use simplify functions for
188 EXTENDS_TYPE_OF and SAME_TYPE_AS.
189 * intrinsic.h (gfc_simplify_extends_type_of,
190 gfc_simplify_same_type_as): New prototypes.
191 * simplify.c (is_last_ref_vtab, gfc_simplify_extends_type_of,
192 gfc_simplify_same_type_as): New functions.
194 2011-01-07 Janus Weil <janus@gcc.gnu.org>
198 * gfortran.h (gfc_lval_expr_from_sym): Moved prototype.
199 * class.c (gfc_class_null_initializer): Initialize _vptr to declared
201 * expr.c (gfc_lval_expr_from_sym): Moved here from symbol.c.
202 * resolve.c (resolve_deallocate_expr): _data component will be added
203 at translation stage.
204 * symbol.c (gfc_lval_expr_from_sym): Moved to expr.c.
205 * trans-stmt.c (gfc_trans_deallocate): Reset _vptr to declared type.
207 2011-01-06 Daniel Franke <franke.daniel@gmail.com>
211 * parse.c (parse_interface): Remove check for procedure types.
212 * interface.c (check_interface0): Verify that procedures are
213 either all SUBROUTINEs or all FUNCTIONs.
215 2011-01-05 Janus Weil <janus@gcc.gnu.org>
218 * trans-expr.c (gfc_trans_class_assign): Bugfix for r168524 (make sure
219 'vtab' is initialized).
221 2011-01-05 Janus Weil <janus@gcc.gnu.org>
224 * trans-expr.c (gfc_trans_class_assign): For a polymorphic NULL pointer
225 assignment, set the _vptr component to the declared type.
227 2011-01-05 Thomas Koenig <tkoenig@gcc.gnu.org>
230 * resolve.c (resolve_allocate_deallocate): Follow references to
231 check for duplicate occurence of allocation/deallocation objects.
233 2011-01-05 Janus Weil <janus@gcc.gnu.org>
236 * trans-decl.c (gfc_trans_deferred_vars): Initialize the _vpr component
237 of polymorphic allocatables according to their declared type.
239 2011-01-04 Janus Weil <janus@gcc.gnu.org>
242 * class.c (gfc_find_derived_vtab): Set the module field for the copying
243 routine to make sure it receives module name mangling.
245 2011-01-03 Jakub Jelinek <jakub@redhat.com>
247 * gfortranspec.c (lang_specific_driver): Update copyright notice
250 2011-01-03 Janus Weil <janus@gcc.gnu.org>
252 * intrinsic.texi (LEADZ): Fix example.
254 2011-01-02 Janus Weil <janus@gcc.gnu.org>
257 * class.c (gfc_find_derived_vtab): Use EXEC_INIT_ASSIGN for __copy_
261 Copyright (C) 2011 Free Software Foundation, Inc.
263 Copying and distribution of this file, with or without modification,
264 are permitted in any medium without royalty provided the copyright
265 notice and this notice are preserved.