OSDN Git Service

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