1 2008-03-19 Daniel Franke <franke.daniel@gmail.com>
4 * interface.c (gfc_procedure_use): Check for keyworded arguments in
5 procedures without explicit interfaces.
7 2008-03-16 Paul Thomas <pault@gcc.gnu.org>
10 * resolve.c (check_assumed_size_reference): Only visit the
11 first reference and look directly at the highest dimension.
13 2008-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
16 * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
19 2008-03-15 Daniel Franke <franke.daniel@gmail.com>
22 * resolve.c (resolve_branch): Less strict and pessimistic warning
25 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
27 * f95-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
28 (gfc_be_parse_file): Call clear_binding_stack from here.
29 (gfc_clear_binding_stack): Rename to clear_binding_stack.
31 2008-03-09 Paul Thomas <pault@gcc.gnu.org>
34 * module.c (mio_symtree_ref): After providing a symbol for a
35 missing equivalence member, resolve and NULL the fixups.
37 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39 * invoke.texi (Error and Warning Options): Document
42 2008-03-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
45 * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
46 checking bounds of absent optional arguments.
48 2008-03-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
51 * intrinsic.c (add_functions): Add simplification routines for
52 ERF, DERF, ERFC and DERFC.
53 * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
54 extensions into Fortran 2008 features.
55 * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
57 * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
59 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
62 * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
63 ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
64 ERFC_SCALED, LOG_GAMMA and HYPOT.
65 * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
66 gfc_resolve_hypot): New prototypes.
67 * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
68 ACOSH, ASINH and ATANH available.
69 * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
70 * lang.opt: Add -std=f2008 option.
71 * libgfortran.h: Define GFC_STD_F2008.
72 * lang-specs.h: Add .f08 and .F08 file suffixes.
73 * iresolve.c (gfc_resolve_hypot): New function.
74 * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
75 * check.c (gfc_check_hypot): New function.
76 * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
77 * options.c (set_default_std_flags): Allow Fortran 2008 by default.
78 (form_from_filename): Add .f08 suffix.
79 (gfc_handle_option): Handle -std=f2008 option.
80 * simplify.c (gfc_simplify_hypot): New function.
81 * gfortran.texi: Document Fortran 2008 status and file extensions.
82 * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
83 as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
84 ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
85 * invoke.texi: Document the new -std=f2008 option.
87 2008-03-02 Jakub Jelinek <jakub@redhat.com>
89 * gfortranspec.c (lang_specific_driver): Update copyright notice
92 2008-02-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
95 * expr.c (find_array_element): Modify traversing the constructor to
96 avoid trying to access NULL memory pointed to by next for the
97 last element. (find_array_section): Exit while loop if cons->next is
99 * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
100 (gfc_conv_function_call): Same.
101 * decl.c (gfc_match_implicit): Same.
102 * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
104 2008-02-28 Daniel Franke <franke.daniel@gmail.com>
109 * lang.opt: Added -Wreturn-type.
110 * options.c (gfc_handle_option): Recognize -Wreturn-type.
111 * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
112 where the result value is not set.
113 (gfc_generate_function_code): Likewise.
114 (generate_local_decl): Emit warnings for funtions whose RESULT
117 2008-02-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
120 * trans-expr.c (gfc_conv_variable): Don't build indirect
121 references when explicit interface is mandated.
122 * resolve.c (resolve_formal_arglist): Set attr.always_explicit
123 on the result symbol as well as the procedure symbol.
125 2008-02-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
128 * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
129 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
130 gfor_fndecl_math_exponent16.
131 * f95-lang.c (build_builtin_fntypes): Add new function types.
132 (gfc_init_builtin_functions): Add new builtins for nextafter,
133 frexp, ldexp, fabs, scalbn and inf.
134 * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
135 (gfc_resolve_scale): Don't convert type of second argument.
136 (gfc_resolve_set_exponent): Likewise.
137 (gfc_resolve_size): Don't add hidden arguments.
138 * trans-decl.c: Remove gfor_fndecl_math_exponent4,
139 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
140 gfor_fndecl_math_exponent16.
141 * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
142 for scalbn, fraction, nearest, rrspacing, set_exponent and
144 (gfc_conv_intrinsic_exponent): Directly call frexp.
145 (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
146 gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
147 gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
149 (gfc_conv_intrinsic_function): Use the new functions above.
151 2008-02-26 Tobias Burnus <burnus@net-b.de>
154 * interface.c (check_operator_interface): Show better line for error
155 messages; fix constrains for user-defined assignment operators.
156 (gfc_extend_assign): Fix constrains for user-defined assignment
159 2008-02-26 Tom Tromey <tromey@redhat.com>
161 * trans-io.c (set_error_locus): Remove old location code.
162 * trans-decl.c (gfc_set_decl_location): Remove old location code.
163 * f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
164 * scanner.c (gfc_gobble_whitespace): Remove old location code.
165 (get_file): Likewise.
166 (preprocessor_line): Likewise.
167 (load_file): Likewise.
168 (gfc_new_file): Likewise.
169 * trans.c (gfc_trans_runtime_check): Remove old location code.
170 (gfc_get_backend_locus): Likewise.
171 (gfc_set_backend_locus): Likewise.
172 * data.c (gfc_assign_data_value): Remove old location code.
173 * error.c (show_locus): Remove old location code.
174 * gfortran.h (gfc_linebuf): Remove old location code.
175 (gfc_linebuf_linenum): Remove old-location variant.
177 2008-02-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
180 * trans-const.c (gfc_build_string_const): Don't call gettext.
181 (gfc_build_localized_string_const): New function.
182 * trans-const.h (gfc_build_localized_string_const): New prototype.
183 * trans.c (gfc_trans_runtime_check): Use
184 gfc_build_localized_string_const instead of gfc_build_string_const.
185 (gfc_call_malloc): Likewise.
186 (gfc_allocate_with_status): Likewise.
187 (gfc_allocate_array_with_status): Likewise.
188 (gfc_deallocate_with_status): Likewise.
189 (gfc_call_realloc): Likewise.
190 * trans-io.c (gfc_trans_io_runtime_check): Likewise.
192 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
194 * arith.c: Update copyright years.
202 * dependency.c: Likewise.
203 * dependency.h: Likewise.
204 * dump-parse-tree.c: Likewise.
207 * gfc-internals.texi: Likewise.
208 * gfortran.h: Likewise.
209 * gfortran.texi: Likewise.
210 * gfortranspec.c: Likewise.
211 * interface.c: Likewise.
212 * intrinsic.c: Likewise.
213 * intrinsic.h: Likewise.
214 * intrinsic.texi: Likewise.
215 * invoke.texi: Likewise.
217 * iresolve.c: Likewise.
218 * iso-c-binding.def: Likewise.
219 * iso-fortran-env.def: Likewise.
220 * lang-specs.h: Likewise.
221 * lang.opt: Likewise.
222 * libgfortran.h: Likewise.
225 * matchexp.c: Likewise.
227 * module.c: Likewise.
228 * openmp.c: Likewise.
229 * options.c: Likewise.
232 * primary.c: Likewise.
233 * resolve.c: Likewise.
234 * scanner.c: Likewise.
235 * simplify.c: Likewise.
237 * symbol.c: Likewise.
238 * target-memory.c: Likewise.
239 * target-memory.h: Likewise.
240 * trans-array.h: Likewise.
241 * trans-const.h: Likewise.
242 * trans-stmt.h: Likewise.
243 * trans-types.c: Likewise.
244 * trans-types.h: Likewise.
245 * types.def: Likewise.
247 2008-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
250 * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
251 (gfc_simplify_ibset): Remove call to range_check.
252 (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
253 (gfc_simplify_real): Add call gfc_clear_ts to initialize the
254 temporary gfc_typspec variable.
256 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
258 * trans-array.c (gfc_conv_descriptor_data_get,
259 gfc_conv_descriptor_data_set_internal,
260 gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
261 gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
262 gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
263 gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
264 gfc_conv_array_transpose, gfc_grow_array,
265 gfc_trans_array_constructor_subarray,
266 gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
267 gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
268 gfc_conv_array_initializer, gfc_trans_array_bounds,
269 gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
270 gfc_get_dataptr_offset, gfc_conv_array_parameter,
271 gfc_trans_dealloc_allocated, get_full_array_size,
272 gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
274 * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
275 gfc_conv_component_ref, gfc_conv_cst_int_power,
276 gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
277 * trans-common.c (create_common): Likewise.
278 * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
280 * trans-const.c (gfc_conv_constant_to_tree): Likewise.
281 * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
282 gfc_trans_integer_select, gfc_trans_character_select,
283 gfc_trans_forall_loop, compute_overall_iter_number,
284 gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
285 gfc_trans_deallocate): Likewise.
286 * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
287 gfc_allocate_with_status, gfc_allocate_array_with_status,
288 gfc_deallocate_with_status): Likewise.
289 * f95-lang.c (gfc_truthvalue_conversion): Likewise.
290 * trans-io.c (set_parameter_const, set_parameter_value,
291 set_parameter_ref, set_string, set_internal_unit, io_result,
292 set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
293 * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
294 gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
295 gfc_generate_function_code): Likewise.
296 * convert.c (convert): Likewise.
297 * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
298 build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
299 gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
300 gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
301 gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
302 gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
303 gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
304 gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
305 gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
306 gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
307 gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
308 gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
309 gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
310 gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
311 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
312 gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
313 gfc_conv_intrinsic_repeat): Likewise.
315 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
318 * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
319 * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
320 * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
321 gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
322 * trans-decl.c: Likewise.
324 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
327 * expr.c (find_array_element): Modify traversing the constructor to
328 avoid trying to access NULL memory pointed to by next for the
329 last element. (find_array_section): Exit while loop if cons->next is
332 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
335 * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
337 (gfc_resolve_aint): Likewise.
338 (gfc_resolve_anint): Likewise.
339 (gfc_resolve_besn): Likewise.
340 (gfc_resolve_cshift): Likewise.
341 (gfc_resolve_ctime): Likewise.
342 (gfc_resolve_eoshift): Likewise.
343 (gfc_resolve_index_func): Likewise.
344 (gfc_resolve_isatty): Likewise.
345 (gfc_resolve_malloc): Likewise.
346 (gfc_resolve_rrspacing): Likewise.
347 (gfc_resolve_scale): Likewise.
348 (gfc_resolve_set_exponent): Likewise.
349 (gfc_resolve_spacing): Likewise.
350 (gfc_resolve_spacing): Likewise.
351 (gfc_resolve_fgetc): Likewise.
352 (gfc_resolve_fputc): Likewise.
353 (gfc_resolve_ftell): Likewise.
354 (gfc_resolve_ttynam): Likewise.
355 (gfc_resolve_alarm_sub): Likewise.
356 (gfc_resolve_mvbits): Likewise.
357 (gfc_resolve_getarg): Likewise.
358 (gfc_resolve_signal_sub): Likewise.
359 (gfc_resolve_exit): Likewise.
360 (gfc_resolve_flush): Likewise.
361 (gfc_resolve_free): Likewise.
362 (gfc_resolve_ctime_sub): Likewise.
363 (gfc_resolve_fgetc_sub): Likewise.
364 (gfc_resolve_fputc_sub): Likewise.
365 (gfc_resolve_fseek_sub): Likewise.
366 (gfc_resolve_ftell_sub): Likewise.
367 (gfc_resolve_ttynam_sub): Likewise.
369 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
371 * gfc-internals.texi: Fix typos and markup nits.
372 * gfortran.texi: Likewise.
373 * intrinsic.texi: Likewise.
375 2008-02-21 Richard Guenther <rguenther@suse.de>
377 * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
378 as unary PAREN_EXPR for real and complex typed expressions.
379 (gfc_conv_unary_op): Fold the built tree.
381 2008-02-20 Tobias Burnus <burnus@net-b.de>
384 * match.c (gfc_match_name): Improve error message for '$'.
386 2008-02-19 Daniel Franke <franke.daniel@gmail.com>
389 * expr.c (gfc_check_pointer_assign): Add type and kind information
390 to type-mismatch message.
391 (gfc_check_assign): Unify error messages.
393 2008-02-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
396 * gfortran.texi: Create new section for unimplemented extensions.
397 Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
398 Remove "smaller projects" list. Fix a few typos.
400 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
402 * intrinsic.texi: Rename INDEX node to avoid clashing with
403 index.html on case-insensitive systems.
405 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
408 * trans-expr.c (gfc_conv_function_call): Force evaluation of
411 2008-02-10 Daniel Franke <franke.daniel@gmail.com>
414 * lang.opt: Allow '-J<dir>' next to '-J <dir>',
415 likewise '-I <dir>' and '-I<dir>'.
417 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
420 * Make-lang.in (f951): Add $(GMPLIBS).
422 2008-02-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
425 * trans-common.c (build_field): Mark fields as volatile when needed.
427 2008-02-05 Tobias Burnus <burnus@net-b.de>
430 * data.c (gfc_assign_data_value): Only free "size" if
431 it has not already been freed.
433 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
436 * array.c (match_array_element_spec): Remove check for negative
438 (gfc_resolve_array_spec): Add check for negative size.
440 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
443 * data.c (gfc_assign_data_value): Add bounds check for array
446 2008-02-04 Daniel Franke <franke.daniel@gmail.com>
448 * resolve.c (resolve_where): Fix typo.
449 (gfc_resolve_where_code_in_forall): Likewise.
451 2008-02-03 Paul Thomas <pault@gcc.gnu.org>
454 * resolve.c (resolve_allocate_deallocate): New function.
455 (resolve_code): Call it for allocate and deallocate.
456 * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
457 the checking of the STAT tag and put in above new function.
458 * primary,c (match_variable): Do not fix flavor of host
459 associated symbols yet if the type is not known.
461 2008-01-31 Paul Thomas <pault@gcc.gnu.org>
464 * expr.c (gfc_check_assign): It is an error to assign
465 to a sibling procedure.
467 2008-01-30 Paul Thomas <pault@gcc.gnu.org>
470 * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
471 delete_symtree to gfc_delete_symtree.
472 * gfortran.h : Add prototype for gfc_delete_symtree.
473 * module.c (load_generic_interfaces): Transfer symbol to a
474 unique symtree and delete old symtree, instead of renaming.
475 (read_module): The rsym and the found symbol are the same, so
476 the found symtree can be deleted.
479 * decl.c (match_char_spec): Remove the constraint on deferred
480 matching of functions and free the length expression.
481 delete_symtree to gfc_delete_symtree.
482 (gfc_match_type_spec): Whitespace.
483 (gfc_match_function_decl): Defer characteristic association for
484 all types except BT_UNKNOWN.
485 * parse.c (decode_specification_statement): Only derived type
486 function matching is delayed to the end of specification.
488 2008-01-28 Tobias Burnus <burnus@net-b.de>
491 * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
493 2008-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
496 * array.c (gfc_check_constructor_type): Revert clearing the expression.
498 2008-01-26 Tobias Burnus <burnus@net-b.de>
501 * trans-expr.c (gfc_conv_function_call): Don't call
502 gfc_add_interface_mapping if the expression is NULL.
504 2008-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
507 * trans-array.c (gfc_trans_create_temp_array): Remove call to
508 gcc_assert (integer_zerop (loop->from[n])).
510 2008-01-25 Daniel Franke <franke.daniel@gmail.com>
513 * resolve.c (resolve_where): Added check if user-defined assignment
514 operator is an elemental subroutine.
515 (gfc_resolve_where_code_in_forall): Likewise.
517 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
521 * gfortran.h: Revert changes from 2008-01-17.
523 * symbol.c: Likewise.
524 (gfc_undo_symbols): Undo namespace changes related to common blocks.
526 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
529 * data.c (formalize_structure_cons): Skip formalization on
532 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
534 * gfortran.texi (OpenMP): Extended existing documentation.
535 (contributors): Added major contributors of 2008 that were
537 (proposed extensions): Removed implemented items.
539 2008-01-24 Paul Thomas <pault@gcc.gnu.org>
542 * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS is
543 seen, check for a statement label and, if present, delete it
544 and set the locus to the start of the statement.
546 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
549 * trans-io.c (gfc_trans_transfer): If the array reference in a
550 read has a vector subscript, use gfc_conv_subref_array_arg to
551 copy back the temporary.
553 2008-01-22 Tobias Burnus <burnus@net-b.de>
556 * interface.c (compare_actual_formal): Fix adding type
557 to missing_arg_type for absent optional arguments.
559 2008-01-22 Tobias Burnus <burnus@net-b.de>
562 * parse.c (parse_spec): Change = into ==.
564 2008-01-22 Daniel Franke <franke.daniel@gmail.com>
567 * expr.c (check_elemental): Fix check for valid data types.
569 2008-01-22 Tobias Burnus <burnus@net-b.de>
572 * scanner.c (load_line): Support <tab><digit> continuation lines.
573 * invoke.texi (-Wtabs): Document this.
575 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
578 * module.c (read_module): Set use_rename attribute.
580 2007-01-21 Tobias Burnus <burnus@net-b.de>
583 * interface.c (compare_parameter): Improved error message
584 for arguments of same type and mismatched kinds.
586 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
589 * resolve.c (resolve_entries): Do not do an array bounds check
590 if the result symbols are the same.
593 * module.c (read_module) : Hide the symtree of the previous
594 version of the symbol if this symbol is renamed.
596 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
599 * array.c (gfc_check_constructor_type): Clear the expression ts
600 so that the checking starts from the deepest level of array
602 * primary.c (match_varspec): If an unknown type is changed to
603 default character and the attempt to match a substring fails,
604 change it back to unknown.
607 * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
608 NULL for an array constructor, use the cl.length expression to
610 (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
613 2008-01-19 Thomas Koenig <tkoenig@gcc.gnu.org>
617 * iresolve.c (gfc_resolve_all): Remove conversion of mask
618 argument to kind=1 by removing call to resolve_mask_arg().
619 (gfc_resolve_any): Likewise.
621 2008-01-19 Tobias Burnus <burnus@net-b.de>
624 * primary.c (match_variable): Handle FL_UNKNOWN without
626 (match_variable): Improve error message.
628 2008-01-18 Tobias Burnus <burnus@net-b.de>
631 * interface.c (get_expr_storage_size): Return storage size
632 for array element designators.
633 (compare_actual_formal): Reject unequal string sizes for
634 assumed-shape dummy arguments. And fix error message for
635 array-sections with vector subscripts.
637 2008-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
640 * simplify.c (is_constant_array_expr): New static function that returns
641 true if the given expression is an array and is constant.
642 (gfc_simplify_reshape): Use new function.
644 2008-01-17 H.J. Lu <hongjiu.lu@intel.com>
647 * symbol.c (free_common_tree): Renamed to ...
648 (gfc_free_common_tree): This. Remove static.
649 (gfc_free_namespace): Updated.
651 * gfortran.h (gfc_free_common_tree): New.
653 * match.c (gfc_match_common): Call gfc_free_common_tree () with
654 gfc_current_ns->common_root and set gfc_current_ns->common_root
655 to NULL on syntax error.
657 2008-01-18 Richard Sandiford <rsandifo@nildram.co.uk>
660 * trans-expr.c (gfc_conv_function_call): Use proper
661 type for returned character pointers.
663 2008-01-17 Paul Thomas <pault@gcc.gnu.org>
668 * decl.c : Remove gfc_function_kind_locus and
669 gfc_function_type_locus. Add gfc_matching_function.
670 (match_char_length): If matching a function and the length
671 does not match, return MATCH_YES and try again later.
672 (gfc_match_kind_spec): The same.
673 (match_char_kind): The same.
674 (gfc_match_type_spec): The same for numeric and derived types.
675 (match_prefix): Rename as gfc_match_prefix.
676 (gfc_match_function_decl): Except for function valued character
677 lengths, defer applying kind, type and charlen info until the
678 end of specification block.
679 gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
680 parse.c (decode_specification_statement): New function.
681 (decode_statement): Call it when a function has kind = -1. Set
682 and reset gfc_matching function, as function statement is being
684 (match_deferred_characteristics): Simplify with a single call
685 to gfc_match_prefix. Do appropriate error handling. In any
686 case, make sure that kind = -1 is reset or corrected.
687 (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
688 Throw an error if kind = -1 after last specification statement.
689 parse.h : Prototype for gfc_match_prefix.
691 2008-01-16 Tobias Burnus <burnus@net-b.de>
694 * interface.c (compare_parameter): Allow AS_DEFERRED array
695 elements and reject attr.pointer array elemenents.
696 (get_expr_storage_size): Return storage size of elements of
697 assumed-shape and pointer arrays.
699 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
701 * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
702 for flag_tree_parallelize_loops.
704 2008-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
707 * iresolve.c (gfc_resolve_all): Call resolve_mask_arg.
708 (gfc_resolve_any): Likewise.
709 (gfc_resolve_count): Likewise. Don't append kind of
710 argument to function name.
712 2008-01-13 Tobias Burnus <burnus@net-b.de>
715 * resolve.c (resolve_actual_arglist): For expressions,
716 also check for assume-sized arrays.
717 * interface.c (compare_parameter): Move F2003 character checks
718 here, print error messages here, reject elements of
719 assumed-shape array as argument to dummy arrays.
720 (compare_actual_formal): Update for the changes above.
722 2008-01-13 Tobias Burnus <burnus@net-b.de>
725 * decl.c (contained_procedure): Only check directly preceeding state.
727 2008-01-13 Tobias Burnus <burnus@net-b.de>
730 * check.c (gfc_check_shape): Accept array ranges of
733 2008-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
736 * match.c (gfc_match_name): Don't error if leading character is a '(',
737 just return MATCH_NO.
739 2008-01-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
742 * trans-io.c (create_dummy_iostat): Commit the symbol.
744 2008-01-11 Paul Thomas <pault@gcc.gnu.org>
747 * simplify.c (gfc_simplify_transfer): Return NULL if the size
748 of the element is unavailable and only assign character length
749 to the result, if 'mold' is constant.
751 2008-01-10 Paul Thomas <pault@gcc.gnu.org>
754 * trans-array.c (gfc_trans_array_ctor_element): Use gfc_trans_string_copy
755 to assign strings and perform bounds checks on the string length.
756 (get_array_ctor_strlen): Remove bounds checking.
757 (gfc_trans_array_constructor): Initialize string length checking.
758 * trans-array.h : Add prototype for gfc_trans_string_copy.
760 2008-01-08 Richard Guenther <rguenther@suse.de>
763 PR tree-optimization/34683
764 * trans-types.c (gfc_get_array_type_bounds): Use an array type
765 with known size for accesses if that is known.
767 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
770 * expr.c (find_array_element): Check that the array bounds are
771 constant before using them. Use lower, as well as upper bound.
772 (check_restricted): Allow implied index variable.
774 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
777 * trans_array.c (gfc_trans_deferred_array): Do not null the
778 data pointer on entering scope, nor deallocate it on leaving
779 scope, if the symbol has the 'save' attribute.
782 * trans_decl.c (gfc_finish_var_decl): Derived types with
783 allocatable components and an initializer must be TREE_STATIC.
785 2008-01-07 Paul Thomas <pault@gcc.gnu.org>
788 * module.c (write_generic): Rewrite completely.
789 (write_module): Change call to write_generic.
791 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
794 * scanner.c (load_line): Do not count ' ' as printable when checking for
797 2008-01-06 Paul Thomas <pault@gcc.gnu.org>
800 * module.c (load_needed): If the namespace has no proc_name
801 give it the module symbol.
803 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
806 * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
807 the dummy variable expression, test for NULL, and pass the variable
808 address to the called function.
810 2007-01-06 Tobias Burnus <burnus@net-b.de>
813 * match.c (gfc_match_common): Remove blank common in
815 * resolve.c (resolve_common_vars): New function.
816 (resolve_common_blocks): Move checks to resolve_common_vars
817 and invoke that function.
818 (resolve_types): Call resolve_common_vars for blank commons.
820 2008-01-06 Tobias Burnus <burnus@net-b.de>
823 * resolve.c (resolve_equivalence_derived): Reject derived types with
824 default initialization if equivalenced with COMMON variable.
826 2008-01-06 Tobias Burnus <burnus@net-b.de>
829 * io.c (check_io_constraints): Disallow unformatted I/O for
832 2008-01-06 Tobias Burnus <burnus@net-b.de>
835 * resolve.c (resolve_formal_arglist): Reject dummy procedure in
838 2008-01-06 Tobias Burnus <burnus@net-b.de>
841 * interface.c (compare_actual_formal): Reject parameter
842 actual to intent(out) dummy.
844 2008-01-04 Tobias Burnus <burnus@net-b.de>
847 * primary.c (match_varspec): Gobble whitespace before