1 2007-05-04 Daniel Franke <franke.daniel@gmail.com>
3 * check.c (gfc_check_fseek_sub): Fixed typo.
5 2007-05-04 Daniel Franke <franke.daniel@gmail.com>
8 * intrinsic.c (add_subroutines): Added FSEEK.
9 * intrinsic.h (gfc_resolve_fseek_sub, gfc_check_fseek_sub): New.
10 * iresolve.c (gfc_resolve_fseek_sub): New.
11 * check.c (gfc_check_fseek_sub): New.
12 * intrinsic.texi (FSEEK): Updated.
14 2007-05-04 Tobias Burnus <burnus@net-b.de>
17 * expr.c (gfc_check_pointer_assign): Check for NULL pointer.
19 2007-05-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
22 * simplify.c (gfc_simplify_len): Only simplify integer lengths.
24 2007-05-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
27 * simplify.c (gfc_simplify_repeat): Don't put function call with
28 side effect in a gcc_assert().
30 2007-05-04 Tobias Burnus <burnus@net-b.de>
33 * interface.c (compare_actual_formal): Check character length.
35 2007-05-01 Thomas Koenig <tkoenig@gcc.gnu.org>
38 * dependency.c (gfc_full_array_ref_p): If the reference is
39 to a single element, check that the array has a single
40 element and that the correct element is referenced.
42 2007-05-01 Daniel Franke <franke.daniel@gmail.com>
44 * intrinsic.c (add_functions): Fixed ELEMENTAL specifications.
45 (add_subroutines): Replaced magic numbers in function calls by
46 ELEMENTAL and NOT_ELEMENTAL respectively.
47 * intrinsic.texi (MVBITS): Changed class to elemental subroutine.
48 (RANDOM_NUMBER): Changed class to subroutine.
49 (HUGE, TINY): Changed class to inquiry function.
51 2007-04-30 Brooks Moses <brooks.moses@codesourcery.com>
53 * trans-const.c (gfc_conv_mpz_to_tree): Use mpz_get_double_int.
54 (gfc_conv_tree_to_mpz): New function.
55 (gfc_conv_mpfr_to_tree): Use real_from_mpfr.
56 (gfc_conv_tree_to_mpfr): New function.
57 * trans-const.h: (gfc_conv_tree_to_mpz): New prototype.
58 (gfc_conv_tree_to_mpfr): New prototype.
60 2007-04-30 Daniel Franke <franke.daniel@gmail.com>
62 * intrinsic.texi (IERRNO): Changed class to non-elemental function.
63 (LOG10): Removed COMPLEX as accepted argument type.
64 (NEW_LINE): Changed class from elemental to inquiry function.
65 (SIGN): Removed requirement of scalar arguments.
66 (SNGL): Changed class to elemental function.
68 2007-04-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
71 * simplify.c (simplify_bound_dim): New function.
72 (simplify_bound): Use the above. Perform simplification of LBOUND
73 and UBOUND when DIM argument is not present.
75 2007-04-29 Daniel Franke <franke.daniel@gmail.com>
77 * gfortran.texi: Cleaned up keyword index.
78 * invoke.texi: Likewise.
79 * intrinsic.texi: Likewise.
81 2007-04-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
84 * scanner.c (load_file): Discard the byte order mark if one is
85 found on the first non-preprocessor line of a file.
87 2007-04-29 Paul Thomas <pault@gcc.gnu.org>
90 * trans-array.c (gfc_conv_resolve_dependencies): Create a temp
91 whenever a dependency is found.
93 2007-04-28 Tobias Schlüter <tobi@gcc.gnu.org>
95 * options.c (gfc_handle_option): Ensure requested free form line
96 length is not too small.
98 2007-04-27 Brooks Moses <brooks.moses@codesourcery.com>
100 * intrinsic.texi (Transfer): Improve documentation.
102 2007-04-27 Brooks Moses <brooks.moses@codesourcery.com>
104 * gfortran.texi (Option Index): Add @samp as needed.
106 2007-04-27 Daniel Franke <franke.daniel@gmail.com>
108 * gfortran.texi: Added node and menu entry for an option index.
109 * invoke.texi: Moved command line option related entries of the concept
110 index to the option index.
112 2007-04-27 Daniel Franke <franke.daniel@gmail.com>
114 * intrinsic.texi (AND, FPUT, FPUTC, MODULO, OR, SET_EXPONENT,
115 XOR): Fixed examples.
117 2007-04-27 Daniel Franke <franke.daniel@gmail.com>
119 * intrinsic.texi (PRODUCT, RESHAPE, SPACING, SPREAD, SUM,
120 SYSTEM_CLOCK, TRANSFER, UNPACK): New.
121 (DATE_AND_TIME, CPU_TIME, RRSPACING): Added cross references.
123 2007-04-26 Daniel Franke <franke.daniel@gmail.com>
125 * intrinsic.texi (NULL, PACK, PRESENT, REPEAT, SCAN, SHAPE,
126 SIZE, TRANSPOSE, TRIM, VERIFY): New.
127 (ADJUSTL, ADJUSTR, INDEX): Added cross references.
128 (INT, INT2, INT8, LONG): Enabled section header.
130 2007-04-25 Janne Blomqvist <jb@gcc.gnu.org>
132 * module.c (module_char): Replace fgetc() with
134 (write_char): Replace fputc() with putc().
135 * scanner.c (load_line): Replace fgetc() with getc().
136 (gfc_read_orig_filename): Likewise.
138 2007-04-25 Tobias Burnus <burnus@net-b.de>
141 * error.c (error_print): Fix %% support.
142 * intrinsic.c (sort_actual): Improve error message.
143 * resolve.c (resolve_actual_arglist): Allow %VAL for
144 interfaces defined in the module declaration part.
146 2007-04-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
149 * intrinsic.texi (GETLOG): Update documentation to reflect
152 2007-04-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
155 * module.c (write_char): Add character to the MD5 buffer.
156 (read_md5_from_module_file): New function.
157 (gfc_dump_module): Compute MD5 for new module file. Call
158 read_md5_from_module_file. Only overwrite old module file
159 if the new MD5 is different.
161 2007-04-23 Paul Thomas <pault@gcc.gnu.org>
164 * resolve.c (resolve_symbol): Allow resolution of formal
165 namespaces nested within formal namespaces coming from modules.
168 * trans-expr.c (gfc_trans_assignment): Make the call to
169 gfc_trans_zero_assign conditional on the lhs array ref being
172 2007-04-23 Tobias Burnus <burnus@net-b.de>
174 * primary.c (match_integer_constant): Mention -fno-range-check
175 in the error message.
177 2007-04-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
180 * scanner.c (load_line): Remove check for comment after ampersand and
181 adjust tracking of ampersand.
183 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
185 * f95-lang.c (lang_tree_node): Use GENERIC_NEXT
186 instead of checking GIMPLE_STMT_P in chain_next.
188 2007-04-17 Tobias Schlüter <tobi@gcc.gnu.org>
190 * trans-types.h (gfc_packed): New enum.
191 (gfc_get_nodesc_array_type): Change prototype to use new enum.
192 * trans-types.c (gfc_get_nodesc_array): Use gfc_packed for
193 argument packed. Adapt all references to values accordingly.
194 (gfc_sym_type): Use enum values in call to gfc_get_nodesc_array.
195 (gfc_get_derived_type): Likewise.
196 * trans-array.c (gfc_build_constant_array_constructor): Likewise.
197 * trans-expr.c (gfc_get_interface_mapping_charlen): Changed packed
198 argument to type gfc_packed.
199 (gfc_add_interface_mapping): Use enum values in call to
200 gfc_get_interface_mapping.
201 * trans-decl.c (gfc_build_dummy_array_decl): Adapt to use enum
202 values when determining packing.
204 * trans-decl.c (gfc_finish_decl): Remove unused second argument
205 'init'. Simplify code accordingly. Remove calls to
206 gfc_fatal_error in favor of gcc_assert.
207 (create_function_arglist): Remove second argument from calls to
209 (gfc_trans_dummy_character): Likewise.
211 * arith.h: Update copyright years.
212 * dependency.h: Likewise.
213 * gfortran.h: Likewise.
214 * lang-specs.h: Likewise.
216 * symbol.c: Likewise.
219 * trans-array.c: Likewise.
220 * trans-common.c: Likewise.
221 * trans-const.h: Likewise.
222 * trans-const.c: Likewise.
223 * trans-decl.c: Likewise.
224 * trans-expr.c: Likewise.
225 * trans-io.c: Likewise.
226 * trans-openmp.c: Likewise.
227 * trans-types.h: Likewise.
228 * types.def: Likewise.
230 2007-04-17 Tobias Schlüter <tobi@gcc.gnu.org>
233 * decl.c (gfc_sym_mangled_identifier): Use capital letters in name
235 (gfc_sym_mangled_function_id): Likewise.
237 2007-04-15 Paul Thomas <pault@gcc.gnu.org>
240 * primary.c (check_for_implicit_index): New function to check
241 that a host associated variable is not an undeclared implied
243 (gfc_match_rvalue, match_variable): Use it and reset the
244 implied_index attribute.
245 * gfortran.h : Add the implied_index field to symbol_attribute.
246 * match.c (gfc_match_iterator): Mark the iterator variable
247 with the new attribute.
248 * decl.c (build_sym): Reset the new attribute.
250 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
252 * gfc-internals.texi: Fix typos.
253 * simplify.c: Fix a comment typo.
255 2007-04-14 Bernhard Fischer <aldot@gcc.gnu.org>
257 * primary.c: Commentary typo fix; Add question about redundant (?)
260 2007-04-14 Paul Thomas <pault@gcc.gnu.org>
264 * expr.c (scalarize_intrinsic_call): New function to
265 scalarize elemental intrinsic functions in initialization
267 (check_init_expr): Detect elemental intrinsic functions
268 in initalization expressions and call previous.
270 2007-04-13 Tobias Burnus <burnus@net-b.de>
273 * primary.c (match_variable): External functions
276 2007-04-13 Paul Thomas <pault@gcc.gnu.org>
279 * trans-types.c (copy_dt_decls_ifequal): Do not get pointer
280 derived type components.
282 2007-04-13 Tobias Schlüter <tobi@gcc.gnu.org>
285 * resolve.c: Include obstack.h and bitmap.h. New variable
287 (code_stack): Add tail and reachable_labels fields.
288 (reachable_labels): New function.
289 (resolve_branch): Rework to use new fields in code_stack.
290 (resolve_code): Call reachable_labels.
291 (resolve_codes): Allocate and free labels_obstack.
293 2007-04-12 Tobias Schlüter <tobi@gcc.gnu.org>
296 * decl.c (match_char_spec): Move check for negative CHARACTER
298 * resolve.c (resolve_charlen): ... here.
299 (resolve_types): Resolve CHARACTER lengths earlier.
301 2007-04-12 Daniel Franke <franke.daniel@gmail.com>
304 * intrinsic.texi (RANDOM_SEED, RANDOM_NUMBER): New.
306 2007-04-12 Tobias Schlüter <tobi@gcc.gnu.org>
309 * primary.c (gfc_variable_attr): Don't copy string length if it
311 * resolve.c (resolve_code): Clarify error message.
314 * decl.c (gfc_match_end): Also check for construct name in END
315 FORALL and END WERE statements.
316 * match.c (match_case_eos): Use uppercase for statement name in
318 (match_elsewhere): Construct name may appear iff construct has a
321 * trans-types.c: Update copyright years. Reformat long comment
322 explaining array descriptor format. Remove obsolete mention of
325 * arith.c (gfc_arith_uplus): Rename to ...
326 (gfc_arith_identity): ... this.
327 (gfc_parentheses): New function.
328 (gfc_uplus): Adapt to renamed function.
329 * arith.h (gfc_parentheses): Add prototype.
330 * expr.c (gfc_copy_expr): Deal with INTRINSIC_PARENTHESES.
331 (simplifiy_intrinsic_op): Treat INTRINSIC_UPLUS separately from
332 INTRINSIC_PARENTHESES.
334 2007-04-12 Tobias Burnus <burnus@net-b.de>
337 * decl.c (match_attr_spec): Allow PRIVATE/PUBLIC
338 attribute in type definitions.
339 (gfc_match_private): Allow PRIVATE statement only
340 in specification part of modules.
341 (gfc_match_public): Ditto for PUBLIC.
342 (gfc_match_derived_decl): Allow PRIVATE/PUBLIC attribute only in
343 specificification part of modules.
345 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
348 * intrinsic.c (add_functions): Add ref. to gfc_resolve_achar.
349 * intrinsic.h : Add prototype for gfc_resolve_achar.
350 * iresolve.c (gfc_resolve_achar): New function.
352 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
355 * resolve.c (resolve_fl_variable): Set flag to 2 for automatic
356 arrays. Make condition for automatic array error explicit.
357 If a dummy, no error on an INTENT(OUT) derived type.
359 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
362 * expr.c (find_array_element): Correct arithmetic for rank > 1.
364 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
367 * check.c (numeric_check): If an expresson has not got a type,
368 see if it is a symbol for which a default type applies.
370 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
373 * trans-decl.c (gfc_get_symbol_decl): Allow unreferenced use
376 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
379 * symbol.c (gfc_check_function_type): New function.
380 * gfortran.h : Add prototype for previous.
381 * parse.c (parse_progunit): Call it after parsing specification
384 2007-04-05 Paul Thomas <pault@gcc.gnu.org>
387 * trans-expr.c (gfc_conv_function_call): Give a dummy
388 procedure the correct type if it has alternate returns.
390 2007-04-05 Paul Thomas <pault@gcc.gnu.org>
393 * decl.c (gfc_match_modproc): Go up to the top of the namespace
394 tree to find the module namespace for gfc_get_symbol.
396 2007-04-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
399 * fortran/gfortran.h (gfc_charlen_int_kind): New prototype.
400 * fortran/trans-types.c (gfc_charlen_int_kind): New variable.
401 (gfc_init_types): Define gfc_charlen_int_kind.
402 * fortran/trans.h (gfor_fndecl_string_repeat): Remove prototype.
403 * fortran/trans-decl.c (gfor_fndecl_string_repeat): Delete.
404 (gfc_build_intrinsic_function_decls): Don't set
405 gfor_fndecl_string_repeat.
406 * fortran/trans-intrinsic.c (gfc_conv_intrinsic_repeat): Rewrite
407 so that we don't have to call a library function.
408 * fortran/simplify.c (gfc_simplify_repeat): Perform the necessary
409 checks on the NCOPIES argument, and work with arbitrary size
412 2007-03-31 Tobias Burnus <burnus@net-b.de>
414 * intrinsic.c (add_functions): Fix name of dummy argument
415 for new_line and exit intrinsic.
417 2007-03-31 Paul Thomas <pault@gcc.gnu.org>
420 * gfortran.texi: Add a section for the %VAL, %REF and %LOC
423 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
425 * trans-types.c (gfc_signed_or_unsigned_type): Remove.
426 (gfc_unsigned_type): Use get_signed_or_unsigned_type instead of
427 gfc_signed_or_unsigned_type.
428 (gfc_signed_type): Ditto.
429 * trans-types.h (gfc_signed_or_unsigned_type): Remove.
430 * f95-lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
432 2007-03-30 Tobias Schlüter <tobi@gcc.gnu.org>
434 * symbol.c (gfc_find_gsymbol): Simplify, don't unconditionally
435 descend into all branches.
437 2007-03-29 Tobias Schlüter <tobi@gcc.gnu.org>
439 * intrinsic.c (conv_name): Let gfc_get_string handle the format.
440 (find_conv): Compare pointers instead of calling strcmp.
441 (find_sym): Likewise, but ensure that the compared pointer is in
442 the global string table.
444 2007-03-28 Tobias Schlüter <tobi@gcc.gnu.org>
446 * gfc-internals.texi: Fix output filename. Merge type index into
447 concept index. Start documentation of gfc_code structure.
449 2007-03-26 Brooks Moses <brooks.moses@codesourcery.com>
451 * gfc-internals.texi: New file,
452 * Make-lang.in: Add rules to convert it to dvi, pdf, and info.
454 2007-03-26 Brooks Moses <brooks.moses@codesourcery.com>
456 * error.c (show_locus): Remove always-false test.
458 2007-03-26 Brooks Moses <brooks.moses@codesourcery.com>
460 * lang.opt: Minor edits to descriptions.
462 2007-03-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
465 * fortran/interface.c (check_operator_interface): Implement
466 the standard checks on user operators extending intrinsic operators.
467 * fortran/resolve.c (resolve_operator): If the ranks of operators
468 don't match, don't error out but try the user-defined ones first.
470 2007-03-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
473 * expr.c (check_dimension): Fix logic of comparisons.
475 2007-03-24 Paul Thomas <pault@gcc.gnu.org>
478 * trans-expr.c (gfc_apply_interface_mapping_to_expr): Return
479 int result that is non-zero if the expression is the function
480 result. Only the characteristics of the result expression
481 can be used in a procedure interface, so simplify LEN in situ
482 using its character length.
486 * trans-expr.c (gfc_conv_function_call): Do not use
487 gfc_conv_expr_reference for actual pointer function with formal
488 target because a temporary is created that does not transfer
489 the reference correctly. Do not indirect formal pointer
490 functions since it is the function reference that is needed.
492 2007-03-24 Brooks Moses <brooks.moses@codesourcery.com>
494 * gfortran.h: Edit comments on GFC_STD_*.
496 2007-03-23 Brooks Moses <brooks.moses@codesourcery.com>
498 * invoke.texi: Misc. small typo fixes.
499 (-Wcharacter-truncation): Add.
500 (-Wnonstd-intrinsics): Correct spelling.
502 (-fintrinsic-modules-path): Add.
504 2007-03-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
507 * arith.c (complex_pow): Rewrite to handle large power.
508 (gfc_arith_power): Handle large power in the real and integer
511 2007-03-22 Francois-Xavier Coudert <coudert@clipper.ens.fr>
514 * trans-const.c (gfc_conv_mpz_to_tree): Allow integer constants
515 larger than twice the width of a HOST_WIDE_INT.
517 2006-03-22 Paul Thomas <pault@gcc.gnu.org>
520 * trans-intrinsic.c (gfc_size_in_bytes): Remove function.
521 (gfc_conv_intrinsic_array_transfer): Remove calls to previous.
522 Explicitly extract TREE_TYPEs for source and mold. Use these
523 to calculate length of source and mold, except for characters,
524 where the se string_length is used. For mold, the TREE_TYPE is
525 recalculated using gfc_get_character_type_len so that the
526 result is correctly cast for character literals and substrings.
527 Do not use gfc_typenode_for_spec for the final cast.
529 2007-03-22 Tobias Schlüter <tobi@gcc.gnu.org>
532 * decl.c (gfc_match_derived_decl): Reliably reject
533 'doubleprecision' and 'doublecomplex' as type names.
535 2007-03-19 Francois-Xavier Coudert <coudert@clipper.ens.fr>
538 * trans-expr.c (gfc_trans_init_string_length): Length should
540 (gfc_conv_function_call): Likewise.
542 2007-03-18 Paul Thomas <pault@gcc.gnu.org>
546 * symbo.c : Add gfc_derived_types.
547 (gfc_free_dt_list): Free derived type list gfc_derived_types.
548 (gfc_free_namespace): Remove call to gfc_free_dt_list.
549 (gfc_symbol_done_2): Call gfc_free_dt_list.
550 * gfortran.h : Declare gfc_derived_types to be external. Remove
551 derived types field from gfc_namespace.
552 * resolve.c (resolve_fl_derived): Refer to gfc_derived types
553 rather than namespace derived_types.
554 (resolve_fntype): Remove special treatment for module
555 derived type functions.
556 * trans-types.c (gfc_get_derived_type): Remove search for like
557 derived types. Finish by copying back end declaration to like
558 derived types in the derived type list gfc_derived_types.
560 2007-03-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
563 * trans-expr.c (gfc_conv_powi): Make n argument unsigned hwi.
564 (gfc_conv_cst_int_power): Handle integer exponent with care,
565 since it might be too large for us.
567 2007-03-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
570 * invoke.texi: Fix typo.
572 2007-03-16 Tobias Burnus <burnus@net-b.de>
574 * trans-decl.c (gfc_generate_function_code): Use all arguments of
577 2007-03-15 Francois-Xavier Coudert <coudert@clipper.ens.fr>
579 * gfortran.h (gfc_option_t): Add flag_backtrace field.
580 * lang.opt: Add -fbacktrace option.
581 * invoke.texi: Document the new option.
582 * trans-decl.c (gfc_build_builtin_function_decls): Add new
583 option to the call to set_std.
584 * options.c (gfc_init_options, gfc_handle_option): Handle the
587 2007-03-15 Tobias Burnus <burnus@gcc.gnu.org>
588 Paul Thomas <pault@gcc.gnu.org>
591 * decl.c (gfc_match_import): If the parent of the current name-
592 space is null, try looking for an imported symbol in the parent
593 of the proc_name interface.
594 * resolve.c (resolve_fl_variable): Do not check for blocking of
595 host association by a same symbol, if the symbol is in an
598 2007-03-15 Paul Thomas <pault@gcc.gnu.org>
601 * decl.c (match_data_constant): Before going on to try to match
602 a name, try to match a structure component.
606 * resolve.c (resolve_actual_arglist): Do not reject a generic
607 actual argument if it has a same name specific interface.
610 * trans-array.c (parse_interface): Do not nullify allocatable
611 components if the symbol has the saved attribute.
613 2007-03-14 Francois-Xavier Coudert <coudert@clipper.ens.fr>
615 * trans-array.c (gfc_trans_auto_array_allocation): Replace
616 fold(convert()) by fold_convert().
617 (gfc_duplicate_allocatable): Likewise.
618 * trans-intrinsic.c (gfc_conv_intrinsic_dot_product): Use
619 build_int_cst instead of converting an integer_zero_node
622 2007-03-14 Jakub Jelinek <jakub@redhat.com>
624 * module.c (mio_typespec): Don't look at ts->cl if not BT_CHARACTER.
626 2007-03-13 Brooks Moses <brooks.moses@codesourcery.com>
631 * intrinsics.texi (CHDIR): Fix argument names, note
632 that STATUS must be a default integer.
633 (CTIME): Fix argument names, note that RESULT must
634 be a default integer.
635 (EXIT): Note that STATUS must be a default integer.
637 2007-03-13 Brooks Moses <brooks.moses@codesourcery.com>
640 * intrinsic.texi: General whitespace cleanup, remove
641 comment about missing intrinsics.
642 (menu): Add lines for new entries listed below.
643 (ACOSH): Mention specific function DACOSH, correct
644 description phrasing.
645 (ASINH): Mention specific function DASINH, correct
646 description phrasing.
647 (ATANH): Mention specific function DATANH, correct
648 description phrasing.
649 (COS): Add index entry for CCOS.
650 (CPU_TIME): Correct "REAL" to "REAL(*)".
651 (EXP): Add index entry for CEXP.
652 (INT): Correct argument name to "A".
656 (MAX): Add index entries for specific variants.
658 (MCLOCK8): New entry.
659 (SECNDS): Adjust to a more standard form.
661 (TIME): Add cross-reference to MCLOCK.
662 (TIME8): Add cross-reference to MCLOCK8.
664 2007-03-11 Paul Thomas <pault@gcc.gnu.org>
667 * parse.c (parse_interface): Use the default types from the
668 formal namespace if a function or its result do not have a type
669 after parsing the specification statements.
671 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
673 * intrinsic.texi: (ICHAR) Improve internal I/O note.
674 (ACHAR): Reference it.
675 (CHAR): Reference it.
676 (IACHAR): Reference it.
678 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
680 * intrinsic.texi: (LINK) Document function form.
686 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
688 * intrinsic.texi: minor typo fixes, removed prologue.
689 (FSEEK): moved to correct place in alphabetical order.
691 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
694 * check.c (gfc_check_alarm_sub): Added check for default integer
695 kind of status argument.
696 * iresolve.c (gfc_resolve_alarm_sub): Removed conversion of
698 * intrinsic.texi (ALARM): Extended documentation.
700 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
702 * intrinsic.texi (GERROR, ISATTY, TTYNAM): New.
703 (ABORT, FLUSH, FNUM, IRAND, MALLOC, SIGNAL, SRAND): Fixed typo.
704 * intrinsic.c (add_subroutines): Adjusted dummy argument names
705 of GERROR and TTYNAM.
707 2007-07-08 Tobias Burnus <burnus@net-b.de>
709 * module.c (gfc_match_use): Support renaming of operators
711 * gfortran.texi (Fortran 2003 Status): Document support of
712 renaming of operators.
714 2007-07-08 Tobias Burnus <burnus@net-b.de>
717 * module.c (read_module): Always import module name as symbol.
718 (gfc_match_use): Disallow module name in the only clause of
721 2007-03-08 Paul Thomas <pault@gcc.gnu.org>
724 * expr.c (find_array_section): Correct arithmetic for section
727 2007-03-07 Brooks Moses <brooks.moses@codesourcery.com>
729 * iresolve.c (gfc_resolve_ishftc): Correct s_kind value.
731 2007-03-06 Daniel Franke <franke.daniel@gmail.com>
733 PR documentation/30950
734 * intrinsic.texi (AND, CPU_TIME): Fix dummy argument names.
735 (FREE): Fix call syntax.
737 2007-03-06 Brooks Moses <brooks.moses@codesourcery.com>
739 * intrinsic.texi: Limit column widths to a total of .85.
741 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
743 * gfortran.texi (GFortran and G77): Rewrite completely.
745 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
747 * match.c (gfc_match_name): Expanded comment.
749 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
751 * gfortran.texi (Old-style kind specifications): Document
752 special handling of old-style kind specifiers for COMPLEX.
753 * decl.c (gfc_match_old_kind_spec): Document kind/bytesize
754 assumptions for COMPLEX in comment.
756 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
759 * gfortranspec.c (lang_specific_driver): Update program
760 name and copyright date.
762 2007-03-03 Paul Thomas <pault@gcc.gnu.org>
765 * check.c (dim_rank_check): The shape of subsections of
766 assumed-size arrays is known.
768 2007-03-02 Paul Thomas <pault@gcc.gnu.org>
769 Tobias Burnus <burnus@net-b.de>
772 * decl.c (gfc_match_entry): Remove erroneous entry result check.
774 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
776 * Make-lang.in: Add install-pdf target as copied from
777 automake v1.10 rules.
779 2007-03-01 Tobias Burnus <burnus@net-b.de>
782 * trans-intrinsic.c (gfc_conv_intrinsic_size): Compare pointers.
784 2007-02-28 Tobias Burnus <burnus@net-b.de>
785 Paul Thomas <pault@gcc.gnu.org>
789 * resolve.c (resolve_actual_arglist): Allow by-value
790 arguments and non-default-kind for %VAL().
791 * trans-expr.c (conv_arglist_function): Allow
792 non-default-kind for %VAL().
794 2007-02-28 Tobias Burnus <burnus@net-b.de>
797 * primary.c (next_string_char): Correct reading a character
799 (match_string_constant): Print warning message only once.
801 2007-02-27 Richard Guenther <rguenther@suse.de>
803 * trans-array.c (structure_alloc_comps): Use correct type
804 for null pointer constant.
806 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
808 * gfortran.texi: Standardize title page, remove version number
811 2007-02-26 Thomas Koenig <Thomas.Koenig@online.de>
812 Paul Thomas <pault@gcc.gnu.org>
815 * trans-intrinsic.c (gfc_conv_intrinsic_size):
816 If dim is an optional argument, check for its
817 presence and call size0 or size1, respectively.
819 2007-02-23 Paul Thomas <pault@gcc.gnu.org>
822 * resolve.c (has_default_initializer): New function.
823 (resolve_fl_variable): Call has_default_initializer to determine if
824 the derived type has a default initializer to its ultimate
828 2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
830 * options.c (set_default_std_flags): New function to consolidate
832 (gfc_init_options): Use new function.
833 (gfc_handle_option): Use new function.
835 2007-02-22 Brooks Moses <brooks.moses@codesourcery.com>
837 * gfortran.texi (Old-style kind specifications): Document
838 special handling of old-style kind specifiers for COMPLEX.
839 * decl.c (gfc_match_old_kind_spec): Documented kind/bytesize
840 assumptions in comment.
842 2007-02-21 Bernhard Fischer <aldot@gcc.gnu.org>
844 * parse.c (next_free): Gooble spaces after OpenMP sentinel.
846 2007-02-20 Thomas Koenig <Thomas.Koenig@online.de>
849 * match.c (gfc_match_iterator): Remove conflict between
850 loop variable and pointer.
852 2007-02-20 Tobias Burnus <burnus@net-b.de>
855 * symbol.c (gfc_add_volatile): Allow to set VOLATILE
856 attribute for host-associated variables.
857 * gfortran.h (symbol_attribute): Save namespace
858 where VOLATILE has been set.
859 * trans-decl.c (gfc_finish_var_decl): Move variable
860 declaration to the top.
862 2007-02-20 Tobias Burnus <burnus@net-b.de>
865 * resolve.c (resolve_symbol): Add character dummy VALUE check.
867 2007-02-19 Thomas Koenig <Thomas.Koenig@online.de>
870 * fortran/iresolve.c (gfc_resolve_maxloc): Remove coercion of
871 argument to default integer.
872 (gfc_resolve_minloc): Likewise.
874 2007-02-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
877 * options.c (gfc_init_options): Relax warning level for obsolescent.
878 * match.c (match_arithmetic_if): Change to obsolescent from deleted.
879 (gfc_match_if): Same.
881 2007-02-18 Roger Sayle <roger@eyesopen.com>
883 * trans-array.c (gfc_build_constant_array_constructor): When the
884 shape of the constructor is known, use that to construct the
886 (gfc_trans_constant_array_constructor): Initialize the "info"
887 information for all of the dimensions of the array constructor.
888 (constant_array_constructor_loop_size): New function.
889 (gfc_trans_array_constructor): Use it to determine whether a
890 loop is suitable for "constant array constructor" optimization.
892 * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Use fold_build2
893 instead of build2, to avoid conditions like "(a != b) != 0".
895 2007-02-18 Roger Sayle <roger@eyesopen.com>
896 Paul Thomas <pault@gcc.gnu.org>
899 * match.c (match_forall_iterator): Use gfc_match_expr instead
900 of gfc_match_variable to match the iterator variable. Return
901 MATCH_NO if not a variable. Remove the reset of the symbol's
904 2007-02-16 Tobias Burnus <burnus@net-b.de>
907 * trans-decl.c (gfc_generate_function_code): Do not initialize
908 pointers to derived components.
910 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
911 Brooks Moses <brooks.moses@codesourcery.com>
912 Lee Millward <lee.millward@codesourcery.com>
914 * trans-expr.c (gfc_conv_power_op): Use build_call_expr.
915 (gfc_conv_string_tmp): Likewise.
916 (gfc_conv_concat_op): Likewise.
917 (gfc_build_compare_string): Likewise.
918 (gfc_conv_function_call): Use build_call_list instead of build3.
920 * trans-array.c (gfc_trans_allocate_array_storage): Use
922 (gfc_grow_array): Likewise.
923 (gfc_trans_array_ctor_element): Likewise.
924 (gfc_trans_array_constructor_value): Likewise.
925 (gfc_array_allocate): Likewise.
926 (gfc_array_deallocate): Likewise.
927 (gfc_trans_auto_array_allocation): Likewise.
928 (gfc_trans_dummy_array_bias): Likewise.
929 (gfc_conv_array_parameter): Likewise.
930 (gfc_trans_dealloc_allocated): Likewise.
931 (gfc_duplicate_allocatable): Likewise.
933 * trans-openmp.c (gfc_trans_omp_barrier): Use build_call_expr.
934 (gfc_trans_omp_flush): Likewise.
936 * trans-stmt.c (gfc_conv_elementel_dependencies): Use build_call_expr.
937 (gfc_trans_pause): Likewise.
938 (gfc_trans_stop): Likewise.
939 (gfc_trans_character_select): Likewise.
940 (gfc_do_allocate): Likewise.
941 (gfc_trans_assign_need_temp): Likewise.
942 (gfc_trans_pointer_assign_need_temp): Likewise.
943 (gfc_trans_forall_1): Likewise.
944 (gfc_trans_where_2): Likewise.
945 (gfc_trans_allocate): Likewise.
946 (gfc_trans_deallocate): Likewise.
948 * trans.c (gfc_trans_runtime_check): Use build_call_expr.
950 * trans-io.c (gfc_trans_open): Use build_call_expr.
951 (gfc_trans_close): Likewise.
952 (build_filepos): Likewise.
953 (gfc_trans_inquire): Likewise.
954 (NML_FIRST_ARG): Delete.
955 (NML_ADD_ARG): Delete.
956 (transfer_namelist_element): Use build_call_expr.
957 (build_dt): Likewise.
958 (gfc_trans_dt_end): Likewise.
959 (transfer_expr): Likewise.
960 (transfer_array-desc): Likewise.
962 * trans-decl.c (gfc_generate_function_code): Use build_call_expr.
963 (gfc_generate_constructors): Likewise.
965 * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Use build_call_expr.
966 (gfc_conv_intrinsic_fdate): Likewise.
967 (gfc_conv_intrinsic_ttynam): Likewise.
968 (gfc_conv_intrinsic_array_transfer): Likewise.
969 (gfc_conv_associated): Likewise.
970 (gfc_conv_intrinsic_si_kind): Likewise.
971 (gfc_conv_intrinsic_trim): Likewise.
972 (gfc_conv_intrinsic_repeat: Likewise.
973 (gfc_conv_intrinsic_iargc): Likewise.
975 2007-02-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
978 * scanner.c (gfc_next_char_literal): Add check for end of file after
979 call to advance_line.
981 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
984 * primary.c (match_logical_constant): Return MATCH_ERROR on invalid
987 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
989 * misc.c (gfc_typename): Fix potential buffer overflow.
991 2007-02-13 Paul Thomas <pault@gcc.gnu.org>
994 * module.c (read_module): Set pointer_info to referenced if the
995 symbol has no namespace.
997 2007-02-12 Nick Clifton <nickc@redhat.com>
999 * lang.opt: Add Warning attribute to warning options.
1001 2007-02-11 Daniel Franke <franke.daniel@gmail.com>
1003 * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
1004 (SLEEP): Added section and documentation.
1006 2007-02-11 Tobias Schlüter <tobi@gcc.gnu.org>
1009 * decl.c (add_init_expr_to_sym): Remove ENUM specific code.
1010 (variable_decl): Likewise. Rewrap comment.
1011 (match_attr_spec): Remove ENUM specific code.
1012 (gfc_match_enum): Fix typo in error message.
1013 (enumerator_decl): New function.
1014 (gfc_match_enumerator_def): Use enumerator_decl instead of
1015 variable_decl. Adapt code accordingly.
1017 2007-02-11 Paul Thomas <pault@gcc.gnu.org>
1020 * module.c (find_symtree_for_symbol): New function to return
1021 a symtree that is not a "unique symtree" given a symbol.
1022 (read_module): Do not automatically set pointer_info to
1023 referenced because this inhibits the generation of a unique
1024 symtree. Recycle the existing symtree if possible by calling
1025 find_symtree_for_symbol.
1028 * decl.c (add_init_expr_to_sym): Make new charlen for an array
1029 constructor initializer.
1031 2007-02-10 Richard Henderson <rth@redhat.com>, Jakub Jelinek <jakub@redhat.com>
1033 * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
1034 and __emutls_register_common.
1035 * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
1036 * trans-common.c (build_common_decl): Don't check have_tls.
1037 * trans-decl.c (gfc_finish_var_decl): Likewise.
1038 * types.def (BT_WORD, BT_FN_PTR_PTR): New.
1039 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
1041 2007-02-09 Tobias Burnus <burnus@net-b.de>
1044 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc,
1045 gfc_conv_intrinsic_minmaxval): Use HUGE-1 for most negative integer.
1047 2007-02-09 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1050 * trans-array.c (gfc_trans_create_temp_array): Remove use of the
1051 function argument. Always generate code for negative extent.
1053 * trans-array.h (gfc_trans_create_temp_array): Change prototype.
1054 * trans-expr.c (gfc_conv_function_call): Remove use of last argument
1055 of gfc_trans_create_temp_array.
1056 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Likewise.
1057 * trans-stmt.c (gfc_conv_elemental_dependencies): Likewise.
1059 2007-02-08 Roger Sayle <roger@eyesopen.com>
1061 * trans-stmt.c (gfc_trans_forall_1): Optimize the cases where the
1062 mask expression is a compile-time constant (".true." or ".false.").
1064 2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1067 * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Evaluate
1068 arguments only once. Generate check that NCOPIES argument is not
1071 2007-02-04 Steven G. Kargl <kargl@gcc.gnu.org>
1074 * fortran/invoke.texi: Update documentation.
1075 * fortran/options.c (gfc_post_options): Deal with tabs with -std=f2003
1078 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
1080 * trans-array.c: Fix a comment typo.
1082 2007-02-03 Paul Thomas <pault@gcc.gnu.org>
1085 * array.c (match_array_element_spec): If the length of an array is
1086 negative, adjust the upper limit to make it zero length.
1089 * resolve.c (pure_function, resolve_function): Initialize name to
1090 null to clear up build warnings.
1091 (resolve_fl_variable): Look at components explicitly to check for
1092 default initializer, rather than using gfc_default_initializer.
1094 2007-02-02 Steven G. Kargl <kargl@gcc.gnu.org>
1097 * resolve.c (resolve_generic_f): Check for non-NULL sym.
1099 2007-02-02 Roger Sayle <roger@eyesopen.com>
1101 * trans.c (gfc_build_array_ref): Use STRIP_TYPE_NOPS to eliminate
1102 NON_LVALUE_EXPR nodes and useless type conversions.
1104 2007-02-02 Paul Thomas <pault@gcc.gnu.org>
1108 * trans-expr.c (gfc_conv_aliased_arg): Remove static attribute
1109 from function and make sure that substring lengths are
1111 (is_aliased_array): Remove static attribute.
1112 * trans.c : Add prototypes for gfc_conv_aliased_arg and
1114 * trans-io.c (set_internal_unit): Add the post block to the
1115 arguments of the function. Use is_aliased_array to check if
1116 temporary is needed; if so call gfc_conv_aliased_arg.
1117 (build_dt): Pass the post block to set_internal_unit and
1118 add to the block after all io activiy is done.
1120 2007-02-01 Roger Sayle <roger@eyesopen.com>
1122 * trans-array.c (gfc_conv_expr_descriptor): We don't need to use
1123 a temporary array to pass a constant non-character array constructor.
1124 Generalize the descriptor generation code to handle scalarizer
1125 "info" without an array reference.
1127 2007-02-01 Roger Sayle <roger@eyesopen.com>
1129 * dependency.c (gfc_check_dependency) <EXPR_ARRAY>: Implement
1130 dependency checking for array constructors.
1132 2007-02-01 Roger Sayle <roger@eyesopen.com>
1134 * trans-stmt.c (compute_overall_iter_number): Document function
1135 arguments. Generalize "unconditional forall nest with constant
1136 bounds" optimization to eliminate unconditional inner loops with
1139 2007-01-31 Tobias Burnus <burnus@net-b.de>
1142 * interface.c (compare_actual_formal): Check conformance between
1143 actual and VOLATILE dummy arguments.
1144 * symbol.c (gfc_add_volatile): Allow setting of VOLATILE
1145 multiple times in different scopes.
1146 * decl.c (gfc_match_volatile): Search symbol in host association.
1148 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
1150 * simplify.c, trans-array.c: Fix comment typos.
1152 2007-01-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1154 * invoke.texi (Code Gen Options): Fix abbreviation typo.
1155 * intrinsic.texi (ACCESS, LSHIFT, RSHIFT): Fix typos.
1157 2007-01-30 Steve Ellcey <sje@cup.hp.com>
1160 * trans-types.c (gfc_get_function_type): Do not add void_type_node
1162 * trans-decl.c (create_function_arglist): Change assert.
1164 2007-01-29 Paul Thomas <pault@gcc.gnu.org>
1167 * module.c (read_module): If a symbol is excluded by an ONLY
1168 clause, check to see if there is a symtree already loaded. If
1169 so, attach the symtree to the pointer_info.
1171 2007-01-28 Thomas Koenig <Thomas.Koenig@online.de>
1174 * gfortran.h: Remove gfc_simplify_init_1.
1175 * arith.h: Remove third argument from gfc_compare_string.
1176 * arith.c (gfc_compare_expression): Remove third argument
1177 from call to gfc_compare_string.
1178 (gfc_compare_string): Remove third argument xcoll_table.
1179 Remove use of xcoll_table.
1180 * misc.c (gfc_init_1): Remove call to gfc_simplify_init_1.
1181 * simplify.c (ascii_table): Remove.
1182 (xascii_table): Likewise.
1183 (gfc_simplify_achar): ICE if extract_int fails. Remove use of
1184 ascii_table. Warn if -Wsurprising and value < 0 or > 127.
1185 (gfc_simplify_char): ICE if extract_int fails. Error if
1186 value < 0 or value > 255.
1187 (gfc_simplify_iachar): Remove use of xascii_table.
1188 Char values outside of 0..255 are an ICE.
1189 (gfc_simplify_lge): Remove use of xascii_table.
1190 (gfc_simplify_lgt): Likewise.
1191 (gfc_simplify_lle): Likewise.
1192 (gfc_simplify_llt): Likewise.
1193 (invert_table): Remove.
1194 (gfc_simplify_init_1): Remove.
1196 2007-01-27 Roger Sayle <roger@eyesopen.com>
1198 * trans-stmt.c (forall_info): Replace the next_nest and outer
1199 fields that previously implemented a doubly-linked list with a
1200 single prev_nest field (singly-linked list).
1201 (gfc_trans_nested_forall_loop): The nested_forall_info argument
1202 now denotes the innermost FORALL in the loop nest.
1203 (compute_overall_iter_number): Use prev_nest instead of next_nest.
1204 (gfc_trans_forall_1): Link/cons the new "info" to the head of the
1205 nested_forall_info linked list. Free the current "info" when done.
1207 2007-01-27 Paul Thomas <pault@gcc.gnu.org>
1210 * trans-expr.c (gfc_conv_operator_assign): New function.
1211 * trans.h : Add prototype for gfc_conv_operator_assign.
1212 * trans-stmt.c (gfc_trans_where_assign): Add a gfc_symbol for
1213 a potential operator assignment subroutine. If it is non-NULL
1214 call gfc_conv_operator_assign instead of the first assignment.
1215 ( gfc_trans_where_2): In the case of an operator assignment,
1216 extract the argument expressions from the code for the
1217 subroutine call and pass the symbol to gfc_trans_where_assign.
1218 resolve.c (resolve_where, gfc_resolve_where_code_in_forall,
1219 gfc_resolve_forall_body): Resolve the subroutine call for
1220 operator assignments.
1222 2007-01-26 Steven Bosscher <stevenb.gcc@gmail.com>
1223 Steven G. Kargl <kargl@gcc.gnu.org>
1226 * fortran/io.c (next_char): Deal with backslash escaped characters.
1227 Issue warnings in non -std=gnu cases.
1228 * fortran/primary.c (next_string_char): Issue warnings in non
1230 2007-01-26 Tobias Burnus <burnus@net-b.de>
1232 * lang-specs.h: Add support for .f03 and .F03 extensions.
1233 * gfortran.texi: Document .f03 extension.
1234 * options.c (form_from_filename): Recognize .f03.
1236 2007-01-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1239 * lang.opt (Wall): Remove RejectNegative.
1240 * options.c (gfc_handle_option): Wall can be disabled.
1241 (set_Wall): Add a parameter for disabling Wall.
1243 2007-01-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1246 * scanner.c (load_line): Remove check fot ctrl-z and don't gobble.
1248 2007-01-23 Paul Thomas <pault@gcc.gnu.org>
1251 * match.c (gfc_match_namelist): Add check for assumed size character
1252 in namelist and provide error if found.
1254 2007-01-21 Brooks Moses <brooks.moses@codesourcery.com>
1256 * intrinsic.texi (ACHAR): Added cross-references.
1257 (CHAR): Put cross-references in alphabetical order.
1258 (IACHAR): Added cross-references.
1259 (ICHAR): Added cross-references.
1261 2007-01-20 Brooks Moses <brooks.moses@codesourcery.com>
1263 * intrinsic.texi: Edited all "Syntax" examples to a consistent form.
1264 (MAXVAL): Corrected description of result characteristics.
1266 (UMASK): Added documentation.
1268 2007-01-20 Steven G. Kargl <kargl@gcc.gnu.org>
1270 * openmp.c, matchexp.c, module.c, scanner.c, resolve.c, st.c,
1271 parse.c, primary.c, options.c, misc.c, simplify.c: Next installment
1272 in the massive whitespace patch.
1274 2007-01-20 Roger Sayle <roger@eyesopen.com>
1276 * module.c (mio_array_ref): The dimen_type fields of an array ref
1277 are an enumerated type and can't be read/written directly with a
1278 call to mio_integer. Instead loop over and cast each element.
1280 2007-01-20 Roger Sayle <roger@eyesopen.com>
1282 * dependency.c (gfc_full_array_ref_p): Check that ref->next is NULL,
1283 i.e. that the ARRAY_REF doesn't mention components.
1284 * trans-array.c (gfc_constant_array_constructor_p): Export external
1285 function renamed from constant_array_constructor_p.
1286 (gfc_build_constant_array_constructor): Export.
1287 (gfc_trans_array_constructor): Update call to the renamed function
1288 constant_array_constructor_p.
1289 * trans-array.h (gfc_constant_array_constructor_p): Prototype here.
1290 (gfc_build_constant_array_constructor): Likewise.
1291 * trans-expr.c (gfc_build_memcpy_call): New helper function split
1292 out from gfc_trans_array_copy.
1293 (gfc_trans_array_copy): Use gfc_build_memcpy_call.
1294 (gfc_trans_array_constructor_copy): New function to optimize
1295 assigning an entire array from a constant array constructor.
1296 (gfc_trans_assignment): Call gfc_trans_array_constructor_copy
1299 2007-01-20 Roger Sayle <roger@eyesopen.com>
1301 * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
1302 implementation for the SIGN intrinsic with integral operands.
1303 (gfc_conv_intrinsic_minmax): Fix whitespace.
1305 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1307 * gfortran.h (gfc_options_t): Add flag_allow_leading_underscore.
1308 * lang.opt: Add -fallow-leading-underscore.
1309 * match.c (gfc_match_name): Allow leading underscore in symbol
1310 name if -fallow-leading-underscore is used.
1311 * symbol.c (gfc_get_default_type): Add special case for symbol
1312 names beginning with an underscore.
1313 * trans-decl.c (gfc_get_extern_function_decl,
1314 gfc_build_intrinsic_function_decls): Add _gfortran prefix to
1315 library symbols selected_int_kind, selected_real_kind and
1317 * options.c (gfc_init_options, gfc_handle_option): Handle the
1318 new -fallow-leading-underscore option.
1320 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1323 * options.c (gfc_handle_module_path_options): Path used in -J
1324 option is now added to the module search path.
1326 2007-01-20 Richard Guenther <rguenther@suse.de>
1329 * f95-lang.c (gfc_init_builtin_functions): Provide cbrt and
1330 cexpi builtins if we have TARGET_C99_FUNCTIONS. Provide
1331 sincos builtins if the target has sincos.
1333 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
1335 * intrinsic.texi (MATMUL): Corrected a typo.
1336 (MAX): Separated @var arguments.
1337 (MIN): Separated @var arguments.
1339 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
1341 * intrinsic.texi: general whitespace cleanup.
1342 (menu): Added TIME8, removed UNMASK.
1343 (AINT): Clarified argument requirement.
1344 (ANINT): Clarified argument requirement.
1345 (CEILING): Clarified argument requirement.
1346 (CHAR): Clarified argument requirement.
1347 (CMPLX): Clarified argument requirement.
1348 (DCMPLX): Clarified argument requirement.
1349 (FGET): Line rewrapping.
1350 (FLOOR): Clarified argument requirement.
1351 (GMTIME): Added documentation.
1352 (IAND): Added cross-reference.
1353 (IBCLR): Added cross-reference.
1354 (IBSET): Added cross-reference.
1355 (IEOR): Added cross-reference.
1356 (INT): Collapsed examples, clarified argument requirement.
1357 (IOR): Added cross-references.
1358 (LEN_TRIM): Corrected result kind.
1359 (LINK): Added cross-reference.
1360 (LLT): Removed "documentation pending".
1361 (LOGICAL): Added documentation.
1362 (LSHIFT): Added documentation.
1363 (LTIME): Added documentation.
1364 (MATMUL): Added documentation.
1365 (MAX): Added documentation.
1366 (MAXLOC): Added documentation.
1367 (MAXVAL): Added documentation.
1368 (MERGE): Added documentation.
1369 (MIN): Added documentation.
1370 (MINLOC): Added documentation.
1371 (MINVAL): Added documentation.
1372 (MVBITS): Moved to correct place, added documentation.
1373 (NOT): Added documentation.
1374 (PERROR): Added documentation.
1375 (RAN): Moved to correct place, added documentation.
1376 (REAL): Clarified argument requirement.
1377 (RENAME): Added documentation.
1378 (RSHIFT): Clarified argument requirement.
1379 (SIGN): Corrected table specification.
1380 (SYMLNK): Added documentation.
1381 (SYSTEM): Added documentation.
1382 (TIME): Added documentation.
1383 (TIME8): Added section and documentation.
1384 (UNMASK): Removed erroneous section.
1386 2007-01-18 H.J. Lu <hongjiu.lu@intel.com>
1388 * trans-stmt.c (compute_overall_iter_number): Fix a typo.
1390 2007-01-18 Roger Sayle <roger@eyesopen.com>
1392 * trans-expr.c (copyable_array_p): Consider user derived types without
1393 allocatable components to be copyable.
1395 2007-01-18 Roger Sayle <roger@eyesopen.com>
1397 * trans-stmt.c (compute_overall_iter_number): Enhance to precompute
1398 the number of interations in unconditional FORALL nests with constant
1401 2007-01-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1402 Tobias Burnus <burnus@net-b.de>
1405 * gfortran.h (gfc_option_t): Add flag_dump_core.
1406 * lang.opt: Add -fdump-core option.
1407 * invoke.texi: Document the new options.
1408 * trans-decl.c (gfc_build_builtin_function_decls): Add new
1409 options to the call to set_std.
1410 * options.c (gfc_init_options, gfc_handle_option): Set the
1413 2007-01-17 Paul Thomas <pault@gcc.gnu.org>
1416 * module.c (load_generic_interfaces): Make the marking of the
1417 symbol as ambiguous conditional on the module names being
1419 (write_generic): Ensure that the generic interface has a
1420 non-NULL module field.
1422 2007-01-16 Roger Sayle <roger@eyesopen.com>
1425 * trans-stmt.c (forall_info): Remove pmask field.
1426 (gfc_trans_forall_loop): Remove NVAR argument, instead assume that
1427 NVAR covers all the interation variables in the current forall_info.
1428 Add an extra OUTER parameter, which specified the loop header in
1429 which to place mask index initializations.
1430 (gfc_trans_nested_forall_loop): Remove NEST_FLAG argument.
1431 Change the semantics of MASK_FLAG to only control the mask in the
1433 (compute_overall_iter_number): Optimize the trivial case of a
1434 top-level loop having a constant number of iterations. Update
1435 call to gfc_trans_nested_forall_loop. Calculate the number of
1436 times the inner loop will be executed, not to size of the
1438 (allocate_temp_for_forall_nest_1): Reuse SIZE as BYTESIZE when
1439 sizeof(type) == 1. Tidy up.
1440 (gfc_trans_assign_need_temp): Remove NEST_FLAG argument from calls
1441 to gfc_trans_nested_forall_loop.
1442 (gfc_trans_pointer_assign_need_temp): Likewise.
1443 (gfc_trans_forall_1): Remove unused BYTESIZE, TMPVAR, SIZEVAR and
1444 LENVAR local variables. Split mask allocation into a separate
1445 hunk/pass from mask population. Use allocate_temp_for_forall_nest
1446 to allocate the FORALL mask with the correct size. Update calls
1447 to gfc_trans_nested_forall_loop.
1448 (gfc_evaluate_where_mask): Update call to
1449 gfc_trans_nested_forall_loop.
1450 (gfc_trans_where_2): Likewise.
1452 2007-01-15 Paul Thomas <pault@gcc.gnu.org>
1455 * trans-stmt.c (gfc_trans_call): If it does not have one, get
1456 a backend_decl for an alternate return.
1459 * resolve.c (pure_function): Statement functions are pure. Note
1460 that this will have to recurse to comply fully with F95.
1463 * resolve.c (resolve_function): Only a reference to the final
1464 dimension of an assumed size array is an error in an inquiry
1468 * resolve.c (resolve_function): Make sure that the function
1469 expression has a type.
1471 2007-01-14 Paul Thomas <pault@gcc.gnu.org>
1474 * trans-decl.c (gfc_sym_mangled_function_id): Module, external
1475 symbols must not have the module name prepended.
1477 2007-01-11 Thomas Koenig <Thomas.Koenig@online.de>
1480 * iresolve.c (gfc_resolve_maxloc): If the rank
1481 of the return array is nonzero and we process an
1482 integer array smaller than default kind, coerce
1483 the array to default integer.
1484 * iresolve.c (gfc_resolve_minloc): Likewise.
1486 2007-01-11 Brooks Moses <brooks.moses@codesourcery.com>
1488 * simplify.c: Update copyright to 2007.
1491 2007-01-11 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1494 * scanner.c (gfc_release_include_path): Free gfc_option.module_dir
1497 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
1499 * simplify.c (gfc_simplify_ibclr): Fix POS comparison.
1500 (gfc_simplify_ibset): Same.
1502 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
1506 * simplify.c (convert_mpz_to_unsigned): New function.
1507 (convert_mpz_to_signed): New function, largely based on
1509 (twos_complement): Removed.
1510 (gfc_simplify_ibclr): Add conversions to and from an
1511 unsigned representation before bit-twiddling.
1512 (gfc_simplify_ibset): Same.
1513 (gfc_simplify_ishftc): Add checks for overly large
1514 constant arguments, only check the third argument if
1515 it's present, carry over high bits into the result as
1516 appropriate, and perform the final conversion back to
1517 a signed representation using the correct sign bit.
1518 (gfc_simplify_not): Removed unnecessary masking.
1520 2007-01-09 Paul Thomas <pault@gcc.gnu.org>
1523 * resolve.c (resolve_code): Use the code->expr character length
1524 directly to set length of llen.
1526 2007-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1529 * lang.opt: Add Wcharacter_truncation option.
1530 * options.c (gfc_init_options): Initialize
1531 gfc_option.warn_character_truncation to zero.
1532 (gfc_handle_option): Add case for OPT_Wcharacter_truncation.
1534 2007-01-08 Steven G. Kargl <kargl@gcc.gnu.org>
1536 * interface.c, intrinsic.c, gfortranspec.c, io.c, f95-lang.c,
1537 iresolve.c, match.c: Update Copyright years. Whitespace.
1539 2007-01-08 Richard Guenther <rguenther@suse.de>
1541 * trans-io.c (transfer_array_desc): Use build_int_cst instead
1544 2007-01-08 Roger Sayle <roger@eyesopen.com>
1546 * trans-array.c (constant_array_constructor_p): New function to
1547 determine whether an array constructor consists only of constant
1548 elements, and if so return it's size.
1549 (gfc_build_constant_array_constructor): Construct a statically
1550 initialized gfortran array for a given EXPR_ARRAY.
1551 (gfc_trans_constant_array_constructor): Efficiently scalarize
1552 a constant array constructor.
1553 (gfc_trans_array_constructor): Tidy up use of CONST_STRING.
1554 Special case scalarization of constant array constructors, all of
1555 whose elements are specified, using constant_array_constructor_p
1556 and gfc_trans_constant_array_constructor.
1557 (gfc_conv_scalarized_array_ref): Check whetger info->offset is zero
1558 before adding it to index, to avoid creating a NON_LVALUE_EXPR.
1560 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
1562 gfortran.texi: Fix typos.
1564 2007-01-07 Steven G. Kargl <kargl@gcc.gnu.org>
1566 * decl.c, dump-parse-tree.c, error.c, data.c, expr.c, dependency.c,
1567 convert.c: Update Copyright dates. Fix whitespace.
1569 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
1571 * data.c (gfc_assign_data_value): Fix whitespace.
1573 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
1575 * trans-array.c (gfc_trans_create_temp_array, gfc_array_init_size):
1576 Commentary typo fix.
1578 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
1581 * match.c (gfc_match_name): Print diagnostics for invalid
1584 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
1586 * array.c: Fix whitespace in comment table.
1588 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
1590 * array.c, bbt.c, check.c: Update copyright years. Whitespace.
1592 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
1594 * arith.c: Update copyright years. Whitespace.
1596 2007-01-05 Roger Sayle <roger@eyesopen.com>
1598 * trans-expr.c (gfc_trans_assignment_1): New subroutine to scalarize
1599 array assignments split out from gfc_trans_assignment.
1600 (gfc_trans_array_copy): New function to implement array to array
1601 copies via calls to __builtin_memcpy.
1602 (copyable_array_p): New helper function to identify an array of
1603 simple/POD types, that may be copied/assigned using memcpy.
1604 (gfc_trans_assignment): Use gfc_trans_array_copy to handle simple
1605 whole array assignments considered suitable by copyable_array_p.
1606 Invoke gfc_trans_assignment_1 to perform the fallback scalarization.
1608 2007-01-05 Roger Sayle <roger@eyesopen.com>
1610 * trans-array.c (gfc_trans_array_constructor_value): Make the
1611 static const "data" array as TREE_READONLY.
1612 * trans-stmt.c (gfc_trans_character_select): Likewise.
1614 2007-01-05 Roger Sayle <roger@eyesopen.com>
1616 * trans-array.c (gfc_conv_loop_setup): Test whether the loop
1617 stride is one, to avoid fold_build2 introducing a useless
1618 NON_LVALUE_EXPR node.
1620 2007-01-05 Tobias Burnus <burnus@net-b.de>
1622 * symbol.c (check_conflict): Fix error message.
1624 2007-01-05 Paul Thomas <pault@gcc.gnu.org>
1627 * decl.c (gfc_in_match_data, gfc_set_in_match_data): New
1628 functions to signal that a DATA statement is being matched.
1629 (gfc_match_data): Call gfc_set_in_match_data on entry and on
1631 * gfortran.h : Add prototypes for above.
1632 * expr.c (check_init_expr): Avoid check on parameter or
1633 variable if gfc_in_match_data is true.
1634 (gfc_match_init_expr): Do not call error on non-reduction of
1635 expression if gfc_in_match_data is true.
1639 * decl.c (gfc_set_constant_character_len): Add boolean arg to
1640 flag array constructor resolution. Warn if string is being
1641 truncated. Standard dependent error if string is padded. Set
1642 new arg to false for all three calls to
1643 gfc_set_constant_character_len.
1644 * match.h : Add boolean arg to prototype for
1645 gfc_set_constant_character_len.
1646 * gfortran.h : Add warn_character_truncation to gfc_options.
1647 * options.c (set_Wall): Set warn_character_truncation if -Wall
1649 * resolve.c (resolve_code): Warn if rhs string in character
1650 assignment has to be truncated.
1651 * array.c (gfc_resolve_character_array_constructor): Set new
1652 argument to true for call to gfc_set_constant_character_len.
1654 2007-01-05 Tobias Burnus <burnus@net-b.de>
1657 * interface.c (compare_parameter_intent): New function.
1658 (check_intents): Support pointer intents.
1659 * symbol.c (check_conflict): Support pointer intents,
1660 better conflict_std message.
1661 * expr.c (gfc_check_assign,gfc_check_pointer_assign):
1662 Support pointer intents.
1663 * resolve.c (resolve_deallocate_expr,resolve_allocate_expr):
1664 Support pointer intents.
1666 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1669 * check.c (gfc_check_kill_sub): Add checks for non-scalar
1672 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1674 * intrinsic.texi: Minor cleanup, reflowing overlong
1675 paragraphs, and correcting whitespace.
1677 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1679 * intrinsic.texi (LBOUND): Add documentation.
1680 (LGE): Add documentation.
1681 (LGT): Add documentation.
1682 (LINK): Add documentation.
1683 (LLE): Add documentation.
1684 (LLT): Add documentation.
1685 (LNBLNK): Add documentation.
1686 (UBOUND): Add documentation.
1687 (UNLINK): Add documentation.
1689 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1691 * intrinsic.texi (IAND): Clarify argument specifications.
1692 (IBCLR): Add documentation.
1693 (IBITS): Add documentation.
1694 (IBSET): Add documentation.
1695 (IEOR): Add documentation.
1696 (IERRNO): Add documentation.
1697 (INDEX): Add documentation.
1698 (IOR): Add documentation.
1699 (ISHFT): Add documentation.
1700 (ISHFTC): Add documentation.
1701 (KILL): Add documentation.
1702 (LEN_TRIM): Add documentation.
1704 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1707 * interface.c (compare_actual_formal): check for
1708 alternate returns when iterating over non-present
1711 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1713 * invoke.texi: Update manpage copyright to include 2007.
1715 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1717 * gfortran.texi: Update copyright to include 2007.
1718 * intrinsic.texi: Update copyright to include 2007.
1719 * invoke.texi: Update copyright to include 2007.
1721 2007-01-02 Tobias Burnus <burnus@net-b.de>
1722 Jakub Jelinek <jakub@redhat.com>
1725 * scanner.c (open_included_file): Revert patch.
1726 (gfc_open_included_file): Support absolute pathnames.
1727 (gfc_open_intrinsic_module): Support absolute pathnames.
1729 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1731 * gfortran.texi (GNU Fortran and GCC): Rewrite
1733 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1735 * gfortran.texi (Introduction): Lower "Part I:
1736 Introduction" to a chapter, renumber Parts II and III to
1738 * intrinsic.texi (Introduction): Rename to "Introduction
1739 to Intrinsics" to avoid conflict with the new chapter.
1741 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1743 * intrinsic.texi (Introduction): Rewrite first paragraph.
1745 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1747 * invoke.texi (OpenMP): Added index entry.
1748 * gfortran.texi (title page): Removed erroneous '*'.
1750 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1752 * gfortran.texi (GFORTRAN_DEFAULT_RECL): Added units
1754 (Extensions): Miscellaneous minor rewriting and copyediting.
1755 (BOZ-literal constants): Renamed from Hexadecimal constants.
1756 (Hollerith constants support): Added explanation and
1757 suggestions for standard-conforming modern equivalents.
1759 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1761 * intrinsic.texi: Improvements to index entries; change
1762 @findex entries to @cindex entries.
1763 * invoke.texi: Standardize and improve index entries.
1764 * gfortran.texi: Fix @code in one index entry.
1766 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1768 * invoke.texi: Change @code-type macros to appropriate
1769 variants (@command, @option, etc.)
1770 * gfortran.texi: Same.
1772 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1774 * intrinsic.texi: Various minor cleanups.
1776 2007-01-02 Steven G. Kargl <kargls@comcast.net>
1778 * trans-intrinsic.c (gfc_conv_intrinsic_ibits): Fix call to
1781 2007-01-02 Tobias Burnus <burnus@net-b.de>
1784 * scanner.c (open_included_file): Support full-path filenames.
1786 2007-01-02 Paul Thomas <pault@gcc.gnu.org>
1789 * interface.c (check_sym_interfaces): Remove call to
1790 resolve_global_procedure.
1791 gfortran.h : Remove prototype for resolve_global_procedure.
1792 resolve.c (resolve_global_procedure): Add static attribute
1793 to function declaration.
1795 2007-01-01 Steven G. Kargl <kargls@comcast.net>
1797 * ChangeLog: Copy to ...
1798 * ChangeLog-2006: here.