1 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
3 * trans-expr.c (gfc_conv_structure): Don't set TREE_INVARIANT.
4 * trans-array.c (gfc_build_null_descriptor): Don't set TREE_INVARIANT.
5 (gfc_trans_array_constructor_value): Don't set TREE_INVARIANT.
6 (gfc_build_constant_array_constructor): Don't set TREE_INVARIANT.
7 (gfc_conv_array_initializer): Don't set TREE_INVARIANT.
8 * trans-common.c (get_init_field): Don't set TREE_INVARIANT.
9 (create_common): Don't set TREE_INVARIANT.
10 * trans-stmt.c (gfc_trans_character_select): Don't set TREE_INVARIANT.
11 * trans-decl.c (gfc_generate_function_code): Don't set TREE_INVARIANT.
13 2008-04-21 Steve Ellcey <sje@cup.hp.com>
15 * f95-lang.c (gfc_init_decl_processing): use ptr_mode instead of Pmode.
17 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
20 * gfortranspec.c (lookup_option): Properly handle separated arguments
21 in -J option, print missing argument message when necessary.
23 2008-04-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
26 * scanner.c (skip_fixed_comments): Update continue_line when comment is
27 detected. (gfc_next_char_literal): Likewise.
29 2008-04-19 Paul Thomas <pault@gcc.gnu.org>
34 * trans_array.c (gfc_trans_array_constructor): Temporarily
35 realign loop, if loop->from is not zero, before creating
36 the temporary array and provide an offset.
39 * trans-decl.c (gfc_init_default_dt): Add gfc_ prefix to name
40 and allow for NULL body. Change all references from
41 init_default_dt to gfc_init_default_dt.
42 * trans.h : Add prototype for gfc_init_default_dt.
43 * trans-array.c (gfc_trans_deferred_vars): After nullification
44 call gfc_init_default_dt for derived types with allocatable
47 2008-04-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
50 * trans-common.c (create_common): Revert patch causing regression.
52 2008-04-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
55 * iresolve.c (gfc_resolve_eoshift): Check for NULL symtree in test for
56 optional argument attribute.
58 2008-04-16 Paul Thomas <pault@gcc.gnu.org>
61 * trans-intrinsic.c (gfc_conv_intrinsic_char): Even though KIND
62 is not used, the argument must be converted.
64 2008-04-16 Jakub Jelinek <jakub@redhat.com>
67 * f95-lang.c (gfc_init_builtin_functions): Make sure
68 BUILT_IN_SINCOS{,F,L} types aren't varargs.
70 2008-04-15 Paul Thomas <pault@gcc.gnu.org>
73 * expr.c (scalarize_intrinsic_call): Reorder identification of
74 array argument so that if one is not found a segfault does not
75 occur. Return FAILURE if all scalar arguments.
77 2008-04-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
78 Tobias Burnus <burnus@net-b.de>
81 * options.c (gfc_init_options): Set the default maximum continuation
82 lines to 255 for both free and fixed form source for warnings.
83 (gfc_handle_option): Set -std=f95 fixed form max continuations to 19 and
84 the -std=f95 free form max continuations to 39 for warnings.
85 * scanner.c (gfc_next_char_literal): Adjust the current_line number only
86 if it is less than the current locus.
88 2008-04-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
90 PR fortran/25829 28655
91 * io.c (io_tag): Add new tags for decimal, encoding, asynchronous,
92 round, sign, and id. (match_open_element): Match new tags.
93 (gfc_resolve_open): Resolve new tags. (gfc_match_open): Enable encoding
94 for DEFAULT only. Update error messages. (match_dt_element): Fix match
95 tag for asynchronous. Update error messages. (gfc_free_inquire): Free
96 new expressions. (match_inquire_element): Match new tags.
97 (gfc_match_inquire): Add constraint for ID and PENDING.
98 (gfc_resolve_inquire): Resolve new tags.
99 * trans-io.c (gfc_trans_inquire): Clean up whitespace and fix setting of
100 mask for ID parameter.
101 * ioparm.def: Fix order of parameters for pending, round, and sign.
102 NOTE: These must line up with the definitions in libgfortran/io/io.h. or
105 2008-04-06 Paul Thomas <pault@gcc.gnu.org>
108 * expr.c (scalarize_intrinsic_call): Identify which argument is
109 an array and use that as the template.
110 (check_init_expr): Remove tests that first argument is an array
111 in the call to scalarize_intrinsic_call.
113 2008-04-06 Tobias Schlüter <tobi@gcc.gnu.org>
116 * io.c (io_tag): Add field 'value'. Split 'spec' field in
118 (match_etag, match_vtag, match_ltag): Split parsing in two steps
119 to give better error messages.
121 2008-04-06 Tobias Burnus <burnus@net-b.de>
123 * io.c (check_io_constraints): Add constrains. ID= requires
124 asynchronous= and asynchronous= must be init expression.
126 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
128 * f95-lang.c: Set LANG_HOOKS_NAME to "GNU Fortran".
130 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
132 * dump-parse-tree.c: Use fprintf, fputs and fputc instead of
133 gfc_status and gfc_status_char. Remove gfc_ prefix of the gfc_show_*
134 functions and make them static. Add new gfc_dump_parse_tree
136 * gfortran.h (gfc_option_t): Rename verbose into dump_parse_tree.
137 (gfc_status, gfc_status_char): Delete prototypes.
138 * error.c (gfc_status, gfc_status_char): Remove functions.
139 * scanner.c (gfc_new_file): Use printf instead of gfc_status.
140 * options.c (gfc_init_options): Rename verbose into dump_parse_tree.
141 (gfc_handle_module_path_options): Use gfc_fatal_error instead of
143 (gfc_handle_option): Rename verbose into dump_parse_tree.
144 * parse.c (gfc_parse_file): Use gfc_dump_parse_tree.
146 2008-04-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
147 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
149 PR fortran/25829 28655
150 * dump-parse-tree.c (gfc_show_code_node): Show new I/O parameters.
151 * gfortran.h (gfc_statement): Add ST_WAIT enumerator.
152 (gfc_open): Add pointers for decimal, encoding, round, sign,
153 asynchronous. (gfc_inquire): Add pointers for asynchronous, decimal,
154 encoding, pending, round, sign, size, id.
155 (gfc_wait): New typedef struct. (gfc_dt): Add pointers for id, pos,
156 asynchronous, blank, decimal, delim, pad, round, sign.
157 (gfc_exec_op): Add EXEC_WAIT enumerator. (gfc_code): Add pointer for
158 wait. (gfc_free_wait), (gfc_resolve_wait): New function prototypes.
159 * trans-stmt.h (gfc_trans_wait): New function prototype.
160 * trans.c (gfc_trans_code): Add case for EXEC_WAIT.
161 * io.c (io_tag): Add new tags for DECIMAL, ENCODING, ROUND, SIGN,
162 ASYCHRONOUS, ID. (match_open_element): Add matchers for new tags.
163 (gfc_free_open): Free new pointers. (gfc_resolve_open): Resolve new
164 tags. (gfc_resolve_open): Remove comment around check for allowed
165 values and ASYNCHRONOUS, update it. Likewise for DECIMAL, ENCODING,
166 ROUND, and SIGN. (match_dt_element): Add matching for new tags.
167 (gfc_free_wait): New function. (gfc_resolve_wait): New function.
168 (match_wait_element): New function. (gfc_match_wait): New function.
169 * resolve.c (gfc_resolve_blocks): Add case for EXEC_WAIT.
170 (resolve_code): Add case for EXEC_WAIT.
171 * st.c (gfc_free_statement): Add case for EXEC_WAIT.
172 * trans-io.c (ioparam_type): Add IOPARM_ptype_wait. (gfc_st_parameter):
173 Add "wait" entry. (iocall): Add IOCALL_WAIT enumerator.
174 (gfc_build_io_library_fndecls): Add function declaration for st_wait.
175 (gfc_trans_open): Add mask bits for new I/O tags.
176 (gfc_trans_inquire): Add mask bits for new I/O tags.
177 (gfc_trans_wait): New translation function.
178 (build_dt): Add mask bits for new I/O tags.
179 * match.c (gfc_match_if) Add matcher for "wait".
180 * match.h (gfc_match_wait): Prototype for new function.
181 * ioparm.def: Add new I/O parameter definitions.
182 * parse.c (decode_statement): Add match for "wait" statement.
183 (next_statement): Add case for ST_WAIT. (gfc_ascii_statement): Same.
185 2008-04-03 Jakub Jelinek <jakub@redhat.com>
188 * openmp.c (resolve_omp_clauses): Diagnose if a clause symbol
191 2008-04-03 Tom Tromey <tromey@redhat.com>
193 * Make-lang.in (fortran_OBJS): New variable.
195 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
197 * f95-lang.c (insert_block): Kill.
199 2008-04-01 George Helffrich <george@gcc.gnu.org>
201 * trans-common.c (create_common): Add decl to function
202 chain to preserve identifier scope in debug output.
204 2008-04-01 Joseph Myers <joseph@codesourcery.com>
206 * gfortran.texi: Include gpl_v3.texi instead of gpl.texi
207 * Make-lang.in (GFORTRAN_TEXI): Include gpl_v3.texi instead of
210 2008-03-30 Paul Thomas <pault@gcc.gnu.org>
213 * resolve.c (resolve_function, resolve_call): If the procedure
214 is elemental do not look for noncopying intrinsics.
216 2008-03-29 Paul Thomas <pault@gcc.gnu.org>
219 * trans-array.c (gfc_array_init_size): Set 'size' zero if
220 negative in one dimension.
223 * trans-expr.c (gfc_trans_string_copy): Only assign a char
224 directly if the lhs and rhs types are the same.
226 2008-03-28 Daniel Franke <franke.daniel@gmail.com>
227 Paul Richard Thomas <paul.richard.thomas@gmail.com>
230 * primary.c (match_variable): Improved matching of function
232 * resolve.c (resolve_allocate_deallocate): Removed checks if
233 the actual argument for STAT is a variable.
235 2008-03-28 Tobias Burnus <burnus@net-b.de>
237 * symbol.c (gfc_get_default_type): Fix error message; option
238 -fallow_leading_underscore should be -fallow-leading-underscore
240 2008-03-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
243 * iresolve.c (gfc_resolve_cshift): Check for NULL symtree in test for
244 optional argument attribute.
246 2008-03-27 Tom Tromey <tromey@redhat.com>
248 * Make-lang.in: Revert automatic dependency patch.
250 2008-03-25 Tom Tromey <tromey@redhat.com>
252 * Make-lang.in: Remove .o targets.
253 (fortran_OBJS): New variable.
254 (fortran/gfortranspec.o): Move to fortran/. Reduce to variable
256 (GFORTRAN_D_OBJS): Update.
257 (GFORTRAN_TRANS_DEPS): Remove.
259 2008-03-24 Paul Thomas <pault@gcc.gnu.org>
262 * resolve.c (resolve_structure_cons): It is an error to assign
263 NULL to anything other than a pointer or allocatable component.
266 * resolve.c (resolve_symbol): If the symbol is a derived type,
267 resolve the derived type. If the symbol is a derived type
268 function, ensure that the derived type is visible in the same
269 namespace as the function.
271 2008-03-23 Tobias Schlüter <tobi@gcc.gnu.org>
273 * trans.h: Use fold_build in build1_v, build2_v and build3_v
275 * trans-openmp.c (gfc_trans_omp_critical, gfc_trans_omp_single):
276 Don't use build2_v macro.
278 2008-03-19 Daniel Franke <franke.daniel@gmail.com>
281 * interface.c (gfc_procedure_use): Check for keyworded arguments in
282 procedures without explicit interfaces.
284 2008-03-16 Paul Thomas <pault@gcc.gnu.org>
287 * resolve.c (check_assumed_size_reference): Only visit the
288 first reference and look directly at the highest dimension.
290 2008-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
293 * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
296 2008-03-15 Daniel Franke <franke.daniel@gmail.com>
299 * resolve.c (resolve_branch): Less strict and pessimistic warning
302 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
304 * f95-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
305 (gfc_be_parse_file): Call clear_binding_stack from here.
306 (gfc_clear_binding_stack): Rename to clear_binding_stack.
308 2008-03-09 Paul Thomas <pault@gcc.gnu.org>
311 * module.c (mio_symtree_ref): After providing a symbol for a
312 missing equivalence member, resolve and NULL the fixups.
314 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
316 * invoke.texi (Error and Warning Options): Document
319 2008-03-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
322 * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
323 checking bounds of absent optional arguments.
325 2008-03-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
328 * intrinsic.c (add_functions): Add simplification routines for
329 ERF, DERF, ERFC and DERFC.
330 * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
331 extensions into Fortran 2008 features.
332 * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
334 * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
336 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
339 * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
340 ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
341 ERFC_SCALED, LOG_GAMMA and HYPOT.
342 * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
343 gfc_resolve_hypot): New prototypes.
344 * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
345 ACOSH, ASINH and ATANH available.
346 * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
347 * lang.opt: Add -std=f2008 option.
348 * libgfortran.h: Define GFC_STD_F2008.
349 * lang-specs.h: Add .f08 and .F08 file suffixes.
350 * iresolve.c (gfc_resolve_hypot): New function.
351 * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
352 * check.c (gfc_check_hypot): New function.
353 * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
354 * options.c (set_default_std_flags): Allow Fortran 2008 by default.
355 (form_from_filename): Add .f08 suffix.
356 (gfc_handle_option): Handle -std=f2008 option.
357 * simplify.c (gfc_simplify_hypot): New function.
358 * gfortran.texi: Document Fortran 2008 status and file extensions.
359 * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
360 as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
361 ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
362 * invoke.texi: Document the new -std=f2008 option.
364 2008-03-02 Jakub Jelinek <jakub@redhat.com>
366 * gfortranspec.c (lang_specific_driver): Update copyright notice
369 2008-02-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
372 * expr.c (find_array_element): Modify traversing the constructor to
373 avoid trying to access NULL memory pointed to by next for the
374 last element. (find_array_section): Exit while loop if cons->next is
376 * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
377 (gfc_conv_function_call): Same.
378 * decl.c (gfc_match_implicit): Same.
379 * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
381 2008-02-28 Daniel Franke <franke.daniel@gmail.com>
386 * lang.opt: Added -Wreturn-type.
387 * options.c (gfc_handle_option): Recognize -Wreturn-type.
388 * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
389 where the result value is not set.
390 (gfc_generate_function_code): Likewise.
391 (generate_local_decl): Emit warnings for funtions whose RESULT
394 2008-02-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
397 * trans-expr.c (gfc_conv_variable): Don't build indirect
398 references when explicit interface is mandated.
399 * resolve.c (resolve_formal_arglist): Set attr.always_explicit
400 on the result symbol as well as the procedure symbol.
402 2008-02-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
405 * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
406 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
407 gfor_fndecl_math_exponent16.
408 * f95-lang.c (build_builtin_fntypes): Add new function types.
409 (gfc_init_builtin_functions): Add new builtins for nextafter,
410 frexp, ldexp, fabs, scalbn and inf.
411 * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
412 (gfc_resolve_scale): Don't convert type of second argument.
413 (gfc_resolve_set_exponent): Likewise.
414 (gfc_resolve_size): Don't add hidden arguments.
415 * trans-decl.c: Remove gfor_fndecl_math_exponent4,
416 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
417 gfor_fndecl_math_exponent16.
418 * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
419 for scalbn, fraction, nearest, rrspacing, set_exponent and
421 (gfc_conv_intrinsic_exponent): Directly call frexp.
422 (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
423 gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
424 gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
426 (gfc_conv_intrinsic_function): Use the new functions above.
428 2008-02-26 Tobias Burnus <burnus@net-b.de>
431 * interface.c (check_operator_interface): Show better line for error
432 messages; fix constrains for user-defined assignment operators.
433 (gfc_extend_assign): Fix constrains for user-defined assignment
436 2008-02-26 Tom Tromey <tromey@redhat.com>
438 * trans-io.c (set_error_locus): Remove old location code.
439 * trans-decl.c (gfc_set_decl_location): Remove old location code.
440 * f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
441 * scanner.c (gfc_gobble_whitespace): Remove old location code.
442 (get_file): Likewise.
443 (preprocessor_line): Likewise.
444 (load_file): Likewise.
445 (gfc_new_file): Likewise.
446 * trans.c (gfc_trans_runtime_check): Remove old location code.
447 (gfc_get_backend_locus): Likewise.
448 (gfc_set_backend_locus): Likewise.
449 * data.c (gfc_assign_data_value): Remove old location code.
450 * error.c (show_locus): Remove old location code.
451 * gfortran.h (gfc_linebuf): Remove old location code.
452 (gfc_linebuf_linenum): Remove old-location variant.
454 2008-02-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
457 * trans-const.c (gfc_build_string_const): Don't call gettext.
458 (gfc_build_localized_string_const): New function.
459 * trans-const.h (gfc_build_localized_string_const): New prototype.
460 * trans.c (gfc_trans_runtime_check): Use
461 gfc_build_localized_string_const instead of gfc_build_string_const.
462 (gfc_call_malloc): Likewise.
463 (gfc_allocate_with_status): Likewise.
464 (gfc_allocate_array_with_status): Likewise.
465 (gfc_deallocate_with_status): Likewise.
466 (gfc_call_realloc): Likewise.
467 * trans-io.c (gfc_trans_io_runtime_check): Likewise.
469 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
471 * arith.c: Update copyright years.
479 * dependency.c: Likewise.
480 * dependency.h: Likewise.
481 * dump-parse-tree.c: Likewise.
484 * gfc-internals.texi: Likewise.
485 * gfortran.h: Likewise.
486 * gfortran.texi: Likewise.
487 * gfortranspec.c: Likewise.
488 * interface.c: Likewise.
489 * intrinsic.c: Likewise.
490 * intrinsic.h: Likewise.
491 * intrinsic.texi: Likewise.
492 * invoke.texi: Likewise.
494 * iresolve.c: Likewise.
495 * iso-c-binding.def: Likewise.
496 * iso-fortran-env.def: Likewise.
497 * lang-specs.h: Likewise.
498 * lang.opt: Likewise.
499 * libgfortran.h: Likewise.
502 * matchexp.c: Likewise.
504 * module.c: Likewise.
505 * openmp.c: Likewise.
506 * options.c: Likewise.
509 * primary.c: Likewise.
510 * resolve.c: Likewise.
511 * scanner.c: Likewise.
512 * simplify.c: Likewise.
514 * symbol.c: Likewise.
515 * target-memory.c: Likewise.
516 * target-memory.h: Likewise.
517 * trans-array.h: Likewise.
518 * trans-const.h: Likewise.
519 * trans-stmt.h: Likewise.
520 * trans-types.c: Likewise.
521 * trans-types.h: Likewise.
522 * types.def: Likewise.
524 2008-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
527 * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
528 (gfc_simplify_ibset): Remove call to range_check.
529 (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
530 (gfc_simplify_real): Add call gfc_clear_ts to initialize the
531 temporary gfc_typspec variable.
533 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
535 * trans-array.c (gfc_conv_descriptor_data_get,
536 gfc_conv_descriptor_data_set_internal,
537 gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
538 gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
539 gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
540 gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
541 gfc_conv_array_transpose, gfc_grow_array,
542 gfc_trans_array_constructor_subarray,
543 gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
544 gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
545 gfc_conv_array_initializer, gfc_trans_array_bounds,
546 gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
547 gfc_get_dataptr_offset, gfc_conv_array_parameter,
548 gfc_trans_dealloc_allocated, get_full_array_size,
549 gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
551 * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
552 gfc_conv_component_ref, gfc_conv_cst_int_power,
553 gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
554 * trans-common.c (create_common): Likewise.
555 * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
557 * trans-const.c (gfc_conv_constant_to_tree): Likewise.
558 * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
559 gfc_trans_integer_select, gfc_trans_character_select,
560 gfc_trans_forall_loop, compute_overall_iter_number,
561 gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
562 gfc_trans_deallocate): Likewise.
563 * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
564 gfc_allocate_with_status, gfc_allocate_array_with_status,
565 gfc_deallocate_with_status): Likewise.
566 * f95-lang.c (gfc_truthvalue_conversion): Likewise.
567 * trans-io.c (set_parameter_const, set_parameter_value,
568 set_parameter_ref, set_string, set_internal_unit, io_result,
569 set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
570 * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
571 gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
572 gfc_generate_function_code): Likewise.
573 * convert.c (convert): Likewise.
574 * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
575 build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
576 gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
577 gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
578 gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
579 gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
580 gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
581 gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
582 gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
583 gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
584 gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
585 gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
586 gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
587 gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
588 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
589 gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
590 gfc_conv_intrinsic_repeat): Likewise.
592 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
595 * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
596 * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
597 * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
598 gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
599 * trans-decl.c: Likewise.
601 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
604 * expr.c (find_array_element): Modify traversing the constructor to
605 avoid trying to access NULL memory pointed to by next for the
606 last element. (find_array_section): Exit while loop if cons->next is
609 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
612 * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
614 (gfc_resolve_aint): Likewise.
615 (gfc_resolve_anint): Likewise.
616 (gfc_resolve_besn): Likewise.
617 (gfc_resolve_cshift): Likewise.
618 (gfc_resolve_ctime): Likewise.
619 (gfc_resolve_eoshift): Likewise.
620 (gfc_resolve_index_func): Likewise.
621 (gfc_resolve_isatty): Likewise.
622 (gfc_resolve_malloc): Likewise.
623 (gfc_resolve_rrspacing): Likewise.
624 (gfc_resolve_scale): Likewise.
625 (gfc_resolve_set_exponent): Likewise.
626 (gfc_resolve_spacing): Likewise.
627 (gfc_resolve_spacing): Likewise.
628 (gfc_resolve_fgetc): Likewise.
629 (gfc_resolve_fputc): Likewise.
630 (gfc_resolve_ftell): Likewise.
631 (gfc_resolve_ttynam): Likewise.
632 (gfc_resolve_alarm_sub): Likewise.
633 (gfc_resolve_mvbits): Likewise.
634 (gfc_resolve_getarg): Likewise.
635 (gfc_resolve_signal_sub): Likewise.
636 (gfc_resolve_exit): Likewise.
637 (gfc_resolve_flush): Likewise.
638 (gfc_resolve_free): Likewise.
639 (gfc_resolve_ctime_sub): Likewise.
640 (gfc_resolve_fgetc_sub): Likewise.
641 (gfc_resolve_fputc_sub): Likewise.
642 (gfc_resolve_fseek_sub): Likewise.
643 (gfc_resolve_ftell_sub): Likewise.
644 (gfc_resolve_ttynam_sub): Likewise.
646 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
648 * gfc-internals.texi: Fix typos and markup nits.
649 * gfortran.texi: Likewise.
650 * intrinsic.texi: Likewise.
652 2008-02-21 Richard Guenther <rguenther@suse.de>
654 * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
655 as unary PAREN_EXPR for real and complex typed expressions.
656 (gfc_conv_unary_op): Fold the built tree.
658 2008-02-20 Tobias Burnus <burnus@net-b.de>
661 * match.c (gfc_match_name): Improve error message for '$'.
663 2008-02-19 Daniel Franke <franke.daniel@gmail.com>
666 * expr.c (gfc_check_pointer_assign): Add type and kind information
667 to type-mismatch message.
668 (gfc_check_assign): Unify error messages.
670 2008-02-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
673 * gfortran.texi: Create new section for unimplemented extensions.
674 Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
675 Remove "smaller projects" list. Fix a few typos.
677 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
679 * intrinsic.texi: Rename INDEX node to avoid clashing with
680 index.html on case-insensitive systems.
682 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
685 * trans-expr.c (gfc_conv_function_call): Force evaluation of
688 2008-02-10 Daniel Franke <franke.daniel@gmail.com>
691 * lang.opt: Allow '-J<dir>' next to '-J <dir>',
692 likewise '-I <dir>' and '-I<dir>'.
694 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
697 * Make-lang.in (f951): Add $(GMPLIBS).
699 2008-02-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
702 * trans-common.c (build_field): Mark fields as volatile when needed.
704 2008-02-05 Tobias Burnus <burnus@net-b.de>
707 * data.c (gfc_assign_data_value): Only free "size" if
708 it has not already been freed.
710 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
713 * array.c (match_array_element_spec): Remove check for negative
715 (gfc_resolve_array_spec): Add check for negative size.
717 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
720 * data.c (gfc_assign_data_value): Add bounds check for array
723 2008-02-04 Daniel Franke <franke.daniel@gmail.com>
725 * resolve.c (resolve_where): Fix typo.
726 (gfc_resolve_where_code_in_forall): Likewise.
728 2008-02-03 Paul Thomas <pault@gcc.gnu.org>
731 * resolve.c (resolve_allocate_deallocate): New function.
732 (resolve_code): Call it for allocate and deallocate.
733 * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
734 the checking of the STAT tag and put in above new function.
735 * primary,c (match_variable): Do not fix flavor of host
736 associated symbols yet if the type is not known.
738 2008-01-31 Paul Thomas <pault@gcc.gnu.org>
741 * expr.c (gfc_check_assign): It is an error to assign
742 to a sibling procedure.
744 2008-01-30 Paul Thomas <pault@gcc.gnu.org>
747 * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
748 delete_symtree to gfc_delete_symtree.
749 * gfortran.h : Add prototype for gfc_delete_symtree.
750 * module.c (load_generic_interfaces): Transfer symbol to a
751 unique symtree and delete old symtree, instead of renaming.
752 (read_module): The rsym and the found symbol are the same, so
753 the found symtree can be deleted.
756 * decl.c (match_char_spec): Remove the constraint on deferred
757 matching of functions and free the length expression.
758 delete_symtree to gfc_delete_symtree.
759 (gfc_match_type_spec): Whitespace.
760 (gfc_match_function_decl): Defer characteristic association for
761 all types except BT_UNKNOWN.
762 * parse.c (decode_specification_statement): Only derived type
763 function matching is delayed to the end of specification.
765 2008-01-28 Tobias Burnus <burnus@net-b.de>
768 * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
770 2008-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
773 * array.c (gfc_check_constructor_type): Revert clearing the expression.
775 2008-01-26 Tobias Burnus <burnus@net-b.de>
778 * trans-expr.c (gfc_conv_function_call): Don't call
779 gfc_add_interface_mapping if the expression is NULL.
781 2008-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
784 * trans-array.c (gfc_trans_create_temp_array): Remove call to
785 gcc_assert (integer_zerop (loop->from[n])).
787 2008-01-25 Daniel Franke <franke.daniel@gmail.com>
790 * resolve.c (resolve_where): Added check if user-defined assignment
791 operator is an elemental subroutine.
792 (gfc_resolve_where_code_in_forall): Likewise.
794 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
798 * gfortran.h: Revert changes from 2008-01-17.
800 * symbol.c: Likewise.
801 (gfc_undo_symbols): Undo namespace changes related to common blocks.
803 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
806 * data.c (formalize_structure_cons): Skip formalization on
809 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
811 * gfortran.texi (OpenMP): Extended existing documentation.
812 (contributors): Added major contributors of 2008 that were
814 (proposed extensions): Removed implemented items.
816 2008-01-24 Paul Thomas <pault@gcc.gnu.org>
819 * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS is
820 seen, check for a statement label and, if present, delete it
821 and set the locus to the start of the statement.
823 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
826 * trans-io.c (gfc_trans_transfer): If the array reference in a
827 read has a vector subscript, use gfc_conv_subref_array_arg to
828 copy back the temporary.
830 2008-01-22 Tobias Burnus <burnus@net-b.de>
833 * interface.c (compare_actual_formal): Fix adding type
834 to missing_arg_type for absent optional arguments.
836 2008-01-22 Tobias Burnus <burnus@net-b.de>
839 * parse.c (parse_spec): Change = into ==.
841 2008-01-22 Daniel Franke <franke.daniel@gmail.com>
844 * expr.c (check_elemental): Fix check for valid data types.
846 2008-01-22 Tobias Burnus <burnus@net-b.de>
849 * scanner.c (load_line): Support <tab><digit> continuation lines.
850 * invoke.texi (-Wtabs): Document this.
852 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
855 * module.c (read_module): Set use_rename attribute.
857 2007-01-21 Tobias Burnus <burnus@net-b.de>
860 * interface.c (compare_parameter): Improved error message
861 for arguments of same type and mismatched kinds.
863 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
866 * resolve.c (resolve_entries): Do not do an array bounds check
867 if the result symbols are the same.
870 * module.c (read_module) : Hide the symtree of the previous
871 version of the symbol if this symbol is renamed.
873 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
876 * array.c (gfc_check_constructor_type): Clear the expression ts
877 so that the checking starts from the deepest level of array
879 * primary.c (match_varspec): If an unknown type is changed to
880 default character and the attempt to match a substring fails,
881 change it back to unknown.
884 * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
885 NULL for an array constructor, use the cl.length expression to
887 (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
890 2008-01-19 Thomas Koenig <tkoenig@gcc.gnu.org>
894 * iresolve.c (gfc_resolve_all): Remove conversion of mask
895 argument to kind=1 by removing call to resolve_mask_arg().
896 (gfc_resolve_any): Likewise.
898 2008-01-19 Tobias Burnus <burnus@net-b.de>
901 * primary.c (match_variable): Handle FL_UNKNOWN without
903 (match_variable): Improve error message.
905 2008-01-18 Tobias Burnus <burnus@net-b.de>
908 * interface.c (get_expr_storage_size): Return storage size
909 for array element designators.
910 (compare_actual_formal): Reject unequal string sizes for
911 assumed-shape dummy arguments. And fix error message for
912 array-sections with vector subscripts.
914 2008-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
917 * simplify.c (is_constant_array_expr): New static function that returns
918 true if the given expression is an array and is constant.
919 (gfc_simplify_reshape): Use new function.
921 2008-01-17 H.J. Lu <hongjiu.lu@intel.com>
924 * symbol.c (free_common_tree): Renamed to ...
925 (gfc_free_common_tree): This. Remove static.
926 (gfc_free_namespace): Updated.
928 * gfortran.h (gfc_free_common_tree): New.
930 * match.c (gfc_match_common): Call gfc_free_common_tree () with
931 gfc_current_ns->common_root and set gfc_current_ns->common_root
932 to NULL on syntax error.
934 2008-01-18 Richard Sandiford <rsandifo@nildram.co.uk>
937 * trans-expr.c (gfc_conv_function_call): Use proper
938 type for returned character pointers.
940 2008-01-17 Paul Thomas <pault@gcc.gnu.org>
945 * decl.c : Remove gfc_function_kind_locus and
946 gfc_function_type_locus. Add gfc_matching_function.
947 (match_char_length): If matching a function and the length
948 does not match, return MATCH_YES and try again later.
949 (gfc_match_kind_spec): The same.
950 (match_char_kind): The same.
951 (gfc_match_type_spec): The same for numeric and derived types.
952 (match_prefix): Rename as gfc_match_prefix.
953 (gfc_match_function_decl): Except for function valued character
954 lengths, defer applying kind, type and charlen info until the
955 end of specification block.
956 gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
957 parse.c (decode_specification_statement): New function.
958 (decode_statement): Call it when a function has kind = -1. Set
959 and reset gfc_matching function, as function statement is being
961 (match_deferred_characteristics): Simplify with a single call
962 to gfc_match_prefix. Do appropriate error handling. In any
963 case, make sure that kind = -1 is reset or corrected.
964 (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
965 Throw an error if kind = -1 after last specification statement.
966 parse.h : Prototype for gfc_match_prefix.
968 2008-01-16 Tobias Burnus <burnus@net-b.de>
971 * interface.c (compare_parameter): Allow AS_DEFERRED array
972 elements and reject attr.pointer array elemenents.
973 (get_expr_storage_size): Return storage size of elements of
974 assumed-shape and pointer arrays.
976 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
978 * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
979 for flag_tree_parallelize_loops.
981 2008-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
984 * iresolve.c (gfc_resolve_all): Call resolve_mask_arg.
985 (gfc_resolve_any): Likewise.
986 (gfc_resolve_count): Likewise. Don't append kind of
987 argument to function name.
989 2008-01-13 Tobias Burnus <burnus@net-b.de>
992 * resolve.c (resolve_actual_arglist): For expressions,
993 also check for assume-sized arrays.
994 * interface.c (compare_parameter): Move F2003 character checks
995 here, print error messages here, reject elements of
996 assumed-shape array as argument to dummy arrays.
997 (compare_actual_formal): Update for the changes above.
999 2008-01-13 Tobias Burnus <burnus@net-b.de>
1002 * decl.c (contained_procedure): Only check directly preceeding state.
1004 2008-01-13 Tobias Burnus <burnus@net-b.de>
1007 * check.c (gfc_check_shape): Accept array ranges of
1008 assumed-size arrays.
1010 2008-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1013 * match.c (gfc_match_name): Don't error if leading character is a '(',
1014 just return MATCH_NO.
1016 2008-01-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1019 * trans-io.c (create_dummy_iostat): Commit the symbol.
1021 2008-01-11 Paul Thomas <pault@gcc.gnu.org>
1024 * simplify.c (gfc_simplify_transfer): Return NULL if the size
1025 of the element is unavailable and only assign character length
1026 to the result, if 'mold' is constant.
1028 2008-01-10 Paul Thomas <pault@gcc.gnu.org>
1031 * trans-array.c (gfc_trans_array_ctor_element): Use gfc_trans_string_copy
1032 to assign strings and perform bounds checks on the string length.
1033 (get_array_ctor_strlen): Remove bounds checking.
1034 (gfc_trans_array_constructor): Initialize string length checking.
1035 * trans-array.h : Add prototype for gfc_trans_string_copy.
1037 2008-01-08 Richard Guenther <rguenther@suse.de>
1040 PR tree-optimization/34683
1041 * trans-types.c (gfc_get_array_type_bounds): Use an array type
1042 with known size for accesses if that is known.
1044 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1047 * expr.c (find_array_element): Check that the array bounds are
1048 constant before using them. Use lower, as well as upper bound.
1049 (check_restricted): Allow implied index variable.
1051 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1054 * trans_array.c (gfc_trans_deferred_array): Do not null the
1055 data pointer on entering scope, nor deallocate it on leaving
1056 scope, if the symbol has the 'save' attribute.
1059 * trans_decl.c (gfc_finish_var_decl): Derived types with
1060 allocatable components and an initializer must be TREE_STATIC.
1062 2008-01-07 Paul Thomas <pault@gcc.gnu.org>
1065 * module.c (write_generic): Rewrite completely.
1066 (write_module): Change call to write_generic.
1068 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1071 * scanner.c (load_line): Do not count ' ' as printable when checking for
1074 2008-01-06 Paul Thomas <pault@gcc.gnu.org>
1077 * module.c (load_needed): If the namespace has no proc_name
1078 give it the module symbol.
1080 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1083 * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
1084 the dummy variable expression, test for NULL, and pass the variable
1085 address to the called function.
1087 2007-01-06 Tobias Burnus <burnus@net-b.de>
1090 * match.c (gfc_match_common): Remove blank common in
1092 * resolve.c (resolve_common_vars): New function.
1093 (resolve_common_blocks): Move checks to resolve_common_vars
1094 and invoke that function.
1095 (resolve_types): Call resolve_common_vars for blank commons.
1097 2008-01-06 Tobias Burnus <burnus@net-b.de>
1100 * resolve.c (resolve_equivalence_derived): Reject derived types with
1101 default initialization if equivalenced with COMMON variable.
1103 2008-01-06 Tobias Burnus <burnus@net-b.de>
1106 * io.c (check_io_constraints): Disallow unformatted I/O for
1109 2008-01-06 Tobias Burnus <burnus@net-b.de>
1112 * resolve.c (resolve_formal_arglist): Reject dummy procedure in
1113 ELEMENTAL functions.
1115 2008-01-06 Tobias Burnus <burnus@net-b.de>
1118 * interface.c (compare_actual_formal): Reject parameter
1119 actual to intent(out) dummy.
1121 2008-01-04 Tobias Burnus <burnus@net-b.de>
1124 * primary.c (match_varspec): Gobble whitespace before