1 2008-04-06 Tobias Schlüter <tobi@gcc.gnu.org>
4 * io.c (io_tag): Add field 'value'. Split 'spec' field in
6 (match_etag, match_vtag, match_ltag): Split parsing in two steps
7 to give better error messages.
9 2008-04-06 Tobias Burnus <burnus@net-b.de>
11 * io.c (check_io_constraints): Add constrains. ID= requires
12 asynchronous= and asynchronous= must be init expression.
14 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16 * f95-lang.c: Set LANG_HOOKS_NAME to "GNU Fortran".
18 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
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
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
31 (gfc_handle_option): Rename verbose into dump_parse_tree.
32 * parse.c (gfc_parse_file): Use gfc_dump_parse_tree.
34 2008-04-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
35 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
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.
73 2008-04-03 Jakub Jelinek <jakub@redhat.com>
76 * openmp.c (resolve_omp_clauses): Diagnose if a clause symbol
79 2008-04-03 Tom Tromey <tromey@redhat.com>
81 * Make-lang.in (fortran_OBJS): New variable.
83 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
85 * f95-lang.c (insert_block): Kill.
87 2008-04-01 George Helffrich <george@gcc.gnu.org>
89 * trans-common.c (create_common): Add decl to function
90 chain to preserve identifier scope in debug output.
92 2008-04-01 Joseph Myers <joseph@codesourcery.com>
94 * gfortran.texi: Include gpl_v3.texi instead of gpl.texi
95 * Make-lang.in (GFORTRAN_TEXI): Include gpl_v3.texi instead of
98 2008-03-30 Paul Thomas <pault@gcc.gnu.org>
101 * resolve.c (resolve_function, resolve_call): If the procedure
102 is elemental do not look for noncopying intrinsics.
104 2008-03-29 Paul Thomas <pault@gcc.gnu.org>
107 * trans-array.c (gfc_array_init_size): Set 'size' zero if
108 negative in one dimension.
111 * trans-expr.c (gfc_trans_string_copy): Only assign a char
112 directly if the lhs and rhs types are the same.
114 2008-03-28 Daniel Franke <franke.daniel@gmail.com>
115 Paul Richard Thomas <paul.richard.thomas@gmail.com>
118 * primary.c (match_variable): Improved matching of function
120 * resolve.c (resolve_allocate_deallocate): Removed checks if
121 the actual argument for STAT is a variable.
123 2008-03-28 Tobias Burnus <burnus@net-b.de>
125 * symbol.c (gfc_get_default_type): Fix error message; option
126 -fallow_leading_underscore should be -fallow-leading-underscore
128 2008-03-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
131 * iresolve.c (gfc_resolve_cshift): Check for NULL symtree in test for
132 optional argument attribute.
134 2008-03-27 Tom Tromey <tromey@redhat.com>
136 * Make-lang.in: Revert automatic dependency patch.
138 2008-03-25 Tom Tromey <tromey@redhat.com>
140 * Make-lang.in: Remove .o targets.
141 (fortran_OBJS): New variable.
142 (fortran/gfortranspec.o): Move to fortran/. Reduce to variable
144 (GFORTRAN_D_OBJS): Update.
145 (GFORTRAN_TRANS_DEPS): Remove.
147 2008-03-24 Paul Thomas <pault@gcc.gnu.org>
150 * resolve.c (resolve_structure_cons): It is an error to assign
151 NULL to anything other than a pointer or allocatable component.
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.
159 2008-03-23 Tobias Schlüter <tobi@gcc.gnu.org>
161 * trans.h: Use fold_build in build1_v, build2_v and build3_v
163 * trans-openmp.c (gfc_trans_omp_critical, gfc_trans_omp_single):
164 Don't use build2_v macro.
166 2008-03-19 Daniel Franke <franke.daniel@gmail.com>
169 * interface.c (gfc_procedure_use): Check for keyworded arguments in
170 procedures without explicit interfaces.
172 2008-03-16 Paul Thomas <pault@gcc.gnu.org>
175 * resolve.c (check_assumed_size_reference): Only visit the
176 first reference and look directly at the highest dimension.
178 2008-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
181 * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
184 2008-03-15 Daniel Franke <franke.daniel@gmail.com>
187 * resolve.c (resolve_branch): Less strict and pessimistic warning
190 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
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.
196 2008-03-09 Paul Thomas <pault@gcc.gnu.org>
199 * module.c (mio_symtree_ref): After providing a symbol for a
200 missing equivalence member, resolve and NULL the fixups.
202 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
204 * invoke.texi (Error and Warning Options): Document
207 2008-03-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
210 * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
211 checking bounds of absent optional arguments.
213 2008-03-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
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
222 * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
224 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
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.
252 2008-03-02 Jakub Jelinek <jakub@redhat.com>
254 * gfortranspec.c (lang_specific_driver): Update copyright notice
257 2008-02-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
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
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.
269 2008-02-28 Daniel Franke <franke.daniel@gmail.com>
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
282 2008-02-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
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.
290 2008-02-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
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
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
314 (gfc_conv_intrinsic_function): Use the new functions above.
316 2008-02-26 Tobias Burnus <burnus@net-b.de>
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
324 2008-02-26 Tom Tromey <tromey@redhat.com>
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.
342 2008-02-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
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.
357 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
359 * arith.c: Update copyright years.
367 * dependency.c: Likewise.
368 * dependency.h: Likewise.
369 * dump-parse-tree.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.
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.
390 * matchexp.c: Likewise.
392 * module.c: Likewise.
393 * openmp.c: Likewise.
394 * options.c: Likewise.
397 * primary.c: Likewise.
398 * resolve.c: Likewise.
399 * scanner.c: Likewise.
400 * simplify.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.
412 2008-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
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.
421 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
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
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):
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.
480 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
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.
489 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
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
497 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
500 * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
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.
534 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
536 * gfc-internals.texi: Fix typos and markup nits.
537 * gfortran.texi: Likewise.
538 * intrinsic.texi: Likewise.
540 2008-02-21 Richard Guenther <rguenther@suse.de>
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.
546 2008-02-20 Tobias Burnus <burnus@net-b.de>
549 * match.c (gfc_match_name): Improve error message for '$'.
551 2008-02-19 Daniel Franke <franke.daniel@gmail.com>
554 * expr.c (gfc_check_pointer_assign): Add type and kind information
555 to type-mismatch message.
556 (gfc_check_assign): Unify error messages.
558 2008-02-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
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.
565 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
567 * intrinsic.texi: Rename INDEX node to avoid clashing with
568 index.html on case-insensitive systems.
570 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
573 * trans-expr.c (gfc_conv_function_call): Force evaluation of
576 2008-02-10 Daniel Franke <franke.daniel@gmail.com>
579 * lang.opt: Allow '-J<dir>' next to '-J <dir>',
580 likewise '-I <dir>' and '-I<dir>'.
582 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
585 * Make-lang.in (f951): Add $(GMPLIBS).
587 2008-02-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
590 * trans-common.c (build_field): Mark fields as volatile when needed.
592 2008-02-05 Tobias Burnus <burnus@net-b.de>
595 * data.c (gfc_assign_data_value): Only free "size" if
596 it has not already been freed.
598 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
601 * array.c (match_array_element_spec): Remove check for negative
603 (gfc_resolve_array_spec): Add check for negative size.
605 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
608 * data.c (gfc_assign_data_value): Add bounds check for array
611 2008-02-04 Daniel Franke <franke.daniel@gmail.com>
613 * resolve.c (resolve_where): Fix typo.
614 (gfc_resolve_where_code_in_forall): Likewise.
616 2008-02-03 Paul Thomas <pault@gcc.gnu.org>
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.
626 2008-01-31 Paul Thomas <pault@gcc.gnu.org>
629 * expr.c (gfc_check_assign): It is an error to assign
630 to a sibling procedure.
632 2008-01-30 Paul Thomas <pault@gcc.gnu.org>
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.
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.
653 2008-01-28 Tobias Burnus <burnus@net-b.de>
656 * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
658 2008-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
661 * array.c (gfc_check_constructor_type): Revert clearing the expression.
663 2008-01-26 Tobias Burnus <burnus@net-b.de>
666 * trans-expr.c (gfc_conv_function_call): Don't call
667 gfc_add_interface_mapping if the expression is NULL.
669 2008-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
672 * trans-array.c (gfc_trans_create_temp_array): Remove call to
673 gcc_assert (integer_zerop (loop->from[n])).
675 2008-01-25 Daniel Franke <franke.daniel@gmail.com>
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.
682 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
686 * gfortran.h: Revert changes from 2008-01-17.
688 * symbol.c: Likewise.
689 (gfc_undo_symbols): Undo namespace changes related to common blocks.
691 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
694 * data.c (formalize_structure_cons): Skip formalization on
697 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
699 * gfortran.texi (OpenMP): Extended existing documentation.
700 (contributors): Added major contributors of 2008 that were
702 (proposed extensions): Removed implemented items.
704 2008-01-24 Paul Thomas <pault@gcc.gnu.org>
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.
711 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
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.
718 2008-01-22 Tobias Burnus <burnus@net-b.de>
721 * interface.c (compare_actual_formal): Fix adding type
722 to missing_arg_type for absent optional arguments.
724 2008-01-22 Tobias Burnus <burnus@net-b.de>
727 * parse.c (parse_spec): Change = into ==.
729 2008-01-22 Daniel Franke <franke.daniel@gmail.com>
732 * expr.c (check_elemental): Fix check for valid data types.
734 2008-01-22 Tobias Burnus <burnus@net-b.de>
737 * scanner.c (load_line): Support <tab><digit> continuation lines.
738 * invoke.texi (-Wtabs): Document this.
740 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
743 * module.c (read_module): Set use_rename attribute.
745 2007-01-21 Tobias Burnus <burnus@net-b.de>
748 * interface.c (compare_parameter): Improved error message
749 for arguments of same type and mismatched kinds.
751 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
754 * resolve.c (resolve_entries): Do not do an array bounds check
755 if the result symbols are the same.
758 * module.c (read_module) : Hide the symtree of the previous
759 version of the symbol if this symbol is renamed.
761 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
764 * array.c (gfc_check_constructor_type): Clear the expression ts
765 so that the checking starts from the deepest level of array
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.
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
775 (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
778 2008-01-19 Thomas Koenig <tkoenig@gcc.gnu.org>
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.
786 2008-01-19 Tobias Burnus <burnus@net-b.de>
789 * primary.c (match_variable): Handle FL_UNKNOWN without
791 (match_variable): Improve error message.
793 2008-01-18 Tobias Burnus <burnus@net-b.de>
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.
802 2008-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
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.
809 2008-01-17 H.J. Lu <hongjiu.lu@intel.com>
812 * symbol.c (free_common_tree): Renamed to ...
813 (gfc_free_common_tree): This. Remove static.
814 (gfc_free_namespace): Updated.
816 * gfortran.h (gfc_free_common_tree): New.
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.
822 2008-01-18 Richard Sandiford <rsandifo@nildram.co.uk>
825 * trans-expr.c (gfc_conv_function_call): Use proper
826 type for returned character pointers.
828 2008-01-17 Paul Thomas <pault@gcc.gnu.org>
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
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.
856 2008-01-16 Tobias Burnus <burnus@net-b.de>
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.
864 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
866 * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
867 for flag_tree_parallelize_loops.
869 2008-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
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.
877 2008-01-13 Tobias Burnus <burnus@net-b.de>
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.
887 2008-01-13 Tobias Burnus <burnus@net-b.de>
890 * decl.c (contained_procedure): Only check directly preceeding state.
892 2008-01-13 Tobias Burnus <burnus@net-b.de>
895 * check.c (gfc_check_shape): Accept array ranges of
898 2008-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
901 * match.c (gfc_match_name): Don't error if leading character is a '(',
902 just return MATCH_NO.
904 2008-01-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
907 * trans-io.c (create_dummy_iostat): Commit the symbol.
909 2008-01-11 Paul Thomas <pault@gcc.gnu.org>
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.
916 2008-01-10 Paul Thomas <pault@gcc.gnu.org>
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.
925 2008-01-08 Richard Guenther <rguenther@suse.de>
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.
932 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
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.
939 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
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.
947 * trans_decl.c (gfc_finish_var_decl): Derived types with
948 allocatable components and an initializer must be TREE_STATIC.
950 2008-01-07 Paul Thomas <pault@gcc.gnu.org>
953 * module.c (write_generic): Rewrite completely.
954 (write_module): Change call to write_generic.
956 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
959 * scanner.c (load_line): Do not count ' ' as printable when checking for
962 2008-01-06 Paul Thomas <pault@gcc.gnu.org>
965 * module.c (load_needed): If the namespace has no proc_name
966 give it the module symbol.
968 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
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.
975 2007-01-06 Tobias Burnus <burnus@net-b.de>
978 * match.c (gfc_match_common): Remove blank common in
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.
985 2008-01-06 Tobias Burnus <burnus@net-b.de>
988 * resolve.c (resolve_equivalence_derived): Reject derived types with
989 default initialization if equivalenced with COMMON variable.
991 2008-01-06 Tobias Burnus <burnus@net-b.de>
994 * io.c (check_io_constraints): Disallow unformatted I/O for
997 2008-01-06 Tobias Burnus <burnus@net-b.de>
1000 * resolve.c (resolve_formal_arglist): Reject dummy procedure in
1001 ELEMENTAL functions.
1003 2008-01-06 Tobias Burnus <burnus@net-b.de>
1006 * interface.c (compare_actual_formal): Reject parameter
1007 actual to intent(out) dummy.
1009 2008-01-04 Tobias Burnus <burnus@net-b.de>
1012 * primary.c (match_varspec): Gobble whitespace before