1 2008-04-26 George Helffrich <george@gcc.gnu.org>
5 * trans-common.c (create_common): Add decl to function
6 chain (if inside one) to preserve identifier scope in debug output.
8 2008-04-25 Jan Hubicka <jh@suse.cz>
10 * trans-decl.c (trans_function_start): Update.
12 2008-04-25 Tobias Burnus <burnus@net-b.de>
13 Daniel Franke <franke.daniel@gmail.com>
16 * gfortranspec.c (lang_specific_driver): Deprecate
17 -M option; fix ICE when "-M" is last argument and
19 * options.c (gfc_handle_module_path_options):
20 Use -J instead of -M in error messages.
21 * invoke.texi: Mark -M as depecated.
23 2008-04-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
27 * trans-instrinsic.c (gfc_conv_intrinsic_minmaxloc): Correctly adjust
30 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
32 * trans-expr.c (gfc_conv_structure): Don't set TREE_INVARIANT.
33 * trans-array.c (gfc_build_null_descriptor): Don't set TREE_INVARIANT.
34 (gfc_trans_array_constructor_value): Don't set TREE_INVARIANT.
35 (gfc_build_constant_array_constructor): Don't set TREE_INVARIANT.
36 (gfc_conv_array_initializer): Don't set TREE_INVARIANT.
37 * trans-common.c (get_init_field): Don't set TREE_INVARIANT.
38 (create_common): Don't set TREE_INVARIANT.
39 * trans-stmt.c (gfc_trans_character_select): Don't set TREE_INVARIANT.
40 * trans-decl.c (gfc_generate_function_code): Don't set TREE_INVARIANT.
42 2008-04-21 Steve Ellcey <sje@cup.hp.com>
44 * f95-lang.c (gfc_init_decl_processing): use ptr_mode instead of Pmode.
46 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
49 * gfortranspec.c (lookup_option): Properly handle separated arguments
50 in -J option, print missing argument message when necessary.
52 2008-04-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
55 * scanner.c (skip_fixed_comments): Update continue_line when comment is
56 detected. (gfc_next_char_literal): Likewise.
58 2008-04-19 Paul Thomas <pault@gcc.gnu.org>
63 * trans_array.c (gfc_trans_array_constructor): Temporarily
64 realign loop, if loop->from is not zero, before creating
65 the temporary array and provide an offset.
68 * trans-decl.c (gfc_init_default_dt): Add gfc_ prefix to name
69 and allow for NULL body. Change all references from
70 init_default_dt to gfc_init_default_dt.
71 * trans.h : Add prototype for gfc_init_default_dt.
72 * trans-array.c (gfc_trans_deferred_vars): After nullification
73 call gfc_init_default_dt for derived types with allocatable
76 2008-04-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
79 * trans-common.c (create_common): Revert patch causing regression.
81 2008-04-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
84 * iresolve.c (gfc_resolve_eoshift): Check for NULL symtree in test for
85 optional argument attribute.
87 2008-04-16 Paul Thomas <pault@gcc.gnu.org>
90 * trans-intrinsic.c (gfc_conv_intrinsic_char): Even though KIND
91 is not used, the argument must be converted.
93 2008-04-16 Jakub Jelinek <jakub@redhat.com>
96 * f95-lang.c (gfc_init_builtin_functions): Make sure
97 BUILT_IN_SINCOS{,F,L} types aren't varargs.
99 2008-04-15 Paul Thomas <pault@gcc.gnu.org>
102 * expr.c (scalarize_intrinsic_call): Reorder identification of
103 array argument so that if one is not found a segfault does not
104 occur. Return FAILURE if all scalar arguments.
106 2008-04-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
107 Tobias Burnus <burnus@net-b.de>
110 * options.c (gfc_init_options): Set the default maximum continuation
111 lines to 255 for both free and fixed form source for warnings.
112 (gfc_handle_option): Set -std=f95 fixed form max continuations to 19 and
113 the -std=f95 free form max continuations to 39 for warnings.
114 * scanner.c (gfc_next_char_literal): Adjust the current_line number only
115 if it is less than the current locus.
117 2008-04-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
119 PR fortran/25829 28655
120 * io.c (io_tag): Add new tags for decimal, encoding, asynchronous,
121 round, sign, and id. (match_open_element): Match new tags.
122 (gfc_resolve_open): Resolve new tags. (gfc_match_open): Enable encoding
123 for DEFAULT only. Update error messages. (match_dt_element): Fix match
124 tag for asynchronous. Update error messages. (gfc_free_inquire): Free
125 new expressions. (match_inquire_element): Match new tags.
126 (gfc_match_inquire): Add constraint for ID and PENDING.
127 (gfc_resolve_inquire): Resolve new tags.
128 * trans-io.c (gfc_trans_inquire): Clean up whitespace and fix setting of
129 mask for ID parameter.
130 * ioparm.def: Fix order of parameters for pending, round, and sign.
131 NOTE: These must line up with the definitions in libgfortran/io/io.h. or
134 2008-04-06 Paul Thomas <pault@gcc.gnu.org>
137 * expr.c (scalarize_intrinsic_call): Identify which argument is
138 an array and use that as the template.
139 (check_init_expr): Remove tests that first argument is an array
140 in the call to scalarize_intrinsic_call.
142 2008-04-06 Tobias Schlüter <tobi@gcc.gnu.org>
145 * io.c (io_tag): Add field 'value'. Split 'spec' field in
147 (match_etag, match_vtag, match_ltag): Split parsing in two steps
148 to give better error messages.
150 2008-04-06 Tobias Burnus <burnus@net-b.de>
152 * io.c (check_io_constraints): Add constrains. ID= requires
153 asynchronous= and asynchronous= must be init expression.
155 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
157 * f95-lang.c: Set LANG_HOOKS_NAME to "GNU Fortran".
159 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
161 * dump-parse-tree.c: Use fprintf, fputs and fputc instead of
162 gfc_status and gfc_status_char. Remove gfc_ prefix of the gfc_show_*
163 functions and make them static. Add new gfc_dump_parse_tree
165 * gfortran.h (gfc_option_t): Rename verbose into dump_parse_tree.
166 (gfc_status, gfc_status_char): Delete prototypes.
167 * error.c (gfc_status, gfc_status_char): Remove functions.
168 * scanner.c (gfc_new_file): Use printf instead of gfc_status.
169 * options.c (gfc_init_options): Rename verbose into dump_parse_tree.
170 (gfc_handle_module_path_options): Use gfc_fatal_error instead of
172 (gfc_handle_option): Rename verbose into dump_parse_tree.
173 * parse.c (gfc_parse_file): Use gfc_dump_parse_tree.
175 2008-04-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
176 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
178 PR fortran/25829 28655
179 * dump-parse-tree.c (gfc_show_code_node): Show new I/O parameters.
180 * gfortran.h (gfc_statement): Add ST_WAIT enumerator.
181 (gfc_open): Add pointers for decimal, encoding, round, sign,
182 asynchronous. (gfc_inquire): Add pointers for asynchronous, decimal,
183 encoding, pending, round, sign, size, id.
184 (gfc_wait): New typedef struct. (gfc_dt): Add pointers for id, pos,
185 asynchronous, blank, decimal, delim, pad, round, sign.
186 (gfc_exec_op): Add EXEC_WAIT enumerator. (gfc_code): Add pointer for
187 wait. (gfc_free_wait), (gfc_resolve_wait): New function prototypes.
188 * trans-stmt.h (gfc_trans_wait): New function prototype.
189 * trans.c (gfc_trans_code): Add case for EXEC_WAIT.
190 * io.c (io_tag): Add new tags for DECIMAL, ENCODING, ROUND, SIGN,
191 ASYCHRONOUS, ID. (match_open_element): Add matchers for new tags.
192 (gfc_free_open): Free new pointers. (gfc_resolve_open): Resolve new
193 tags. (gfc_resolve_open): Remove comment around check for allowed
194 values and ASYNCHRONOUS, update it. Likewise for DECIMAL, ENCODING,
195 ROUND, and SIGN. (match_dt_element): Add matching for new tags.
196 (gfc_free_wait): New function. (gfc_resolve_wait): New function.
197 (match_wait_element): New function. (gfc_match_wait): New function.
198 * resolve.c (gfc_resolve_blocks): Add case for EXEC_WAIT.
199 (resolve_code): Add case for EXEC_WAIT.
200 * st.c (gfc_free_statement): Add case for EXEC_WAIT.
201 * trans-io.c (ioparam_type): Add IOPARM_ptype_wait. (gfc_st_parameter):
202 Add "wait" entry. (iocall): Add IOCALL_WAIT enumerator.
203 (gfc_build_io_library_fndecls): Add function declaration for st_wait.
204 (gfc_trans_open): Add mask bits for new I/O tags.
205 (gfc_trans_inquire): Add mask bits for new I/O tags.
206 (gfc_trans_wait): New translation function.
207 (build_dt): Add mask bits for new I/O tags.
208 * match.c (gfc_match_if) Add matcher for "wait".
209 * match.h (gfc_match_wait): Prototype for new function.
210 * ioparm.def: Add new I/O parameter definitions.
211 * parse.c (decode_statement): Add match for "wait" statement.
212 (next_statement): Add case for ST_WAIT. (gfc_ascii_statement): Same.
214 2008-04-03 Jakub Jelinek <jakub@redhat.com>
217 * openmp.c (resolve_omp_clauses): Diagnose if a clause symbol
220 2008-04-03 Tom Tromey <tromey@redhat.com>
222 * Make-lang.in (fortran_OBJS): New variable.
224 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
226 * f95-lang.c (insert_block): Kill.
228 2008-04-01 George Helffrich <george@gcc.gnu.org>
230 PR fortran/35154, fortran/23057
231 * trans-common.c (create_common): Add decl to function
232 chain to preserve identifier scope in debug output.
234 2008-04-01 Joseph Myers <joseph@codesourcery.com>
236 * gfortran.texi: Include gpl_v3.texi instead of gpl.texi
237 * Make-lang.in (GFORTRAN_TEXI): Include gpl_v3.texi instead of
240 2008-03-30 Paul Thomas <pault@gcc.gnu.org>
243 * resolve.c (resolve_function, resolve_call): If the procedure
244 is elemental do not look for noncopying intrinsics.
246 2008-03-29 Paul Thomas <pault@gcc.gnu.org>
249 * trans-array.c (gfc_array_init_size): Set 'size' zero if
250 negative in one dimension.
253 * trans-expr.c (gfc_trans_string_copy): Only assign a char
254 directly if the lhs and rhs types are the same.
256 2008-03-28 Daniel Franke <franke.daniel@gmail.com>
257 Paul Richard Thomas <paul.richard.thomas@gmail.com>
260 * primary.c (match_variable): Improved matching of function
262 * resolve.c (resolve_allocate_deallocate): Removed checks if
263 the actual argument for STAT is a variable.
265 2008-03-28 Tobias Burnus <burnus@net-b.de>
267 * symbol.c (gfc_get_default_type): Fix error message; option
268 -fallow_leading_underscore should be -fallow-leading-underscore
270 2008-03-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
273 * iresolve.c (gfc_resolve_cshift): Check for NULL symtree in test for
274 optional argument attribute.
276 2008-03-27 Tom Tromey <tromey@redhat.com>
278 * Make-lang.in: Revert automatic dependency patch.
280 2008-03-25 Tom Tromey <tromey@redhat.com>
282 * Make-lang.in: Remove .o targets.
283 (fortran_OBJS): New variable.
284 (fortran/gfortranspec.o): Move to fortran/. Reduce to variable
286 (GFORTRAN_D_OBJS): Update.
287 (GFORTRAN_TRANS_DEPS): Remove.
289 2008-03-24 Paul Thomas <pault@gcc.gnu.org>
292 * resolve.c (resolve_structure_cons): It is an error to assign
293 NULL to anything other than a pointer or allocatable component.
296 * resolve.c (resolve_symbol): If the symbol is a derived type,
297 resolve the derived type. If the symbol is a derived type
298 function, ensure that the derived type is visible in the same
299 namespace as the function.
301 2008-03-23 Tobias Schlüter <tobi@gcc.gnu.org>
303 * trans.h: Use fold_build in build1_v, build2_v and build3_v
305 * trans-openmp.c (gfc_trans_omp_critical, gfc_trans_omp_single):
306 Don't use build2_v macro.
308 2008-03-19 Daniel Franke <franke.daniel@gmail.com>
311 * interface.c (gfc_procedure_use): Check for keyworded arguments in
312 procedures without explicit interfaces.
314 2008-03-16 Paul Thomas <pault@gcc.gnu.org>
317 * resolve.c (check_assumed_size_reference): Only visit the
318 first reference and look directly at the highest dimension.
320 2008-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
323 * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
326 2008-03-15 Daniel Franke <franke.daniel@gmail.com>
329 * resolve.c (resolve_branch): Less strict and pessimistic warning
332 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
334 * f95-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
335 (gfc_be_parse_file): Call clear_binding_stack from here.
336 (gfc_clear_binding_stack): Rename to clear_binding_stack.
338 2008-03-09 Paul Thomas <pault@gcc.gnu.org>
341 * module.c (mio_symtree_ref): After providing a symbol for a
342 missing equivalence member, resolve and NULL the fixups.
344 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
346 * invoke.texi (Error and Warning Options): Document
349 2008-03-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
352 * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
353 checking bounds of absent optional arguments.
355 2008-03-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
358 * intrinsic.c (add_functions): Add simplification routines for
359 ERF, DERF, ERFC and DERFC.
360 * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
361 extensions into Fortran 2008 features.
362 * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
364 * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
366 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
369 * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
370 ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
371 ERFC_SCALED, LOG_GAMMA and HYPOT.
372 * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
373 gfc_resolve_hypot): New prototypes.
374 * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
375 ACOSH, ASINH and ATANH available.
376 * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
377 * lang.opt: Add -std=f2008 option.
378 * libgfortran.h: Define GFC_STD_F2008.
379 * lang-specs.h: Add .f08 and .F08 file suffixes.
380 * iresolve.c (gfc_resolve_hypot): New function.
381 * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
382 * check.c (gfc_check_hypot): New function.
383 * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
384 * options.c (set_default_std_flags): Allow Fortran 2008 by default.
385 (form_from_filename): Add .f08 suffix.
386 (gfc_handle_option): Handle -std=f2008 option.
387 * simplify.c (gfc_simplify_hypot): New function.
388 * gfortran.texi: Document Fortran 2008 status and file extensions.
389 * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
390 as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
391 ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
392 * invoke.texi: Document the new -std=f2008 option.
394 2008-03-02 Jakub Jelinek <jakub@redhat.com>
396 * gfortranspec.c (lang_specific_driver): Update copyright notice
399 2008-02-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
402 * expr.c (find_array_element): Modify traversing the constructor to
403 avoid trying to access NULL memory pointed to by next for the
404 last element. (find_array_section): Exit while loop if cons->next is
406 * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
407 (gfc_conv_function_call): Same.
408 * decl.c (gfc_match_implicit): Same.
409 * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
411 2008-02-28 Daniel Franke <franke.daniel@gmail.com>
416 * lang.opt: Added -Wreturn-type.
417 * options.c (gfc_handle_option): Recognize -Wreturn-type.
418 * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
419 where the result value is not set.
420 (gfc_generate_function_code): Likewise.
421 (generate_local_decl): Emit warnings for funtions whose RESULT
424 2008-02-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
427 * trans-expr.c (gfc_conv_variable): Don't build indirect
428 references when explicit interface is mandated.
429 * resolve.c (resolve_formal_arglist): Set attr.always_explicit
430 on the result symbol as well as the procedure symbol.
432 2008-02-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
435 * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
436 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
437 gfor_fndecl_math_exponent16.
438 * f95-lang.c (build_builtin_fntypes): Add new function types.
439 (gfc_init_builtin_functions): Add new builtins for nextafter,
440 frexp, ldexp, fabs, scalbn and inf.
441 * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
442 (gfc_resolve_scale): Don't convert type of second argument.
443 (gfc_resolve_set_exponent): Likewise.
444 (gfc_resolve_size): Don't add hidden arguments.
445 * trans-decl.c: Remove gfor_fndecl_math_exponent4,
446 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
447 gfor_fndecl_math_exponent16.
448 * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
449 for scalbn, fraction, nearest, rrspacing, set_exponent and
451 (gfc_conv_intrinsic_exponent): Directly call frexp.
452 (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
453 gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
454 gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
456 (gfc_conv_intrinsic_function): Use the new functions above.
458 2008-02-26 Tobias Burnus <burnus@net-b.de>
461 * interface.c (check_operator_interface): Show better line for error
462 messages; fix constrains for user-defined assignment operators.
463 (gfc_extend_assign): Fix constrains for user-defined assignment
466 2008-02-26 Tom Tromey <tromey@redhat.com>
468 * trans-io.c (set_error_locus): Remove old location code.
469 * trans-decl.c (gfc_set_decl_location): Remove old location code.
470 * f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
471 * scanner.c (gfc_gobble_whitespace): Remove old location code.
472 (get_file): Likewise.
473 (preprocessor_line): Likewise.
474 (load_file): Likewise.
475 (gfc_new_file): Likewise.
476 * trans.c (gfc_trans_runtime_check): Remove old location code.
477 (gfc_get_backend_locus): Likewise.
478 (gfc_set_backend_locus): Likewise.
479 * data.c (gfc_assign_data_value): Remove old location code.
480 * error.c (show_locus): Remove old location code.
481 * gfortran.h (gfc_linebuf): Remove old location code.
482 (gfc_linebuf_linenum): Remove old-location variant.
484 2008-02-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
487 * trans-const.c (gfc_build_string_const): Don't call gettext.
488 (gfc_build_localized_string_const): New function.
489 * trans-const.h (gfc_build_localized_string_const): New prototype.
490 * trans.c (gfc_trans_runtime_check): Use
491 gfc_build_localized_string_const instead of gfc_build_string_const.
492 (gfc_call_malloc): Likewise.
493 (gfc_allocate_with_status): Likewise.
494 (gfc_allocate_array_with_status): Likewise.
495 (gfc_deallocate_with_status): Likewise.
496 (gfc_call_realloc): Likewise.
497 * trans-io.c (gfc_trans_io_runtime_check): Likewise.
499 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
501 * arith.c: Update copyright years.
509 * dependency.c: Likewise.
510 * dependency.h: Likewise.
511 * dump-parse-tree.c: Likewise.
514 * gfc-internals.texi: Likewise.
515 * gfortran.h: Likewise.
516 * gfortran.texi: Likewise.
517 * gfortranspec.c: Likewise.
518 * interface.c: Likewise.
519 * intrinsic.c: Likewise.
520 * intrinsic.h: Likewise.
521 * intrinsic.texi: Likewise.
522 * invoke.texi: Likewise.
524 * iresolve.c: Likewise.
525 * iso-c-binding.def: Likewise.
526 * iso-fortran-env.def: Likewise.
527 * lang-specs.h: Likewise.
528 * lang.opt: Likewise.
529 * libgfortran.h: Likewise.
532 * matchexp.c: Likewise.
534 * module.c: Likewise.
535 * openmp.c: Likewise.
536 * options.c: Likewise.
539 * primary.c: Likewise.
540 * resolve.c: Likewise.
541 * scanner.c: Likewise.
542 * simplify.c: Likewise.
544 * symbol.c: Likewise.
545 * target-memory.c: Likewise.
546 * target-memory.h: Likewise.
547 * trans-array.h: Likewise.
548 * trans-const.h: Likewise.
549 * trans-stmt.h: Likewise.
550 * trans-types.c: Likewise.
551 * trans-types.h: Likewise.
552 * types.def: Likewise.
554 2008-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
557 * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
558 (gfc_simplify_ibset): Remove call to range_check.
559 (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
560 (gfc_simplify_real): Add call gfc_clear_ts to initialize the
561 temporary gfc_typspec variable.
563 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
565 * trans-array.c (gfc_conv_descriptor_data_get,
566 gfc_conv_descriptor_data_set_internal,
567 gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
568 gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
569 gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
570 gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
571 gfc_conv_array_transpose, gfc_grow_array,
572 gfc_trans_array_constructor_subarray,
573 gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
574 gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
575 gfc_conv_array_initializer, gfc_trans_array_bounds,
576 gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
577 gfc_get_dataptr_offset, gfc_conv_array_parameter,
578 gfc_trans_dealloc_allocated, get_full_array_size,
579 gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
581 * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
582 gfc_conv_component_ref, gfc_conv_cst_int_power,
583 gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
584 * trans-common.c (create_common): Likewise.
585 * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
587 * trans-const.c (gfc_conv_constant_to_tree): Likewise.
588 * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
589 gfc_trans_integer_select, gfc_trans_character_select,
590 gfc_trans_forall_loop, compute_overall_iter_number,
591 gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
592 gfc_trans_deallocate): Likewise.
593 * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
594 gfc_allocate_with_status, gfc_allocate_array_with_status,
595 gfc_deallocate_with_status): Likewise.
596 * f95-lang.c (gfc_truthvalue_conversion): Likewise.
597 * trans-io.c (set_parameter_const, set_parameter_value,
598 set_parameter_ref, set_string, set_internal_unit, io_result,
599 set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
600 * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
601 gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
602 gfc_generate_function_code): Likewise.
603 * convert.c (convert): Likewise.
604 * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
605 build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
606 gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
607 gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
608 gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
609 gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
610 gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
611 gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
612 gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
613 gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
614 gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
615 gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
616 gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
617 gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
618 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
619 gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
620 gfc_conv_intrinsic_repeat): Likewise.
622 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
625 * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
626 * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
627 * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
628 gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
629 * trans-decl.c: Likewise.
631 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
634 * expr.c (find_array_element): Modify traversing the constructor to
635 avoid trying to access NULL memory pointed to by next for the
636 last element. (find_array_section): Exit while loop if cons->next is
639 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
642 * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
644 (gfc_resolve_aint): Likewise.
645 (gfc_resolve_anint): Likewise.
646 (gfc_resolve_besn): Likewise.
647 (gfc_resolve_cshift): Likewise.
648 (gfc_resolve_ctime): Likewise.
649 (gfc_resolve_eoshift): Likewise.
650 (gfc_resolve_index_func): Likewise.
651 (gfc_resolve_isatty): Likewise.
652 (gfc_resolve_malloc): Likewise.
653 (gfc_resolve_rrspacing): Likewise.
654 (gfc_resolve_scale): Likewise.
655 (gfc_resolve_set_exponent): Likewise.
656 (gfc_resolve_spacing): Likewise.
657 (gfc_resolve_spacing): Likewise.
658 (gfc_resolve_fgetc): Likewise.
659 (gfc_resolve_fputc): Likewise.
660 (gfc_resolve_ftell): Likewise.
661 (gfc_resolve_ttynam): Likewise.
662 (gfc_resolve_alarm_sub): Likewise.
663 (gfc_resolve_mvbits): Likewise.
664 (gfc_resolve_getarg): Likewise.
665 (gfc_resolve_signal_sub): Likewise.
666 (gfc_resolve_exit): Likewise.
667 (gfc_resolve_flush): Likewise.
668 (gfc_resolve_free): Likewise.
669 (gfc_resolve_ctime_sub): Likewise.
670 (gfc_resolve_fgetc_sub): Likewise.
671 (gfc_resolve_fputc_sub): Likewise.
672 (gfc_resolve_fseek_sub): Likewise.
673 (gfc_resolve_ftell_sub): Likewise.
674 (gfc_resolve_ttynam_sub): Likewise.
676 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
678 * gfc-internals.texi: Fix typos and markup nits.
679 * gfortran.texi: Likewise.
680 * intrinsic.texi: Likewise.
682 2008-02-21 Richard Guenther <rguenther@suse.de>
684 * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
685 as unary PAREN_EXPR for real and complex typed expressions.
686 (gfc_conv_unary_op): Fold the built tree.
688 2008-02-20 Tobias Burnus <burnus@net-b.de>
691 * match.c (gfc_match_name): Improve error message for '$'.
693 2008-02-19 Daniel Franke <franke.daniel@gmail.com>
696 * expr.c (gfc_check_pointer_assign): Add type and kind information
697 to type-mismatch message.
698 (gfc_check_assign): Unify error messages.
700 2008-02-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
703 * gfortran.texi: Create new section for unimplemented extensions.
704 Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
705 Remove "smaller projects" list. Fix a few typos.
707 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
709 * intrinsic.texi: Rename INDEX node to avoid clashing with
710 index.html on case-insensitive systems.
712 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
715 * trans-expr.c (gfc_conv_function_call): Force evaluation of
718 2008-02-10 Daniel Franke <franke.daniel@gmail.com>
721 * lang.opt: Allow '-J<dir>' next to '-J <dir>',
722 likewise '-I <dir>' and '-I<dir>'.
724 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
727 * Make-lang.in (f951): Add $(GMPLIBS).
729 2008-02-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
732 * trans-common.c (build_field): Mark fields as volatile when needed.
734 2008-02-05 Tobias Burnus <burnus@net-b.de>
737 * data.c (gfc_assign_data_value): Only free "size" if
738 it has not already been freed.
740 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
743 * array.c (match_array_element_spec): Remove check for negative
745 (gfc_resolve_array_spec): Add check for negative size.
747 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
750 * data.c (gfc_assign_data_value): Add bounds check for array
753 2008-02-04 Daniel Franke <franke.daniel@gmail.com>
755 * resolve.c (resolve_where): Fix typo.
756 (gfc_resolve_where_code_in_forall): Likewise.
758 2008-02-03 Paul Thomas <pault@gcc.gnu.org>
761 * resolve.c (resolve_allocate_deallocate): New function.
762 (resolve_code): Call it for allocate and deallocate.
763 * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
764 the checking of the STAT tag and put in above new function.
765 * primary,c (match_variable): Do not fix flavor of host
766 associated symbols yet if the type is not known.
768 2008-01-31 Paul Thomas <pault@gcc.gnu.org>
771 * expr.c (gfc_check_assign): It is an error to assign
772 to a sibling procedure.
774 2008-01-30 Paul Thomas <pault@gcc.gnu.org>
777 * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
778 delete_symtree to gfc_delete_symtree.
779 * gfortran.h : Add prototype for gfc_delete_symtree.
780 * module.c (load_generic_interfaces): Transfer symbol to a
781 unique symtree and delete old symtree, instead of renaming.
782 (read_module): The rsym and the found symbol are the same, so
783 the found symtree can be deleted.
786 * decl.c (match_char_spec): Remove the constraint on deferred
787 matching of functions and free the length expression.
788 delete_symtree to gfc_delete_symtree.
789 (gfc_match_type_spec): Whitespace.
790 (gfc_match_function_decl): Defer characteristic association for
791 all types except BT_UNKNOWN.
792 * parse.c (decode_specification_statement): Only derived type
793 function matching is delayed to the end of specification.
795 2008-01-28 Tobias Burnus <burnus@net-b.de>
798 * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
800 2008-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
803 * array.c (gfc_check_constructor_type): Revert clearing the expression.
805 2008-01-26 Tobias Burnus <burnus@net-b.de>
808 * trans-expr.c (gfc_conv_function_call): Don't call
809 gfc_add_interface_mapping if the expression is NULL.
811 2008-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
814 * trans-array.c (gfc_trans_create_temp_array): Remove call to
815 gcc_assert (integer_zerop (loop->from[n])).
817 2008-01-25 Daniel Franke <franke.daniel@gmail.com>
820 * resolve.c (resolve_where): Added check if user-defined assignment
821 operator is an elemental subroutine.
822 (gfc_resolve_where_code_in_forall): Likewise.
824 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
828 * gfortran.h: Revert changes from 2008-01-17.
830 * symbol.c: Likewise.
831 (gfc_undo_symbols): Undo namespace changes related to common blocks.
833 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
836 * data.c (formalize_structure_cons): Skip formalization on
839 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
841 * gfortran.texi (OpenMP): Extended existing documentation.
842 (contributors): Added major contributors of 2008 that were
844 (proposed extensions): Removed implemented items.
846 2008-01-24 Paul Thomas <pault@gcc.gnu.org>
849 * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS is
850 seen, check for a statement label and, if present, delete it
851 and set the locus to the start of the statement.
853 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
856 * trans-io.c (gfc_trans_transfer): If the array reference in a
857 read has a vector subscript, use gfc_conv_subref_array_arg to
858 copy back the temporary.
860 2008-01-22 Tobias Burnus <burnus@net-b.de>
863 * interface.c (compare_actual_formal): Fix adding type
864 to missing_arg_type for absent optional arguments.
866 2008-01-22 Tobias Burnus <burnus@net-b.de>
869 * parse.c (parse_spec): Change = into ==.
871 2008-01-22 Daniel Franke <franke.daniel@gmail.com>
874 * expr.c (check_elemental): Fix check for valid data types.
876 2008-01-22 Tobias Burnus <burnus@net-b.de>
879 * scanner.c (load_line): Support <tab><digit> continuation lines.
880 * invoke.texi (-Wtabs): Document this.
882 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
885 * module.c (read_module): Set use_rename attribute.
887 2007-01-21 Tobias Burnus <burnus@net-b.de>
890 * interface.c (compare_parameter): Improved error message
891 for arguments of same type and mismatched kinds.
893 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
896 * resolve.c (resolve_entries): Do not do an array bounds check
897 if the result symbols are the same.
900 * module.c (read_module) : Hide the symtree of the previous
901 version of the symbol if this symbol is renamed.
903 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
906 * array.c (gfc_check_constructor_type): Clear the expression ts
907 so that the checking starts from the deepest level of array
909 * primary.c (match_varspec): If an unknown type is changed to
910 default character and the attempt to match a substring fails,
911 change it back to unknown.
914 * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
915 NULL for an array constructor, use the cl.length expression to
917 (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
920 2008-01-19 Thomas Koenig <tkoenig@gcc.gnu.org>
924 * iresolve.c (gfc_resolve_all): Remove conversion of mask
925 argument to kind=1 by removing call to resolve_mask_arg().
926 (gfc_resolve_any): Likewise.
928 2008-01-19 Tobias Burnus <burnus@net-b.de>
931 * primary.c (match_variable): Handle FL_UNKNOWN without
933 (match_variable): Improve error message.
935 2008-01-18 Tobias Burnus <burnus@net-b.de>
938 * interface.c (get_expr_storage_size): Return storage size
939 for array element designators.
940 (compare_actual_formal): Reject unequal string sizes for
941 assumed-shape dummy arguments. And fix error message for
942 array-sections with vector subscripts.
944 2008-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
947 * simplify.c (is_constant_array_expr): New static function that returns
948 true if the given expression is an array and is constant.
949 (gfc_simplify_reshape): Use new function.
951 2008-01-17 H.J. Lu <hongjiu.lu@intel.com>
954 * symbol.c (free_common_tree): Renamed to ...
955 (gfc_free_common_tree): This. Remove static.
956 (gfc_free_namespace): Updated.
958 * gfortran.h (gfc_free_common_tree): New.
960 * match.c (gfc_match_common): Call gfc_free_common_tree () with
961 gfc_current_ns->common_root and set gfc_current_ns->common_root
962 to NULL on syntax error.
964 2008-01-18 Richard Sandiford <rsandifo@nildram.co.uk>
967 * trans-expr.c (gfc_conv_function_call): Use proper
968 type for returned character pointers.
970 2008-01-17 Paul Thomas <pault@gcc.gnu.org>
975 * decl.c : Remove gfc_function_kind_locus and
976 gfc_function_type_locus. Add gfc_matching_function.
977 (match_char_length): If matching a function and the length
978 does not match, return MATCH_YES and try again later.
979 (gfc_match_kind_spec): The same.
980 (match_char_kind): The same.
981 (gfc_match_type_spec): The same for numeric and derived types.
982 (match_prefix): Rename as gfc_match_prefix.
983 (gfc_match_function_decl): Except for function valued character
984 lengths, defer applying kind, type and charlen info until the
985 end of specification block.
986 gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
987 parse.c (decode_specification_statement): New function.
988 (decode_statement): Call it when a function has kind = -1. Set
989 and reset gfc_matching function, as function statement is being
991 (match_deferred_characteristics): Simplify with a single call
992 to gfc_match_prefix. Do appropriate error handling. In any
993 case, make sure that kind = -1 is reset or corrected.
994 (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
995 Throw an error if kind = -1 after last specification statement.
996 parse.h : Prototype for gfc_match_prefix.
998 2008-01-16 Tobias Burnus <burnus@net-b.de>
1001 * interface.c (compare_parameter): Allow AS_DEFERRED array
1002 elements and reject attr.pointer array elemenents.
1003 (get_expr_storage_size): Return storage size of elements of
1004 assumed-shape and pointer arrays.
1006 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
1008 * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
1009 for flag_tree_parallelize_loops.
1011 2008-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
1014 * iresolve.c (gfc_resolve_all): Call resolve_mask_arg.
1015 (gfc_resolve_any): Likewise.
1016 (gfc_resolve_count): Likewise. Don't append kind of
1017 argument to function name.
1019 2008-01-13 Tobias Burnus <burnus@net-b.de>
1022 * resolve.c (resolve_actual_arglist): For expressions,
1023 also check for assume-sized arrays.
1024 * interface.c (compare_parameter): Move F2003 character checks
1025 here, print error messages here, reject elements of
1026 assumed-shape array as argument to dummy arrays.
1027 (compare_actual_formal): Update for the changes above.
1029 2008-01-13 Tobias Burnus <burnus@net-b.de>
1032 * decl.c (contained_procedure): Only check directly preceeding state.
1034 2008-01-13 Tobias Burnus <burnus@net-b.de>
1037 * check.c (gfc_check_shape): Accept array ranges of
1038 assumed-size arrays.
1040 2008-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1043 * match.c (gfc_match_name): Don't error if leading character is a '(',
1044 just return MATCH_NO.
1046 2008-01-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1049 * trans-io.c (create_dummy_iostat): Commit the symbol.
1051 2008-01-11 Paul Thomas <pault@gcc.gnu.org>
1054 * simplify.c (gfc_simplify_transfer): Return NULL if the size
1055 of the element is unavailable and only assign character length
1056 to the result, if 'mold' is constant.
1058 2008-01-10 Paul Thomas <pault@gcc.gnu.org>
1061 * trans-array.c (gfc_trans_array_ctor_element): Use gfc_trans_string_copy
1062 to assign strings and perform bounds checks on the string length.
1063 (get_array_ctor_strlen): Remove bounds checking.
1064 (gfc_trans_array_constructor): Initialize string length checking.
1065 * trans-array.h : Add prototype for gfc_trans_string_copy.
1067 2008-01-08 Richard Guenther <rguenther@suse.de>
1070 PR tree-optimization/34683
1071 * trans-types.c (gfc_get_array_type_bounds): Use an array type
1072 with known size for accesses if that is known.
1074 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1077 * expr.c (find_array_element): Check that the array bounds are
1078 constant before using them. Use lower, as well as upper bound.
1079 (check_restricted): Allow implied index variable.
1081 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1084 * trans_array.c (gfc_trans_deferred_array): Do not null the
1085 data pointer on entering scope, nor deallocate it on leaving
1086 scope, if the symbol has the 'save' attribute.
1089 * trans_decl.c (gfc_finish_var_decl): Derived types with
1090 allocatable components and an initializer must be TREE_STATIC.
1092 2008-01-07 Paul Thomas <pault@gcc.gnu.org>
1095 * module.c (write_generic): Rewrite completely.
1096 (write_module): Change call to write_generic.
1098 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1101 * scanner.c (load_line): Do not count ' ' as printable when checking for
1104 2008-01-06 Paul Thomas <pault@gcc.gnu.org>
1107 * module.c (load_needed): If the namespace has no proc_name
1108 give it the module symbol.
1110 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1113 * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
1114 the dummy variable expression, test for NULL, and pass the variable
1115 address to the called function.
1117 2007-01-06 Tobias Burnus <burnus@net-b.de>
1120 * match.c (gfc_match_common): Remove blank common in
1122 * resolve.c (resolve_common_vars): New function.
1123 (resolve_common_blocks): Move checks to resolve_common_vars
1124 and invoke that function.
1125 (resolve_types): Call resolve_common_vars for blank commons.
1127 2008-01-06 Tobias Burnus <burnus@net-b.de>
1130 * resolve.c (resolve_equivalence_derived): Reject derived types with
1131 default initialization if equivalenced with COMMON variable.
1133 2008-01-06 Tobias Burnus <burnus@net-b.de>
1136 * io.c (check_io_constraints): Disallow unformatted I/O for
1139 2008-01-06 Tobias Burnus <burnus@net-b.de>
1142 * resolve.c (resolve_formal_arglist): Reject dummy procedure in
1143 ELEMENTAL functions.
1145 2008-01-06 Tobias Burnus <burnus@net-b.de>
1148 * interface.c (compare_actual_formal): Reject parameter
1149 actual to intent(out) dummy.
1151 2008-01-04 Tobias Burnus <burnus@net-b.de>
1154 * primary.c (match_varspec): Gobble whitespace before