1 2008-04-25 Jan Hubicka <jh@suse.cz>
3 * trans-decl.c (trans_function_start): Update.
5 2008-04-25 Tobias Burnus <burnus@net-b.de>
6 Daniel Franke <franke.daniel@gmail.com>
9 * gfortranspec.c (lang_specific_driver): Deprecate
10 -M option; fix ICE when "-M" is last argument and
12 * options.c (gfc_handle_module_path_options):
13 Use -J instead of -M in error messages.
14 * invoke.texi: Mark -M as depecated.
16 2008-04-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
17 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
20 * trans-instrinsic.c (gfc_conv_intrinsic_minmaxloc): Correctly adjust
23 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
25 * trans-expr.c (gfc_conv_structure): Don't set TREE_INVARIANT.
26 * trans-array.c (gfc_build_null_descriptor): Don't set TREE_INVARIANT.
27 (gfc_trans_array_constructor_value): Don't set TREE_INVARIANT.
28 (gfc_build_constant_array_constructor): Don't set TREE_INVARIANT.
29 (gfc_conv_array_initializer): Don't set TREE_INVARIANT.
30 * trans-common.c (get_init_field): Don't set TREE_INVARIANT.
31 (create_common): Don't set TREE_INVARIANT.
32 * trans-stmt.c (gfc_trans_character_select): Don't set TREE_INVARIANT.
33 * trans-decl.c (gfc_generate_function_code): Don't set TREE_INVARIANT.
35 2008-04-21 Steve Ellcey <sje@cup.hp.com>
37 * f95-lang.c (gfc_init_decl_processing): use ptr_mode instead of Pmode.
39 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
42 * gfortranspec.c (lookup_option): Properly handle separated arguments
43 in -J option, print missing argument message when necessary.
45 2008-04-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
48 * scanner.c (skip_fixed_comments): Update continue_line when comment is
49 detected. (gfc_next_char_literal): Likewise.
51 2008-04-19 Paul Thomas <pault@gcc.gnu.org>
56 * trans_array.c (gfc_trans_array_constructor): Temporarily
57 realign loop, if loop->from is not zero, before creating
58 the temporary array and provide an offset.
61 * trans-decl.c (gfc_init_default_dt): Add gfc_ prefix to name
62 and allow for NULL body. Change all references from
63 init_default_dt to gfc_init_default_dt.
64 * trans.h : Add prototype for gfc_init_default_dt.
65 * trans-array.c (gfc_trans_deferred_vars): After nullification
66 call gfc_init_default_dt for derived types with allocatable
69 2008-04-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
72 * trans-common.c (create_common): Revert patch causing regression.
74 2008-04-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
77 * iresolve.c (gfc_resolve_eoshift): Check for NULL symtree in test for
78 optional argument attribute.
80 2008-04-16 Paul Thomas <pault@gcc.gnu.org>
83 * trans-intrinsic.c (gfc_conv_intrinsic_char): Even though KIND
84 is not used, the argument must be converted.
86 2008-04-16 Jakub Jelinek <jakub@redhat.com>
89 * f95-lang.c (gfc_init_builtin_functions): Make sure
90 BUILT_IN_SINCOS{,F,L} types aren't varargs.
92 2008-04-15 Paul Thomas <pault@gcc.gnu.org>
95 * expr.c (scalarize_intrinsic_call): Reorder identification of
96 array argument so that if one is not found a segfault does not
97 occur. Return FAILURE if all scalar arguments.
99 2008-04-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
100 Tobias Burnus <burnus@net-b.de>
103 * options.c (gfc_init_options): Set the default maximum continuation
104 lines to 255 for both free and fixed form source for warnings.
105 (gfc_handle_option): Set -std=f95 fixed form max continuations to 19 and
106 the -std=f95 free form max continuations to 39 for warnings.
107 * scanner.c (gfc_next_char_literal): Adjust the current_line number only
108 if it is less than the current locus.
110 2008-04-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
112 PR fortran/25829 28655
113 * io.c (io_tag): Add new tags for decimal, encoding, asynchronous,
114 round, sign, and id. (match_open_element): Match new tags.
115 (gfc_resolve_open): Resolve new tags. (gfc_match_open): Enable encoding
116 for DEFAULT only. Update error messages. (match_dt_element): Fix match
117 tag for asynchronous. Update error messages. (gfc_free_inquire): Free
118 new expressions. (match_inquire_element): Match new tags.
119 (gfc_match_inquire): Add constraint for ID and PENDING.
120 (gfc_resolve_inquire): Resolve new tags.
121 * trans-io.c (gfc_trans_inquire): Clean up whitespace and fix setting of
122 mask for ID parameter.
123 * ioparm.def: Fix order of parameters for pending, round, and sign.
124 NOTE: These must line up with the definitions in libgfortran/io/io.h. or
127 2008-04-06 Paul Thomas <pault@gcc.gnu.org>
130 * expr.c (scalarize_intrinsic_call): Identify which argument is
131 an array and use that as the template.
132 (check_init_expr): Remove tests that first argument is an array
133 in the call to scalarize_intrinsic_call.
135 2008-04-06 Tobias Schlüter <tobi@gcc.gnu.org>
138 * io.c (io_tag): Add field 'value'. Split 'spec' field in
140 (match_etag, match_vtag, match_ltag): Split parsing in two steps
141 to give better error messages.
143 2008-04-06 Tobias Burnus <burnus@net-b.de>
145 * io.c (check_io_constraints): Add constrains. ID= requires
146 asynchronous= and asynchronous= must be init expression.
148 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
150 * f95-lang.c: Set LANG_HOOKS_NAME to "GNU Fortran".
152 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
154 * dump-parse-tree.c: Use fprintf, fputs and fputc instead of
155 gfc_status and gfc_status_char. Remove gfc_ prefix of the gfc_show_*
156 functions and make them static. Add new gfc_dump_parse_tree
158 * gfortran.h (gfc_option_t): Rename verbose into dump_parse_tree.
159 (gfc_status, gfc_status_char): Delete prototypes.
160 * error.c (gfc_status, gfc_status_char): Remove functions.
161 * scanner.c (gfc_new_file): Use printf instead of gfc_status.
162 * options.c (gfc_init_options): Rename verbose into dump_parse_tree.
163 (gfc_handle_module_path_options): Use gfc_fatal_error instead of
165 (gfc_handle_option): Rename verbose into dump_parse_tree.
166 * parse.c (gfc_parse_file): Use gfc_dump_parse_tree.
168 2008-04-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
169 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
171 PR fortran/25829 28655
172 * dump-parse-tree.c (gfc_show_code_node): Show new I/O parameters.
173 * gfortran.h (gfc_statement): Add ST_WAIT enumerator.
174 (gfc_open): Add pointers for decimal, encoding, round, sign,
175 asynchronous. (gfc_inquire): Add pointers for asynchronous, decimal,
176 encoding, pending, round, sign, size, id.
177 (gfc_wait): New typedef struct. (gfc_dt): Add pointers for id, pos,
178 asynchronous, blank, decimal, delim, pad, round, sign.
179 (gfc_exec_op): Add EXEC_WAIT enumerator. (gfc_code): Add pointer for
180 wait. (gfc_free_wait), (gfc_resolve_wait): New function prototypes.
181 * trans-stmt.h (gfc_trans_wait): New function prototype.
182 * trans.c (gfc_trans_code): Add case for EXEC_WAIT.
183 * io.c (io_tag): Add new tags for DECIMAL, ENCODING, ROUND, SIGN,
184 ASYCHRONOUS, ID. (match_open_element): Add matchers for new tags.
185 (gfc_free_open): Free new pointers. (gfc_resolve_open): Resolve new
186 tags. (gfc_resolve_open): Remove comment around check for allowed
187 values and ASYNCHRONOUS, update it. Likewise for DECIMAL, ENCODING,
188 ROUND, and SIGN. (match_dt_element): Add matching for new tags.
189 (gfc_free_wait): New function. (gfc_resolve_wait): New function.
190 (match_wait_element): New function. (gfc_match_wait): New function.
191 * resolve.c (gfc_resolve_blocks): Add case for EXEC_WAIT.
192 (resolve_code): Add case for EXEC_WAIT.
193 * st.c (gfc_free_statement): Add case for EXEC_WAIT.
194 * trans-io.c (ioparam_type): Add IOPARM_ptype_wait. (gfc_st_parameter):
195 Add "wait" entry. (iocall): Add IOCALL_WAIT enumerator.
196 (gfc_build_io_library_fndecls): Add function declaration for st_wait.
197 (gfc_trans_open): Add mask bits for new I/O tags.
198 (gfc_trans_inquire): Add mask bits for new I/O tags.
199 (gfc_trans_wait): New translation function.
200 (build_dt): Add mask bits for new I/O tags.
201 * match.c (gfc_match_if) Add matcher for "wait".
202 * match.h (gfc_match_wait): Prototype for new function.
203 * ioparm.def: Add new I/O parameter definitions.
204 * parse.c (decode_statement): Add match for "wait" statement.
205 (next_statement): Add case for ST_WAIT. (gfc_ascii_statement): Same.
207 2008-04-03 Jakub Jelinek <jakub@redhat.com>
210 * openmp.c (resolve_omp_clauses): Diagnose if a clause symbol
213 2008-04-03 Tom Tromey <tromey@redhat.com>
215 * Make-lang.in (fortran_OBJS): New variable.
217 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
219 * f95-lang.c (insert_block): Kill.
221 2008-04-01 George Helffrich <george@gcc.gnu.org>
223 * trans-common.c (create_common): Add decl to function
224 chain to preserve identifier scope in debug output.
226 2008-04-01 Joseph Myers <joseph@codesourcery.com>
228 * gfortran.texi: Include gpl_v3.texi instead of gpl.texi
229 * Make-lang.in (GFORTRAN_TEXI): Include gpl_v3.texi instead of
232 2008-03-30 Paul Thomas <pault@gcc.gnu.org>
235 * resolve.c (resolve_function, resolve_call): If the procedure
236 is elemental do not look for noncopying intrinsics.
238 2008-03-29 Paul Thomas <pault@gcc.gnu.org>
241 * trans-array.c (gfc_array_init_size): Set 'size' zero if
242 negative in one dimension.
245 * trans-expr.c (gfc_trans_string_copy): Only assign a char
246 directly if the lhs and rhs types are the same.
248 2008-03-28 Daniel Franke <franke.daniel@gmail.com>
249 Paul Richard Thomas <paul.richard.thomas@gmail.com>
252 * primary.c (match_variable): Improved matching of function
254 * resolve.c (resolve_allocate_deallocate): Removed checks if
255 the actual argument for STAT is a variable.
257 2008-03-28 Tobias Burnus <burnus@net-b.de>
259 * symbol.c (gfc_get_default_type): Fix error message; option
260 -fallow_leading_underscore should be -fallow-leading-underscore
262 2008-03-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
265 * iresolve.c (gfc_resolve_cshift): Check for NULL symtree in test for
266 optional argument attribute.
268 2008-03-27 Tom Tromey <tromey@redhat.com>
270 * Make-lang.in: Revert automatic dependency patch.
272 2008-03-25 Tom Tromey <tromey@redhat.com>
274 * Make-lang.in: Remove .o targets.
275 (fortran_OBJS): New variable.
276 (fortran/gfortranspec.o): Move to fortran/. Reduce to variable
278 (GFORTRAN_D_OBJS): Update.
279 (GFORTRAN_TRANS_DEPS): Remove.
281 2008-03-24 Paul Thomas <pault@gcc.gnu.org>
284 * resolve.c (resolve_structure_cons): It is an error to assign
285 NULL to anything other than a pointer or allocatable component.
288 * resolve.c (resolve_symbol): If the symbol is a derived type,
289 resolve the derived type. If the symbol is a derived type
290 function, ensure that the derived type is visible in the same
291 namespace as the function.
293 2008-03-23 Tobias Schlüter <tobi@gcc.gnu.org>
295 * trans.h: Use fold_build in build1_v, build2_v and build3_v
297 * trans-openmp.c (gfc_trans_omp_critical, gfc_trans_omp_single):
298 Don't use build2_v macro.
300 2008-03-19 Daniel Franke <franke.daniel@gmail.com>
303 * interface.c (gfc_procedure_use): Check for keyworded arguments in
304 procedures without explicit interfaces.
306 2008-03-16 Paul Thomas <pault@gcc.gnu.org>
309 * resolve.c (check_assumed_size_reference): Only visit the
310 first reference and look directly at the highest dimension.
312 2008-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
315 * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
318 2008-03-15 Daniel Franke <franke.daniel@gmail.com>
321 * resolve.c (resolve_branch): Less strict and pessimistic warning
324 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
326 * f95-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
327 (gfc_be_parse_file): Call clear_binding_stack from here.
328 (gfc_clear_binding_stack): Rename to clear_binding_stack.
330 2008-03-09 Paul Thomas <pault@gcc.gnu.org>
333 * module.c (mio_symtree_ref): After providing a symbol for a
334 missing equivalence member, resolve and NULL the fixups.
336 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
338 * invoke.texi (Error and Warning Options): Document
341 2008-03-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
344 * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
345 checking bounds of absent optional arguments.
347 2008-03-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
350 * intrinsic.c (add_functions): Add simplification routines for
351 ERF, DERF, ERFC and DERFC.
352 * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
353 extensions into Fortran 2008 features.
354 * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
356 * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
358 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
361 * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
362 ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
363 ERFC_SCALED, LOG_GAMMA and HYPOT.
364 * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
365 gfc_resolve_hypot): New prototypes.
366 * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
367 ACOSH, ASINH and ATANH available.
368 * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
369 * lang.opt: Add -std=f2008 option.
370 * libgfortran.h: Define GFC_STD_F2008.
371 * lang-specs.h: Add .f08 and .F08 file suffixes.
372 * iresolve.c (gfc_resolve_hypot): New function.
373 * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
374 * check.c (gfc_check_hypot): New function.
375 * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
376 * options.c (set_default_std_flags): Allow Fortran 2008 by default.
377 (form_from_filename): Add .f08 suffix.
378 (gfc_handle_option): Handle -std=f2008 option.
379 * simplify.c (gfc_simplify_hypot): New function.
380 * gfortran.texi: Document Fortran 2008 status and file extensions.
381 * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
382 as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
383 ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
384 * invoke.texi: Document the new -std=f2008 option.
386 2008-03-02 Jakub Jelinek <jakub@redhat.com>
388 * gfortranspec.c (lang_specific_driver): Update copyright notice
391 2008-02-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
394 * expr.c (find_array_element): Modify traversing the constructor to
395 avoid trying to access NULL memory pointed to by next for the
396 last element. (find_array_section): Exit while loop if cons->next is
398 * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
399 (gfc_conv_function_call): Same.
400 * decl.c (gfc_match_implicit): Same.
401 * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
403 2008-02-28 Daniel Franke <franke.daniel@gmail.com>
408 * lang.opt: Added -Wreturn-type.
409 * options.c (gfc_handle_option): Recognize -Wreturn-type.
410 * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
411 where the result value is not set.
412 (gfc_generate_function_code): Likewise.
413 (generate_local_decl): Emit warnings for funtions whose RESULT
416 2008-02-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
419 * trans-expr.c (gfc_conv_variable): Don't build indirect
420 references when explicit interface is mandated.
421 * resolve.c (resolve_formal_arglist): Set attr.always_explicit
422 on the result symbol as well as the procedure symbol.
424 2008-02-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
427 * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
428 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
429 gfor_fndecl_math_exponent16.
430 * f95-lang.c (build_builtin_fntypes): Add new function types.
431 (gfc_init_builtin_functions): Add new builtins for nextafter,
432 frexp, ldexp, fabs, scalbn and inf.
433 * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
434 (gfc_resolve_scale): Don't convert type of second argument.
435 (gfc_resolve_set_exponent): Likewise.
436 (gfc_resolve_size): Don't add hidden arguments.
437 * trans-decl.c: Remove gfor_fndecl_math_exponent4,
438 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
439 gfor_fndecl_math_exponent16.
440 * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
441 for scalbn, fraction, nearest, rrspacing, set_exponent and
443 (gfc_conv_intrinsic_exponent): Directly call frexp.
444 (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
445 gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
446 gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
448 (gfc_conv_intrinsic_function): Use the new functions above.
450 2008-02-26 Tobias Burnus <burnus@net-b.de>
453 * interface.c (check_operator_interface): Show better line for error
454 messages; fix constrains for user-defined assignment operators.
455 (gfc_extend_assign): Fix constrains for user-defined assignment
458 2008-02-26 Tom Tromey <tromey@redhat.com>
460 * trans-io.c (set_error_locus): Remove old location code.
461 * trans-decl.c (gfc_set_decl_location): Remove old location code.
462 * f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
463 * scanner.c (gfc_gobble_whitespace): Remove old location code.
464 (get_file): Likewise.
465 (preprocessor_line): Likewise.
466 (load_file): Likewise.
467 (gfc_new_file): Likewise.
468 * trans.c (gfc_trans_runtime_check): Remove old location code.
469 (gfc_get_backend_locus): Likewise.
470 (gfc_set_backend_locus): Likewise.
471 * data.c (gfc_assign_data_value): Remove old location code.
472 * error.c (show_locus): Remove old location code.
473 * gfortran.h (gfc_linebuf): Remove old location code.
474 (gfc_linebuf_linenum): Remove old-location variant.
476 2008-02-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
479 * trans-const.c (gfc_build_string_const): Don't call gettext.
480 (gfc_build_localized_string_const): New function.
481 * trans-const.h (gfc_build_localized_string_const): New prototype.
482 * trans.c (gfc_trans_runtime_check): Use
483 gfc_build_localized_string_const instead of gfc_build_string_const.
484 (gfc_call_malloc): Likewise.
485 (gfc_allocate_with_status): Likewise.
486 (gfc_allocate_array_with_status): Likewise.
487 (gfc_deallocate_with_status): Likewise.
488 (gfc_call_realloc): Likewise.
489 * trans-io.c (gfc_trans_io_runtime_check): Likewise.
491 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
493 * arith.c: Update copyright years.
501 * dependency.c: Likewise.
502 * dependency.h: Likewise.
503 * dump-parse-tree.c: Likewise.
506 * gfc-internals.texi: Likewise.
507 * gfortran.h: Likewise.
508 * gfortran.texi: Likewise.
509 * gfortranspec.c: Likewise.
510 * interface.c: Likewise.
511 * intrinsic.c: Likewise.
512 * intrinsic.h: Likewise.
513 * intrinsic.texi: Likewise.
514 * invoke.texi: Likewise.
516 * iresolve.c: Likewise.
517 * iso-c-binding.def: Likewise.
518 * iso-fortran-env.def: Likewise.
519 * lang-specs.h: Likewise.
520 * lang.opt: Likewise.
521 * libgfortran.h: Likewise.
524 * matchexp.c: Likewise.
526 * module.c: Likewise.
527 * openmp.c: Likewise.
528 * options.c: Likewise.
531 * primary.c: Likewise.
532 * resolve.c: Likewise.
533 * scanner.c: Likewise.
534 * simplify.c: Likewise.
536 * symbol.c: Likewise.
537 * target-memory.c: Likewise.
538 * target-memory.h: Likewise.
539 * trans-array.h: Likewise.
540 * trans-const.h: Likewise.
541 * trans-stmt.h: Likewise.
542 * trans-types.c: Likewise.
543 * trans-types.h: Likewise.
544 * types.def: Likewise.
546 2008-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
549 * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
550 (gfc_simplify_ibset): Remove call to range_check.
551 (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
552 (gfc_simplify_real): Add call gfc_clear_ts to initialize the
553 temporary gfc_typspec variable.
555 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
557 * trans-array.c (gfc_conv_descriptor_data_get,
558 gfc_conv_descriptor_data_set_internal,
559 gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
560 gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
561 gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
562 gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
563 gfc_conv_array_transpose, gfc_grow_array,
564 gfc_trans_array_constructor_subarray,
565 gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
566 gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
567 gfc_conv_array_initializer, gfc_trans_array_bounds,
568 gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
569 gfc_get_dataptr_offset, gfc_conv_array_parameter,
570 gfc_trans_dealloc_allocated, get_full_array_size,
571 gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
573 * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
574 gfc_conv_component_ref, gfc_conv_cst_int_power,
575 gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
576 * trans-common.c (create_common): Likewise.
577 * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
579 * trans-const.c (gfc_conv_constant_to_tree): Likewise.
580 * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
581 gfc_trans_integer_select, gfc_trans_character_select,
582 gfc_trans_forall_loop, compute_overall_iter_number,
583 gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
584 gfc_trans_deallocate): Likewise.
585 * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
586 gfc_allocate_with_status, gfc_allocate_array_with_status,
587 gfc_deallocate_with_status): Likewise.
588 * f95-lang.c (gfc_truthvalue_conversion): Likewise.
589 * trans-io.c (set_parameter_const, set_parameter_value,
590 set_parameter_ref, set_string, set_internal_unit, io_result,
591 set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
592 * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
593 gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
594 gfc_generate_function_code): Likewise.
595 * convert.c (convert): Likewise.
596 * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
597 build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
598 gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
599 gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
600 gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
601 gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
602 gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
603 gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
604 gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
605 gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
606 gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
607 gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
608 gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
609 gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
610 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
611 gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
612 gfc_conv_intrinsic_repeat): Likewise.
614 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
617 * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
618 * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
619 * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
620 gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
621 * trans-decl.c: Likewise.
623 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
626 * expr.c (find_array_element): Modify traversing the constructor to
627 avoid trying to access NULL memory pointed to by next for the
628 last element. (find_array_section): Exit while loop if cons->next is
631 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
634 * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
636 (gfc_resolve_aint): Likewise.
637 (gfc_resolve_anint): Likewise.
638 (gfc_resolve_besn): Likewise.
639 (gfc_resolve_cshift): Likewise.
640 (gfc_resolve_ctime): Likewise.
641 (gfc_resolve_eoshift): Likewise.
642 (gfc_resolve_index_func): Likewise.
643 (gfc_resolve_isatty): Likewise.
644 (gfc_resolve_malloc): Likewise.
645 (gfc_resolve_rrspacing): Likewise.
646 (gfc_resolve_scale): Likewise.
647 (gfc_resolve_set_exponent): Likewise.
648 (gfc_resolve_spacing): Likewise.
649 (gfc_resolve_spacing): Likewise.
650 (gfc_resolve_fgetc): Likewise.
651 (gfc_resolve_fputc): Likewise.
652 (gfc_resolve_ftell): Likewise.
653 (gfc_resolve_ttynam): Likewise.
654 (gfc_resolve_alarm_sub): Likewise.
655 (gfc_resolve_mvbits): Likewise.
656 (gfc_resolve_getarg): Likewise.
657 (gfc_resolve_signal_sub): Likewise.
658 (gfc_resolve_exit): Likewise.
659 (gfc_resolve_flush): Likewise.
660 (gfc_resolve_free): Likewise.
661 (gfc_resolve_ctime_sub): Likewise.
662 (gfc_resolve_fgetc_sub): Likewise.
663 (gfc_resolve_fputc_sub): Likewise.
664 (gfc_resolve_fseek_sub): Likewise.
665 (gfc_resolve_ftell_sub): Likewise.
666 (gfc_resolve_ttynam_sub): Likewise.
668 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
670 * gfc-internals.texi: Fix typos and markup nits.
671 * gfortran.texi: Likewise.
672 * intrinsic.texi: Likewise.
674 2008-02-21 Richard Guenther <rguenther@suse.de>
676 * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
677 as unary PAREN_EXPR for real and complex typed expressions.
678 (gfc_conv_unary_op): Fold the built tree.
680 2008-02-20 Tobias Burnus <burnus@net-b.de>
683 * match.c (gfc_match_name): Improve error message for '$'.
685 2008-02-19 Daniel Franke <franke.daniel@gmail.com>
688 * expr.c (gfc_check_pointer_assign): Add type and kind information
689 to type-mismatch message.
690 (gfc_check_assign): Unify error messages.
692 2008-02-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
695 * gfortran.texi: Create new section for unimplemented extensions.
696 Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
697 Remove "smaller projects" list. Fix a few typos.
699 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
701 * intrinsic.texi: Rename INDEX node to avoid clashing with
702 index.html on case-insensitive systems.
704 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
707 * trans-expr.c (gfc_conv_function_call): Force evaluation of
710 2008-02-10 Daniel Franke <franke.daniel@gmail.com>
713 * lang.opt: Allow '-J<dir>' next to '-J <dir>',
714 likewise '-I <dir>' and '-I<dir>'.
716 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
719 * Make-lang.in (f951): Add $(GMPLIBS).
721 2008-02-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
724 * trans-common.c (build_field): Mark fields as volatile when needed.
726 2008-02-05 Tobias Burnus <burnus@net-b.de>
729 * data.c (gfc_assign_data_value): Only free "size" if
730 it has not already been freed.
732 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
735 * array.c (match_array_element_spec): Remove check for negative
737 (gfc_resolve_array_spec): Add check for negative size.
739 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
742 * data.c (gfc_assign_data_value): Add bounds check for array
745 2008-02-04 Daniel Franke <franke.daniel@gmail.com>
747 * resolve.c (resolve_where): Fix typo.
748 (gfc_resolve_where_code_in_forall): Likewise.
750 2008-02-03 Paul Thomas <pault@gcc.gnu.org>
753 * resolve.c (resolve_allocate_deallocate): New function.
754 (resolve_code): Call it for allocate and deallocate.
755 * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
756 the checking of the STAT tag and put in above new function.
757 * primary,c (match_variable): Do not fix flavor of host
758 associated symbols yet if the type is not known.
760 2008-01-31 Paul Thomas <pault@gcc.gnu.org>
763 * expr.c (gfc_check_assign): It is an error to assign
764 to a sibling procedure.
766 2008-01-30 Paul Thomas <pault@gcc.gnu.org>
769 * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
770 delete_symtree to gfc_delete_symtree.
771 * gfortran.h : Add prototype for gfc_delete_symtree.
772 * module.c (load_generic_interfaces): Transfer symbol to a
773 unique symtree and delete old symtree, instead of renaming.
774 (read_module): The rsym and the found symbol are the same, so
775 the found symtree can be deleted.
778 * decl.c (match_char_spec): Remove the constraint on deferred
779 matching of functions and free the length expression.
780 delete_symtree to gfc_delete_symtree.
781 (gfc_match_type_spec): Whitespace.
782 (gfc_match_function_decl): Defer characteristic association for
783 all types except BT_UNKNOWN.
784 * parse.c (decode_specification_statement): Only derived type
785 function matching is delayed to the end of specification.
787 2008-01-28 Tobias Burnus <burnus@net-b.de>
790 * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
792 2008-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
795 * array.c (gfc_check_constructor_type): Revert clearing the expression.
797 2008-01-26 Tobias Burnus <burnus@net-b.de>
800 * trans-expr.c (gfc_conv_function_call): Don't call
801 gfc_add_interface_mapping if the expression is NULL.
803 2008-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
806 * trans-array.c (gfc_trans_create_temp_array): Remove call to
807 gcc_assert (integer_zerop (loop->from[n])).
809 2008-01-25 Daniel Franke <franke.daniel@gmail.com>
812 * resolve.c (resolve_where): Added check if user-defined assignment
813 operator is an elemental subroutine.
814 (gfc_resolve_where_code_in_forall): Likewise.
816 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
820 * gfortran.h: Revert changes from 2008-01-17.
822 * symbol.c: Likewise.
823 (gfc_undo_symbols): Undo namespace changes related to common blocks.
825 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
828 * data.c (formalize_structure_cons): Skip formalization on
831 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
833 * gfortran.texi (OpenMP): Extended existing documentation.
834 (contributors): Added major contributors of 2008 that were
836 (proposed extensions): Removed implemented items.
838 2008-01-24 Paul Thomas <pault@gcc.gnu.org>
841 * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS is
842 seen, check for a statement label and, if present, delete it
843 and set the locus to the start of the statement.
845 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
848 * trans-io.c (gfc_trans_transfer): If the array reference in a
849 read has a vector subscript, use gfc_conv_subref_array_arg to
850 copy back the temporary.
852 2008-01-22 Tobias Burnus <burnus@net-b.de>
855 * interface.c (compare_actual_formal): Fix adding type
856 to missing_arg_type for absent optional arguments.
858 2008-01-22 Tobias Burnus <burnus@net-b.de>
861 * parse.c (parse_spec): Change = into ==.
863 2008-01-22 Daniel Franke <franke.daniel@gmail.com>
866 * expr.c (check_elemental): Fix check for valid data types.
868 2008-01-22 Tobias Burnus <burnus@net-b.de>
871 * scanner.c (load_line): Support <tab><digit> continuation lines.
872 * invoke.texi (-Wtabs): Document this.
874 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
877 * module.c (read_module): Set use_rename attribute.
879 2007-01-21 Tobias Burnus <burnus@net-b.de>
882 * interface.c (compare_parameter): Improved error message
883 for arguments of same type and mismatched kinds.
885 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
888 * resolve.c (resolve_entries): Do not do an array bounds check
889 if the result symbols are the same.
892 * module.c (read_module) : Hide the symtree of the previous
893 version of the symbol if this symbol is renamed.
895 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
898 * array.c (gfc_check_constructor_type): Clear the expression ts
899 so that the checking starts from the deepest level of array
901 * primary.c (match_varspec): If an unknown type is changed to
902 default character and the attempt to match a substring fails,
903 change it back to unknown.
906 * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
907 NULL for an array constructor, use the cl.length expression to
909 (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
912 2008-01-19 Thomas Koenig <tkoenig@gcc.gnu.org>
916 * iresolve.c (gfc_resolve_all): Remove conversion of mask
917 argument to kind=1 by removing call to resolve_mask_arg().
918 (gfc_resolve_any): Likewise.
920 2008-01-19 Tobias Burnus <burnus@net-b.de>
923 * primary.c (match_variable): Handle FL_UNKNOWN without
925 (match_variable): Improve error message.
927 2008-01-18 Tobias Burnus <burnus@net-b.de>
930 * interface.c (get_expr_storage_size): Return storage size
931 for array element designators.
932 (compare_actual_formal): Reject unequal string sizes for
933 assumed-shape dummy arguments. And fix error message for
934 array-sections with vector subscripts.
936 2008-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
939 * simplify.c (is_constant_array_expr): New static function that returns
940 true if the given expression is an array and is constant.
941 (gfc_simplify_reshape): Use new function.
943 2008-01-17 H.J. Lu <hongjiu.lu@intel.com>
946 * symbol.c (free_common_tree): Renamed to ...
947 (gfc_free_common_tree): This. Remove static.
948 (gfc_free_namespace): Updated.
950 * gfortran.h (gfc_free_common_tree): New.
952 * match.c (gfc_match_common): Call gfc_free_common_tree () with
953 gfc_current_ns->common_root and set gfc_current_ns->common_root
954 to NULL on syntax error.
956 2008-01-18 Richard Sandiford <rsandifo@nildram.co.uk>
959 * trans-expr.c (gfc_conv_function_call): Use proper
960 type for returned character pointers.
962 2008-01-17 Paul Thomas <pault@gcc.gnu.org>
967 * decl.c : Remove gfc_function_kind_locus and
968 gfc_function_type_locus. Add gfc_matching_function.
969 (match_char_length): If matching a function and the length
970 does not match, return MATCH_YES and try again later.
971 (gfc_match_kind_spec): The same.
972 (match_char_kind): The same.
973 (gfc_match_type_spec): The same for numeric and derived types.
974 (match_prefix): Rename as gfc_match_prefix.
975 (gfc_match_function_decl): Except for function valued character
976 lengths, defer applying kind, type and charlen info until the
977 end of specification block.
978 gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
979 parse.c (decode_specification_statement): New function.
980 (decode_statement): Call it when a function has kind = -1. Set
981 and reset gfc_matching function, as function statement is being
983 (match_deferred_characteristics): Simplify with a single call
984 to gfc_match_prefix. Do appropriate error handling. In any
985 case, make sure that kind = -1 is reset or corrected.
986 (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
987 Throw an error if kind = -1 after last specification statement.
988 parse.h : Prototype for gfc_match_prefix.
990 2008-01-16 Tobias Burnus <burnus@net-b.de>
993 * interface.c (compare_parameter): Allow AS_DEFERRED array
994 elements and reject attr.pointer array elemenents.
995 (get_expr_storage_size): Return storage size of elements of
996 assumed-shape and pointer arrays.
998 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
1000 * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
1001 for flag_tree_parallelize_loops.
1003 2008-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
1006 * iresolve.c (gfc_resolve_all): Call resolve_mask_arg.
1007 (gfc_resolve_any): Likewise.
1008 (gfc_resolve_count): Likewise. Don't append kind of
1009 argument to function name.
1011 2008-01-13 Tobias Burnus <burnus@net-b.de>
1014 * resolve.c (resolve_actual_arglist): For expressions,
1015 also check for assume-sized arrays.
1016 * interface.c (compare_parameter): Move F2003 character checks
1017 here, print error messages here, reject elements of
1018 assumed-shape array as argument to dummy arrays.
1019 (compare_actual_formal): Update for the changes above.
1021 2008-01-13 Tobias Burnus <burnus@net-b.de>
1024 * decl.c (contained_procedure): Only check directly preceeding state.
1026 2008-01-13 Tobias Burnus <burnus@net-b.de>
1029 * check.c (gfc_check_shape): Accept array ranges of
1030 assumed-size arrays.
1032 2008-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1035 * match.c (gfc_match_name): Don't error if leading character is a '(',
1036 just return MATCH_NO.
1038 2008-01-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1041 * trans-io.c (create_dummy_iostat): Commit the symbol.
1043 2008-01-11 Paul Thomas <pault@gcc.gnu.org>
1046 * simplify.c (gfc_simplify_transfer): Return NULL if the size
1047 of the element is unavailable and only assign character length
1048 to the result, if 'mold' is constant.
1050 2008-01-10 Paul Thomas <pault@gcc.gnu.org>
1053 * trans-array.c (gfc_trans_array_ctor_element): Use gfc_trans_string_copy
1054 to assign strings and perform bounds checks on the string length.
1055 (get_array_ctor_strlen): Remove bounds checking.
1056 (gfc_trans_array_constructor): Initialize string length checking.
1057 * trans-array.h : Add prototype for gfc_trans_string_copy.
1059 2008-01-08 Richard Guenther <rguenther@suse.de>
1062 PR tree-optimization/34683
1063 * trans-types.c (gfc_get_array_type_bounds): Use an array type
1064 with known size for accesses if that is known.
1066 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1069 * expr.c (find_array_element): Check that the array bounds are
1070 constant before using them. Use lower, as well as upper bound.
1071 (check_restricted): Allow implied index variable.
1073 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1076 * trans_array.c (gfc_trans_deferred_array): Do not null the
1077 data pointer on entering scope, nor deallocate it on leaving
1078 scope, if the symbol has the 'save' attribute.
1081 * trans_decl.c (gfc_finish_var_decl): Derived types with
1082 allocatable components and an initializer must be TREE_STATIC.
1084 2008-01-07 Paul Thomas <pault@gcc.gnu.org>
1087 * module.c (write_generic): Rewrite completely.
1088 (write_module): Change call to write_generic.
1090 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1093 * scanner.c (load_line): Do not count ' ' as printable when checking for
1096 2008-01-06 Paul Thomas <pault@gcc.gnu.org>
1099 * module.c (load_needed): If the namespace has no proc_name
1100 give it the module symbol.
1102 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1105 * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
1106 the dummy variable expression, test for NULL, and pass the variable
1107 address to the called function.
1109 2007-01-06 Tobias Burnus <burnus@net-b.de>
1112 * match.c (gfc_match_common): Remove blank common in
1114 * resolve.c (resolve_common_vars): New function.
1115 (resolve_common_blocks): Move checks to resolve_common_vars
1116 and invoke that function.
1117 (resolve_types): Call resolve_common_vars for blank commons.
1119 2008-01-06 Tobias Burnus <burnus@net-b.de>
1122 * resolve.c (resolve_equivalence_derived): Reject derived types with
1123 default initialization if equivalenced with COMMON variable.
1125 2008-01-06 Tobias Burnus <burnus@net-b.de>
1128 * io.c (check_io_constraints): Disallow unformatted I/O for
1131 2008-01-06 Tobias Burnus <burnus@net-b.de>
1134 * resolve.c (resolve_formal_arglist): Reject dummy procedure in
1135 ELEMENTAL functions.
1137 2008-01-06 Tobias Burnus <burnus@net-b.de>
1140 * interface.c (compare_actual_formal): Reject parameter
1141 actual to intent(out) dummy.
1143 2008-01-04 Tobias Burnus <burnus@net-b.de>
1146 * primary.c (match_varspec): Gobble whitespace before