1 2008-04-21 Steve Ellcey <sje@cup.hp.com>
3 * f95-lang.c (gfc_init_decl_processing): use ptr_mode instead of Pmode.
5 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
8 * gfortranspec.c (lookup_option): Properly handle separated arguments
9 in -J option, print missing argument message when necessary.
11 2008-04-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
14 * scanner.c (skip_fixed_comments): Update continue_line when comment is
15 detected. (gfc_next_char_literal): Likewise.
17 2008-04-19 Paul Thomas <pault@gcc.gnu.org>
22 * trans_array.c (gfc_trans_array_constructor): Temporarily
23 realign loop, if loop->from is not zero, before creating
24 the temporary array and provide an offset.
27 * trans-decl.c (gfc_init_default_dt): Add gfc_ prefix to name
28 and allow for NULL body. Change all references from
29 init_default_dt to gfc_init_default_dt.
30 * trans.h : Add prototype for gfc_init_default_dt.
31 * trans-array.c (gfc_trans_deferred_vars): After nullification
32 call gfc_init_default_dt for derived types with allocatable
35 2008-04-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
38 * trans-common.c (create_common): Revert patch causing regression.
40 2008-04-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
43 * iresolve.c (gfc_resolve_eoshift): Check for NULL symtree in test for
44 optional argument attribute.
46 2008-04-16 Paul Thomas <pault@gcc.gnu.org>
49 * trans-intrinsic.c (gfc_conv_intrinsic_char): Even though KIND
50 is not used, the argument must be converted.
52 2008-04-16 Jakub Jelinek <jakub@redhat.com>
55 * f95-lang.c (gfc_init_builtin_functions): Make sure
56 BUILT_IN_SINCOS{,F,L} types aren't varargs.
58 2008-04-15 Paul Thomas <pault@gcc.gnu.org>
61 * expr.c (scalarize_intrinsic_call): Reorder identification of
62 array argument so that if one is not found a segfault does not
63 occur. Return FAILURE if all scalar arguments.
65 2008-04-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
66 Tobias Burnus <burnus@net-b.de>
69 * options.c (gfc_init_options): Set the default maximum continuation
70 lines to 255 for both free and fixed form source for warnings.
71 (gfc_handle_option): Set -std=f95 fixed form max continuations to 19 and
72 the -std=f95 free form max continuations to 39 for warnings.
73 * scanner.c (gfc_next_char_literal): Adjust the current_line number only
74 if it is less than the current locus.
76 2008-04-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
78 PR fortran/25829 28655
79 * io.c (io_tag): Add new tags for decimal, encoding, asynchronous,
80 round, sign, and id. (match_open_element): Match new tags.
81 (gfc_resolve_open): Resolve new tags. (gfc_match_open): Enable encoding
82 for DEFAULT only. Update error messages. (match_dt_element): Fix match
83 tag for asynchronous. Update error messages. (gfc_free_inquire): Free
84 new expressions. (match_inquire_element): Match new tags.
85 (gfc_match_inquire): Add constraint for ID and PENDING.
86 (gfc_resolve_inquire): Resolve new tags.
87 * trans-io.c (gfc_trans_inquire): Clean up whitespace and fix setting of
88 mask for ID parameter.
89 * ioparm.def: Fix order of parameters for pending, round, and sign.
90 NOTE: These must line up with the definitions in libgfortran/io/io.h. or
93 2008-04-06 Paul Thomas <pault@gcc.gnu.org>
96 * expr.c (scalarize_intrinsic_call): Identify which argument is
97 an array and use that as the template.
98 (check_init_expr): Remove tests that first argument is an array
99 in the call to scalarize_intrinsic_call.
101 2008-04-06 Tobias Schlüter <tobi@gcc.gnu.org>
104 * io.c (io_tag): Add field 'value'. Split 'spec' field in
106 (match_etag, match_vtag, match_ltag): Split parsing in two steps
107 to give better error messages.
109 2008-04-06 Tobias Burnus <burnus@net-b.de>
111 * io.c (check_io_constraints): Add constrains. ID= requires
112 asynchronous= and asynchronous= must be init expression.
114 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
116 * f95-lang.c: Set LANG_HOOKS_NAME to "GNU Fortran".
118 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
120 * dump-parse-tree.c: Use fprintf, fputs and fputc instead of
121 gfc_status and gfc_status_char. Remove gfc_ prefix of the gfc_show_*
122 functions and make them static. Add new gfc_dump_parse_tree
124 * gfortran.h (gfc_option_t): Rename verbose into dump_parse_tree.
125 (gfc_status, gfc_status_char): Delete prototypes.
126 * error.c (gfc_status, gfc_status_char): Remove functions.
127 * scanner.c (gfc_new_file): Use printf instead of gfc_status.
128 * options.c (gfc_init_options): Rename verbose into dump_parse_tree.
129 (gfc_handle_module_path_options): Use gfc_fatal_error instead of
131 (gfc_handle_option): Rename verbose into dump_parse_tree.
132 * parse.c (gfc_parse_file): Use gfc_dump_parse_tree.
134 2008-04-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
135 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
137 PR fortran/25829 28655
138 * dump-parse-tree.c (gfc_show_code_node): Show new I/O parameters.
139 * gfortran.h (gfc_statement): Add ST_WAIT enumerator.
140 (gfc_open): Add pointers for decimal, encoding, round, sign,
141 asynchronous. (gfc_inquire): Add pointers for asynchronous, decimal,
142 encoding, pending, round, sign, size, id.
143 (gfc_wait): New typedef struct. (gfc_dt): Add pointers for id, pos,
144 asynchronous, blank, decimal, delim, pad, round, sign.
145 (gfc_exec_op): Add EXEC_WAIT enumerator. (gfc_code): Add pointer for
146 wait. (gfc_free_wait), (gfc_resolve_wait): New function prototypes.
147 * trans-stmt.h (gfc_trans_wait): New function prototype.
148 * trans.c (gfc_trans_code): Add case for EXEC_WAIT.
149 * io.c (io_tag): Add new tags for DECIMAL, ENCODING, ROUND, SIGN,
150 ASYCHRONOUS, ID. (match_open_element): Add matchers for new tags.
151 (gfc_free_open): Free new pointers. (gfc_resolve_open): Resolve new
152 tags. (gfc_resolve_open): Remove comment around check for allowed
153 values and ASYNCHRONOUS, update it. Likewise for DECIMAL, ENCODING,
154 ROUND, and SIGN. (match_dt_element): Add matching for new tags.
155 (gfc_free_wait): New function. (gfc_resolve_wait): New function.
156 (match_wait_element): New function. (gfc_match_wait): New function.
157 * resolve.c (gfc_resolve_blocks): Add case for EXEC_WAIT.
158 (resolve_code): Add case for EXEC_WAIT.
159 * st.c (gfc_free_statement): Add case for EXEC_WAIT.
160 * trans-io.c (ioparam_type): Add IOPARM_ptype_wait. (gfc_st_parameter):
161 Add "wait" entry. (iocall): Add IOCALL_WAIT enumerator.
162 (gfc_build_io_library_fndecls): Add function declaration for st_wait.
163 (gfc_trans_open): Add mask bits for new I/O tags.
164 (gfc_trans_inquire): Add mask bits for new I/O tags.
165 (gfc_trans_wait): New translation function.
166 (build_dt): Add mask bits for new I/O tags.
167 * match.c (gfc_match_if) Add matcher for "wait".
168 * match.h (gfc_match_wait): Prototype for new function.
169 * ioparm.def: Add new I/O parameter definitions.
170 * parse.c (decode_statement): Add match for "wait" statement.
171 (next_statement): Add case for ST_WAIT. (gfc_ascii_statement): Same.
173 2008-04-03 Jakub Jelinek <jakub@redhat.com>
176 * openmp.c (resolve_omp_clauses): Diagnose if a clause symbol
179 2008-04-03 Tom Tromey <tromey@redhat.com>
181 * Make-lang.in (fortran_OBJS): New variable.
183 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
185 * f95-lang.c (insert_block): Kill.
187 2008-04-01 George Helffrich <george@gcc.gnu.org>
189 * trans-common.c (create_common): Add decl to function
190 chain to preserve identifier scope in debug output.
192 2008-04-01 Joseph Myers <joseph@codesourcery.com>
194 * gfortran.texi: Include gpl_v3.texi instead of gpl.texi
195 * Make-lang.in (GFORTRAN_TEXI): Include gpl_v3.texi instead of
198 2008-03-30 Paul Thomas <pault@gcc.gnu.org>
201 * resolve.c (resolve_function, resolve_call): If the procedure
202 is elemental do not look for noncopying intrinsics.
204 2008-03-29 Paul Thomas <pault@gcc.gnu.org>
207 * trans-array.c (gfc_array_init_size): Set 'size' zero if
208 negative in one dimension.
211 * trans-expr.c (gfc_trans_string_copy): Only assign a char
212 directly if the lhs and rhs types are the same.
214 2008-03-28 Daniel Franke <franke.daniel@gmail.com>
215 Paul Richard Thomas <paul.richard.thomas@gmail.com>
218 * primary.c (match_variable): Improved matching of function
220 * resolve.c (resolve_allocate_deallocate): Removed checks if
221 the actual argument for STAT is a variable.
223 2008-03-28 Tobias Burnus <burnus@net-b.de>
225 * symbol.c (gfc_get_default_type): Fix error message; option
226 -fallow_leading_underscore should be -fallow-leading-underscore
228 2008-03-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
231 * iresolve.c (gfc_resolve_cshift): Check for NULL symtree in test for
232 optional argument attribute.
234 2008-03-27 Tom Tromey <tromey@redhat.com>
236 * Make-lang.in: Revert automatic dependency patch.
238 2008-03-25 Tom Tromey <tromey@redhat.com>
240 * Make-lang.in: Remove .o targets.
241 (fortran_OBJS): New variable.
242 (fortran/gfortranspec.o): Move to fortran/. Reduce to variable
244 (GFORTRAN_D_OBJS): Update.
245 (GFORTRAN_TRANS_DEPS): Remove.
247 2008-03-24 Paul Thomas <pault@gcc.gnu.org>
250 * resolve.c (resolve_structure_cons): It is an error to assign
251 NULL to anything other than a pointer or allocatable component.
254 * resolve.c (resolve_symbol): If the symbol is a derived type,
255 resolve the derived type. If the symbol is a derived type
256 function, ensure that the derived type is visible in the same
257 namespace as the function.
259 2008-03-23 Tobias Schlüter <tobi@gcc.gnu.org>
261 * trans.h: Use fold_build in build1_v, build2_v and build3_v
263 * trans-openmp.c (gfc_trans_omp_critical, gfc_trans_omp_single):
264 Don't use build2_v macro.
266 2008-03-19 Daniel Franke <franke.daniel@gmail.com>
269 * interface.c (gfc_procedure_use): Check for keyworded arguments in
270 procedures without explicit interfaces.
272 2008-03-16 Paul Thomas <pault@gcc.gnu.org>
275 * resolve.c (check_assumed_size_reference): Only visit the
276 first reference and look directly at the highest dimension.
278 2008-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
281 * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
284 2008-03-15 Daniel Franke <franke.daniel@gmail.com>
287 * resolve.c (resolve_branch): Less strict and pessimistic warning
290 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
292 * f95-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
293 (gfc_be_parse_file): Call clear_binding_stack from here.
294 (gfc_clear_binding_stack): Rename to clear_binding_stack.
296 2008-03-09 Paul Thomas <pault@gcc.gnu.org>
299 * module.c (mio_symtree_ref): After providing a symbol for a
300 missing equivalence member, resolve and NULL the fixups.
302 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
304 * invoke.texi (Error and Warning Options): Document
307 2008-03-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
310 * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
311 checking bounds of absent optional arguments.
313 2008-03-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
316 * intrinsic.c (add_functions): Add simplification routines for
317 ERF, DERF, ERFC and DERFC.
318 * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
319 extensions into Fortran 2008 features.
320 * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
322 * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
324 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
327 * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
328 ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
329 ERFC_SCALED, LOG_GAMMA and HYPOT.
330 * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
331 gfc_resolve_hypot): New prototypes.
332 * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
333 ACOSH, ASINH and ATANH available.
334 * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
335 * lang.opt: Add -std=f2008 option.
336 * libgfortran.h: Define GFC_STD_F2008.
337 * lang-specs.h: Add .f08 and .F08 file suffixes.
338 * iresolve.c (gfc_resolve_hypot): New function.
339 * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
340 * check.c (gfc_check_hypot): New function.
341 * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
342 * options.c (set_default_std_flags): Allow Fortran 2008 by default.
343 (form_from_filename): Add .f08 suffix.
344 (gfc_handle_option): Handle -std=f2008 option.
345 * simplify.c (gfc_simplify_hypot): New function.
346 * gfortran.texi: Document Fortran 2008 status and file extensions.
347 * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
348 as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
349 ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
350 * invoke.texi: Document the new -std=f2008 option.
352 2008-03-02 Jakub Jelinek <jakub@redhat.com>
354 * gfortranspec.c (lang_specific_driver): Update copyright notice
357 2008-02-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
360 * expr.c (find_array_element): Modify traversing the constructor to
361 avoid trying to access NULL memory pointed to by next for the
362 last element. (find_array_section): Exit while loop if cons->next is
364 * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
365 (gfc_conv_function_call): Same.
366 * decl.c (gfc_match_implicit): Same.
367 * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
369 2008-02-28 Daniel Franke <franke.daniel@gmail.com>
374 * lang.opt: Added -Wreturn-type.
375 * options.c (gfc_handle_option): Recognize -Wreturn-type.
376 * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
377 where the result value is not set.
378 (gfc_generate_function_code): Likewise.
379 (generate_local_decl): Emit warnings for funtions whose RESULT
382 2008-02-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
385 * trans-expr.c (gfc_conv_variable): Don't build indirect
386 references when explicit interface is mandated.
387 * resolve.c (resolve_formal_arglist): Set attr.always_explicit
388 on the result symbol as well as the procedure symbol.
390 2008-02-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
393 * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
394 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
395 gfor_fndecl_math_exponent16.
396 * f95-lang.c (build_builtin_fntypes): Add new function types.
397 (gfc_init_builtin_functions): Add new builtins for nextafter,
398 frexp, ldexp, fabs, scalbn and inf.
399 * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
400 (gfc_resolve_scale): Don't convert type of second argument.
401 (gfc_resolve_set_exponent): Likewise.
402 (gfc_resolve_size): Don't add hidden arguments.
403 * trans-decl.c: Remove gfor_fndecl_math_exponent4,
404 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
405 gfor_fndecl_math_exponent16.
406 * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
407 for scalbn, fraction, nearest, rrspacing, set_exponent and
409 (gfc_conv_intrinsic_exponent): Directly call frexp.
410 (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
411 gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
412 gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
414 (gfc_conv_intrinsic_function): Use the new functions above.
416 2008-02-26 Tobias Burnus <burnus@net-b.de>
419 * interface.c (check_operator_interface): Show better line for error
420 messages; fix constrains for user-defined assignment operators.
421 (gfc_extend_assign): Fix constrains for user-defined assignment
424 2008-02-26 Tom Tromey <tromey@redhat.com>
426 * trans-io.c (set_error_locus): Remove old location code.
427 * trans-decl.c (gfc_set_decl_location): Remove old location code.
428 * f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
429 * scanner.c (gfc_gobble_whitespace): Remove old location code.
430 (get_file): Likewise.
431 (preprocessor_line): Likewise.
432 (load_file): Likewise.
433 (gfc_new_file): Likewise.
434 * trans.c (gfc_trans_runtime_check): Remove old location code.
435 (gfc_get_backend_locus): Likewise.
436 (gfc_set_backend_locus): Likewise.
437 * data.c (gfc_assign_data_value): Remove old location code.
438 * error.c (show_locus): Remove old location code.
439 * gfortran.h (gfc_linebuf): Remove old location code.
440 (gfc_linebuf_linenum): Remove old-location variant.
442 2008-02-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
445 * trans-const.c (gfc_build_string_const): Don't call gettext.
446 (gfc_build_localized_string_const): New function.
447 * trans-const.h (gfc_build_localized_string_const): New prototype.
448 * trans.c (gfc_trans_runtime_check): Use
449 gfc_build_localized_string_const instead of gfc_build_string_const.
450 (gfc_call_malloc): Likewise.
451 (gfc_allocate_with_status): Likewise.
452 (gfc_allocate_array_with_status): Likewise.
453 (gfc_deallocate_with_status): Likewise.
454 (gfc_call_realloc): Likewise.
455 * trans-io.c (gfc_trans_io_runtime_check): Likewise.
457 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
459 * arith.c: Update copyright years.
467 * dependency.c: Likewise.
468 * dependency.h: Likewise.
469 * dump-parse-tree.c: Likewise.
472 * gfc-internals.texi: Likewise.
473 * gfortran.h: Likewise.
474 * gfortran.texi: Likewise.
475 * gfortranspec.c: Likewise.
476 * interface.c: Likewise.
477 * intrinsic.c: Likewise.
478 * intrinsic.h: Likewise.
479 * intrinsic.texi: Likewise.
480 * invoke.texi: Likewise.
482 * iresolve.c: Likewise.
483 * iso-c-binding.def: Likewise.
484 * iso-fortran-env.def: Likewise.
485 * lang-specs.h: Likewise.
486 * lang.opt: Likewise.
487 * libgfortran.h: Likewise.
490 * matchexp.c: Likewise.
492 * module.c: Likewise.
493 * openmp.c: Likewise.
494 * options.c: Likewise.
497 * primary.c: Likewise.
498 * resolve.c: Likewise.
499 * scanner.c: Likewise.
500 * simplify.c: Likewise.
502 * symbol.c: Likewise.
503 * target-memory.c: Likewise.
504 * target-memory.h: Likewise.
505 * trans-array.h: Likewise.
506 * trans-const.h: Likewise.
507 * trans-stmt.h: Likewise.
508 * trans-types.c: Likewise.
509 * trans-types.h: Likewise.
510 * types.def: Likewise.
512 2008-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
515 * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
516 (gfc_simplify_ibset): Remove call to range_check.
517 (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
518 (gfc_simplify_real): Add call gfc_clear_ts to initialize the
519 temporary gfc_typspec variable.
521 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
523 * trans-array.c (gfc_conv_descriptor_data_get,
524 gfc_conv_descriptor_data_set_internal,
525 gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
526 gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
527 gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
528 gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
529 gfc_conv_array_transpose, gfc_grow_array,
530 gfc_trans_array_constructor_subarray,
531 gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
532 gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
533 gfc_conv_array_initializer, gfc_trans_array_bounds,
534 gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
535 gfc_get_dataptr_offset, gfc_conv_array_parameter,
536 gfc_trans_dealloc_allocated, get_full_array_size,
537 gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
539 * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
540 gfc_conv_component_ref, gfc_conv_cst_int_power,
541 gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
542 * trans-common.c (create_common): Likewise.
543 * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
545 * trans-const.c (gfc_conv_constant_to_tree): Likewise.
546 * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
547 gfc_trans_integer_select, gfc_trans_character_select,
548 gfc_trans_forall_loop, compute_overall_iter_number,
549 gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
550 gfc_trans_deallocate): Likewise.
551 * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
552 gfc_allocate_with_status, gfc_allocate_array_with_status,
553 gfc_deallocate_with_status): Likewise.
554 * f95-lang.c (gfc_truthvalue_conversion): Likewise.
555 * trans-io.c (set_parameter_const, set_parameter_value,
556 set_parameter_ref, set_string, set_internal_unit, io_result,
557 set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
558 * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
559 gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
560 gfc_generate_function_code): Likewise.
561 * convert.c (convert): Likewise.
562 * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
563 build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
564 gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
565 gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
566 gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
567 gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
568 gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
569 gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
570 gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
571 gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
572 gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
573 gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
574 gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
575 gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
576 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
577 gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
578 gfc_conv_intrinsic_repeat): Likewise.
580 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
583 * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
584 * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
585 * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
586 gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
587 * trans-decl.c: Likewise.
589 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
592 * expr.c (find_array_element): Modify traversing the constructor to
593 avoid trying to access NULL memory pointed to by next for the
594 last element. (find_array_section): Exit while loop if cons->next is
597 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
600 * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
602 (gfc_resolve_aint): Likewise.
603 (gfc_resolve_anint): Likewise.
604 (gfc_resolve_besn): Likewise.
605 (gfc_resolve_cshift): Likewise.
606 (gfc_resolve_ctime): Likewise.
607 (gfc_resolve_eoshift): Likewise.
608 (gfc_resolve_index_func): Likewise.
609 (gfc_resolve_isatty): Likewise.
610 (gfc_resolve_malloc): Likewise.
611 (gfc_resolve_rrspacing): Likewise.
612 (gfc_resolve_scale): Likewise.
613 (gfc_resolve_set_exponent): Likewise.
614 (gfc_resolve_spacing): Likewise.
615 (gfc_resolve_spacing): Likewise.
616 (gfc_resolve_fgetc): Likewise.
617 (gfc_resolve_fputc): Likewise.
618 (gfc_resolve_ftell): Likewise.
619 (gfc_resolve_ttynam): Likewise.
620 (gfc_resolve_alarm_sub): Likewise.
621 (gfc_resolve_mvbits): Likewise.
622 (gfc_resolve_getarg): Likewise.
623 (gfc_resolve_signal_sub): Likewise.
624 (gfc_resolve_exit): Likewise.
625 (gfc_resolve_flush): Likewise.
626 (gfc_resolve_free): Likewise.
627 (gfc_resolve_ctime_sub): Likewise.
628 (gfc_resolve_fgetc_sub): Likewise.
629 (gfc_resolve_fputc_sub): Likewise.
630 (gfc_resolve_fseek_sub): Likewise.
631 (gfc_resolve_ftell_sub): Likewise.
632 (gfc_resolve_ttynam_sub): Likewise.
634 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
636 * gfc-internals.texi: Fix typos and markup nits.
637 * gfortran.texi: Likewise.
638 * intrinsic.texi: Likewise.
640 2008-02-21 Richard Guenther <rguenther@suse.de>
642 * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
643 as unary PAREN_EXPR for real and complex typed expressions.
644 (gfc_conv_unary_op): Fold the built tree.
646 2008-02-20 Tobias Burnus <burnus@net-b.de>
649 * match.c (gfc_match_name): Improve error message for '$'.
651 2008-02-19 Daniel Franke <franke.daniel@gmail.com>
654 * expr.c (gfc_check_pointer_assign): Add type and kind information
655 to type-mismatch message.
656 (gfc_check_assign): Unify error messages.
658 2008-02-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
661 * gfortran.texi: Create new section for unimplemented extensions.
662 Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
663 Remove "smaller projects" list. Fix a few typos.
665 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
667 * intrinsic.texi: Rename INDEX node to avoid clashing with
668 index.html on case-insensitive systems.
670 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
673 * trans-expr.c (gfc_conv_function_call): Force evaluation of
676 2008-02-10 Daniel Franke <franke.daniel@gmail.com>
679 * lang.opt: Allow '-J<dir>' next to '-J <dir>',
680 likewise '-I <dir>' and '-I<dir>'.
682 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
685 * Make-lang.in (f951): Add $(GMPLIBS).
687 2008-02-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
690 * trans-common.c (build_field): Mark fields as volatile when needed.
692 2008-02-05 Tobias Burnus <burnus@net-b.de>
695 * data.c (gfc_assign_data_value): Only free "size" if
696 it has not already been freed.
698 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
701 * array.c (match_array_element_spec): Remove check for negative
703 (gfc_resolve_array_spec): Add check for negative size.
705 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
708 * data.c (gfc_assign_data_value): Add bounds check for array
711 2008-02-04 Daniel Franke <franke.daniel@gmail.com>
713 * resolve.c (resolve_where): Fix typo.
714 (gfc_resolve_where_code_in_forall): Likewise.
716 2008-02-03 Paul Thomas <pault@gcc.gnu.org>
719 * resolve.c (resolve_allocate_deallocate): New function.
720 (resolve_code): Call it for allocate and deallocate.
721 * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
722 the checking of the STAT tag and put in above new function.
723 * primary,c (match_variable): Do not fix flavor of host
724 associated symbols yet if the type is not known.
726 2008-01-31 Paul Thomas <pault@gcc.gnu.org>
729 * expr.c (gfc_check_assign): It is an error to assign
730 to a sibling procedure.
732 2008-01-30 Paul Thomas <pault@gcc.gnu.org>
735 * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
736 delete_symtree to gfc_delete_symtree.
737 * gfortran.h : Add prototype for gfc_delete_symtree.
738 * module.c (load_generic_interfaces): Transfer symbol to a
739 unique symtree and delete old symtree, instead of renaming.
740 (read_module): The rsym and the found symbol are the same, so
741 the found symtree can be deleted.
744 * decl.c (match_char_spec): Remove the constraint on deferred
745 matching of functions and free the length expression.
746 delete_symtree to gfc_delete_symtree.
747 (gfc_match_type_spec): Whitespace.
748 (gfc_match_function_decl): Defer characteristic association for
749 all types except BT_UNKNOWN.
750 * parse.c (decode_specification_statement): Only derived type
751 function matching is delayed to the end of specification.
753 2008-01-28 Tobias Burnus <burnus@net-b.de>
756 * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
758 2008-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
761 * array.c (gfc_check_constructor_type): Revert clearing the expression.
763 2008-01-26 Tobias Burnus <burnus@net-b.de>
766 * trans-expr.c (gfc_conv_function_call): Don't call
767 gfc_add_interface_mapping if the expression is NULL.
769 2008-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
772 * trans-array.c (gfc_trans_create_temp_array): Remove call to
773 gcc_assert (integer_zerop (loop->from[n])).
775 2008-01-25 Daniel Franke <franke.daniel@gmail.com>
778 * resolve.c (resolve_where): Added check if user-defined assignment
779 operator is an elemental subroutine.
780 (gfc_resolve_where_code_in_forall): Likewise.
782 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
786 * gfortran.h: Revert changes from 2008-01-17.
788 * symbol.c: Likewise.
789 (gfc_undo_symbols): Undo namespace changes related to common blocks.
791 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
794 * data.c (formalize_structure_cons): Skip formalization on
797 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
799 * gfortran.texi (OpenMP): Extended existing documentation.
800 (contributors): Added major contributors of 2008 that were
802 (proposed extensions): Removed implemented items.
804 2008-01-24 Paul Thomas <pault@gcc.gnu.org>
807 * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS is
808 seen, check for a statement label and, if present, delete it
809 and set the locus to the start of the statement.
811 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
814 * trans-io.c (gfc_trans_transfer): If the array reference in a
815 read has a vector subscript, use gfc_conv_subref_array_arg to
816 copy back the temporary.
818 2008-01-22 Tobias Burnus <burnus@net-b.de>
821 * interface.c (compare_actual_formal): Fix adding type
822 to missing_arg_type for absent optional arguments.
824 2008-01-22 Tobias Burnus <burnus@net-b.de>
827 * parse.c (parse_spec): Change = into ==.
829 2008-01-22 Daniel Franke <franke.daniel@gmail.com>
832 * expr.c (check_elemental): Fix check for valid data types.
834 2008-01-22 Tobias Burnus <burnus@net-b.de>
837 * scanner.c (load_line): Support <tab><digit> continuation lines.
838 * invoke.texi (-Wtabs): Document this.
840 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
843 * module.c (read_module): Set use_rename attribute.
845 2007-01-21 Tobias Burnus <burnus@net-b.de>
848 * interface.c (compare_parameter): Improved error message
849 for arguments of same type and mismatched kinds.
851 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
854 * resolve.c (resolve_entries): Do not do an array bounds check
855 if the result symbols are the same.
858 * module.c (read_module) : Hide the symtree of the previous
859 version of the symbol if this symbol is renamed.
861 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
864 * array.c (gfc_check_constructor_type): Clear the expression ts
865 so that the checking starts from the deepest level of array
867 * primary.c (match_varspec): If an unknown type is changed to
868 default character and the attempt to match a substring fails,
869 change it back to unknown.
872 * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
873 NULL for an array constructor, use the cl.length expression to
875 (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
878 2008-01-19 Thomas Koenig <tkoenig@gcc.gnu.org>
882 * iresolve.c (gfc_resolve_all): Remove conversion of mask
883 argument to kind=1 by removing call to resolve_mask_arg().
884 (gfc_resolve_any): Likewise.
886 2008-01-19 Tobias Burnus <burnus@net-b.de>
889 * primary.c (match_variable): Handle FL_UNKNOWN without
891 (match_variable): Improve error message.
893 2008-01-18 Tobias Burnus <burnus@net-b.de>
896 * interface.c (get_expr_storage_size): Return storage size
897 for array element designators.
898 (compare_actual_formal): Reject unequal string sizes for
899 assumed-shape dummy arguments. And fix error message for
900 array-sections with vector subscripts.
902 2008-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
905 * simplify.c (is_constant_array_expr): New static function that returns
906 true if the given expression is an array and is constant.
907 (gfc_simplify_reshape): Use new function.
909 2008-01-17 H.J. Lu <hongjiu.lu@intel.com>
912 * symbol.c (free_common_tree): Renamed to ...
913 (gfc_free_common_tree): This. Remove static.
914 (gfc_free_namespace): Updated.
916 * gfortran.h (gfc_free_common_tree): New.
918 * match.c (gfc_match_common): Call gfc_free_common_tree () with
919 gfc_current_ns->common_root and set gfc_current_ns->common_root
920 to NULL on syntax error.
922 2008-01-18 Richard Sandiford <rsandifo@nildram.co.uk>
925 * trans-expr.c (gfc_conv_function_call): Use proper
926 type for returned character pointers.
928 2008-01-17 Paul Thomas <pault@gcc.gnu.org>
933 * decl.c : Remove gfc_function_kind_locus and
934 gfc_function_type_locus. Add gfc_matching_function.
935 (match_char_length): If matching a function and the length
936 does not match, return MATCH_YES and try again later.
937 (gfc_match_kind_spec): The same.
938 (match_char_kind): The same.
939 (gfc_match_type_spec): The same for numeric and derived types.
940 (match_prefix): Rename as gfc_match_prefix.
941 (gfc_match_function_decl): Except for function valued character
942 lengths, defer applying kind, type and charlen info until the
943 end of specification block.
944 gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
945 parse.c (decode_specification_statement): New function.
946 (decode_statement): Call it when a function has kind = -1. Set
947 and reset gfc_matching function, as function statement is being
949 (match_deferred_characteristics): Simplify with a single call
950 to gfc_match_prefix. Do appropriate error handling. In any
951 case, make sure that kind = -1 is reset or corrected.
952 (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
953 Throw an error if kind = -1 after last specification statement.
954 parse.h : Prototype for gfc_match_prefix.
956 2008-01-16 Tobias Burnus <burnus@net-b.de>
959 * interface.c (compare_parameter): Allow AS_DEFERRED array
960 elements and reject attr.pointer array elemenents.
961 (get_expr_storage_size): Return storage size of elements of
962 assumed-shape and pointer arrays.
964 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
966 * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
967 for flag_tree_parallelize_loops.
969 2008-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
972 * iresolve.c (gfc_resolve_all): Call resolve_mask_arg.
973 (gfc_resolve_any): Likewise.
974 (gfc_resolve_count): Likewise. Don't append kind of
975 argument to function name.
977 2008-01-13 Tobias Burnus <burnus@net-b.de>
980 * resolve.c (resolve_actual_arglist): For expressions,
981 also check for assume-sized arrays.
982 * interface.c (compare_parameter): Move F2003 character checks
983 here, print error messages here, reject elements of
984 assumed-shape array as argument to dummy arrays.
985 (compare_actual_formal): Update for the changes above.
987 2008-01-13 Tobias Burnus <burnus@net-b.de>
990 * decl.c (contained_procedure): Only check directly preceeding state.
992 2008-01-13 Tobias Burnus <burnus@net-b.de>
995 * check.c (gfc_check_shape): Accept array ranges of
998 2008-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1001 * match.c (gfc_match_name): Don't error if leading character is a '(',
1002 just return MATCH_NO.
1004 2008-01-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1007 * trans-io.c (create_dummy_iostat): Commit the symbol.
1009 2008-01-11 Paul Thomas <pault@gcc.gnu.org>
1012 * simplify.c (gfc_simplify_transfer): Return NULL if the size
1013 of the element is unavailable and only assign character length
1014 to the result, if 'mold' is constant.
1016 2008-01-10 Paul Thomas <pault@gcc.gnu.org>
1019 * trans-array.c (gfc_trans_array_ctor_element): Use gfc_trans_string_copy
1020 to assign strings and perform bounds checks on the string length.
1021 (get_array_ctor_strlen): Remove bounds checking.
1022 (gfc_trans_array_constructor): Initialize string length checking.
1023 * trans-array.h : Add prototype for gfc_trans_string_copy.
1025 2008-01-08 Richard Guenther <rguenther@suse.de>
1028 PR tree-optimization/34683
1029 * trans-types.c (gfc_get_array_type_bounds): Use an array type
1030 with known size for accesses if that is known.
1032 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1035 * expr.c (find_array_element): Check that the array bounds are
1036 constant before using them. Use lower, as well as upper bound.
1037 (check_restricted): Allow implied index variable.
1039 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1042 * trans_array.c (gfc_trans_deferred_array): Do not null the
1043 data pointer on entering scope, nor deallocate it on leaving
1044 scope, if the symbol has the 'save' attribute.
1047 * trans_decl.c (gfc_finish_var_decl): Derived types with
1048 allocatable components and an initializer must be TREE_STATIC.
1050 2008-01-07 Paul Thomas <pault@gcc.gnu.org>
1053 * module.c (write_generic): Rewrite completely.
1054 (write_module): Change call to write_generic.
1056 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1059 * scanner.c (load_line): Do not count ' ' as printable when checking for
1062 2008-01-06 Paul Thomas <pault@gcc.gnu.org>
1065 * module.c (load_needed): If the namespace has no proc_name
1066 give it the module symbol.
1068 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1071 * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
1072 the dummy variable expression, test for NULL, and pass the variable
1073 address to the called function.
1075 2007-01-06 Tobias Burnus <burnus@net-b.de>
1078 * match.c (gfc_match_common): Remove blank common in
1080 * resolve.c (resolve_common_vars): New function.
1081 (resolve_common_blocks): Move checks to resolve_common_vars
1082 and invoke that function.
1083 (resolve_types): Call resolve_common_vars for blank commons.
1085 2008-01-06 Tobias Burnus <burnus@net-b.de>
1088 * resolve.c (resolve_equivalence_derived): Reject derived types with
1089 default initialization if equivalenced with COMMON variable.
1091 2008-01-06 Tobias Burnus <burnus@net-b.de>
1094 * io.c (check_io_constraints): Disallow unformatted I/O for
1097 2008-01-06 Tobias Burnus <burnus@net-b.de>
1100 * resolve.c (resolve_formal_arglist): Reject dummy procedure in
1101 ELEMENTAL functions.
1103 2008-01-06 Tobias Burnus <burnus@net-b.de>
1106 * interface.c (compare_actual_formal): Reject parameter
1107 actual to intent(out) dummy.
1109 2008-01-04 Tobias Burnus <burnus@net-b.de>
1112 * primary.c (match_varspec): Gobble whitespace before