]> gcc.gnu.org Git - gcc.git/blob - gcc/fortran/ChangeLog
collect2.c (is_ctor_dtor): Change type of ret field in struct names to symkind.
[gcc.git] / gcc / fortran / ChangeLog
1 2009-04-27 Ian Lance Taylor <iant@google.com>
2
3 * trans-intrinsic.c (DEFINE_MATH_BUILTIN): Add casts to enum
4 type.
5 * trans-io.c (st_parameter_field): Add casts to enum type.
6
7 2009-04-26 Steven G. Kargl <kargl@gcc.gnu.org>
8
9 PR fortran/39893
10 fortran/data.c (gfc_assign_data_value): If the lvalue is an
11 assumed character length entity in a data statement, then
12 return FAILURE to prevent segmentation fault.
13
14 2009-04-26 Jakub Jelinek <jakub@redhat.com>
15
16 * trans-decl.c: Include pointer-set.h.
17 (nonlocal_dummy_decl_pset, tree nonlocal_dummy_decls): New variables.
18 (gfc_nonlocal_dummy_array_decl): New function.
19 (gfc_get_symbol_decl): Call it for non-local dummy args with saved
20 descriptor.
21 (gfc_get_symbol_decl): Set DECL_BY_REFERENCE when needed.
22 (gfc_generate_function_code): Initialize nonlocal_dummy_decl{s,_pset},
23 chain it to outermost block's vars, destroy it afterwards.
24 * Make-lang.in (trans-decl.o): Depend on pointer-set.h.
25
26 2009-04-25 Janus Weil <janus@gcc.gnu.org>
27
28 PR fortran/39688
29 * decl.c (gfc_match_import): Use 'sym->name' instead of 'name'.
30 They differ if the symbol has been use-renamed.
31
32 2009-04-24 Ian Lance Taylor <iant@google.com>
33
34 * gfortran.h (enum gfc_symbol_type): New named enum type, broken
35 out of struct gfc_symbol.
36 (struct gfc_symbol): Use enum gfc_symbol_type.
37 (enum gfc_array_ref_dimen_type): New named enum type, broken out
38 of struct gfc_array_ref).
39 (struct gfc_array_ref): Use enum gfc_array_ref_dimen_type.
40 (mod_pointee_as): Update declaration.
41 * decl.c (add_global_entry): Change type to enum gfc_symbol_type.
42 (gfc_mod_pointee_as): Change return type to "match".
43 * module.c (mio_array_ref): Add cast to enum type.
44 (mio_symbol): Likewise.
45 * resolve.c (resolve_global_procedure): Change type to enum
46 gfc_symbol_type.
47 * trans-io.c (gfc_build_st_parameter): Change type to unsigned
48 int.
49
50 2009-04-24 Daniel Kraft <d@domob.eu>
51
52 * gfortran.h (gfc_get_typebound_proc): Removed as macro, now a function.
53 (struct gfc_symtree): Moved `typebound' member inside union.
54 (struct gfc_namespace): Add `tb_sym_root' as new symtree to sort out
55 type-bound procedures there.
56 (gfc_get_tbp_symtree): New procedure.
57 * symbol.c (tentative_tbp_list): New global.
58 (gfc_get_namespace): NULL new `tb_sym_root' member.
59 (gfc_new_symtree): Removed initialization of `typebound' member.
60 (gfc_undo_symbols): Process list of tentative tbp's.
61 (gfc_commit_symbols): Ditto.
62 (free_tb_tree): New method.
63 (gfc_free_namespace): Call it.
64 (gfc_get_typebound_proc): New method.
65 (gfc_get_tbp_symtree): New method.
66 (gfc_find_typebound_proc): Adapt to structural changes of gfc_symtree
67 and gfc_namespace with regards to tbp's.
68 * dump-parse-tree.c (show_typebound): Ditto.
69 * primary.c (gfc_match_varspec): Ditto. Don't reference tbp-symbol
70 as it isn't a symbol any longer.
71 * module.c (mio_typebound_symtree): Adapt to changes.
72 (mio_typebound_proc): Ditto, create symtrees using `gfc_get_tbp_symtree'
73 rather than `gfc_get_sym_tree'.
74 (mio_f2k_derived): Ditto.
75 * decl.c (match_procedure_in_type): Ditto.
76 (gfc_match_generic): Ditto. Don't reference tbp-symbol.
77 * resolve.c (check_typebound_override): Adapt to changes.
78 (resolve_typebound_generic): Ditto.
79 (resolve_typebound_procedures): Ditto.
80 (ensure_not_abstract_walker): Ditto.
81 (ensure_not_abstract): Ditto.
82 (resolve_typebound_procedure): Ditto, ignore erraneous symbols (for
83 instance, through removed tentative ones).
84 * gfc-internals.texi (Type-bound procedures): Document changes.
85
86 2009-04-24 Janus Weil <janus@gcc.gnu.org>
87
88 PR fortran/39861
89 PR fortran/39864
90 * symbol.c (gfc_copy_formal_args_intr): Set attr.flavor and attr.dummy
91 for the formal arguments.
92
93 2009-04-21 Taras Glek <tglek@mozilla.com>
94
95 * f95-lang.c: Update GTY annotations to new syntax.
96 * trans-intrinsic.c: Likewise.
97 * trans-io.c: Likewise.
98 * trans.h: Likewise.
99
100 2009-04-22 Janus Weil <janus@gcc.gnu.org>
101
102 PR fortran/39735
103 * decl.c (add_hidden_procptr_result): Bugfix for procptr results.
104 (match_procedure_decl): Set if_source.
105 * expr.c (gfc_check_pointer_assign): Bugfix: Return after error.
106 And: Check interface also for IFSRC_UNKNOWN (return type may be known).
107 * gfortran.h (typedef enum ifsrc): Remove IFSRC_USAGE,
108 add documentation. Rename copy_formal_args and copy_formal_args_intr.
109 * interface.c (gfc_compare_interfaces): Check for return types,
110 handle IFSRC_UNKNOWN.
111 (compare_intr_interfaces,compare_actual_formal_intr): Obsolete, removed.
112 (gfc_procedure_use): Modified handling of intrinsics.
113 * intrinsic.c (add_functions): Bugfix for "dim".
114 * resolve.c (resolve_intrinsic): New function to resolve intrinsics,
115 which copies the interface from isym to sym.
116 (resolve_procedure_expression,resolve_function): Use new function
117 'resolve_intrinsic'.
118 (resolve_symbol): Add function attribute for externals with return type
119 and use new function 'resolve_intrinsic'.
120 * symbol.c (ifsrc_types): Remove string for IFSRC_USAGE.
121 (copy_formal_args): Renamed to gfc_copy_formal_args.
122 (copy_formal_args_intr): Renamed to gfc_copy_formal_args_intr.
123 * trans-const.c (gfc_conv_const_charlen): Handle cl==NULL.
124
125 2009-04-21 Joseph Myers <joseph@codesourcery.com>
126
127 * ChangeLog, ChangeLog-2002, ChangeLog-2003, ChangeLog-2004,
128 ChangeLog-2005, ChangeLog-2006, ChangeLog-2007, ChangeLog-2008,
129 ChangeLog.ptr, config-lang.in, ioparm.def, mathbuiltins.def: Add
130 copyright and license notices.
131 * ChangeLog, ChangeLog-2005, ChangeLog-2006, ChangeLog-2007,
132 ChangeLog-2008: Correct dates.
133
134 2009-04-20 Tobias Burnus <burnus@net-b.de>
135
136 PR fortran/39811
137 * scanner.c (load_line): Fix bogus "&" compile-time diagnostic.
138
139 2009-04-20 Paul Thomas <pault@gcc.gnu.org>
140
141 PR fortran/39800
142 * resolve.c (is_sym_host_assoc): New function.
143 (resolve_fl_derived): Call it when checking PRIVATE components
144 of PUBLIC derived types. Change gfc_error to a gfc_notify_std
145 with std=f2003.
146 (resolve_fl_namelist): Call it twice to check for host
147 association.
148
149 2009-04-20 Ian Lance Taylor <iant@google.com>
150
151 * module.c (import_iso_c_binding_module): Add casts to enum type.
152 * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Change op to enum
153 tree_code.
154 (gfc_conv_intrinsic_anyall): Likewise.
155 (gfc_conv_intrinsic_arith): Likewise.
156 (gfc_conv_intrinsic_minmaxloc): Likewise.
157 (gfc_conv_intrinsic_minmaxval): Likewise.
158 (gfc_conv_intrinsic_bitop): Likewise.
159 (gfc_conv_intrinsic_singlebitop): Likewise.
160 (gfc_conv_intrinsic_strcmp): Likewise.
161
162 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
163 Jakub Jelinek <jakub@redhat.com>
164
165 PR fortran/35423
166 * trans.h (OMPWS_WORKSHARE_FLAG, OMPWS_CURR_SINGLEUNIT,
167 OMPWS_SCALARIZER_WS, OMPWS_NOWAIT): Define.
168 (ompws_flags): New extern decl.
169 * trans-array.c (gfc_trans_scalarized_loop_end): Build OMP_FOR
170 for the outer dimension if ompws_flags allow it.
171 * trans.c (gfc_generate_code): Clear ompws_flags.
172 * trans-expr.c (gfc_trans_assignment_1): Allow worksharing
173 array assignments inside of !$omp workshare.
174 * trans-stmt.c (gfc_trans_where_3): Similarly for where statements
175 and constructs.
176 * trans-openmp.c (ompws_flags): New variable.
177 (gfc_trans_omp_workshare): Rewritten.
178
179 2009-04-11 Daniel Kraft <d@domob.eu>
180
181 PR fortran/37746
182 * gfortran.h (struct gfc_charlen): New field `passed_length' to store
183 the actual passed string length for dummy arguments.
184 * trans-decl.c (gfc_create_string_length): Formatting fixes and added
185 assertion, moved a local variable into the innermost block it is needed.
186 (create_function_arglist): Removed TODO about the check being
187 implemented and initialize cl->passed_length here.
188 (add_argument_checking): New method.
189 (gfc_generate_function_code): Call the argument checking method.
190
191 2009-04-11 Janus Weil <janus@gcc.gnu.org>
192
193 PR fortran/39692
194 * symbol.c (check_conflict): Reject procedure pointers for -std=f95.
195
196 2009-04-11 Daniel Franke <franke.daniel@gmail.com>
197
198 * resolve.c (resolve_global_procedure): Enable whole-file checking for
199 procedures that are declared later in the file.
200
201 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
202
203 PR middle-end/39701
204 * trans.c (gfc_allocate_with_status): Fix type mismatches
205 on "pstat == 0".
206
207 2009-04-10 Daniel Franke <franke.daniel@gmail.com>
208
209 PR fortran/38709
210 * expr.c (find_array_section): Leave early on zero-sized arrays.
211
212 2009-04-09 Janus Weil <janus@gcc.gnu.org>
213
214 PR fortran/36704
215 * decl.c (add_hidden_procptr_result): New function for handling
216 procedure pointer return values by adding a hidden result variable.
217 (variable_decl,match_procedure_decl,gfc_match_function_decl,
218 gfc_match_subroutine,gfc_match_end,attr_decl1): Handle procedure pointer
219 return values.
220 * parse.c (parse_interface): Add EXTERNAL attribute only after
221 FUNCTION/SUBROUTINE declaration is complete.
222 * primary.c (replace_hidden_procptr_result): New function for replacing
223 function symbol by hidden result variable.
224 (gfc_match_rvalue,match_variable): Replace symbol by hidden result
225 variable.
226 * resolve.c (resolve_contained_fntype,resolve_function,resolve_variable,
227 resolve_symbol): Allow for procedure pointer function results.
228 (resolve_fl_procedure): Conflict detection moved here from
229 'check_conflict'.
230 * symbol.c (gfc_check_function_type): Allow for procedure pointer
231 function results.
232 (check_conflict): Move some conflict detection to resolution stage.
233 * trans-types.c (gfc_sym_type,gfc_get_function_type): Handle hidden
234 result variables.
235
236 2009-04-08 Jakub Jelinek <jakub@redhat.com>
237
238 * trans-types.c (gfc_init_types): Ensure gfc_integer_types doesn't
239 contain TYPE_STRING_FLAG types.
240
241 2009-04-08 Janne Blomqvist <jb@gcc.gnu.org>
242
243 PR fortran/39670
244 * invoke.texi (fdollar-ok): Fix typo.
245
246 2009-04-08 Daniel Franke <franke.daniel@gmail.com>
247
248 PR fortran/39670
249 * invoke.texi (fdollar-ok): Clarify limitations.
250
251 2009-04-08 Paul Thomas <pault@gcc.gnu.org>
252
253 PR fortran/38863
254 * trans-array.c (gfc_trans_deferred_array): Return if this
255 is a result variable.
256
257 2009-04-07 Janus Weil <janus@gcc.gnu.org>
258
259 PR fortran/38152
260 * trans-decl.c (gfc_get_symbol_decl): Correctly set decl location for
261 procedure pointer decls.
262
263 2009-04-07 Janus Weil <janus@gcc.gnu.org>
264
265 PR fortran/38290
266 * expr.c (gfc_check_pointer_assign): Enable interface check for
267 procedure pointers.
268 * gfortran.h: Add copy_formal_args_intr.
269 * interface.c (gfc_compare_interfaces): Call gfc_compare_intr_interfaces
270 if second argument is an intrinsic.
271 (compare_intr_interfaces): Correctly set attr.function, attr.subroutine
272 and ts.
273 (compare_parameter): Call gfc_compare_interfaces also for intrinsics.
274 * resolve.c (resolve_specific_f0,resolve_specific_s0): Don't resolve
275 intrinsic interfaces here. Must happen earlier.
276 (resolve_symbol): Resolution of intrinsic interfaces moved here from
277 resolve_specific_..., and formal args are now copied from intrinsic
278 interfaces.
279 * symbol.c (copy_formal_args_intr): New function to copy the formal
280 arguments from an intinsic procedure.
281
282 2009-04-06 Paul Thomas <pault@gcc.gnu.org>
283
284 PR fortran/38863
285 * dependency.c (ref_same_as_full_array): New function.
286 (gfc_dep_resolver): Call it.
287
288 2009-04-06 Janus Weil <janus@gcc.gnu.org>
289
290 PR fortran/39414
291 * decl.c (match_procedure_decl): Fix double declaration problems with
292 PROCEDURE statements.
293 * symbol.c (gfc_add_type): Ditto.
294
295 2009-04-06 Paul Thomas <pault@gcc.gnu.org>
296
297 PR fortran/36091
298 * trans-array.c (gfc_conv_array_ref): If the symbol has the
299 temporary attribute use the array_spec for the bounds.
300 * gfortran.h : Add the temporary field to the structure
301 'symbol_attribute'.
302 * trans-stmt.c (forall_make_variable_temp): Set the symbol's
303 temporary attribute.
304
305 2009-04-05 Daniel Franke <franke.daniel@gmail.com>
306
307 PR fortran/29458
308 * trans-array.c (gfc_trans_array_constructor_value): Shadow
309 implied do-loop variable to avoid spurious middle-end warnings.
310
311 2009-04-04 Tobias Burnus <burnus@net-b.de>
312
313 PR fortran/39577
314 * trans-decl.c (gfc_generate_function_code): Move recursive
315 check to the right position.
316
317 2009-04-04 Paul Thomas <pault@gcc.gnu.org>
318
319 PR fortran/37614
320 * trans-common.c (translate_common): Do not offset the whole
321 coomon block.
322
323 2009-04-03 Tobias Burnus <burnus@net-b.de>
324
325 PR fortran/39594
326 * resolve.c (resolve_common_vars): Add FL_VARIABLE to symbol
327 if it is not a procedure pointer.
328 * primary.c (match_actual_arg): Ditto.
329
330 2009-03-31 Joseph Myers <joseph@codesourcery.com>
331
332 PR preprocessor/15638
333 * cpp.c (cb_cpp_error): Handle CPP_DL_FATAL.
334
335 2009-03-30 Steven G. Kargl <kargls@comcast.net>
336
337 PR fortran/38389
338 * trans-stmt.c(gfc_trans_allocate): Add translation of ERRMSG.
339 (gfc_trans_deallocate): Add translation of ERRMSG. Remove stale
340 comments. Minor whitespace cleanup.
341 * resolve.c(is_scalar_expr_ptr): Whitespace cleanup.
342 (resolve_deallocate_expr (gfc_expr *e): Update error message.
343 (resolve_allocate_expr): Remove dead code. Update error message.
344 Move error checking to ...
345 (resolve_allocate_deallocate): ... here. Add additional error
346 checking for STAT, ERRMSG, and allocate-objects.
347 * match.c(gfc_match_allocate,gfc_match_deallocate): Parse ERRMSG.
348 Check for redundant uses of STAT and ERRMSG. Reword error message
349 and add checking for pointer, allocatable, and proc_pointer attributes.
350
351 2009-03-30 Paul Thomas <pault@gcc.gnu.org>
352
353 PR fortran/22571
354 PR fortran/26227
355 PR fortran/24886
356 * symbol.c : Add gfc_global_ns_list.
357 * decl.c (add_global_entry): Set the namespace ('ns') field.
358 * gfortran.h : Add the resolved field to gfc_namespace. Add the
359 namespace ('ns') field to gfc_gsymbol. Add flag_whole_file to
360 gfc_option_t. Add the prototype for gfc_free_dt_list.
361 * lang.opt : Add the whole-file option.
362 * invoke.texi : Document the whole-file option.
363 * resolve.c (resolve_global_procedure): If the fwhole-file
364 option is set, reorder gsymbols to ensure that translation is
365 in the right order. Resolve the gsymbol's namespace if that
366 has not occurred and then check interfaces.
367 (resolve_function): Move call to resolve_global_procedure.
368 (resolve_call): The same.
369 (resolve_codes): Store the current labels_obstack.
370 (gfc_resolve) : Return if the namespace is already resolved.
371 trans-decl.c (gfc_get_extern_function_decl): If the whole_file
372 option is selected, use the backend_decl of a gsymbol, if it is
373 available.
374 parse.c (add_global_procedure, add_global_program): If the flag
375 whole-file is set, add the namespace to the gsymbol.
376 (gfc_parse_file): On -fwhole-file, put procedure namespaces on
377 the global namespace list. Rearrange to do resolution of all
378 the procedures in a file, followed by their translation.
379 * options.c (gfc_init_options): Add -fwhole-file.
380 (gfc_handle_option): The same.
381
382 2009-03-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
383
384 * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_HUGE_VAL
385 family of intrinsics instead of BUILT_IN_INF family.
386 * trans-intrinsics.c (gfc_conv_intrinsic_nearest): Use
387 BUILT_IN_HUGE_VAL instead of BUILT_IN_INF.
388
389 2009-03-30 Jakub Jelinek <jakub@redhat.com>
390
391 * trans-types.c (gfc_sym_type, gfc_return_by_reference): For
392 sym->attr.result check sym->ns->proc_name->attr.is_bind_c.
393
394 2009-03-30 Joseph Myers <joseph@codesourcery.com>
395
396 PR rtl-optimization/323
397 * options.c (gfc_post_options): Set
398 flag_excess_precision_cmdline. Give an error for
399 -fexcess-precision=standard for processors where the option is
400 significant.
401
402 2009-03-29 Joseph Myers <joseph@codesourcery.com>
403
404 PR preprocessor/34695
405 * cpp.c (cb_cpp_error): New.
406 (gfc_cpp_post_options): Don't set cpp_option->inhibit_warnings.
407 Don't check cpp_errors (cpp_in).
408 (gfc_cpp_init_0): Set cb->error.
409
410 2009-03-29 Steven G. Kargl <kargl@gcc.gnu.org>
411
412 PR fortran/38823
413 * gfortran.h: Add ARITH_PROHIBIT to arith enum.
414 expr.c (gfc_match_init_expr): Add global variable init_flag to
415 flag matching an initialization expression.
416 (check_intrinsic_op): Move no longer reachable error message to ...
417 * arith.c (arith_power): ... here. Remove gfc_ prefix in
418 gfc_arith_power. Use init_flag. Allow constant folding of x**y
419 when y is REAL or COMPLEX.
420 (eval_intrinsic): Remove restriction that y in x**y must be INTEGER
421 for constant folding.
422 * gfc_power: Update gfc_arith_power to arith_power
423
424 2009-03-29 Daniel Kraft <d@domob.eu>
425
426 PR fortran/37423
427 * gfortran.h (struct gfc_typebound_proc): Added new flag `deferred' and
428 added a comment explaining DEFERRED binding handling.
429 * decl.c (match_binding_attributes): Really match DEFERRED attribute.
430 (match_procedure_in_type): Really match PROCEDURE(interface) syntax
431 and do some validity checks for DEFERRED and this construct.
432 * module.c (binding_overriding): New string constant for DEFERRED.
433 (mio_typebound_proc): Module-IO DEFERRED flag.
434 * resolve.c (check_typebound_override): Ensure that a non-DEFERRED
435 binding is not overridden by a DEFERRED one.
436 (resolve_typebound_procedure): Allow abstract interfaces as targets
437 for DEFERRED bindings.
438 (ensure_not_abstract_walker), (ensure_not_abstract): New methods.
439 (resolve_fl_derived): Use new `ensure_not_abstract' method for
440 non-ABSTRACT types extending ABSTRACT ones to ensure each DEFERRED
441 binding is overridden.
442 (check_typebound_baseobject): New method.
443 (resolve_compcall), (resolve_typebound_call): Check base-object of
444 the type-bound procedure call.
445 * gfc-internals.texi (Type-bound procedures): Document a little bit
446 about internal handling of DEFERRED bindings.
447
448 2009-03-29 Tobias Schlüter <tobi@gcc.gnu.org>
449
450 PR fortran/38507
451 * gfortran.h (gfc_st_label): Fix comment.
452 (gfc_exec_op): Add statement code EXEC_END_BLOCK for end of block.
453 * parse.c (accept_statement): Use EXEC_END_BLOCK for END IF and
454 END SELECT with labels.
455 (check_do_closure): Fix formatting.
456 (parse_do_block): Fix typo in error message.
457 * resolve.c (code_stack): Remove tail member. Update comment to
458 new use of reachable_labels.
459 (reachable_labels): Rename to ...
460 (find_reachable_labels): ... this. Overhaul. Update preceding
461 comment.
462 (resolve_branch): Fix comment preceding function. Rewrite.
463 (resolve_code): Update call to find_reachable_labels. Add code to
464 deal with EXEC_END_BLOCK.
465 * st.c (gfc_free_statement): Add code to deal with EXEC_END_BLOCK.
466 Add 2009 to copyright years.
467 * trans.c (gfc_trans_code): Likewise on both counts.
468
469 2009-03-31 Paul Thomas <pault@gcc.gnu.org>
470
471 PR fortran/38917
472 * expr.c (gfc_check_assign): Allow pointer components when
473 checking for NULL.
474
475 PR fortran/38918
476 * resolve.c (check_data_variable): Treat pointer arrays with
477 scalars.
478
479 2009-03-31 Paul Thomas <pault@gcc.gnu.org>
480
481 PR fortran/38915
482 * trans-expr.c (gfc_trans_assignment_1): Ensure temporaries
483 have a string_length.
484
485 2009-03-28 Tobias Burnus <burnus@net-b.de>
486
487 PR fortran/34656
488 * trans-stmt.c (gfc_trans_simple_do, gfc_trans_do):
489 Add GFC_RTCHECK_DO support.
490 * option.c (gfc_handle_runtime_check_option): Enable GFC_RTCHECK_DO.
491 * invoke.texi (-fcheck): Document "do" option.
492
493 2009-03-28 Paul Thomas <pault@gcc.gnu.org>
494
495 PR fortran/38538
496 * trans-array.c (get_elemental_fcn_charlen): Remove.
497 (get_array_charlen): New function to replace previous.
498
499 2009-03-28 Paul Thomas <pault@gcc.gnu.org>
500
501 PR fortran/38765
502 * parse.c (parse_derived): Do not break on finding pointer,
503 allocatable or private components.
504
505 2009-03-28 Tobias Burnus <burnus@net-b.de>
506
507 PR fortran/32626
508 * option.c (gfc_handle_runtime_check_option): Enable recursion check.
509 * trans-decl.c (gfc_generate_function_code): Add recursion check.
510 * invoke.texi (-fcheck): Add recursive option.
511
512 2009-03-28 Tobias Burnus <burnus@net-b.de>
513
514 PR fortran/38432
515 * resolve.c (gfc_resolve_iterator): Add zero-loop warning.
516
517 2009-03-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
518 Paul Thomas <pault@gcc.gnu.org>
519 Tobias Burnus <burnus@net-b.de>
520
521 * gfortran.h (gfc_option_t): Add rtcheck.
522 * lang.opt: New option -fcheck.
523 * libgfortran.h: Add GFC_RTCHECK_* constants.
524 * invoke.texi: Document -fcheck.
525 * options.c (gfc_handle_runtime_check_option): New function.
526 (gfc_init_options,gfc_post_options,gfc_handle_option):
527 Add -fcheck option.
528
529 2009-03-27 Richard Guenther <rguenther@suse.de>
530
531 * trans-array.c (gfc_conv_descriptor_data_addr): Use
532 gfc_build_addr_expr instead of build_fold_addr_expr.
533 (gfc_trans_allocate_array_storage, gfc_trans_array_constructor_value,
534 gfc_trans_constant_array_constructor, gfc_conv_array_data,
535 gfc_conv_expr_descriptor, gfc_conv_array_parameter): Likewise.
536 * trans-expr.c (gfc_conv_missing_dummy, gfc_conv_variable,
537 gfc_conv_function_val, gfc_conv_operator_assign,
538 gfc_conv_subref_array_arg, gfc_conv_function_call,
539 gfc_conv_expr_reference, gfc_trans_scalar_assign): Likewise.
540 * trans-intrinsic.c (gfc_conv_intrinsic_exponent,
541 gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
542 gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax_char,
543 gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_spacing,
544 gfc_conv_intrinsic_rrspacing, gfc_conv_intrinsic_set_exponent,
545 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
546 gfc_conv_intrinsic_si_kind, gfc_conv_intrinsic_trim): Likewise.
547 * trans-io.c (gfc_trans_io_runtime_check, set_parameter_ref,
548 gfc_convert_array_to_string, gfc_trans_open, gfc_trans_close,
549 build_filepos, gfc_trans_inquire, gfc_trans_wait,
550 nml_get_addr_expr, transfer_namelist_element, build_dt,
551 gfc_trans_dt_end, transfer_array_component, transfer_expr,
552 transfer_array_desc, gfc_trans_transfer): Likewise.
553 * trans-stmt.c (gfc_trans_allocate, gfc_trans_deallocate): Likewise.
554 * trans.c (gfc_build_addr_expr): Mark the base of the address
555 TREE_ADDRESSABLE.
556
557 2009-03-27 Tobias Burnus <burnus@net-b.de>
558
559 * gfortran.h (enum init_local_real.): Add GFC_INIT_REAL_SNAN.
560 (gfc_expr): Add is_snan.
561 * trans-const.c (gfc_conv_mpfr_to_tree): Support SNaN.
562 (gfc_conv_constant_to_tree): Update call to gfc_conv_mpfr_to_tree.
563 * trans-const.h (gfc_conv_mpfr_to_tree): Update prototype.
564 * resolve.c (build_default_init_expr): Update call.
565 * target-memory.c (encode_float): Ditto.
566 * trans-intrinsic.c (gfc_conv_intrinsic_aint,gfc_conv_intrinsic_mod,
567
568 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
569
570 * lang.opt: Unify help texts for -I, -Wconversion, -d, -fopenmp,
571 and -fpreprocessed.
572
573 2009-03-06 Alexandre Oliva <aoliva@redhat.com>
574
575 * simplify.c (gfc_simplify_transfer): Zero-initialize the
576 buffer.
577
578 2009-02-27 Tobias Burnus <burnus@net-b.de>
579
580 PR fortran/39309
581 * module.c (read_md5_from_module_file): Add missing quote.
582
583 2009-02-27 Tobias Burnus <burnus@net-b.de>
584
585 PR fortran/39309
586 * module.c (read_md5_from_module_file): Include mod version
587 in had-changed test.
588
589 2009-02-26 Paul Thomas <pault@gcc.gnu.org>
590
591 PR fortran/39295
592 * interface.c (compare_type_rank_if): Return 1 if the symbols
593 are the same and deal with external procedures where one is
594 identified to be a function or subroutine by usage but the
595 other is not.
596
597 2009-02-26 Paul Thomas <pault@gcc.gnu.org>
598
599 PR fortran/39292
600 * trans-array.c (gfc_conv_array_initializer): Convert all
601 expressions rather than ICEing.
602
603 2009-02-21 Thomas Koenig <tkoenig@gcc.gnu.org>
604
605 PR fortran/38914
606 * array.c (ref_dimen_size): Rename to gfc_ref_dimen_size,
607 make global. Change function name in error messages.
608 (ref_size): Change ref_dimen_size to gfc_ref_dimen_size.
609 (gfc_array_ref_shape): Likewise.
610 * gfortran.h: Add prototype for gfc_ref_dimen_size.
611 * simplify.c (simplify_bound_dim): Add ref argument.
612 If the reference isn't a full array, return one for
613 the lower bound and the extent for the upper bound.
614 (simplify_bound): For array sections, take as from the
615 argument. Add reference to all to simplify_bound_dim.
616
617 2009-02-19 Daniel Franke <franke.daniel@gmail.com>
618
619 * scanner.c (load_line): At end of line, skip '\r' without setting
620 the truncation flag.
621
622 2009-02-18 Daniel Kraft <d@domob.eu>
623
624 * gfortran.texi: New chapter about compiler characteristics.
625 (Compiler Characteristics): Document KIND type parameters here.
626
627 2009-02-18 Tobias Burnus <burnus@net-b.de>
628
629 * intrinsic.texi (MALLOC): Make example more portable.
630
631 2009-02-13 Mikael Morin <mikael.morin@tele2.fr>
632
633 PR fortran/38259
634 * module.c (gfc_dump_module,gfc_use_module): Add module
635 version number.
636
637 2009-02-13 Paul Thomas <pault@gcc.gnu.org>
638
639 PR fortran/36703
640 PR fortran/36528
641 * trans-expr.c (gfc_conv_function_val): Stabilize Cray-pointer
642 function references to ensure that a valid expression is used.
643 (gfc_conv_function_call): Pass Cray pointers to procedures.
644
645 2009-02-03 Jakub Jelinek <jakub@redhat.com>
646
647 * gfortranspec.c (lang_specific_driver): Update copyright notice
648 dates.
649
650 2009-01-28 Paul Thomas <pault@gcc.gnu.org>
651
652 PR fortran/38852
653 PR fortran/39006
654 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Use the array
655 descriptor ubound for UBOUND, when the array lbound == 1.
656
657 2009-01-27 Daniel Kraft <d@domob.eu>
658
659 PR fortran/38883
660 * trans-stmt.c (gfc_conv_elemental_dependencies): Create temporary
661 for the real type needed to make it work for subcomponent-references.
662
663 2009-01-21 Daniel Kraft <d@domob.eu>
664
665 * trans-stmt.c (gfc_conv_elemental_dependencies): Cleaned up comment.
666
667 2009-01-20 Paul Thomas <pault@gcc.gnu.org>
668
669 PR fortran/38907
670 * resolve.c (check_host_association): Remove the matching to
671 correct an incorrect host association and use manipulation of
672 the expression instead.
673
674 2009-01-20 Tobias Burnus <burnus@net-b.de>
675
676 * invoke.texi (RANGE): RANGE also takes INTEGER arguments.
677
678 2009-01-19 Mikael Morin <mikael.morin@tele2.fr>
679
680 PR fortran/38859
681 * simplify.c (simplify_bound): Don't use array specification
682 if variable or component has subsequent references.
683
684 2009-01-17 Paul Thomas <pault@gcc.gnu.org>
685
686 PR fortran/38657
687 * module.c (write_common_0): Add argument 'this_module' and
688 check that non-use associated common blocks are written first.
689 (write_common): Call write_common_0 twice, once with true and
690 then with false.
691
692 2009-01-17 Paul Thomas <pault@gcc.gnu.org>
693
694 PR fortran/34955
695 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Has
696 been absorbed into gfc_conv_intrinsic_transfer. All
697 references to it in trans-intrinsic.c have been changed
698 accordingly. PR fixed by using a temporary for scalar
699 character transfer, when the source is shorter than the
700 destination.
701
702 2009-01-17 Paul Thomas <pault@gcc.gnu.org>
703
704 PR fortran/38657
705 * module.c (write_common_0): Revert patch of 2009-01-05.
706
707 2009-01-16 Janus Weil <janus@gcc.gnu.org>
708
709 PR fortran/38152
710 * expr.c (gfc_check_pointer_assign): Allow use-associated procedure
711 pointers as lvalue.
712 * trans-decl.c (get_proc_pointer_decl,gfc_create_module_variable):
713 Enable procedure pointers as module variables.
714
715 2009-01-14 Steven G. Kargl <kargl@gcc.gnu.org>
716
717 * ChangeLog-2007: Clean out svn merge droppings.
718
719 2009-01-10 Paul Thomas <pault@gcc.gnu.org>
720
721 PR fortran/38763
722 * target-memory.c (encode_derived): Encode NULL.
723
724 2009-01-10 Paul Thomas <pault@gcc.gnu.org>
725
726 PR fortran/38765
727 * resolve.c (check_host_association): Use the symtree name to
728 search for a potential contained procedure, since this is the
729 name by which it would be referenced.
730
731 2009-01-06 Thomas Koenig <tkoenig@gcc.gnu.org>
732
733 PR fortran/38220
734 * interface.c (gfc_procedure_use): Don't warn about functions
735 from ISO_C_BINDING.
736 * symbol.c (generate_isocbinding_symbol): Mark c_loc and
737 c_funloc as pure.
738
739 2009-01-05 Paul Thomas <pault@gcc.gnu.org>
740
741 PR fortran/38657
742 * module.c (write_common_0): Use the name of the symtree rather
743 than the common block, to determine if the common has been
744 written.
745
746 2009-01-05 Daniel Franke <franke.daniel@gmail.com>
747
748 PR fortran/37159
749 * check.c (gfc_check_random_seed): Added size check for GET
750 dummy argument, reworded error messages to follow common pattern.
751
752 2009-01-05 Thomas Koenig <tkoenig@gcc.gnu.org>
753
754 PR fortran/38672
755 * trans-types.c (gfc_get_derived_type): Check for the
756 presence of derived->ns->proc_name before
757 accessing derived->ns->proc_name->attr.flavor .
758 * resolve.c (resolve_symbol): Likewise.
759
760 2009-01-05 Paul Thomas <pault@gcc.gnu.org>
761
762 PR fortran/38665
763 * gfortran.h : Add bit to gfc_expr 'user_operator'
764 * interface.c (gfc_extend_expr): Set the above if the operator
765 is substituted by a function.
766 * resolve.c (check_host_association): Return if above is set.
767
768 2009-01-04 Mikael Morin <mikael.morin@tele2.fr>
769
770 PR fortran/35681
771 * ChangeLog-2008: Fix function name.
772
773 PR fortran/38487
774 * dependency.c (gfc_check_argument_var_dependency):
775 Move the check for pointerness inside the if block
776 so that it doesn't affect the return value.
777
778 PR fortran/38669
779 * trans-stmt.c (gfc_trans_call):
780 Add the dependency code after the loop bounds calculation one.
781
782 2009-01-04 Daniel Franke <franke.daniel@gmail.com>
783
784 * intrinsic.c (do_simplify): Removed already implemented TODO.
785
786 2009-01-04 Daniel Franke <franke.daniel@gmail.com>
787
788 PR fortran/38718
789 * simplify.c (gfc_simplify_merge): New.
790 * intrinsic.h (gfc_simplify_merge): New prototype.
791 * intrinsic.c (add_functions): Added simplification for MERGE.
792
793 2009-01-04 Mikael Morin <mikael.morin@tele2.fr>
794
795 PR fortran/38536
796 * gfortran.h (gfc_is_data_pointer): Added prototype
797 * resolve.c (gfc_iso_c_func_interface):
798 Use gfc_is_data_pointer to test for pointer attribute.
799 * dependency.c (gfc_is_data_pointer):
800 Support pointer-returning functions.
801
802 2009-01-03 Daniel Franke <franke.daniel@gmail.com>
803
804 * symbol.c (save_symbol): Don't SAVE function results.
805
806 2009-01-03 Paul Thomas <pault@gcc.gnu.org>
807
808 PR fortran/38594
809 * resolve.c (resolve_call): When searching for proper host
810 association, use symtree rather than symbol. For everything
811 except generic subroutines, substitute the symtree in the call
812 rather than the symbol.
813
814 \f
815 Copyright (C) 2009 Free Software Foundation, Inc.
816
817 Copying and distribution of this file, with or without modification,
818 are permitted in any medium without royalty provided the copyright
819 notice and this notice are preserved.
This page took 0.076283 seconds and 6 git commands to generate.