OSDN Git Service

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