OSDN Git Service

gcc/fortran:
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
1 2008-03-19  Daniel Franke  <franke.daniel@gmail.com>
2
3         PR fortran/35152
4         * interface.c (gfc_procedure_use): Check for keyworded arguments in
5         procedures without explicit interfaces.
6
7 2008-03-16  Paul Thomas  <pault@gcc.gnu.org>
8
9         PR fortran/35470
10         * resolve.c (check_assumed_size_reference):  Only visit the
11         first reference and look directly at the highest dimension.
12
13 2008-03-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
14
15         PR fortran/35184
16         * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
17         assert.
18
19 2008-03-15  Daniel Franke  <franke.daniel@gmail.com>
20
21         PR fortran/35584
22         * resolve.c (resolve_branch): Less strict and pessimistic warning
23         message.
24
25 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
26
27         * f95-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
28         (gfc_be_parse_file): Call clear_binding_stack from here.
29         (gfc_clear_binding_stack): Rename to clear_binding_stack.
30                 
31 2008-03-09  Paul Thomas  <pault@gcc.gnu.org>
32
33         PR fortran/35474
34         * module.c (mio_symtree_ref): After providing a symbol for a
35         missing equivalence member, resolve and NULL the fixups.
36
37 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38
39         * invoke.texi (Error and Warning Options): Document
40         -Wline-truncation.
41
42 2008-03-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
43
44         PR fortran/34956
45         * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
46         checking bounds of absent optional arguments.
47
48 2008-03-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
49
50         PR fortran/33197
51         * intrinsic.c (add_functions): Add simplification routines for
52         ERF, DERF, ERFC and DERFC.
53         * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
54         extensions into Fortran 2008 features.
55         * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
56         prototypes.
57         * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
58
59 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
60
61         PR fortran/33197
62         * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
63         ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
64         ERFC_SCALED, LOG_GAMMA and HYPOT.
65         * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
66         gfc_resolve_hypot): New prototypes.
67         * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
68         ACOSH, ASINH and ATANH available.
69         * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
70         * lang.opt: Add -std=f2008 option.
71         * libgfortran.h: Define GFC_STD_F2008.
72         * lang-specs.h: Add .f08 and .F08 file suffixes.
73         * iresolve.c (gfc_resolve_hypot): New function.
74         * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
75         * check.c (gfc_check_hypot): New function.
76         * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
77         * options.c (set_default_std_flags): Allow Fortran 2008 by default.
78         (form_from_filename): Add .f08 suffix.
79         (gfc_handle_option): Handle -std=f2008 option.
80         * simplify.c (gfc_simplify_hypot): New function.
81         * gfortran.texi: Document Fortran 2008 status and file extensions.
82         * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
83         as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
84         ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
85         * invoke.texi: Document the new -std=f2008 option.
86
87 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
88
89         * gfortranspec.c (lang_specific_driver): Update copyright notice
90         dates.
91
92 2008-02-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
93
94         PR fortran/35059
95         * expr.c (find_array_element): Modify traversing the constructor to
96         avoid trying to access NULL memory pointed to by next for the
97         last element. (find_array_section): Exit while loop if cons->next is
98         NULL.
99         * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
100         (gfc_conv_function_call): Same.
101         * decl.c (gfc_match_implicit): Same.
102         * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
103
104 2008-02-28  Daniel Franke  <franke.daniel@gmail.com>
105
106         PR fortran/31463
107         PR fortran/33950
108         PR fortran/34296
109         * lang.opt: Added -Wreturn-type.
110         * options.c (gfc_handle_option): Recognize -Wreturn-type.
111         * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
112         where the result value is not set.
113         (gfc_generate_function_code): Likewise.
114         (generate_local_decl): Emit warnings for funtions whose RESULT
115         variable is not set.
116
117 2008-02-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
118
119         PR fortran/34868
120         * trans-expr.c (gfc_conv_variable): Don't build indirect
121         references when explicit interface is mandated.
122         * resolve.c (resolve_formal_arglist): Set attr.always_explicit
123         on the result symbol as well as the procedure symbol.
124
125 2008-02-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
126
127         PR fortran/33387
128         * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
129         gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
130         gfor_fndecl_math_exponent16.
131         * f95-lang.c (build_builtin_fntypes): Add new function types.
132         (gfc_init_builtin_functions): Add new builtins for nextafter,
133         frexp, ldexp, fabs, scalbn and inf.
134         * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
135         (gfc_resolve_scale): Don't convert type of second argument.
136         (gfc_resolve_set_exponent): Likewise.
137         (gfc_resolve_size): Don't add hidden arguments.
138         * trans-decl.c: Remove gfor_fndecl_math_exponent4,
139         gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
140         gfor_fndecl_math_exponent16.
141         * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
142         for scalbn, fraction, nearest, rrspacing, set_exponent and
143         spacing.
144         (gfc_conv_intrinsic_exponent): Directly call frexp.
145         (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
146         gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
147         gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
148         functions.
149         (gfc_conv_intrinsic_function): Use the new functions above.
150
151 2008-02-26  Tobias Burnus  <burnus@net-b.de>
152
153         PR fortran/35033
154         * interface.c (check_operator_interface): Show better line for error
155         messages; fix constrains for user-defined assignment operators.
156         (gfc_extend_assign): Fix constrains for user-defined assignment
157         operators.
158
159 2008-02-26  Tom Tromey  <tromey@redhat.com>
160
161         * trans-io.c (set_error_locus): Remove old location code.
162         * trans-decl.c (gfc_set_decl_location): Remove old location code.
163         * f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
164         * scanner.c (gfc_gobble_whitespace): Remove old location code.
165         (get_file): Likewise.
166         (preprocessor_line): Likewise.
167         (load_file): Likewise.
168         (gfc_new_file): Likewise.
169         * trans.c (gfc_trans_runtime_check): Remove old location code.
170         (gfc_get_backend_locus): Likewise.
171         (gfc_set_backend_locus): Likewise.
172         * data.c (gfc_assign_data_value): Remove old location code.
173         * error.c (show_locus): Remove old location code.
174         * gfortran.h (gfc_linebuf): Remove old location code.
175         (gfc_linebuf_linenum): Remove old-location variant.
176
177 2008-02-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
178
179         PR fortran/34729
180         * trans-const.c (gfc_build_string_const): Don't call gettext.
181         (gfc_build_localized_string_const): New function.
182         * trans-const.h (gfc_build_localized_string_const): New prototype.
183         * trans.c (gfc_trans_runtime_check): Use
184         gfc_build_localized_string_const instead of gfc_build_string_const.
185         (gfc_call_malloc): Likewise.
186         (gfc_allocate_with_status): Likewise.
187         (gfc_allocate_array_with_status): Likewise.
188         (gfc_deallocate_with_status): Likewise.
189         (gfc_call_realloc): Likewise.
190         * trans-io.c (gfc_trans_io_runtime_check): Likewise.
191
192 2008-02-24  Tobias Schlüter  <tobi@gcc.gnu.org>
193
194         * arith.c: Update copyright years.
195         * arith.h: Likewise.
196         * array.c: Likewise.
197         * bbt.c: Likewise.
198         * check.c: Likewise.
199         * data.c: Likewise.
200         * data.h: Likewise.
201         * decl.c: Likewise.
202         * dependency.c: Likewise.
203         * dependency.h: Likewise.
204         * dump-parse-tree.c: Likewise.
205         * error.c: Likewise.
206         * expr.c: Likewise.
207         * gfc-internals.texi: Likewise.
208         * gfortran.h: Likewise.
209         * gfortran.texi: Likewise.
210         * gfortranspec.c: Likewise.
211         * interface.c: Likewise.
212         * intrinsic.c: Likewise.
213         * intrinsic.h: Likewise.
214         * intrinsic.texi: Likewise.
215         * invoke.texi: Likewise.
216         * io.c: Likewise.
217         * iresolve.c: Likewise.
218         * iso-c-binding.def: Likewise.
219         * iso-fortran-env.def: Likewise.
220         * lang-specs.h: Likewise.
221         * lang.opt: Likewise.
222         * libgfortran.h: Likewise.
223         * match.c: Likewise.
224         * match.h: Likewise.
225         * matchexp.c: Likewise.
226         * misc.c: Likewise.
227         * module.c: Likewise.
228         * openmp.c: Likewise.
229         * options.c: Likewise.
230         * parse.c: Likewise.
231         * parse.h: Likewise.
232         * primary.c: Likewise.
233         * resolve.c: Likewise.
234         * scanner.c: Likewise.
235         * simplify.c: Likewise.
236         * st.c: Likewise.
237         * symbol.c: Likewise.
238         * target-memory.c: Likewise.
239         * target-memory.h: Likewise.
240         * trans-array.h: Likewise.
241         * trans-const.h: Likewise.
242         * trans-stmt.h: Likewise.
243         * trans-types.c: Likewise.
244         * trans-types.h: Likewise.
245         * types.def: Likewise.
246
247 2008-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
248
249         PR fortran/35223
250         * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
251         (gfc_simplify_ibset): Remove call to range_check.
252         (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
253         (gfc_simplify_real): Add call gfc_clear_ts to initialize the
254         temporary gfc_typspec variable.
255
256 2008-02-24  Tobias Schlüter  <tobi@gcc.gnu.org>
257
258         * trans-array.c (gfc_conv_descriptor_data_get,
259         gfc_conv_descriptor_data_set_internal,
260         gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
261         gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
262         gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
263         gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
264         gfc_conv_array_transpose, gfc_grow_array,
265         gfc_trans_array_constructor_subarray,
266         gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
267         gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
268         gfc_conv_array_initializer, gfc_trans_array_bounds,
269         gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
270         gfc_get_dataptr_offset, gfc_conv_array_parameter,
271         gfc_trans_dealloc_allocated, get_full_array_size,
272         gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
273         instead of buildN.
274         * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
275         gfc_conv_component_ref, gfc_conv_cst_int_power,
276         gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
277         * trans-common.c (create_common): Likewise.
278         * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
279         Likewise.
280         * trans-const.c (gfc_conv_constant_to_tree): Likewise.
281         * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
282         gfc_trans_integer_select, gfc_trans_character_select,
283         gfc_trans_forall_loop, compute_overall_iter_number,
284         gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
285         gfc_trans_deallocate): Likewise.
286         * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
287         gfc_allocate_with_status, gfc_allocate_array_with_status,
288         gfc_deallocate_with_status): Likewise.
289         * f95-lang.c (gfc_truthvalue_conversion): Likewise.
290         * trans-io.c (set_parameter_const, set_parameter_value,
291         set_parameter_ref, set_string, set_internal_unit, io_result,
292         set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
293         * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
294         gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
295         gfc_generate_function_code): Likewise.
296         * convert.c (convert): Likewise.
297         * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
298         build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
299         gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
300         gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
301         gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
302         gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
303         gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
304         gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
305         gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
306         gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
307         gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
308         gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
309         gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
310         gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
311         gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
312         gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
313         gfc_conv_intrinsic_repeat): Likewise.
314
315 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
316
317         PR target/25477
318         * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
319         * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
320         * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
321         gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
322         * trans-decl.c: Likewise.
323
324 2008-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
325
326         PR fortran/35059
327         * expr.c (find_array_element): Modify traversing the constructor to
328         avoid trying to access NULL memory pointed to by next for the
329         last element. (find_array_section): Exit while loop if cons->next is
330         NULL.
331
332 2008-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
333
334         PR fortran/34907
335         * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
336         structure.
337         (gfc_resolve_aint): Likewise.
338         (gfc_resolve_anint): Likewise.
339         (gfc_resolve_besn): Likewise.
340         (gfc_resolve_cshift): Likewise.
341         (gfc_resolve_ctime): Likewise.
342         (gfc_resolve_eoshift): Likewise.
343         (gfc_resolve_index_func): Likewise.
344         (gfc_resolve_isatty): Likewise.
345         (gfc_resolve_malloc): Likewise.
346         (gfc_resolve_rrspacing): Likewise.
347         (gfc_resolve_scale): Likewise.
348         (gfc_resolve_set_exponent): Likewise.
349         (gfc_resolve_spacing): Likewise.
350         (gfc_resolve_spacing): Likewise.
351         (gfc_resolve_fgetc): Likewise.
352         (gfc_resolve_fputc): Likewise.
353         (gfc_resolve_ftell): Likewise.
354         (gfc_resolve_ttynam): Likewise.
355         (gfc_resolve_alarm_sub): Likewise.
356         (gfc_resolve_mvbits): Likewise.
357         (gfc_resolve_getarg): Likewise.
358         (gfc_resolve_signal_sub): Likewise.
359         (gfc_resolve_exit): Likewise.
360         (gfc_resolve_flush): Likewise.
361         (gfc_resolve_free): Likewise.
362         (gfc_resolve_ctime_sub): Likewise.
363         (gfc_resolve_fgetc_sub): Likewise.
364         (gfc_resolve_fputc_sub): Likewise.
365         (gfc_resolve_fseek_sub): Likewise.
366         (gfc_resolve_ftell_sub): Likewise.
367         (gfc_resolve_ttynam_sub): Likewise.
368
369 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
370
371         * gfc-internals.texi: Fix typos and markup nits.
372         * gfortran.texi: Likewise.
373         * intrinsic.texi: Likewise.
374
375 2008-02-21  Richard Guenther  <rguenther@suse.de>
376
377         * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
378         as unary PAREN_EXPR for real and complex typed expressions.
379         (gfc_conv_unary_op): Fold the built tree.
380
381 2008-02-20  Tobias Burnus  <burnus@net-b.de>
382
383         PR fortran/34997
384         * match.c (gfc_match_name): Improve error message for '$'.
385
386 2008-02-19  Daniel Franke  <franke.daniel@gmail.com>
387
388         PR fortran/35030
389         * expr.c (gfc_check_pointer_assign): Add type and kind information
390         to type-mismatch message.
391         (gfc_check_assign): Unify error messages.
392
393 2008-02-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
394
395         PR fortran/34952
396         * gfortran.texi: Create new section for unimplemented extensions.
397         Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
398         Remove "smaller projects" list. Fix a few typos.
399
400 2008-02-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
401
402         * intrinsic.texi: Rename INDEX node to avoid clashing with
403         index.html on case-insensitive systems.
404
405 2008-02-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
406
407         PR fortran/35150
408         * trans-expr.c (gfc_conv_function_call): Force evaluation of
409         se->expr.
410
411 2008-02-10  Daniel Franke  <franke.daniel@gmail.com>
412
413         PR fortran/35019
414         * lang.opt: Allow '-J<dir>' next to '-J <dir>', 
415         likewise '-I <dir>' and '-I<dir>'.
416
417 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
418
419         PR other/35107
420         * Make-lang.in (f951): Add $(GMPLIBS).
421
422 2008-02-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
423
424         PR fortran/35037
425         * trans-common.c (build_field): Mark fields as volatile when needed.
426
427 2008-02-05  Tobias Burnus  <burnus@net-b.de>
428
429         PR fortran/35093
430         * data.c (gfc_assign_data_value): Only free "size" if
431         it has not already been freed.
432
433 2008-02-05  Paul Thomas  <pault@gcc.gnu.org>
434
435         PR fortran/34945
436         * array.c (match_array_element_spec): Remove check for negative
437         array size.
438         (gfc_resolve_array_spec): Add check for negative size.
439
440 2008-02-05  Paul Thomas  <pault@gcc.gnu.org>
441
442         PR fortran/32315
443         * data.c (gfc_assign_data_value): Add bounds check for array
444         references.
445
446 2008-02-04  Daniel Franke  <franke.daniel@gmail.com>
447
448         * resolve.c (resolve_where): Fix typo.
449         (gfc_resolve_where_code_in_forall): Likewise.
450
451 2008-02-03  Paul Thomas  <pault@gcc.gnu.org>
452
453         PR fortran/32760
454         * resolve.c (resolve_allocate_deallocate): New function.
455         (resolve_code): Call it for allocate and deallocate.
456         * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
457         the checking of the STAT tag and put in above new function.
458         * primary,c (match_variable): Do not fix flavor of host
459         associated symbols yet if the type is not known.
460
461 2008-01-31  Paul Thomas  <pault@gcc.gnu.org>
462
463         PR fortran/34910
464         * expr.c (gfc_check_assign): It is an error to assign
465         to a sibling procedure.
466
467 2008-01-30  Paul Thomas  <pault@gcc.gnu.org>
468
469         PR fortran/34975
470         * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
471         delete_symtree to gfc_delete_symtree.
472         * gfortran.h : Add prototype for gfc_delete_symtree.
473         * module.c (load_generic_interfaces): Transfer symbol to a
474         unique symtree and delete old symtree, instead of renaming.
475         (read_module): The rsym and the found symbol are the same, so
476         the found symtree can be deleted.
477
478         PR fortran/34429
479         * decl.c (match_char_spec): Remove the constraint on deferred
480         matching of functions and free the length expression.
481         delete_symtree to gfc_delete_symtree.
482         (gfc_match_type_spec): Whitespace.
483         (gfc_match_function_decl): Defer characteristic association for
484         all types except BT_UNKNOWN.
485         * parse.c (decode_specification_statement): Only derived type
486         function matching is delayed to the end of specification.
487
488 2008-01-28  Tobias Burnus  <burnus@net-b.de>
489
490         PR libfortran/34980
491         * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
492
493 2008-01-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
494
495         PR fortran/34990
496         * array.c (gfc_check_constructor_type): Revert clearing the expression.
497
498 2008-01-26  Tobias Burnus  <burnus@net-b.de>
499
500         PR fortran/34848
501         * trans-expr.c (gfc_conv_function_call): Don't call
502         gfc_add_interface_mapping if the expression is NULL.
503
504 2008-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
505
506         PR fortran/31610
507         * trans-array.c (gfc_trans_create_temp_array): Remove call to
508         gcc_assert (integer_zerop (loop->from[n])).
509
510 2008-01-25  Daniel Franke  <franke.daniel@gmail.com>
511
512         PR fortran/34661
513         * resolve.c (resolve_where): Added check if user-defined assignment 
514         operator is an elemental subroutine.
515         (gfc_resolve_where_code_in_forall): Likewise.
516
517 2008-01-24  Daniel Franke  <franke.daniel@gmail.com>
518
519         PR fortran/33375
520         PR fortran/34858
521         * gfortran.h: Revert changes from 2008-01-17.
522         * match.c: Likewise.
523         * symbol.c: Likewise.
524         (gfc_undo_symbols): Undo namespace changes related to common blocks.
525
526 2008-01-24  Daniel Franke  <franke.daniel@gmail.com>
527
528         PR fortran/34202
529         * data.c (formalize_structure_cons): Skip formalization on
530         empty structures.
531
532 2008-01-24  Daniel Franke  <franke.daniel@gmail.com>
533
534         * gfortran.texi (OpenMP): Extended existing documentation.
535         (contributors): Added major contributors of 2008 that were
536         not listed yet.
537         (proposed extensions): Removed implemented items.
538
539 2008-01-24  Paul Thomas  <pault@gcc.gnu.org>
540
541         PR fortran/34872
542         * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS  is
543         seen, check for a statement label and, if present, delete it
544         and set the locus to the start of the statement.
545
546 2008-01-22  Paul Thomas  <pault@gcc.gnu.org>
547
548         PR fortran/34875
549         * trans-io.c (gfc_trans_transfer): If the array reference in a
550         read has a vector subscript, use gfc_conv_subref_array_arg to
551         copy back the temporary.
552
553 2008-01-22  Tobias Burnus  <burnus@net-b.de>
554
555         PR fortran/34848
556         * interface.c (compare_actual_formal): Fix adding type
557         to missing_arg_type for absent optional arguments.
558
559 2008-01-22  Tobias Burnus  <burnus@net-b.de>
560
561         PR fortran/34907
562         * parse.c (parse_spec): Change = into ==.
563
564 2008-01-22  Daniel Franke  <franke.daniel@gmail.com>
565
566         PR fortran/34915
567         * expr.c (check_elemental): Fix check for valid data types.
568
569 2008-01-22  Tobias Burnus  <burnus@net-b.de>
570
571         PR fortran/34899
572         * scanner.c (load_line): Support <tab><digit> continuation lines.
573         * invoke.texi (-Wtabs): Document this.
574
575 2008-01-22  Paul Thomas  <pault@gcc.gnu.org>
576
577         PR fortran/34896
578         * module.c (read_module): Set use_rename attribute.
579
580 2007-01-21  Tobias Burnus  <burnus@net-b.de>
581
582         PR fortran/34901
583         * interface.c (compare_parameter): Improved error message
584         for arguments of same type and mismatched kinds.
585
586 2008-01-20  Paul Thomas  <pault@gcc.gnu.org>
587
588         PR fortran/34861
589         * resolve.c (resolve_entries): Do not do an array bounds check
590         if the result symbols are the same.
591
592         PR fortran/34854
593         * module.c (read_module) : Hide the symtree of the previous
594         version of the symbol if this symbol is renamed.
595
596 2008-01-20  Paul Thomas  <pault@gcc.gnu.org>
597
598         PR fortran/34784
599         * array.c (gfc_check_constructor_type): Clear the expression ts
600         so that the checking starts from the deepest level of array
601         constructor.
602         * primary.c (match_varspec): If an unknown type is changed to
603         default character and the attempt to match a substring fails,
604         change it back to unknown.
605
606         PR fortran/34785
607         * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
608         NULL for an array constructor, use the cl.length expression to
609         build it.
610         (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
611         a tree assignment.
612
613 2008-01-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
614
615         PR fortran/34817
616         PR fortran/34838
617         * iresolve.c (gfc_resolve_all):  Remove conversion of mask
618         argument to kind=1 by removing call to resolve_mask_arg().
619         (gfc_resolve_any):  Likewise.
620
621 2008-01-19  Tobias Burnus  <burnus@net-b.de>
622
623         PR fortran/34760
624         * primary.c (match_variable): Handle FL_UNKNOWN without
625         uneducated guessing.
626         (match_variable): Improve error message.
627
628 2008-01-18  Tobias Burnus  <burnus@net-b.de>
629
630         PR fortran/32616
631         * interface.c (get_expr_storage_size): Return storage size
632         for array element designators.
633         (compare_actual_formal): Reject unequal string sizes for
634         assumed-shape dummy arguments. And fix error message for
635         array-sections with vector subscripts.
636
637 2008-01-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
638
639         PR fortran/34556
640         * simplify.c (is_constant_array_expr): New static function that returns
641         true if the given expression is an array and is constant.
642         (gfc_simplify_reshape): Use new function.
643
644 2008-01-17  H.J. Lu  <hongjiu.lu@intel.com>
645
646         PR fortran/33375
647         * symbol.c (free_common_tree): Renamed to ...
648         (gfc_free_common_tree): This.  Remove static.
649         (gfc_free_namespace): Updated.
650
651         * gfortran.h (gfc_free_common_tree): New.
652
653         * match.c (gfc_match_common): Call gfc_free_common_tree () with
654         gfc_current_ns->common_root and set gfc_current_ns->common_root
655         to NULL on syntax error.
656
657 2008-01-18  Richard Sandiford  <rsandifo@nildram.co.uk>
658
659         PR fortran/34686
660         * trans-expr.c (gfc_conv_function_call): Use proper
661         type for returned character pointers.
662
663 2008-01-17  Paul Thomas  <pault@gcc.gnu.org>
664
665         PR fortran/34429
666         PR fortran/34431
667         PR fortran/34471
668         * decl.c : Remove gfc_function_kind_locus and
669         gfc_function_type_locus. Add gfc_matching_function.
670         (match_char_length): If matching a function and the length
671         does not match, return MATCH_YES and try again later.
672         (gfc_match_kind_spec): The same.
673         (match_char_kind): The same.
674         (gfc_match_type_spec): The same for numeric and derived types.
675         (match_prefix): Rename as gfc_match_prefix.
676         (gfc_match_function_decl): Except for function valued character
677         lengths, defer applying kind, type and charlen info until the
678         end of specification block.
679         gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
680         parse.c (decode_specification_statement): New function.
681         (decode_statement): Call it when a function has kind = -1. Set
682         and reset gfc_matching function, as function statement is being
683         matched.
684         (match_deferred_characteristics): Simplify with a single call
685         to gfc_match_prefix. Do appropriate error handling. In any
686         case, make sure that kind = -1 is reset or corrected.
687         (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
688         Throw an error if kind = -1 after last specification statement.
689         parse.h : Prototype for gfc_match_prefix.
690
691 2008-01-16  Tobias Burnus  <burnus@net-b.de>
692
693         PR fortran/34796
694         * interface.c (compare_parameter): Allow AS_DEFERRED array
695         elements and reject attr.pointer array elemenents.
696         (get_expr_storage_size): Return storage size of elements of
697         assumed-shape and pointer arrays.
698
699 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
700
701         * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
702         for flag_tree_parallelize_loops.
703
704 2008-01-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
705
706         PR libfortran/34671
707         * iresolve.c (gfc_resolve_all):  Call resolve_mask_arg.
708         (gfc_resolve_any):  Likewise.
709         (gfc_resolve_count):  Likewise.  Don't append kind of
710         argument to function name.
711
712 2008-01-13  Tobias Burnus  <burnus@net-b.de>
713
714         PR fortran/34665
715         * resolve.c (resolve_actual_arglist): For expressions,
716         also check for assume-sized arrays.
717         * interface.c (compare_parameter): Move F2003 character checks
718         here, print error messages here, reject elements of
719         assumed-shape array as argument to dummy arrays.
720         (compare_actual_formal): Update for the changes above.
721
722 2008-01-13  Tobias Burnus  <burnus@net-b.de>
723
724         PR fortran/34763
725         * decl.c (contained_procedure): Only check directly preceeding state.
726
727 2008-01-13  Tobias Burnus  <burnus@net-b.de>
728
729         PR fortran/34759
730         * check.c (gfc_check_shape): Accept array ranges of
731         assumed-size arrays.
732
733 2008-01-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
734
735         PR fortran/34432
736         * match.c (gfc_match_name): Don't error if leading character is a '(',
737         just return MATCH_NO.
738
739 2008-01-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
740
741         PR fortran/34722
742         * trans-io.c (create_dummy_iostat): Commit the symbol.
743
744 2008-01-11  Paul Thomas  <pault@gcc.gnu.org>
745
746         PR fortran/34537
747         * simplify.c (gfc_simplify_transfer): Return NULL if the size
748         of the element is unavailable and only assign character length
749         to the result, if 'mold' is constant.
750
751 2008-01-10  Paul Thomas  <pault@gcc.gnu.org>
752
753         PR fortran/34396
754         * trans-array.c (gfc_trans_array_ctor_element):  Use gfc_trans_string_copy
755         to assign strings and perform bounds checks on the string length.
756         (get_array_ctor_strlen): Remove bounds checking.
757         (gfc_trans_array_constructor): Initialize string length checking.
758         * trans-array.h : Add prototype for gfc_trans_string_copy.
759
760 2008-01-08  Richard Guenther  <rguenther@suse.de>
761
762         PR fortran/34706
763         PR tree-optimization/34683
764         * trans-types.c (gfc_get_array_type_bounds): Use an array type
765         with known size for accesses if that is known.
766
767 2008-01-08  Paul Thomas  <pault@gcc.gnu.org>
768
769         PR fortran/34476
770         * expr.c (find_array_element): Check that the array bounds are
771         constant before using them.  Use lower, as well as upper bound.
772         (check_restricted): Allow implied index variable.
773
774 2008-01-08  Paul Thomas  <pault@gcc.gnu.org>
775
776         PR fortran/34681
777         * trans_array.c (gfc_trans_deferred_array): Do not null the
778         data pointer on entering scope, nor deallocate it on leaving
779         scope, if the symbol has the 'save' attribute.
780
781         PR fortran/34704
782         * trans_decl.c (gfc_finish_var_decl): Derived types with
783         allocatable components and an initializer must be TREE_STATIC.
784
785 2008-01-07  Paul Thomas  <pault@gcc.gnu.org>
786
787         PR fortran/34672
788         * module.c (write_generic): Rewrite completely.
789         (write_module): Change call to write_generic.
790
791 2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
792
793         PR fortran/34659
794         * scanner.c (load_line): Do not count ' ' as printable when checking for
795         continuations.
796
797 2008-01-06  Paul Thomas  <pault@gcc.gnu.org>
798
799         PR fortran/34545
800         * module.c (load_needed): If the namespace has no proc_name
801         give it the module symbol.
802
803 2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
804
805         PR fortran/34387
806         * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
807         the dummy variable expression, test for NULL, and pass the variable
808         address to the called function.
809
810 2007-01-06  Tobias Burnus  <burnus@net-b.de>
811
812         PR fortran/34658
813         * match.c (gfc_match_common): Remove blank common in
814         DATA BLOCK warning.
815         * resolve.c (resolve_common_vars): New function.
816         (resolve_common_blocks): Move checks to resolve_common_vars
817         and invoke that function.
818         (resolve_types): Call resolve_common_vars for blank commons.
819
820 2008-01-06  Tobias Burnus  <burnus@net-b.de>
821
822         PR fortran/34655
823         * resolve.c (resolve_equivalence_derived): Reject derived types with
824         default initialization if equivalenced with COMMON variable.
825
826 2008-01-06  Tobias Burnus  <burnus@net-b.de>
827
828         PR fortran/34654
829         * io.c (check_io_constraints): Disallow unformatted I/O for
830         internal units.
831
832 2008-01-06  Tobias Burnus  <burnus@net-b.de>
833
834         PR fortran/34660
835         * resolve.c (resolve_formal_arglist): Reject dummy procedure in
836         ELEMENTAL functions.
837
838 2008-01-06  Tobias Burnus  <burnus@net-b.de>
839
840         PR fortran/34662
841         * interface.c (compare_actual_formal): Reject parameter
842         actual to intent(out) dummy.
843
844 2008-01-04  Tobias Burnus  <burnus@net-b.de>
845
846         PR fortran/34557
847         * primary.c (match_varspec): Gobble whitespace before
848         checking for '('.