1 2008-04-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5 * dump-parse-tree.c (gfc_show_code_node): Show new I/O parameters.
6 * gfortran.h (gfc_statement): Add ST_WAIT enumerator.
7 (gfc_open): Add pointers for decimal, encoding, round, sign,
8 asynchronous. (gfc_inquire): Add pointers for asynchronous, decimal,
9 encoding, pending, round, sign, size, id.
10 (gfc_wait): New typedef struct. (gfc_dt): Add pointers for id, pos,
11 asynchronous, blank, decimal, delim, pad, round, sign.
12 (gfc_exec_op): Add EXEC_WAIT enumerator. (gfc_code): Add pointer for
13 wait. (gfc_free_wait), (gfc_resolve_wait): New function prototypes.
14 * trans-stmt.h (gfc_trans_wait): New function prototype.
15 * trans.c (gfc_trans_code): Add case for EXEC_WAIT.
16 * io.c (io_tag): Add new tags for DECIMAL, ENCODING, ROUND, SIGN,
17 ASYCHRONOUS, ID. (match_open_element): Add matchers for new tags.
18 (gfc_free_open): Free new pointers. (gfc_resolve_open): Resolve new
19 tags. (gfc_resolve_open): Remove comment around check for allowed
20 values and ASYNCHRONOUS, update it. Likewise for DECIMAL, ENCODING,
21 ROUND, and SIGN. (match_dt_element): Add matching for new tags.
22 (gfc_free_wait): New function. (gfc_resolve_wait): New function.
23 (match_wait_element): New function. (gfc_match_wait): New function.
24 * resolve.c (gfc_resolve_blocks): Add case for EXEC_WAIT.
25 (resolve_code): Add case for EXEC_WAIT.
26 * st.c (gfc_free_statement): Add case for EXEC_WAIT.
27 * trans-io.c (ioparam_type): Add IOPARM_ptype_wait. (gfc_st_parameter):
28 Add "wait" entry. (iocall): Add IOCALL_WAIT enumerator.
29 (gfc_build_io_library_fndecls): Add function declaration for st_wait.
30 (gfc_trans_open): Add mask bits for new I/O tags.
31 (gfc_trans_inquire): Add mask bits for new I/O tags.
32 (gfc_trans_wait): New translation function.
33 (build_dt): Add mask bits for new I/O tags.
34 * match.c (gfc_match_if) Add matcher for "wait".
35 * match.h (gfc_match_wait): Prototype for new function.
36 * ioparm.def: Add new I/O parameter definitions.
37 * parse.c (decode_statement): Add match for "wait" statement.
38 (next_statement): Add case for ST_WAIT. (gfc_ascii_statement): Same.
40 2008-04-03 Jakub Jelinek <jakub@redhat.com>
43 * openmp.c (resolve_omp_clauses): Diagnose if a clause symbol
46 2008-04-03 Tom Tromey <tromey@redhat.com>
48 * Make-lang.in (fortran_OBJS): New variable.
50 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
52 * f95-lang.c (insert_block): Kill.
54 2008-04-01 George Helffrich <george@gcc.gnu.org>
56 * trans-common.c (create_common): Add decl to function
57 chain to preserve identifier scope in debug output.
59 2008-04-01 Joseph Myers <joseph@codesourcery.com>
61 * gfortran.texi: Include gpl_v3.texi instead of gpl.texi
62 * Make-lang.in (GFORTRAN_TEXI): Include gpl_v3.texi instead of
65 2008-03-30 Paul Thomas <pault@gcc.gnu.org>
68 * resolve.c (resolve_function, resolve_call): If the procedure
69 is elemental do not look for noncopying intrinsics.
71 2008-03-29 Paul Thomas <pault@gcc.gnu.org>
74 * trans-array.c (gfc_array_init_size): Set 'size' zero if
75 negative in one dimension.
78 * trans-expr.c (gfc_trans_string_copy): Only assign a char
79 directly if the lhs and rhs types are the same.
81 2008-03-28 Daniel Franke <franke.daniel@gmail.com>
82 Paul Richard Thomas <paul.richard.thomas@gmail.com>
85 * primary.c (match_variable): Improved matching of function
87 * resolve.c (resolve_allocate_deallocate): Removed checks if
88 the actual argument for STAT is a variable.
90 2008-03-28 Tobias Burnus <burnus@net-b.de>
92 * symbol.c (gfc_get_default_type): Fix error message; option
93 -fallow_leading_underscore should be -fallow-leading-underscore
95 2008-03-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
98 * iresolve.c (gfc_resolve_cshift): Check for NULL symtree in test for
99 optional argument attribute.
101 2008-03-27 Tom Tromey <tromey@redhat.com>
103 * Make-lang.in: Revert automatic dependency patch.
105 2008-03-25 Tom Tromey <tromey@redhat.com>
107 * Make-lang.in: Remove .o targets.
108 (fortran_OBJS): New variable.
109 (fortran/gfortranspec.o): Move to fortran/. Reduce to variable
111 (GFORTRAN_D_OBJS): Update.
112 (GFORTRAN_TRANS_DEPS): Remove.
114 2008-03-24 Paul Thomas <pault@gcc.gnu.org>
117 * resolve.c (resolve_structure_cons): It is an error to assign
118 NULL to anything other than a pointer or allocatable component.
121 * resolve.c (resolve_symbol): If the symbol is a derived type,
122 resolve the derived type. If the symbol is a derived type
123 function, ensure that the derived type is visible in the same
124 namespace as the function.
126 2008-03-23 Tobias Schlüter <tobi@gcc.gnu.org>
128 * trans.h: Use fold_build in build1_v, build2_v and build3_v
130 * trans-openmp.c (gfc_trans_omp_critical, gfc_trans_omp_single):
131 Don't use build2_v macro.
133 2008-03-19 Daniel Franke <franke.daniel@gmail.com>
136 * interface.c (gfc_procedure_use): Check for keyworded arguments in
137 procedures without explicit interfaces.
139 2008-03-16 Paul Thomas <pault@gcc.gnu.org>
142 * resolve.c (check_assumed_size_reference): Only visit the
143 first reference and look directly at the highest dimension.
145 2008-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
148 * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
151 2008-03-15 Daniel Franke <franke.daniel@gmail.com>
154 * resolve.c (resolve_branch): Less strict and pessimistic warning
157 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
159 * f95-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
160 (gfc_be_parse_file): Call clear_binding_stack from here.
161 (gfc_clear_binding_stack): Rename to clear_binding_stack.
163 2008-03-09 Paul Thomas <pault@gcc.gnu.org>
166 * module.c (mio_symtree_ref): After providing a symbol for a
167 missing equivalence member, resolve and NULL the fixups.
169 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
171 * invoke.texi (Error and Warning Options): Document
174 2008-03-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
177 * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
178 checking bounds of absent optional arguments.
180 2008-03-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
183 * intrinsic.c (add_functions): Add simplification routines for
184 ERF, DERF, ERFC and DERFC.
185 * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
186 extensions into Fortran 2008 features.
187 * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
189 * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
191 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
194 * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
195 ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
196 ERFC_SCALED, LOG_GAMMA and HYPOT.
197 * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
198 gfc_resolve_hypot): New prototypes.
199 * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
200 ACOSH, ASINH and ATANH available.
201 * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
202 * lang.opt: Add -std=f2008 option.
203 * libgfortran.h: Define GFC_STD_F2008.
204 * lang-specs.h: Add .f08 and .F08 file suffixes.
205 * iresolve.c (gfc_resolve_hypot): New function.
206 * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
207 * check.c (gfc_check_hypot): New function.
208 * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
209 * options.c (set_default_std_flags): Allow Fortran 2008 by default.
210 (form_from_filename): Add .f08 suffix.
211 (gfc_handle_option): Handle -std=f2008 option.
212 * simplify.c (gfc_simplify_hypot): New function.
213 * gfortran.texi: Document Fortran 2008 status and file extensions.
214 * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
215 as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
216 ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
217 * invoke.texi: Document the new -std=f2008 option.
219 2008-03-02 Jakub Jelinek <jakub@redhat.com>
221 * gfortranspec.c (lang_specific_driver): Update copyright notice
224 2008-02-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
227 * expr.c (find_array_element): Modify traversing the constructor to
228 avoid trying to access NULL memory pointed to by next for the
229 last element. (find_array_section): Exit while loop if cons->next is
231 * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
232 (gfc_conv_function_call): Same.
233 * decl.c (gfc_match_implicit): Same.
234 * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
236 2008-02-28 Daniel Franke <franke.daniel@gmail.com>
241 * lang.opt: Added -Wreturn-type.
242 * options.c (gfc_handle_option): Recognize -Wreturn-type.
243 * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
244 where the result value is not set.
245 (gfc_generate_function_code): Likewise.
246 (generate_local_decl): Emit warnings for funtions whose RESULT
249 2008-02-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
252 * trans-expr.c (gfc_conv_variable): Don't build indirect
253 references when explicit interface is mandated.
254 * resolve.c (resolve_formal_arglist): Set attr.always_explicit
255 on the result symbol as well as the procedure symbol.
257 2008-02-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
260 * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
261 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
262 gfor_fndecl_math_exponent16.
263 * f95-lang.c (build_builtin_fntypes): Add new function types.
264 (gfc_init_builtin_functions): Add new builtins for nextafter,
265 frexp, ldexp, fabs, scalbn and inf.
266 * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
267 (gfc_resolve_scale): Don't convert type of second argument.
268 (gfc_resolve_set_exponent): Likewise.
269 (gfc_resolve_size): Don't add hidden arguments.
270 * trans-decl.c: Remove gfor_fndecl_math_exponent4,
271 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
272 gfor_fndecl_math_exponent16.
273 * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
274 for scalbn, fraction, nearest, rrspacing, set_exponent and
276 (gfc_conv_intrinsic_exponent): Directly call frexp.
277 (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
278 gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
279 gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
281 (gfc_conv_intrinsic_function): Use the new functions above.
283 2008-02-26 Tobias Burnus <burnus@net-b.de>
286 * interface.c (check_operator_interface): Show better line for error
287 messages; fix constrains for user-defined assignment operators.
288 (gfc_extend_assign): Fix constrains for user-defined assignment
291 2008-02-26 Tom Tromey <tromey@redhat.com>
293 * trans-io.c (set_error_locus): Remove old location code.
294 * trans-decl.c (gfc_set_decl_location): Remove old location code.
295 * f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
296 * scanner.c (gfc_gobble_whitespace): Remove old location code.
297 (get_file): Likewise.
298 (preprocessor_line): Likewise.
299 (load_file): Likewise.
300 (gfc_new_file): Likewise.
301 * trans.c (gfc_trans_runtime_check): Remove old location code.
302 (gfc_get_backend_locus): Likewise.
303 (gfc_set_backend_locus): Likewise.
304 * data.c (gfc_assign_data_value): Remove old location code.
305 * error.c (show_locus): Remove old location code.
306 * gfortran.h (gfc_linebuf): Remove old location code.
307 (gfc_linebuf_linenum): Remove old-location variant.
309 2008-02-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
312 * trans-const.c (gfc_build_string_const): Don't call gettext.
313 (gfc_build_localized_string_const): New function.
314 * trans-const.h (gfc_build_localized_string_const): New prototype.
315 * trans.c (gfc_trans_runtime_check): Use
316 gfc_build_localized_string_const instead of gfc_build_string_const.
317 (gfc_call_malloc): Likewise.
318 (gfc_allocate_with_status): Likewise.
319 (gfc_allocate_array_with_status): Likewise.
320 (gfc_deallocate_with_status): Likewise.
321 (gfc_call_realloc): Likewise.
322 * trans-io.c (gfc_trans_io_runtime_check): Likewise.
324 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
326 * arith.c: Update copyright years.
334 * dependency.c: Likewise.
335 * dependency.h: Likewise.
336 * dump-parse-tree.c: Likewise.
339 * gfc-internals.texi: Likewise.
340 * gfortran.h: Likewise.
341 * gfortran.texi: Likewise.
342 * gfortranspec.c: Likewise.
343 * interface.c: Likewise.
344 * intrinsic.c: Likewise.
345 * intrinsic.h: Likewise.
346 * intrinsic.texi: Likewise.
347 * invoke.texi: Likewise.
349 * iresolve.c: Likewise.
350 * iso-c-binding.def: Likewise.
351 * iso-fortran-env.def: Likewise.
352 * lang-specs.h: Likewise.
353 * lang.opt: Likewise.
354 * libgfortran.h: Likewise.
357 * matchexp.c: Likewise.
359 * module.c: Likewise.
360 * openmp.c: Likewise.
361 * options.c: Likewise.
364 * primary.c: Likewise.
365 * resolve.c: Likewise.
366 * scanner.c: Likewise.
367 * simplify.c: Likewise.
369 * symbol.c: Likewise.
370 * target-memory.c: Likewise.
371 * target-memory.h: Likewise.
372 * trans-array.h: Likewise.
373 * trans-const.h: Likewise.
374 * trans-stmt.h: Likewise.
375 * trans-types.c: Likewise.
376 * trans-types.h: Likewise.
377 * types.def: Likewise.
379 2008-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
382 * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
383 (gfc_simplify_ibset): Remove call to range_check.
384 (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
385 (gfc_simplify_real): Add call gfc_clear_ts to initialize the
386 temporary gfc_typspec variable.
388 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
390 * trans-array.c (gfc_conv_descriptor_data_get,
391 gfc_conv_descriptor_data_set_internal,
392 gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
393 gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
394 gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
395 gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
396 gfc_conv_array_transpose, gfc_grow_array,
397 gfc_trans_array_constructor_subarray,
398 gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
399 gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
400 gfc_conv_array_initializer, gfc_trans_array_bounds,
401 gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
402 gfc_get_dataptr_offset, gfc_conv_array_parameter,
403 gfc_trans_dealloc_allocated, get_full_array_size,
404 gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
406 * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
407 gfc_conv_component_ref, gfc_conv_cst_int_power,
408 gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
409 * trans-common.c (create_common): Likewise.
410 * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
412 * trans-const.c (gfc_conv_constant_to_tree): Likewise.
413 * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
414 gfc_trans_integer_select, gfc_trans_character_select,
415 gfc_trans_forall_loop, compute_overall_iter_number,
416 gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
417 gfc_trans_deallocate): Likewise.
418 * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
419 gfc_allocate_with_status, gfc_allocate_array_with_status,
420 gfc_deallocate_with_status): Likewise.
421 * f95-lang.c (gfc_truthvalue_conversion): Likewise.
422 * trans-io.c (set_parameter_const, set_parameter_value,
423 set_parameter_ref, set_string, set_internal_unit, io_result,
424 set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
425 * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
426 gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
427 gfc_generate_function_code): Likewise.
428 * convert.c (convert): Likewise.
429 * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
430 build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
431 gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
432 gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
433 gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
434 gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
435 gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
436 gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
437 gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
438 gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
439 gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
440 gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
441 gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
442 gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
443 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
444 gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
445 gfc_conv_intrinsic_repeat): Likewise.
447 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
450 * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
451 * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
452 * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
453 gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
454 * trans-decl.c: Likewise.
456 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
459 * expr.c (find_array_element): Modify traversing the constructor to
460 avoid trying to access NULL memory pointed to by next for the
461 last element. (find_array_section): Exit while loop if cons->next is
464 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
467 * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
469 (gfc_resolve_aint): Likewise.
470 (gfc_resolve_anint): Likewise.
471 (gfc_resolve_besn): Likewise.
472 (gfc_resolve_cshift): Likewise.
473 (gfc_resolve_ctime): Likewise.
474 (gfc_resolve_eoshift): Likewise.
475 (gfc_resolve_index_func): Likewise.
476 (gfc_resolve_isatty): Likewise.
477 (gfc_resolve_malloc): Likewise.
478 (gfc_resolve_rrspacing): Likewise.
479 (gfc_resolve_scale): Likewise.
480 (gfc_resolve_set_exponent): Likewise.
481 (gfc_resolve_spacing): Likewise.
482 (gfc_resolve_spacing): Likewise.
483 (gfc_resolve_fgetc): Likewise.
484 (gfc_resolve_fputc): Likewise.
485 (gfc_resolve_ftell): Likewise.
486 (gfc_resolve_ttynam): Likewise.
487 (gfc_resolve_alarm_sub): Likewise.
488 (gfc_resolve_mvbits): Likewise.
489 (gfc_resolve_getarg): Likewise.
490 (gfc_resolve_signal_sub): Likewise.
491 (gfc_resolve_exit): Likewise.
492 (gfc_resolve_flush): Likewise.
493 (gfc_resolve_free): Likewise.
494 (gfc_resolve_ctime_sub): Likewise.
495 (gfc_resolve_fgetc_sub): Likewise.
496 (gfc_resolve_fputc_sub): Likewise.
497 (gfc_resolve_fseek_sub): Likewise.
498 (gfc_resolve_ftell_sub): Likewise.
499 (gfc_resolve_ttynam_sub): Likewise.
501 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
503 * gfc-internals.texi: Fix typos and markup nits.
504 * gfortran.texi: Likewise.
505 * intrinsic.texi: Likewise.
507 2008-02-21 Richard Guenther <rguenther@suse.de>
509 * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
510 as unary PAREN_EXPR for real and complex typed expressions.
511 (gfc_conv_unary_op): Fold the built tree.
513 2008-02-20 Tobias Burnus <burnus@net-b.de>
516 * match.c (gfc_match_name): Improve error message for '$'.
518 2008-02-19 Daniel Franke <franke.daniel@gmail.com>
521 * expr.c (gfc_check_pointer_assign): Add type and kind information
522 to type-mismatch message.
523 (gfc_check_assign): Unify error messages.
525 2008-02-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
528 * gfortran.texi: Create new section for unimplemented extensions.
529 Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
530 Remove "smaller projects" list. Fix a few typos.
532 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
534 * intrinsic.texi: Rename INDEX node to avoid clashing with
535 index.html on case-insensitive systems.
537 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
540 * trans-expr.c (gfc_conv_function_call): Force evaluation of
543 2008-02-10 Daniel Franke <franke.daniel@gmail.com>
546 * lang.opt: Allow '-J<dir>' next to '-J <dir>',
547 likewise '-I <dir>' and '-I<dir>'.
549 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
552 * Make-lang.in (f951): Add $(GMPLIBS).
554 2008-02-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
557 * trans-common.c (build_field): Mark fields as volatile when needed.
559 2008-02-05 Tobias Burnus <burnus@net-b.de>
562 * data.c (gfc_assign_data_value): Only free "size" if
563 it has not already been freed.
565 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
568 * array.c (match_array_element_spec): Remove check for negative
570 (gfc_resolve_array_spec): Add check for negative size.
572 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
575 * data.c (gfc_assign_data_value): Add bounds check for array
578 2008-02-04 Daniel Franke <franke.daniel@gmail.com>
580 * resolve.c (resolve_where): Fix typo.
581 (gfc_resolve_where_code_in_forall): Likewise.
583 2008-02-03 Paul Thomas <pault@gcc.gnu.org>
586 * resolve.c (resolve_allocate_deallocate): New function.
587 (resolve_code): Call it for allocate and deallocate.
588 * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
589 the checking of the STAT tag and put in above new function.
590 * primary,c (match_variable): Do not fix flavor of host
591 associated symbols yet if the type is not known.
593 2008-01-31 Paul Thomas <pault@gcc.gnu.org>
596 * expr.c (gfc_check_assign): It is an error to assign
597 to a sibling procedure.
599 2008-01-30 Paul Thomas <pault@gcc.gnu.org>
602 * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
603 delete_symtree to gfc_delete_symtree.
604 * gfortran.h : Add prototype for gfc_delete_symtree.
605 * module.c (load_generic_interfaces): Transfer symbol to a
606 unique symtree and delete old symtree, instead of renaming.
607 (read_module): The rsym and the found symbol are the same, so
608 the found symtree can be deleted.
611 * decl.c (match_char_spec): Remove the constraint on deferred
612 matching of functions and free the length expression.
613 delete_symtree to gfc_delete_symtree.
614 (gfc_match_type_spec): Whitespace.
615 (gfc_match_function_decl): Defer characteristic association for
616 all types except BT_UNKNOWN.
617 * parse.c (decode_specification_statement): Only derived type
618 function matching is delayed to the end of specification.
620 2008-01-28 Tobias Burnus <burnus@net-b.de>
623 * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
625 2008-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
628 * array.c (gfc_check_constructor_type): Revert clearing the expression.
630 2008-01-26 Tobias Burnus <burnus@net-b.de>
633 * trans-expr.c (gfc_conv_function_call): Don't call
634 gfc_add_interface_mapping if the expression is NULL.
636 2008-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
639 * trans-array.c (gfc_trans_create_temp_array): Remove call to
640 gcc_assert (integer_zerop (loop->from[n])).
642 2008-01-25 Daniel Franke <franke.daniel@gmail.com>
645 * resolve.c (resolve_where): Added check if user-defined assignment
646 operator is an elemental subroutine.
647 (gfc_resolve_where_code_in_forall): Likewise.
649 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
653 * gfortran.h: Revert changes from 2008-01-17.
655 * symbol.c: Likewise.
656 (gfc_undo_symbols): Undo namespace changes related to common blocks.
658 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
661 * data.c (formalize_structure_cons): Skip formalization on
664 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
666 * gfortran.texi (OpenMP): Extended existing documentation.
667 (contributors): Added major contributors of 2008 that were
669 (proposed extensions): Removed implemented items.
671 2008-01-24 Paul Thomas <pault@gcc.gnu.org>
674 * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS is
675 seen, check for a statement label and, if present, delete it
676 and set the locus to the start of the statement.
678 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
681 * trans-io.c (gfc_trans_transfer): If the array reference in a
682 read has a vector subscript, use gfc_conv_subref_array_arg to
683 copy back the temporary.
685 2008-01-22 Tobias Burnus <burnus@net-b.de>
688 * interface.c (compare_actual_formal): Fix adding type
689 to missing_arg_type for absent optional arguments.
691 2008-01-22 Tobias Burnus <burnus@net-b.de>
694 * parse.c (parse_spec): Change = into ==.
696 2008-01-22 Daniel Franke <franke.daniel@gmail.com>
699 * expr.c (check_elemental): Fix check for valid data types.
701 2008-01-22 Tobias Burnus <burnus@net-b.de>
704 * scanner.c (load_line): Support <tab><digit> continuation lines.
705 * invoke.texi (-Wtabs): Document this.
707 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
710 * module.c (read_module): Set use_rename attribute.
712 2007-01-21 Tobias Burnus <burnus@net-b.de>
715 * interface.c (compare_parameter): Improved error message
716 for arguments of same type and mismatched kinds.
718 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
721 * resolve.c (resolve_entries): Do not do an array bounds check
722 if the result symbols are the same.
725 * module.c (read_module) : Hide the symtree of the previous
726 version of the symbol if this symbol is renamed.
728 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
731 * array.c (gfc_check_constructor_type): Clear the expression ts
732 so that the checking starts from the deepest level of array
734 * primary.c (match_varspec): If an unknown type is changed to
735 default character and the attempt to match a substring fails,
736 change it back to unknown.
739 * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
740 NULL for an array constructor, use the cl.length expression to
742 (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
745 2008-01-19 Thomas Koenig <tkoenig@gcc.gnu.org>
749 * iresolve.c (gfc_resolve_all): Remove conversion of mask
750 argument to kind=1 by removing call to resolve_mask_arg().
751 (gfc_resolve_any): Likewise.
753 2008-01-19 Tobias Burnus <burnus@net-b.de>
756 * primary.c (match_variable): Handle FL_UNKNOWN without
758 (match_variable): Improve error message.
760 2008-01-18 Tobias Burnus <burnus@net-b.de>
763 * interface.c (get_expr_storage_size): Return storage size
764 for array element designators.
765 (compare_actual_formal): Reject unequal string sizes for
766 assumed-shape dummy arguments. And fix error message for
767 array-sections with vector subscripts.
769 2008-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
772 * simplify.c (is_constant_array_expr): New static function that returns
773 true if the given expression is an array and is constant.
774 (gfc_simplify_reshape): Use new function.
776 2008-01-17 H.J. Lu <hongjiu.lu@intel.com>
779 * symbol.c (free_common_tree): Renamed to ...
780 (gfc_free_common_tree): This. Remove static.
781 (gfc_free_namespace): Updated.
783 * gfortran.h (gfc_free_common_tree): New.
785 * match.c (gfc_match_common): Call gfc_free_common_tree () with
786 gfc_current_ns->common_root and set gfc_current_ns->common_root
787 to NULL on syntax error.
789 2008-01-18 Richard Sandiford <rsandifo@nildram.co.uk>
792 * trans-expr.c (gfc_conv_function_call): Use proper
793 type for returned character pointers.
795 2008-01-17 Paul Thomas <pault@gcc.gnu.org>
800 * decl.c : Remove gfc_function_kind_locus and
801 gfc_function_type_locus. Add gfc_matching_function.
802 (match_char_length): If matching a function and the length
803 does not match, return MATCH_YES and try again later.
804 (gfc_match_kind_spec): The same.
805 (match_char_kind): The same.
806 (gfc_match_type_spec): The same for numeric and derived types.
807 (match_prefix): Rename as gfc_match_prefix.
808 (gfc_match_function_decl): Except for function valued character
809 lengths, defer applying kind, type and charlen info until the
810 end of specification block.
811 gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
812 parse.c (decode_specification_statement): New function.
813 (decode_statement): Call it when a function has kind = -1. Set
814 and reset gfc_matching function, as function statement is being
816 (match_deferred_characteristics): Simplify with a single call
817 to gfc_match_prefix. Do appropriate error handling. In any
818 case, make sure that kind = -1 is reset or corrected.
819 (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
820 Throw an error if kind = -1 after last specification statement.
821 parse.h : Prototype for gfc_match_prefix.
823 2008-01-16 Tobias Burnus <burnus@net-b.de>
826 * interface.c (compare_parameter): Allow AS_DEFERRED array
827 elements and reject attr.pointer array elemenents.
828 (get_expr_storage_size): Return storage size of elements of
829 assumed-shape and pointer arrays.
831 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
833 * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
834 for flag_tree_parallelize_loops.
836 2008-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
839 * iresolve.c (gfc_resolve_all): Call resolve_mask_arg.
840 (gfc_resolve_any): Likewise.
841 (gfc_resolve_count): Likewise. Don't append kind of
842 argument to function name.
844 2008-01-13 Tobias Burnus <burnus@net-b.de>
847 * resolve.c (resolve_actual_arglist): For expressions,
848 also check for assume-sized arrays.
849 * interface.c (compare_parameter): Move F2003 character checks
850 here, print error messages here, reject elements of
851 assumed-shape array as argument to dummy arrays.
852 (compare_actual_formal): Update for the changes above.
854 2008-01-13 Tobias Burnus <burnus@net-b.de>
857 * decl.c (contained_procedure): Only check directly preceeding state.
859 2008-01-13 Tobias Burnus <burnus@net-b.de>
862 * check.c (gfc_check_shape): Accept array ranges of
865 2008-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
868 * match.c (gfc_match_name): Don't error if leading character is a '(',
869 just return MATCH_NO.
871 2008-01-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
874 * trans-io.c (create_dummy_iostat): Commit the symbol.
876 2008-01-11 Paul Thomas <pault@gcc.gnu.org>
879 * simplify.c (gfc_simplify_transfer): Return NULL if the size
880 of the element is unavailable and only assign character length
881 to the result, if 'mold' is constant.
883 2008-01-10 Paul Thomas <pault@gcc.gnu.org>
886 * trans-array.c (gfc_trans_array_ctor_element): Use gfc_trans_string_copy
887 to assign strings and perform bounds checks on the string length.
888 (get_array_ctor_strlen): Remove bounds checking.
889 (gfc_trans_array_constructor): Initialize string length checking.
890 * trans-array.h : Add prototype for gfc_trans_string_copy.
892 2008-01-08 Richard Guenther <rguenther@suse.de>
895 PR tree-optimization/34683
896 * trans-types.c (gfc_get_array_type_bounds): Use an array type
897 with known size for accesses if that is known.
899 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
902 * expr.c (find_array_element): Check that the array bounds are
903 constant before using them. Use lower, as well as upper bound.
904 (check_restricted): Allow implied index variable.
906 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
909 * trans_array.c (gfc_trans_deferred_array): Do not null the
910 data pointer on entering scope, nor deallocate it on leaving
911 scope, if the symbol has the 'save' attribute.
914 * trans_decl.c (gfc_finish_var_decl): Derived types with
915 allocatable components and an initializer must be TREE_STATIC.
917 2008-01-07 Paul Thomas <pault@gcc.gnu.org>
920 * module.c (write_generic): Rewrite completely.
921 (write_module): Change call to write_generic.
923 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
926 * scanner.c (load_line): Do not count ' ' as printable when checking for
929 2008-01-06 Paul Thomas <pault@gcc.gnu.org>
932 * module.c (load_needed): If the namespace has no proc_name
933 give it the module symbol.
935 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
938 * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
939 the dummy variable expression, test for NULL, and pass the variable
940 address to the called function.
942 2007-01-06 Tobias Burnus <burnus@net-b.de>
945 * match.c (gfc_match_common): Remove blank common in
947 * resolve.c (resolve_common_vars): New function.
948 (resolve_common_blocks): Move checks to resolve_common_vars
949 and invoke that function.
950 (resolve_types): Call resolve_common_vars for blank commons.
952 2008-01-06 Tobias Burnus <burnus@net-b.de>
955 * resolve.c (resolve_equivalence_derived): Reject derived types with
956 default initialization if equivalenced with COMMON variable.
958 2008-01-06 Tobias Burnus <burnus@net-b.de>
961 * io.c (check_io_constraints): Disallow unformatted I/O for
964 2008-01-06 Tobias Burnus <burnus@net-b.de>
967 * resolve.c (resolve_formal_arglist): Reject dummy procedure in
970 2008-01-06 Tobias Burnus <burnus@net-b.de>
973 * interface.c (compare_actual_formal): Reject parameter
974 actual to intent(out) dummy.
976 2008-01-04 Tobias Burnus <burnus@net-b.de>
979 * primary.c (match_varspec): Gobble whitespace before