OSDN Git Service

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