OSDN Git Service

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