1 2008-05-01 Janus Weil <jaydub66@gmail.com>
3 * gfortran.h (struct gfc_symbol): Moving "interface" member to
4 gfc_typespec (plus fixing a small docu error).
5 * interface.c (gfc_procedure_use): Ditto.
6 * decl.c (match_procedure_decl): Ditto.
7 * resolve.c (resolve_specific_f0,
8 resolve_specific_f0, resolve_symbol): Ditto.
10 2008-04-30 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12 * intrinsic.c (add_functions): Add SELECTED_CHAR_KIND intrinsic.
13 * intrinsic.h (gfc_check_selected_char_kind,
14 gfc_simplify_selected_char_kind): New prototypes.
15 * gfortran.h (gfc_isym_id): Add GFC_ISYM_SC_KIND.
16 * trans.h (gfor_fndecl_sc_kind): New function decl.
17 * trans-decl.c (gfor_fndecl_sc_kind): Build new decl.
18 * arith.c (gfc_compare_with_Cstring): New function.
19 * arith.h (gfc_compare_with_Cstring): New prototype.
20 * check.c (gfc_check_selected_char_kind): New function.
21 * primary.c (match_string_constant, match_kind_param): Mark
22 symbols used as literal constant kind param as referenced.
23 * trans-intrinsic.c (gfc_conv_intrinsic_sc_kind): New function.
24 (gfc_conv_intrinsic_function): Call gfc_conv_intrinsic_sc_kind.
25 * intrinsic.texi (SELECTED_CHAR_KIND): Document new intrinsic.
26 * simplify.c (gfc_simplify_selected_char_kind): New function.
28 2008-04-28 Paul Thomas <pault@gcc.gnu.org>
31 * module.c (find_symbol): Do not return a result for a symbol
32 that has been renamed in another module.
34 2008-04-26 George Helffrich <george@gcc.gnu.org>
38 * trans-common.c (create_common): Add decl to function
39 chain (if inside one) to preserve identifier scope in debug output.
41 2008-04-25 Jan Hubicka <jh@suse.cz>
43 * trans-decl.c (trans_function_start): Update.
45 2008-04-25 Tobias Burnus <burnus@net-b.de>
46 Daniel Franke <franke.daniel@gmail.com>
49 * gfortranspec.c (lang_specific_driver): Deprecate
50 -M option; fix ICE when "-M" is last argument and
52 * options.c (gfc_handle_module_path_options):
53 Use -J instead of -M in error messages.
54 * invoke.texi: Mark -M as depecated.
56 2008-04-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
57 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
60 * trans-instrinsic.c (gfc_conv_intrinsic_minmaxloc): Correctly adjust
63 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
65 * trans-expr.c (gfc_conv_structure): Don't set TREE_INVARIANT.
66 * trans-array.c (gfc_build_null_descriptor): Don't set TREE_INVARIANT.
67 (gfc_trans_array_constructor_value): Don't set TREE_INVARIANT.
68 (gfc_build_constant_array_constructor): Don't set TREE_INVARIANT.
69 (gfc_conv_array_initializer): Don't set TREE_INVARIANT.
70 * trans-common.c (get_init_field): Don't set TREE_INVARIANT.
71 (create_common): Don't set TREE_INVARIANT.
72 * trans-stmt.c (gfc_trans_character_select): Don't set TREE_INVARIANT.
73 * trans-decl.c (gfc_generate_function_code): Don't set TREE_INVARIANT.
75 2008-04-21 Steve Ellcey <sje@cup.hp.com>
77 * f95-lang.c (gfc_init_decl_processing): use ptr_mode instead of Pmode.
79 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
82 * gfortranspec.c (lookup_option): Properly handle separated arguments
83 in -J option, print missing argument message when necessary.
85 2008-04-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
88 * scanner.c (skip_fixed_comments): Update continue_line when comment is
89 detected. (gfc_next_char_literal): Likewise.
91 2008-04-19 Paul Thomas <pault@gcc.gnu.org>
96 * trans_array.c (gfc_trans_array_constructor): Temporarily
97 realign loop, if loop->from is not zero, before creating
98 the temporary array and provide an offset.
101 * trans-decl.c (gfc_init_default_dt): Add gfc_ prefix to name
102 and allow for NULL body. Change all references from
103 init_default_dt to gfc_init_default_dt.
104 * trans.h : Add prototype for gfc_init_default_dt.
105 * trans-array.c (gfc_trans_deferred_vars): After nullification
106 call gfc_init_default_dt for derived types with allocatable
109 2008-04-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
112 * trans-common.c (create_common): Revert patch causing regression.
114 2008-04-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
117 * iresolve.c (gfc_resolve_eoshift): Check for NULL symtree in test for
118 optional argument attribute.
120 2008-04-16 Paul Thomas <pault@gcc.gnu.org>
123 * trans-intrinsic.c (gfc_conv_intrinsic_char): Even though KIND
124 is not used, the argument must be converted.
126 2008-04-16 Jakub Jelinek <jakub@redhat.com>
129 * f95-lang.c (gfc_init_builtin_functions): Make sure
130 BUILT_IN_SINCOS{,F,L} types aren't varargs.
132 2008-04-15 Paul Thomas <pault@gcc.gnu.org>
135 * expr.c (scalarize_intrinsic_call): Reorder identification of
136 array argument so that if one is not found a segfault does not
137 occur. Return FAILURE if all scalar arguments.
139 2008-04-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
140 Tobias Burnus <burnus@net-b.de>
143 * options.c (gfc_init_options): Set the default maximum continuation
144 lines to 255 for both free and fixed form source for warnings.
145 (gfc_handle_option): Set -std=f95 fixed form max continuations to 19 and
146 the -std=f95 free form max continuations to 39 for warnings.
147 * scanner.c (gfc_next_char_literal): Adjust the current_line number only
148 if it is less than the current locus.
150 2008-04-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
152 PR fortran/25829 28655
153 * io.c (io_tag): Add new tags for decimal, encoding, asynchronous,
154 round, sign, and id. (match_open_element): Match new tags.
155 (gfc_resolve_open): Resolve new tags. (gfc_match_open): Enable encoding
156 for DEFAULT only. Update error messages. (match_dt_element): Fix match
157 tag for asynchronous. Update error messages. (gfc_free_inquire): Free
158 new expressions. (match_inquire_element): Match new tags.
159 (gfc_match_inquire): Add constraint for ID and PENDING.
160 (gfc_resolve_inquire): Resolve new tags.
161 * trans-io.c (gfc_trans_inquire): Clean up whitespace and fix setting of
162 mask for ID parameter.
163 * ioparm.def: Fix order of parameters for pending, round, and sign.
164 NOTE: These must line up with the definitions in libgfortran/io/io.h. or
167 2008-04-06 Paul Thomas <pault@gcc.gnu.org>
170 * expr.c (scalarize_intrinsic_call): Identify which argument is
171 an array and use that as the template.
172 (check_init_expr): Remove tests that first argument is an array
173 in the call to scalarize_intrinsic_call.
175 2008-04-06 Tobias Schlüter <tobi@gcc.gnu.org>
178 * io.c (io_tag): Add field 'value'. Split 'spec' field in
180 (match_etag, match_vtag, match_ltag): Split parsing in two steps
181 to give better error messages.
183 2008-04-06 Tobias Burnus <burnus@net-b.de>
185 * io.c (check_io_constraints): Add constrains. ID= requires
186 asynchronous= and asynchronous= must be init expression.
188 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
190 * f95-lang.c: Set LANG_HOOKS_NAME to "GNU Fortran".
192 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
194 * dump-parse-tree.c: Use fprintf, fputs and fputc instead of
195 gfc_status and gfc_status_char. Remove gfc_ prefix of the gfc_show_*
196 functions and make them static. Add new gfc_dump_parse_tree
198 * gfortran.h (gfc_option_t): Rename verbose into dump_parse_tree.
199 (gfc_status, gfc_status_char): Delete prototypes.
200 * error.c (gfc_status, gfc_status_char): Remove functions.
201 * scanner.c (gfc_new_file): Use printf instead of gfc_status.
202 * options.c (gfc_init_options): Rename verbose into dump_parse_tree.
203 (gfc_handle_module_path_options): Use gfc_fatal_error instead of
205 (gfc_handle_option): Rename verbose into dump_parse_tree.
206 * parse.c (gfc_parse_file): Use gfc_dump_parse_tree.
208 2008-04-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
209 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
211 PR fortran/25829 28655
212 * dump-parse-tree.c (gfc_show_code_node): Show new I/O parameters.
213 * gfortran.h (gfc_statement): Add ST_WAIT enumerator.
214 (gfc_open): Add pointers for decimal, encoding, round, sign,
215 asynchronous. (gfc_inquire): Add pointers for asynchronous, decimal,
216 encoding, pending, round, sign, size, id.
217 (gfc_wait): New typedef struct. (gfc_dt): Add pointers for id, pos,
218 asynchronous, blank, decimal, delim, pad, round, sign.
219 (gfc_exec_op): Add EXEC_WAIT enumerator. (gfc_code): Add pointer for
220 wait. (gfc_free_wait), (gfc_resolve_wait): New function prototypes.
221 * trans-stmt.h (gfc_trans_wait): New function prototype.
222 * trans.c (gfc_trans_code): Add case for EXEC_WAIT.
223 * io.c (io_tag): Add new tags for DECIMAL, ENCODING, ROUND, SIGN,
224 ASYCHRONOUS, ID. (match_open_element): Add matchers for new tags.
225 (gfc_free_open): Free new pointers. (gfc_resolve_open): Resolve new
226 tags. (gfc_resolve_open): Remove comment around check for allowed
227 values and ASYNCHRONOUS, update it. Likewise for DECIMAL, ENCODING,
228 ROUND, and SIGN. (match_dt_element): Add matching for new tags.
229 (gfc_free_wait): New function. (gfc_resolve_wait): New function.
230 (match_wait_element): New function. (gfc_match_wait): New function.
231 * resolve.c (gfc_resolve_blocks): Add case for EXEC_WAIT.
232 (resolve_code): Add case for EXEC_WAIT.
233 * st.c (gfc_free_statement): Add case for EXEC_WAIT.
234 * trans-io.c (ioparam_type): Add IOPARM_ptype_wait. (gfc_st_parameter):
235 Add "wait" entry. (iocall): Add IOCALL_WAIT enumerator.
236 (gfc_build_io_library_fndecls): Add function declaration for st_wait.
237 (gfc_trans_open): Add mask bits for new I/O tags.
238 (gfc_trans_inquire): Add mask bits for new I/O tags.
239 (gfc_trans_wait): New translation function.
240 (build_dt): Add mask bits for new I/O tags.
241 * match.c (gfc_match_if) Add matcher for "wait".
242 * match.h (gfc_match_wait): Prototype for new function.
243 * ioparm.def: Add new I/O parameter definitions.
244 * parse.c (decode_statement): Add match for "wait" statement.
245 (next_statement): Add case for ST_WAIT. (gfc_ascii_statement): Same.
247 2008-04-03 Jakub Jelinek <jakub@redhat.com>
250 * openmp.c (resolve_omp_clauses): Diagnose if a clause symbol
253 2008-04-03 Tom Tromey <tromey@redhat.com>
255 * Make-lang.in (fortran_OBJS): New variable.
257 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
259 * f95-lang.c (insert_block): Kill.
261 2008-04-01 George Helffrich <george@gcc.gnu.org>
263 PR fortran/35154, fortran/23057
264 * trans-common.c (create_common): Add decl to function
265 chain to preserve identifier scope in debug output.
267 2008-04-01 Joseph Myers <joseph@codesourcery.com>
269 * gfortran.texi: Include gpl_v3.texi instead of gpl.texi
270 * Make-lang.in (GFORTRAN_TEXI): Include gpl_v3.texi instead of
273 2008-03-30 Paul Thomas <pault@gcc.gnu.org>
276 * resolve.c (resolve_function, resolve_call): If the procedure
277 is elemental do not look for noncopying intrinsics.
279 2008-03-29 Paul Thomas <pault@gcc.gnu.org>
282 * trans-array.c (gfc_array_init_size): Set 'size' zero if
283 negative in one dimension.
286 * trans-expr.c (gfc_trans_string_copy): Only assign a char
287 directly if the lhs and rhs types are the same.
289 2008-03-28 Daniel Franke <franke.daniel@gmail.com>
290 Paul Richard Thomas <paul.richard.thomas@gmail.com>
293 * primary.c (match_variable): Improved matching of function
295 * resolve.c (resolve_allocate_deallocate): Removed checks if
296 the actual argument for STAT is a variable.
298 2008-03-28 Tobias Burnus <burnus@net-b.de>
300 * symbol.c (gfc_get_default_type): Fix error message; option
301 -fallow_leading_underscore should be -fallow-leading-underscore
303 2008-03-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
306 * iresolve.c (gfc_resolve_cshift): Check for NULL symtree in test for
307 optional argument attribute.
309 2008-03-27 Tom Tromey <tromey@redhat.com>
311 * Make-lang.in: Revert automatic dependency patch.
313 2008-03-25 Tom Tromey <tromey@redhat.com>
315 * Make-lang.in: Remove .o targets.
316 (fortran_OBJS): New variable.
317 (fortran/gfortranspec.o): Move to fortran/. Reduce to variable
319 (GFORTRAN_D_OBJS): Update.
320 (GFORTRAN_TRANS_DEPS): Remove.
322 2008-03-24 Paul Thomas <pault@gcc.gnu.org>
325 * resolve.c (resolve_structure_cons): It is an error to assign
326 NULL to anything other than a pointer or allocatable component.
329 * resolve.c (resolve_symbol): If the symbol is a derived type,
330 resolve the derived type. If the symbol is a derived type
331 function, ensure that the derived type is visible in the same
332 namespace as the function.
334 2008-03-23 Tobias Schlüter <tobi@gcc.gnu.org>
336 * trans.h: Use fold_build in build1_v, build2_v and build3_v
338 * trans-openmp.c (gfc_trans_omp_critical, gfc_trans_omp_single):
339 Don't use build2_v macro.
341 2008-03-19 Daniel Franke <franke.daniel@gmail.com>
344 * interface.c (gfc_procedure_use): Check for keyworded arguments in
345 procedures without explicit interfaces.
347 2008-03-16 Paul Thomas <pault@gcc.gnu.org>
350 * resolve.c (check_assumed_size_reference): Only visit the
351 first reference and look directly at the highest dimension.
353 2008-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
356 * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
359 2008-03-15 Daniel Franke <franke.daniel@gmail.com>
362 * resolve.c (resolve_branch): Less strict and pessimistic warning
365 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
367 * f95-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
368 (gfc_be_parse_file): Call clear_binding_stack from here.
369 (gfc_clear_binding_stack): Rename to clear_binding_stack.
371 2008-03-09 Paul Thomas <pault@gcc.gnu.org>
374 * module.c (mio_symtree_ref): After providing a symbol for a
375 missing equivalence member, resolve and NULL the fixups.
377 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
379 * invoke.texi (Error and Warning Options): Document
382 2008-03-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
385 * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
386 checking bounds of absent optional arguments.
388 2008-03-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
391 * intrinsic.c (add_functions): Add simplification routines for
392 ERF, DERF, ERFC and DERFC.
393 * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
394 extensions into Fortran 2008 features.
395 * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
397 * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
399 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
402 * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
403 ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
404 ERFC_SCALED, LOG_GAMMA and HYPOT.
405 * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
406 gfc_resolve_hypot): New prototypes.
407 * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
408 ACOSH, ASINH and ATANH available.
409 * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
410 * lang.opt: Add -std=f2008 option.
411 * libgfortran.h: Define GFC_STD_F2008.
412 * lang-specs.h: Add .f08 and .F08 file suffixes.
413 * iresolve.c (gfc_resolve_hypot): New function.
414 * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
415 * check.c (gfc_check_hypot): New function.
416 * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
417 * options.c (set_default_std_flags): Allow Fortran 2008 by default.
418 (form_from_filename): Add .f08 suffix.
419 (gfc_handle_option): Handle -std=f2008 option.
420 * simplify.c (gfc_simplify_hypot): New function.
421 * gfortran.texi: Document Fortran 2008 status and file extensions.
422 * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
423 as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
424 ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
425 * invoke.texi: Document the new -std=f2008 option.
427 2008-03-02 Jakub Jelinek <jakub@redhat.com>
429 * gfortranspec.c (lang_specific_driver): Update copyright notice
432 2008-02-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
435 * expr.c (find_array_element): Modify traversing the constructor to
436 avoid trying to access NULL memory pointed to by next for the
437 last element. (find_array_section): Exit while loop if cons->next is
439 * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
440 (gfc_conv_function_call): Same.
441 * decl.c (gfc_match_implicit): Same.
442 * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
444 2008-02-28 Daniel Franke <franke.daniel@gmail.com>
449 * lang.opt: Added -Wreturn-type.
450 * options.c (gfc_handle_option): Recognize -Wreturn-type.
451 * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
452 where the result value is not set.
453 (gfc_generate_function_code): Likewise.
454 (generate_local_decl): Emit warnings for funtions whose RESULT
457 2008-02-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
460 * trans-expr.c (gfc_conv_variable): Don't build indirect
461 references when explicit interface is mandated.
462 * resolve.c (resolve_formal_arglist): Set attr.always_explicit
463 on the result symbol as well as the procedure symbol.
465 2008-02-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
468 * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
469 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
470 gfor_fndecl_math_exponent16.
471 * f95-lang.c (build_builtin_fntypes): Add new function types.
472 (gfc_init_builtin_functions): Add new builtins for nextafter,
473 frexp, ldexp, fabs, scalbn and inf.
474 * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
475 (gfc_resolve_scale): Don't convert type of second argument.
476 (gfc_resolve_set_exponent): Likewise.
477 (gfc_resolve_size): Don't add hidden arguments.
478 * trans-decl.c: Remove gfor_fndecl_math_exponent4,
479 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
480 gfor_fndecl_math_exponent16.
481 * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
482 for scalbn, fraction, nearest, rrspacing, set_exponent and
484 (gfc_conv_intrinsic_exponent): Directly call frexp.
485 (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
486 gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
487 gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
489 (gfc_conv_intrinsic_function): Use the new functions above.
491 2008-02-26 Tobias Burnus <burnus@net-b.de>
494 * interface.c (check_operator_interface): Show better line for error
495 messages; fix constrains for user-defined assignment operators.
496 (gfc_extend_assign): Fix constrains for user-defined assignment
499 2008-02-26 Tom Tromey <tromey@redhat.com>
501 * trans-io.c (set_error_locus): Remove old location code.
502 * trans-decl.c (gfc_set_decl_location): Remove old location code.
503 * f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
504 * scanner.c (gfc_gobble_whitespace): Remove old location code.
505 (get_file): Likewise.
506 (preprocessor_line): Likewise.
507 (load_file): Likewise.
508 (gfc_new_file): Likewise.
509 * trans.c (gfc_trans_runtime_check): Remove old location code.
510 (gfc_get_backend_locus): Likewise.
511 (gfc_set_backend_locus): Likewise.
512 * data.c (gfc_assign_data_value): Remove old location code.
513 * error.c (show_locus): Remove old location code.
514 * gfortran.h (gfc_linebuf): Remove old location code.
515 (gfc_linebuf_linenum): Remove old-location variant.
517 2008-02-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
520 * trans-const.c (gfc_build_string_const): Don't call gettext.
521 (gfc_build_localized_string_const): New function.
522 * trans-const.h (gfc_build_localized_string_const): New prototype.
523 * trans.c (gfc_trans_runtime_check): Use
524 gfc_build_localized_string_const instead of gfc_build_string_const.
525 (gfc_call_malloc): Likewise.
526 (gfc_allocate_with_status): Likewise.
527 (gfc_allocate_array_with_status): Likewise.
528 (gfc_deallocate_with_status): Likewise.
529 (gfc_call_realloc): Likewise.
530 * trans-io.c (gfc_trans_io_runtime_check): Likewise.
532 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
534 * arith.c: Update copyright years.
542 * dependency.c: Likewise.
543 * dependency.h: Likewise.
544 * dump-parse-tree.c: Likewise.
547 * gfc-internals.texi: Likewise.
548 * gfortran.h: Likewise.
549 * gfortran.texi: Likewise.
550 * gfortranspec.c: Likewise.
551 * interface.c: Likewise.
552 * intrinsic.c: Likewise.
553 * intrinsic.h: Likewise.
554 * intrinsic.texi: Likewise.
555 * invoke.texi: Likewise.
557 * iresolve.c: Likewise.
558 * iso-c-binding.def: Likewise.
559 * iso-fortran-env.def: Likewise.
560 * lang-specs.h: Likewise.
561 * lang.opt: Likewise.
562 * libgfortran.h: Likewise.
565 * matchexp.c: Likewise.
567 * module.c: Likewise.
568 * openmp.c: Likewise.
569 * options.c: Likewise.
572 * primary.c: Likewise.
573 * resolve.c: Likewise.
574 * scanner.c: Likewise.
575 * simplify.c: Likewise.
577 * symbol.c: Likewise.
578 * target-memory.c: Likewise.
579 * target-memory.h: Likewise.
580 * trans-array.h: Likewise.
581 * trans-const.h: Likewise.
582 * trans-stmt.h: Likewise.
583 * trans-types.c: Likewise.
584 * trans-types.h: Likewise.
585 * types.def: Likewise.
587 2008-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
590 * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
591 (gfc_simplify_ibset): Remove call to range_check.
592 (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
593 (gfc_simplify_real): Add call gfc_clear_ts to initialize the
594 temporary gfc_typspec variable.
596 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
598 * trans-array.c (gfc_conv_descriptor_data_get,
599 gfc_conv_descriptor_data_set_internal,
600 gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
601 gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
602 gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
603 gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
604 gfc_conv_array_transpose, gfc_grow_array,
605 gfc_trans_array_constructor_subarray,
606 gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
607 gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
608 gfc_conv_array_initializer, gfc_trans_array_bounds,
609 gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
610 gfc_get_dataptr_offset, gfc_conv_array_parameter,
611 gfc_trans_dealloc_allocated, get_full_array_size,
612 gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
614 * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
615 gfc_conv_component_ref, gfc_conv_cst_int_power,
616 gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
617 * trans-common.c (create_common): Likewise.
618 * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
620 * trans-const.c (gfc_conv_constant_to_tree): Likewise.
621 * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
622 gfc_trans_integer_select, gfc_trans_character_select,
623 gfc_trans_forall_loop, compute_overall_iter_number,
624 gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
625 gfc_trans_deallocate): Likewise.
626 * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
627 gfc_allocate_with_status, gfc_allocate_array_with_status,
628 gfc_deallocate_with_status): Likewise.
629 * f95-lang.c (gfc_truthvalue_conversion): Likewise.
630 * trans-io.c (set_parameter_const, set_parameter_value,
631 set_parameter_ref, set_string, set_internal_unit, io_result,
632 set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
633 * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
634 gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
635 gfc_generate_function_code): Likewise.
636 * convert.c (convert): Likewise.
637 * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
638 build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
639 gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
640 gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
641 gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
642 gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
643 gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
644 gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
645 gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
646 gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
647 gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
648 gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
649 gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
650 gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
651 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
652 gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
653 gfc_conv_intrinsic_repeat): Likewise.
655 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
658 * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
659 * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
660 * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
661 gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
662 * trans-decl.c: Likewise.
664 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
667 * expr.c (find_array_element): Modify traversing the constructor to
668 avoid trying to access NULL memory pointed to by next for the
669 last element. (find_array_section): Exit while loop if cons->next is
672 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
675 * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
677 (gfc_resolve_aint): Likewise.
678 (gfc_resolve_anint): Likewise.
679 (gfc_resolve_besn): Likewise.
680 (gfc_resolve_cshift): Likewise.
681 (gfc_resolve_ctime): Likewise.
682 (gfc_resolve_eoshift): Likewise.
683 (gfc_resolve_index_func): Likewise.
684 (gfc_resolve_isatty): Likewise.
685 (gfc_resolve_malloc): Likewise.
686 (gfc_resolve_rrspacing): Likewise.
687 (gfc_resolve_scale): Likewise.
688 (gfc_resolve_set_exponent): Likewise.
689 (gfc_resolve_spacing): Likewise.
690 (gfc_resolve_spacing): Likewise.
691 (gfc_resolve_fgetc): Likewise.
692 (gfc_resolve_fputc): Likewise.
693 (gfc_resolve_ftell): Likewise.
694 (gfc_resolve_ttynam): Likewise.
695 (gfc_resolve_alarm_sub): Likewise.
696 (gfc_resolve_mvbits): Likewise.
697 (gfc_resolve_getarg): Likewise.
698 (gfc_resolve_signal_sub): Likewise.
699 (gfc_resolve_exit): Likewise.
700 (gfc_resolve_flush): Likewise.
701 (gfc_resolve_free): Likewise.
702 (gfc_resolve_ctime_sub): Likewise.
703 (gfc_resolve_fgetc_sub): Likewise.
704 (gfc_resolve_fputc_sub): Likewise.
705 (gfc_resolve_fseek_sub): Likewise.
706 (gfc_resolve_ftell_sub): Likewise.
707 (gfc_resolve_ttynam_sub): Likewise.
709 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
711 * gfc-internals.texi: Fix typos and markup nits.
712 * gfortran.texi: Likewise.
713 * intrinsic.texi: Likewise.
715 2008-02-21 Richard Guenther <rguenther@suse.de>
717 * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
718 as unary PAREN_EXPR for real and complex typed expressions.
719 (gfc_conv_unary_op): Fold the built tree.
721 2008-02-20 Tobias Burnus <burnus@net-b.de>
724 * match.c (gfc_match_name): Improve error message for '$'.
726 2008-02-19 Daniel Franke <franke.daniel@gmail.com>
729 * expr.c (gfc_check_pointer_assign): Add type and kind information
730 to type-mismatch message.
731 (gfc_check_assign): Unify error messages.
733 2008-02-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
736 * gfortran.texi: Create new section for unimplemented extensions.
737 Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
738 Remove "smaller projects" list. Fix a few typos.
740 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
742 * intrinsic.texi: Rename INDEX node to avoid clashing with
743 index.html on case-insensitive systems.
745 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
748 * trans-expr.c (gfc_conv_function_call): Force evaluation of
751 2008-02-10 Daniel Franke <franke.daniel@gmail.com>
754 * lang.opt: Allow '-J<dir>' next to '-J <dir>',
755 likewise '-I <dir>' and '-I<dir>'.
757 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
760 * Make-lang.in (f951): Add $(GMPLIBS).
762 2008-02-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
765 * trans-common.c (build_field): Mark fields as volatile when needed.
767 2008-02-05 Tobias Burnus <burnus@net-b.de>
770 * data.c (gfc_assign_data_value): Only free "size" if
771 it has not already been freed.
773 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
776 * array.c (match_array_element_spec): Remove check for negative
778 (gfc_resolve_array_spec): Add check for negative size.
780 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
783 * data.c (gfc_assign_data_value): Add bounds check for array
786 2008-02-04 Daniel Franke <franke.daniel@gmail.com>
788 * resolve.c (resolve_where): Fix typo.
789 (gfc_resolve_where_code_in_forall): Likewise.
791 2008-02-03 Paul Thomas <pault@gcc.gnu.org>
794 * resolve.c (resolve_allocate_deallocate): New function.
795 (resolve_code): Call it for allocate and deallocate.
796 * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
797 the checking of the STAT tag and put in above new function.
798 * primary,c (match_variable): Do not fix flavor of host
799 associated symbols yet if the type is not known.
801 2008-01-31 Paul Thomas <pault@gcc.gnu.org>
804 * expr.c (gfc_check_assign): It is an error to assign
805 to a sibling procedure.
807 2008-01-30 Paul Thomas <pault@gcc.gnu.org>
810 * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
811 delete_symtree to gfc_delete_symtree.
812 * gfortran.h : Add prototype for gfc_delete_symtree.
813 * module.c (load_generic_interfaces): Transfer symbol to a
814 unique symtree and delete old symtree, instead of renaming.
815 (read_module): The rsym and the found symbol are the same, so
816 the found symtree can be deleted.
819 * decl.c (match_char_spec): Remove the constraint on deferred
820 matching of functions and free the length expression.
821 delete_symtree to gfc_delete_symtree.
822 (gfc_match_type_spec): Whitespace.
823 (gfc_match_function_decl): Defer characteristic association for
824 all types except BT_UNKNOWN.
825 * parse.c (decode_specification_statement): Only derived type
826 function matching is delayed to the end of specification.
828 2008-01-28 Tobias Burnus <burnus@net-b.de>
831 * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
833 2008-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
836 * array.c (gfc_check_constructor_type): Revert clearing the expression.
838 2008-01-26 Tobias Burnus <burnus@net-b.de>
841 * trans-expr.c (gfc_conv_function_call): Don't call
842 gfc_add_interface_mapping if the expression is NULL.
844 2008-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
847 * trans-array.c (gfc_trans_create_temp_array): Remove call to
848 gcc_assert (integer_zerop (loop->from[n])).
850 2008-01-25 Daniel Franke <franke.daniel@gmail.com>
853 * resolve.c (resolve_where): Added check if user-defined assignment
854 operator is an elemental subroutine.
855 (gfc_resolve_where_code_in_forall): Likewise.
857 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
861 * gfortran.h: Revert changes from 2008-01-17.
863 * symbol.c: Likewise.
864 (gfc_undo_symbols): Undo namespace changes related to common blocks.
866 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
869 * data.c (formalize_structure_cons): Skip formalization on
872 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
874 * gfortran.texi (OpenMP): Extended existing documentation.
875 (contributors): Added major contributors of 2008 that were
877 (proposed extensions): Removed implemented items.
879 2008-01-24 Paul Thomas <pault@gcc.gnu.org>
882 * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS is
883 seen, check for a statement label and, if present, delete it
884 and set the locus to the start of the statement.
886 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
889 * trans-io.c (gfc_trans_transfer): If the array reference in a
890 read has a vector subscript, use gfc_conv_subref_array_arg to
891 copy back the temporary.
893 2008-01-22 Tobias Burnus <burnus@net-b.de>
896 * interface.c (compare_actual_formal): Fix adding type
897 to missing_arg_type for absent optional arguments.
899 2008-01-22 Tobias Burnus <burnus@net-b.de>
902 * parse.c (parse_spec): Change = into ==.
904 2008-01-22 Daniel Franke <franke.daniel@gmail.com>
907 * expr.c (check_elemental): Fix check for valid data types.
909 2008-01-22 Tobias Burnus <burnus@net-b.de>
912 * scanner.c (load_line): Support <tab><digit> continuation lines.
913 * invoke.texi (-Wtabs): Document this.
915 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
918 * module.c (read_module): Set use_rename attribute.
920 2007-01-21 Tobias Burnus <burnus@net-b.de>
923 * interface.c (compare_parameter): Improved error message
924 for arguments of same type and mismatched kinds.
926 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
929 * resolve.c (resolve_entries): Do not do an array bounds check
930 if the result symbols are the same.
933 * module.c (read_module) : Hide the symtree of the previous
934 version of the symbol if this symbol is renamed.
936 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
939 * array.c (gfc_check_constructor_type): Clear the expression ts
940 so that the checking starts from the deepest level of array
942 * primary.c (match_varspec): If an unknown type is changed to
943 default character and the attempt to match a substring fails,
944 change it back to unknown.
947 * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
948 NULL for an array constructor, use the cl.length expression to
950 (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
953 2008-01-19 Thomas Koenig <tkoenig@gcc.gnu.org>
957 * iresolve.c (gfc_resolve_all): Remove conversion of mask
958 argument to kind=1 by removing call to resolve_mask_arg().
959 (gfc_resolve_any): Likewise.
961 2008-01-19 Tobias Burnus <burnus@net-b.de>
964 * primary.c (match_variable): Handle FL_UNKNOWN without
966 (match_variable): Improve error message.
968 2008-01-18 Tobias Burnus <burnus@net-b.de>
971 * interface.c (get_expr_storage_size): Return storage size
972 for array element designators.
973 (compare_actual_formal): Reject unequal string sizes for
974 assumed-shape dummy arguments. And fix error message for
975 array-sections with vector subscripts.
977 2008-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
980 * simplify.c (is_constant_array_expr): New static function that returns
981 true if the given expression is an array and is constant.
982 (gfc_simplify_reshape): Use new function.
984 2008-01-17 H.J. Lu <hongjiu.lu@intel.com>
987 * symbol.c (free_common_tree): Renamed to ...
988 (gfc_free_common_tree): This. Remove static.
989 (gfc_free_namespace): Updated.
991 * gfortran.h (gfc_free_common_tree): New.
993 * match.c (gfc_match_common): Call gfc_free_common_tree () with
994 gfc_current_ns->common_root and set gfc_current_ns->common_root
995 to NULL on syntax error.
997 2008-01-18 Richard Sandiford <rsandifo@nildram.co.uk>
1000 * trans-expr.c (gfc_conv_function_call): Use proper
1001 type for returned character pointers.
1003 2008-01-17 Paul Thomas <pault@gcc.gnu.org>
1008 * decl.c : Remove gfc_function_kind_locus and
1009 gfc_function_type_locus. Add gfc_matching_function.
1010 (match_char_length): If matching a function and the length
1011 does not match, return MATCH_YES and try again later.
1012 (gfc_match_kind_spec): The same.
1013 (match_char_kind): The same.
1014 (gfc_match_type_spec): The same for numeric and derived types.
1015 (match_prefix): Rename as gfc_match_prefix.
1016 (gfc_match_function_decl): Except for function valued character
1017 lengths, defer applying kind, type and charlen info until the
1018 end of specification block.
1019 gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
1020 parse.c (decode_specification_statement): New function.
1021 (decode_statement): Call it when a function has kind = -1. Set
1022 and reset gfc_matching function, as function statement is being
1024 (match_deferred_characteristics): Simplify with a single call
1025 to gfc_match_prefix. Do appropriate error handling. In any
1026 case, make sure that kind = -1 is reset or corrected.
1027 (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
1028 Throw an error if kind = -1 after last specification statement.
1029 parse.h : Prototype for gfc_match_prefix.
1031 2008-01-16 Tobias Burnus <burnus@net-b.de>
1034 * interface.c (compare_parameter): Allow AS_DEFERRED array
1035 elements and reject attr.pointer array elemenents.
1036 (get_expr_storage_size): Return storage size of elements of
1037 assumed-shape and pointer arrays.
1039 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
1041 * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
1042 for flag_tree_parallelize_loops.
1044 2008-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
1047 * iresolve.c (gfc_resolve_all): Call resolve_mask_arg.
1048 (gfc_resolve_any): Likewise.
1049 (gfc_resolve_count): Likewise. Don't append kind of
1050 argument to function name.
1052 2008-01-13 Tobias Burnus <burnus@net-b.de>
1055 * resolve.c (resolve_actual_arglist): For expressions,
1056 also check for assume-sized arrays.
1057 * interface.c (compare_parameter): Move F2003 character checks
1058 here, print error messages here, reject elements of
1059 assumed-shape array as argument to dummy arrays.
1060 (compare_actual_formal): Update for the changes above.
1062 2008-01-13 Tobias Burnus <burnus@net-b.de>
1065 * decl.c (contained_procedure): Only check directly preceeding state.
1067 2008-01-13 Tobias Burnus <burnus@net-b.de>
1070 * check.c (gfc_check_shape): Accept array ranges of
1071 assumed-size arrays.
1073 2008-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1076 * match.c (gfc_match_name): Don't error if leading character is a '(',
1077 just return MATCH_NO.
1079 2008-01-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1082 * trans-io.c (create_dummy_iostat): Commit the symbol.
1084 2008-01-11 Paul Thomas <pault@gcc.gnu.org>
1087 * simplify.c (gfc_simplify_transfer): Return NULL if the size
1088 of the element is unavailable and only assign character length
1089 to the result, if 'mold' is constant.
1091 2008-01-10 Paul Thomas <pault@gcc.gnu.org>
1094 * trans-array.c (gfc_trans_array_ctor_element): Use gfc_trans_string_copy
1095 to assign strings and perform bounds checks on the string length.
1096 (get_array_ctor_strlen): Remove bounds checking.
1097 (gfc_trans_array_constructor): Initialize string length checking.
1098 * trans-array.h : Add prototype for gfc_trans_string_copy.
1100 2008-01-08 Richard Guenther <rguenther@suse.de>
1103 PR tree-optimization/34683
1104 * trans-types.c (gfc_get_array_type_bounds): Use an array type
1105 with known size for accesses if that is known.
1107 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1110 * expr.c (find_array_element): Check that the array bounds are
1111 constant before using them. Use lower, as well as upper bound.
1112 (check_restricted): Allow implied index variable.
1114 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
1117 * trans_array.c (gfc_trans_deferred_array): Do not null the
1118 data pointer on entering scope, nor deallocate it on leaving
1119 scope, if the symbol has the 'save' attribute.
1122 * trans_decl.c (gfc_finish_var_decl): Derived types with
1123 allocatable components and an initializer must be TREE_STATIC.
1125 2008-01-07 Paul Thomas <pault@gcc.gnu.org>
1128 * module.c (write_generic): Rewrite completely.
1129 (write_module): Change call to write_generic.
1131 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1134 * scanner.c (load_line): Do not count ' ' as printable when checking for
1137 2008-01-06 Paul Thomas <pault@gcc.gnu.org>
1140 * module.c (load_needed): If the namespace has no proc_name
1141 give it the module symbol.
1143 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1146 * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
1147 the dummy variable expression, test for NULL, and pass the variable
1148 address to the called function.
1150 2007-01-06 Tobias Burnus <burnus@net-b.de>
1153 * match.c (gfc_match_common): Remove blank common in
1155 * resolve.c (resolve_common_vars): New function.
1156 (resolve_common_blocks): Move checks to resolve_common_vars
1157 and invoke that function.
1158 (resolve_types): Call resolve_common_vars for blank commons.
1160 2008-01-06 Tobias Burnus <burnus@net-b.de>
1163 * resolve.c (resolve_equivalence_derived): Reject derived types with
1164 default initialization if equivalenced with COMMON variable.
1166 2008-01-06 Tobias Burnus <burnus@net-b.de>
1169 * io.c (check_io_constraints): Disallow unformatted I/O for
1172 2008-01-06 Tobias Burnus <burnus@net-b.de>
1175 * resolve.c (resolve_formal_arglist): Reject dummy procedure in
1176 ELEMENTAL functions.
1178 2008-01-06 Tobias Burnus <burnus@net-b.de>
1181 * interface.c (compare_actual_formal): Reject parameter
1182 actual to intent(out) dummy.
1184 2008-01-04 Tobias Burnus <burnus@net-b.de>
1187 * primary.c (match_varspec): Gobble whitespace before