OSDN Git Service

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