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