1 2007-07-17 Janus Weil <jaydub66@gmail.com>
4 * resolve.c (resolve_fl_namelist): Check for namelist private
5 components in contained subprograms.
7 2007-07-17 Paul Thomas <pault@gcc.gnu.org>
11 * trans-expr.c (gfc_trans_subcomponent_assign): Ensure that
12 renormalization unity base is done independently of existing
14 (gfc_trans_scalar_assign): If rhs is not a variable, put
15 lse->pre after rse->pre to ensure that de-allocation of lhs
16 occurs after evaluation of rhs.
18 2007-07-16 Lee Millward <lee.millward@gmail.com>
23 * trans-intrinsic.c (gfc_conv_intrinsic_function_args): Adjust
24 to operate on a stack allocated array for the intrinsic arguments
25 instead of creating a TREE_LIST. Add two new parameters for the
26 array and the number of elements. Update all callers to allocate
27 an array of the correct length to pass in. Update comment.
28 (gfc_intrinsic_argument_list_length): New function.
29 (gfc_conv_intrinsic_conversion): Call it.
30 (gfc_conv_intrinsic_mnimax): Likewise.
31 (gfc_conv_intrinsic_merge): Likewise.
32 (gfc_conv_intrinsic_lib_function): Call it. Use new CALL_EXPR
34 (gfc_conv_intrinsic_cmplx): Likewise.
35 (gfc_conv_intrinsic_ctime): Likewise.
36 (gfc_covn_intrinsic_fdate): Likewise.
37 (gfc_conv_intrinsic_ttynam): Likewise.
38 (gfc_conv_intrinsic_ishftc): Likewise.
39 (gfc_conv_intrinsic_index): Likewise.
40 (gfc_conv_intrinsic_scan): Likewise.
41 (gfc_conv_intrinsic_verify): Likewise.
42 (gfc_conv_intrinsic_trim): Likewise.
43 (gfc_conv_intrinsic_aint): Use new CALL_EXPR constructors.
44 (gfc_conv_intrinsic_exponent): Likewise.
45 (gfc_conv_intrinsic_bound): Likewise.
46 (gfc_conv_intrinsic_abs): Likewise.
47 (gfc_conv_intrinsic_mod): Likewise.
48 (gfc_conv_intrinsic_sign): Likewise.
49 (gfc_conv_intrinsic_len): Likewise.
50 (gfc_conv_intrinsic_adjust): Likewise.
51 (gfc_conv_intrinsic_si_kind): Likewise.
53 2007-07-16 Janne Blomqvist <jb@gcc.gnu.org>
56 * trans-decl.c (gfc_build_builtin_function_decls): Remove
57 DECL_IS_MALLOC attribute from internal_realloc, thus reverting
58 part of my 2007-07-03 patch.
60 2007-07-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
61 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
64 * gfortran.h (gfc_option_t): Add flag_sign_zero field.
65 * lang.opt (-fsign-zero): New option.
66 * trans.h: Rename gfor_fndecl_set_std into gfor_fndecl_set_options.
67 * trans-decl.c (gfc_build_builtin_function_decls): Build the function
68 declaration to pass an array containing the options to be used by the
69 runtime library. (gfc_generate_function_code): Build an array that
70 contains option values to be passed to the runtime library and the call
72 * options.c (gfc_init_options): Initialize the flag_sign_zero field.
73 (gfc_handle_option): Handle the -fsign-zero option.
75 2007-07-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
78 * trans-array.c (gfc_conv_array_ref): Only evaluate index once.
80 2007-07-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
83 * iresolve.c (gfc_resolve_mvbits): Convert FROMPOS, LEN and TOPOS
86 2007-07-14 Thomas Koenig <tkoenig@gcc.gnu.org>
89 * iresolve.c(gfc_resolve_pack): A scalar mask has
90 to be kind=4, an array mask with kind<4 is converted
91 to gfc_default_logical_kind automatically.
92 (gfc_resolve_unpack): Convert mask to gfc_default_lotical_kind
95 2007-07-14 Paul Thomas <pault@gcc.gnu.org>
98 * parse.c (parse_spec): Emit error on unexpected statement
101 2007-07-13 Daniel Franke <franke.daniel@gmail.com>
103 * invoke.texi: Unified upper- and lower-case in menus.
104 (-w, -W): Removed, documented by gcc.
105 * intrinsic.texi: Unified Class-section entries, added
106 subroutine/function warning where appropiate.
108 2007-07-12 Daniel Franke <franke.daniel@gmail.com>
111 * decl.c (gfc_match_suffix): Removed surplus general error that hides
112 a more specific message.
113 * resolve.c (resolve_fl_variable): Reject illegal initializiers only
115 (resolve_fl_procedure): Added check for initializers of functions.
117 2007-07-12 Daniel Franke <franke.daniel@gmail.com>
120 * invoke.texi (-static-libgfortran): Document new option.
122 2007-07-12 Paul Thomas <pault@gcc.gnu.org>
126 * module.c (write_generic): Restore patch of 2007-07-10 and use
127 symbol name if there are no use names.
129 2007-07-12 Christopher D. Rickett <crickett@lanl.gov>
132 * decl.c (verify_c_interop_param): Require character string dummy
133 args to BIND(C) procedures to have length 1.
134 * resolve.c (resolve_fl_procedure): Modify parameter checking for
138 * resolve.c (gfc_iso_c_func_interface): Verify that a valid
139 expression is given as an argument to C_LOC and C_ASSOCIATED.
140 * trans-io.c (transfer_expr): Add argument for code block. Add
141 standards check to determine if an error message should be
142 reported for printing C_PTR or C_FUNPTR.
143 (transfer_array_component): Update arguments to transfer_expr.
144 (gfc_trans_transfer): Ditto.
146 * symbol.c (gen_cptr_param): Fix whitespace.
148 2007-07-12 Jakub Jelinek <jakub@redhat.com>
151 * trans.h (GFC_POINTER_TYPE_P): Define.
152 * trans-types.c (gfc_sym_type): Set it for types on attr->sym.pointer.
153 * trans-openmp.c (gfc_omp_privatize_by_reference): Return false
154 if GFC_POINTER_TYPE_P is set on the type.
156 2007-07-12 Richard Guenther <rguenther@suse.de>
158 * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Convert
159 arguments to gfc_charlen_type_node.
160 * trans-io.c (gfc_convert_array_to_string): Convert type
161 size to gfc_array_index_type.
163 2007-07-12 Daniel Franke <franke.daniel@gmail.com>
167 * module.c: Reverted Paul's patch from 2007-07-10.
169 2007-07-11 Richard Guenther <rguenther@suse.de>
171 * trans-array.c (gfc_conv_array_parameter): Use correct
172 types for comparison.
173 * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Use
174 correct types for POINTER_PLUS_EXPR.
175 * trans-stmt.c (gfc_trans_forall_loop): Use correct type
176 for integer one constant.
178 2007-07-10 Paul Thomas <pault@gcc.gnu.org>
181 * resolve.c (is_external_proc): New function. Adds test that
182 the symbol is not an intrinsic procedure.
183 * (resolve_function, resolve_call): Replace logical statements
184 with call to is_external_proc.
187 * simplify.c (gfc_simplify_transfer): If mold has rank, the
191 * module.c (write_generic): Write the local name of the
194 2007-07-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
197 * trans-array.c (gfc_trans_array_constructor): Mark offset field
198 with TREE_NO_WARNING.
199 * trans-decl.c (gfc_build_qualified_array): Mark lbound, ubound,
200 stride and size variables with TREE_NO_WARNING.
202 2007-07-09 Steven G. Kargl <kargl@gcc.gnu.org>
204 * trans-decl.c (set_tree_decl_type_code): Remove function.
205 (generate_local_decl): Remove reference to set_tree_decl_type_code.
207 2007-07-09 Daniel Franke <franke.daniel@gmail.com>
210 * trans-decl.c (generate_local_decl) Emit a warning if an unused
213 2007-07-08 Daniel Franke <franke.daniel@gmail.com>
216 * module.c (gfc_match_use): Do not set an non-existant
217 intrinsic operator if a user-defined operator is found.
219 2007-07-08 Daniel Franke <franke.daniel@gmail.com>
223 * trans-decl.c (generate_local_decl): Adjusted warning on unused
224 dummy arguments, tell middle-end not to emit additional warnings.
226 2007-07-08 Daniel Franke <franke.daniel@gmail.com>
227 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
230 * gfortran.h (gfc_intrinsic_op): Added INTRINSIC_EQ_OS,
231 INTRINSIC_NE_OS, INTRINSIC_GT_OS, INTRINSIC_GE_OS,
232 INTRINSIC_LT_OS and INTRINSIC_LE_OS.
233 * arith.c (eval_intrinsic, eval_type_intrinsic0): Likewise.
234 * arith.h (gfc_eq, gfc_ne, gfc_gt, gfc_ge, gfc_lt, gfc_le):
235 Added gfc_intrinsic_op as third argument type.
236 * dump-parse-tree.c (gfc_show_expr): Account for new enum values.
237 * expr.c (simplify_intrinsic_op, check_intrinsic_op): Likewise.
238 * interface.c (check_operator_interface): Likewise.
239 (gfc_check_interfaces): Added cross-checks for FORTRAN 77 and
240 Fortran 90 style operators using new enum values.
241 (gfc_extend_expr): Likewise.
242 (gfc_add_interface): Likewise.
243 * match.c (intrinsic_operators): Distinguish FORTRAN 77 style
244 operators from Fortran 90 style operators using new enum values.
245 * matchexp.c (match_level_4): Account for new enum values.
246 * module.c (mio_expr): Likewise.
247 * resolve.c (resolve_operator): Deal with new enum values, fix
248 inconsistent error messages.
249 * trans-expr.c (gfc_conv_expr_op): Account for new enum values.
251 2007-07-08 Tobias Burnus <burnus@net-b.de>
254 * interface.c (get_expr_storage_size): Properly obtain lower bound.
255 (compare_actual_formal): Add space before parenthesis.
257 2007-07-08 Daniel Franke <franke.daniel@gmail.com>
260 * resolve.c (resolve_fl_procedure): Added check for PRIVATE types
261 in PUBLIC interfaces.
263 2007-07-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
266 * decl.c (match_attr_spec): Don't return MATCH_ERROR if comma found and
267 gfc_match_bind_c does not return MATCH_YES.
269 2007-07-07 Kazu Hirata <kazu@codesourcery.com>
271 * decl.c, gfortran.h, interface.c, module.c, resolve.c,
272 trans-array.c, trans-decl.c: Fix comment typos. Follow
273 spelling conventions.
274 * intrinsic.texi: Fix typos. Follow spelling conventions.
276 2007-05-06 Daniel Franke <franke.daniel@gmail.com>
279 * symbol.c (save_status): New.
280 * gfortran.h (save_status): Added external declaration.
281 (check_conflict): Check for conflicting explicite SAVE statements
283 (gen_special_c_interop_ptr): Use SAVE_EXPLICIT constant.
284 * module.c (ab_attribute, attr_bits): Removed enumerator value
285 AB_SAVE for save attribute.
286 (mio_symbol_attribute): Import/export the full SAVE status,
287 removed usage of AB_SAVE.
288 * dump-parse-tree.c (gfc_show_attr): Dump full SAVE status.
289 * decl.c (add_init_expr_to_sym): Set SAVE_IMPLICIT only if not
292 2007-07-05 Daniel Franke <franke.daniel@gmail.com>
293 Tobias Burnus <burnus@net-b.de>
296 * gfortran.h (symbol_attribute): Change save attribute into an enum.
297 * decl.c (add_init_expr_to_sym): Set it to SAVE_IMPLICIT.
298 * symbol.c (gfc_add_save): Check for SAVE_EXPLICIT.
299 * resolve.c (resolve_fl_variable): Check for SAVE_EXPLICIT.
300 (resolve_symbol): Allow OMP threadprivate with
301 initialization SAVEd and save_all variable.
302 * trans-decl.c (gfc_finish_var_decl): Remove obsolete sym->value check.
304 2007-07-05 Paul Thomas <pault@gcc.gnu.org>
307 * match.c (gfc_match_call): Check, in all cases, that a symbol
308 is neither generic nor a subroutine before trying to add it as
312 * match.c (gfc_match_do): Reset the implied_index attribute.
314 2007-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
317 * trans-intrinsic.c (trans-intrinsic.c): Handle optional
318 arguments correctly for MIN and MAX intrinsics.
320 2007-07-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
323 * io.c (check_format): Always call gfc_error for errors.
324 (check_format_string): Change type of this function to try and
325 return the result of check_format.
326 (check_io_constraints): Return MATCH_ERROR if check_format_string
329 2007-07-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
332 * decl.c (get_proc_name): Include attr->mod_proc in check for error.
334 2007-07-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
337 * gfortran.h: Change type of gfc_assign_data_value from void to try.
338 * data.c (gfc_assign_data_value): Return FAILURE if error found.
339 * resolve.c (check_data_variable): If gfc_assign_data_value returns
340 failure, break out of loop and return failure.
342 2007-07-03 Christopher D. Rickett <crickett@lanl.gov>
345 * symbol.c (gen_cptr_param): Generate C_PTR and C_FUNPTR if necessary.
346 (build_formal_args): Pass intrinsic module symbol id to
349 2007-07-03 Tobias Burnus <burnus@net-b.de>
352 * resolve.c (resolve_common_blocks): New check function.
353 (resolve_types): Use it.
355 2007-07-03 Tobias Burnus <burnus@net-b.de>
358 * interface.c (get_sym_storage_size): New function.
359 (get_sym_storage_size): New function.
360 (compare_actual_formal): Enhance sequence association
361 support and improve checking.
363 2007-07-03 Janne Blomqvist <jb@gcc.gnu.org>
365 * trans-decl.c (gfc_build_builtin_function_decls): Mark
366 internal_realloc as a malloc function.
368 2007-07-03 Tobias Burnus <burnus@net-b.de>
371 * resolve.c (resolve_operator): Check for NULL as operand.
373 2007-07-02 Tobias Burnus <burnus@net-b.de>
375 * gfortran.texi (Fortran 2003): Add ISO Bind C.
376 * intrinsic.texi (C_ASSOCIATED,C_F_POINTER,C_F_PROCPOINTER,
377 C_FUNLOC,C_LOC): Document new ISO Bind C intrinsics.
379 2007-07-01 Christopher D. Rickett <crickett@lanl.gov>
381 * interface.c (gfc_compare_derived_types): Special case for comparing
382 derived types across namespaces.
383 (gfc_compare_types): Deal with BT_VOID.
384 (compare_parameter): Use BT_VOID to accept ISO C Binding pointers.
385 * trans-expr.c (gfc_conv_function_call): Remove setting parm_kind
387 (gfc_conv_initializer): Deal with ISO C Binding NULL_PTR and
389 (gfc_conv_expr): Convert expressions for ISO C Binding derived types.
390 * symbol.c (gfc_set_default_type): BIND(C) variables should not be
392 (check_conflict): Add BIND(C) and check for conflicts.
393 (gfc_add_explicit_interface): Whitespace.
394 (gfc_add_is_bind_c): New function.
395 (gfc_copy_attr): Use it.
396 (gfc_new_symbol): Initialize ISO C Binding objects.
397 (get_iso_c_binding_dt): New function.
398 (verify_bind_c_derived_type): Ditto.
399 (gen_special_c_interop_ptr): Ditto.
400 (add_formal_arg): Ditto.
401 (gen_cptr_param): Ditto.
402 (gen_fptr_param): Ditto.
403 (gen_shape_param): Ditto.
404 (add_proc_interface): Ditto.
405 (build_formal_args): Ditto.
406 (generate_isocbinding_symbol): Ditto.
407 (get_iso_c_sym): Ditto.
408 * decl.c (num_idents_on_line, has_name_equals): New variables.
409 (verify_c_interop_param): New function.
410 (build_sym): Finish binding labels and deal with COMMON blocks.
411 (add_init_expr_to_sym): Check if the initialized expression is
412 an iso_c_binding named constants
413 (variable_decl): Set ISO C Binding type_spec components.
414 (gfc_match_kind_spec): Check match for C interoperable kind.
415 (match_char_spec): Fix comment. Chnage gfc_match_small_int
416 to gfc_match_small_int_expr. Check for C interoperable kind.
417 (match_type_spec): Clear the current binding label.
418 (match_attr_spec): Add DECL_IS_BIND_C. If BIND(C) is found, use it
420 (set_binding_label): New function.
421 (set_com_block_bind_c): Ditto.
422 (verify_c_interop): Ditto.
423 (verify_com_block_vars_c_interop): Ditto.
424 (verify_bind_c_sym): Ditto.
425 (set_verify_bind_c_sym): Ditto.
426 (set_verify_bind_c_com_block): Ditto.
427 (get_bind_c_idents): Ditto.
428 (gfc_match_bind_c_stmt): Ditto.
429 (gfc_match_data_decl): Use num_idents_on_line.
430 (match_result): Deal with right paren in BIND(C).
431 (gfc_match_suffix): New function.
432 (gfc_match_function_decl): Use it. Code is re-arranged to deal with
433 ISO C Binding result clauses.
434 (gfc_match_subroutine): Deal with BIND(C).
435 (gfc_match_bind_c): New function.
436 (gfc_get_type_attr_spec): New function. Code is re-arranged in and
437 taken from gfc_match_derived_decl.
438 (gfc_match_derived_decl): Add check for BIND(C).
439 * trans-common.c: Forward declare gfc_get_common.
440 (gfc_sym_mangled_common_id): Change arg from 'const char *name' to
441 'gfc_common_head *com'. Check for ISO C Binding of the common block.
442 (build_common_decl): 'com->name' to 'com in SET_DECL_ASSEMBLER_NAME.
443 * gfortran.h: Add GFC_MAX_BINDING_LABEL_LEN
445 (sym_flavor): Add FL_VOID.
446 (iso_fortran_env_symbol, iso_c_binding_symbol, intmod_id): New enum
447 (CInteropKind_t): New struct.
448 (c_interop_kinds_table): Use it. Declare an array of structs.
449 (symbol_attribute): Add is_bind_c, is_c_interop, and is_iso_c
451 (gfc_typespec): Add is_c_interop; is_iso_c, and f90_type members.
452 (gfc_symbol): Add from_intmod, intmod_sym_id, binding_label, and
453 common_block members.
454 (gfc_common_head): Add binding_label and is_bind_c members.
455 (gfc_gsymbol): Add sym_name, mod_name, and binding_label members.
456 Add prototypes for get_c_kind, gfc_validate_c_kind,
457 gfc_check_any_c_kind, gfc_add_is_bind_c, gfc_add_value,
458 verify_c_interop, verify_c_interop_param, verify_bind_c_sym,
459 verify_bind_c_derived_type, verify_com_block_vars_c_interop,
460 generate_isocbinding_symbol, get_iso_c_sym, gfc_iso_c_sub_interface
461 * iso-c-binding.def: New file. This file contains the definitions
462 of the types provided by the Fortran 2003 ISO_C_BINDING intrinsic
464 * trans-const.c (gfc_conv_constant_to_tree): Deal with C_NULL_PTR
465 or C_NULL_FUNPTR expressions.
466 * expr.c (gfc_copy_expr): Add BT_VOID case. For BT_CHARACTER, the
467 ISO C Binding requires a minimum string length of 1 for '\0'.
468 * module.c (intmod_sym): New struct.
469 (pointer_info): Add binding_label member.
470 (write_atom): Set len to 0 for NULL pointers. Check for NULL p and *p.
471 (ab_attribute): Add AB_IS_BIND_C, AB_IS_C_INTEROP and AB_IS_ISO_C.
472 (attr_bits): Add "IS_BIND_C", "IS_C_INTEROP", and "IS_ISO_C".
473 (mio_symbol_attribute): Deal with ISO C Binding attributes.
474 (bt_types): Add "VOID".
475 (mio_typespec): Deal with ISO C Binding components.
476 (mio_namespace_ref): Add intmod variable.
477 (mio_symbol): Check for symbols from an intrinsic module.
478 (load_commons): Check for BIND(C) common block.
479 (read_module): Read binding_label and use it.
480 (write_common): Add label. Write BIND(C) info.
481 (write_blank_common): Blank commons are not BIND(C). Explicitly
483 (write_symbol): Deal with binding_label.
484 (sort_iso_c_rename_list): New function.
485 (import_iso_c_binding_module): Ditto.
486 (create_int_parameter): Add to args.
487 (use_iso_fortran_env_module): Adjust to deal with iso_c_binding
489 * trans-types.c (c_interop_kinds_table): new array of structs.
490 (gfc_validate_c_kind): New function.
491 (gfc_check_any_c_kind): Ditto.
492 (get_real_kind_from_node): Ditto.
493 (get_int_kind_from_node): Ditto.
494 (get_int_kind_from_width): Ditto.
495 (get_int_kind_from_minimal_width): Ditto.
496 (init_c_interop_kinds): Ditto.
497 (gfc_init_kinds): call init_c_interop_kinds.
498 (gfc_typenode_for_spec): Adjust for BT_VOID and ISO C Binding pointers.
499 Adjust handling of BT_DERIVED.
500 (gfc_sym_type): Whitespace.
501 (gfc_get_derived_type): Account for iso_c_binding derived types
502 * resolve.c (is_scalar_expr_ptr): New function.
503 (gfc_iso_c_func_interface): Ditto.
504 (resolve_function): Use gfc_iso_c_func_interface.
505 (set_name_and_label): New function.
506 (gfc_iso_c_sub_interface): Ditto.
507 (resolve_specific_s0): Use gfc_iso_c_sub_interface.
508 (resolve_bind_c_comms): New function.
509 (resolve_bind_c_derived_types): Ditto.
510 (gfc_verify_binding_labels): Ditto.
511 (resolve_fl_procedure): Check for ISO C interoperability.
512 (resolve_symbol): Check C interoperability.
513 (resolve_types): Walk the namespace. Check COMMON blocks.
514 * trans-decl.c (gfc_sym_mangled_identifier): Prevent the mangling
515 of identifiers that have an assigned binding label.
516 (gfc_sym_mangled_function_id): Use the binding label rather than
518 (gfc_finish_var_decl): Put variables that are BIND(C) into a common
519 segment of the object file, because this is what C would do.
520 (gfc_create_module_variable): Conver to proper types
521 (set_tree_decl_type_code): New function.
522 (generate_local_decl): Check dummy variables and derived types for
523 ISO C Binding attributes.
524 * match.c (gfc_match_small_int_expr): New function.
525 (gfc_match_name_C): Ditto.
526 (match_common_name): Deal with ISO C Binding in COMMON blocks
527 * trans-io.c (transfer_expr): Deal with C_NULL_PTR or C_NULL_FUNPTR
529 * match.h: Add prototypes for gfc_match_small_int_expr,
530 gfc_match_name_C, match_common_name, set_com_block_bind_c,
531 set_binding_label, set_verify_bind_c_sym,
532 set_verify_bind_c_com_block, get_bind_c_idents,
533 gfc_match_bind_c_stmt, gfc_match_suffix, gfc_match_bind_c,
534 gfc_get_type_attr_spec
535 * parse.c (decode_statement): Use gfc_match_bind_c_stmt
536 (parse_derived): Init *derived_sym = NULL, and gfc_current_block
537 later for valiadation.
538 * primary.c (got_delim): Set ISO C Binding components of ts.
539 (match_logical_constant): Ditto.
540 (match_complex_constant): Ditto.
541 (match_complex_constant): Ditto.
542 (gfc_match_rvalue): Check for existence of at least one arg for
543 C_LOC, C_FUNLOC, and C_ASSOCIATED.
544 * misc.c (gfc_clear_ts): Clear ISO C Bindoing components in ts.
545 (get_c_kind): New function.
547 2007-07-01 Janne Blomqvist <jb@gcc.gnu.org>
550 * trans-expr.c (gfc_conv_power_op): Use builtin_powi for
552 * f95-lang.c (gfc_init_builtin_functions): Add builtin_powi to the
555 2007-07-01 Janne Blomqvist <jb@gcc.gnu.org>
557 * trans.h: Remove decls for 64-bit allocation functions.
558 * trans-array.c (gfc_grow_array): Always pick the standard realloc
560 (gfc_array_allocate): Likewise.
561 * trans-decl.c: Remove trees for 64-bit allocation functions.
562 (gfc_build_builtin_function_decls): Don't build fndecls for 64-bit
563 allocations functions, use index_int_type for normal allocation
566 2007-06-30 Daniel Franke <franke.daniel@gmail.com>
569 * intrinsic.c (add_functions): Additional function types.
570 (gfc_convert_type_warn): Remove intrinsic-flag from
571 conversion functions.
572 * resolve.c (resolve_symbol): Added type checks to
573 explicitly defined intrinsics.
575 2007-06-30 Tobias Burnus <burnus@net-b.de>
578 * io.c (check_format): Allow zero to precede the
581 2007-06-30 Paul Thomas <pault@gcc.gnu.org>
584 * simplify.c (gfc_simplify_repeat): Add handling of character
585 literal for first argument.
587 2007-06-29 Daniel Franke <franke.daniel@gmail.com>
589 * resolve.c (resolve_operator): Added check whether a user
590 defined operator is available.
592 2007-06-29 Daniel Franke <franke.daniel@gmail.com>
594 * openmp.c (resolve_omp_clauses): Adjust error message to
595 better reflect the actual requirement.
597 2007-06-29 Tobias Burnus <burnus@net-b.de>
600 * io.c (format_lex): Fix FMT_ZERO.
601 (check_format,check_format_string,gfc_match_format,
602 check_io_constraints) Additional checking for READ.
604 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
607 * lang.opt (static-libgfortran): New option.
608 * gfortranspec.c (ADD_ARG_LIBGFORTRAN): New macro.
609 (Option): Add OPTION_static and OPTION_static_libgfortran.
610 (lookup_option): Handle the new -static-libgfortran option.
611 (lang_specific_driver): Check whether -static is passed.
612 Handle the new -static-libgfortran option.
613 * options.c (gfc_handle_option): If -static-libgfortran is
614 passed and isn't supported on this configuration, error out.
616 2007-06-27 Daniel Franke <franke.daniel@gmail.com>
619 * openmp.c (resolve_omp_clauses): Emit error on allocatable
620 components in COPYIN, COPYPRIVATE, FIRSTPRIVATE and LASTPRIVATE
623 2007-06-25 Paul Thomas <pault@gcc.gnu.org>
626 * resolve.c (check_host_association): Return if the old symbol
627 is use associated. Introduce retval to reduce the number of
628 evaluations of the first-order return value.
631 * match.c (gfc_match_call): If a host associated symbol is not
632 a subroutine, build a new symtree/symbol in the current name
635 2007-06-24 Tobias Burnus <burnus@net-de>
638 * interface.c (gfc_compare_derived_types): Add access check.
639 * symbol.c (gfc_find_component): Ditto.
640 (gfc_set_component_attr,gfc_get_component_attr) Copy access state.
641 * dump-parse-tree.c (gfc_show_components): Dump access state.
642 * gfortran.h (struct gfc_component): Add gfc_access.
643 * module.c (mio_component): Add access state.
644 * (gfc_match_structure_constructor): Check for private access state.
646 2007-06-24 Paul Thomas <pault@gcc.gnu.org>
650 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Calculate
651 the offset between the loop counter and the position as
652 defined. Add the offset within the loop so that the mask acts
653 correctly. Do not advance the location on the basis that it
656 2007-06-22 Daniel Franke <franke.daniel@gmail.com>
659 * symbol.c (gfc_copy_attr): Emit errors for duplicate
660 EXTERNAL/INTRINSIC statements.
662 2007-06-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
665 * expr.c (gfc_check_assign): If the rvalue expression type is NULL_EXPR,
666 check to see if the lvalue has attribute pointer and data.
668 2007-06-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
671 * resolve.c (gfc_resolve_iterator_expr): Add check for REAL using
672 gfc_notify_standard. (gfc_resolve_iterator): Remove check.
673 (resolve_branch): Change "Obsolete" to "Deleted feature".
674 * io.c (resolve_tag): Ditto.
675 * match.c (gfc_match_pause, gfc_match_assign, gfc_match_goto): Ditto.
677 2007-06-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
680 * match.c (gfc_match_common): If the symbol value expression type is
681 NULL_EXPR, don't error if previously initialized.
683 2007-06-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
686 * decl.c (get_proc_name) Check symbol for generic interface
689 2007-06-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
690 Richard Guenther <rguenther@suse.de>
693 * trans.c (gfc_build_addr_expr): Use the correct types.
695 2007-06-19 Paul Thomas <pault@gcc.gnu.org>
699 * resolve.c (resolve_code): Use gfc_impure_variable as a
700 condition for rejecting derived types with pointers, in pure
702 (gfc_impure_variable): Add test for dummy arguments of pure
703 procedures; any for functions and INTENT_IN for subroutines.
706 * data.c (gfc_assign_data_value): Change the ICE on an array
707 reference initializer not being an array into an error and
708 clear init to prevent a repetition of the error.
710 2007-06-17 Janne Blomqvist <jb@gcc.gnu.org>
712 * gfortran.texi: Add documentation for GFORTRAN_UNBUFFERED_n
713 environment variables. Fix documentation for
714 GFORTRAN_UNBUFFERED_ALL environment variable.
716 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
718 * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Use
719 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointer addition.
720 * trans-expr.c (gfc_trans_string_copy): Create
721 POINTER_PLUS_EXPR instead of a PLUS_EXPR
724 2007-06-14 Paul Thomas <pault@gcc.gnu.org>
727 * trans-common.c (build_common_decl): If resizing of common
728 decl is needed, update the TREE_TYPE.
730 2007-06-13 Tobias Burnus <burnus@net-b.de>
733 * interface.c (has_vector_section): New.
734 (compare_actual_formal): Check for array sections with vector subscript.
736 2007-06-12 Dirk Mueller <dmueller@suse.de>
738 * trans-stmt.c (gfc_trans_call): fix gcc_assert to
739 a comparison, not an assignment.
741 2007-06-12 Paul Thomas <pault@gcc.gnu.org>
743 * trans-common.c (create_common): Initialize 'field_init'.
745 2007-06-12 Paul Thomas <pault@gcc.gnu.org>
749 * trans-common.c (get_init_field): New function.
750 (create_common): Call get_init_field for overlapping
751 initializers in equivalence blocks.
752 * resolve.c (resolve_equivalence_derived, resolve_equivalence):
753 Remove constraints on initializers in equivalence blocks.
754 * target-memory.c (expr_to_char, gfc_merge_initializers):
756 (encode_derived): Add the bit offset to the byte offset to get
757 the total offset to the field.
758 * target-memory.h : Add prototype for gfc_merge_initializers.
760 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
762 * trans-types.c (gfc_signed_type): Remove.
763 * trans-types.h (gfc_signed_type): Remove.
764 * f95-lang.c (LANG_HOOKS_SIGNED_TYPE): Remove.
766 2007-06-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
768 * trans-intrinsic.c: Revert Lee's 2007-06-04 patch.
770 2007-06-07 Steven G. Kargl <kargl@gcc.gnu.org>
771 Jerry DeLisle <jvdelisle@gcc.gnu.org>
774 * match.c (gfc_match_special_char): New function. Match special char.
776 * match.h: Add prototype.
777 * io.c (next_char): Use it.
778 * primary.c (next_string_char): Ditto.
780 2007-06-06 Steven G. Kargl <kargl@gcc.gnu.org>
782 * decl.c: Miscellaneous whitespace fixes.
784 * gfortran.h: Likewise.
785 * interface.c : Likewise.
789 * module.c: Likewise.
791 * resolve.c: Likewise.
792 * symbol.c: Likewise.
793 * trans-array.c: Likewise.
794 * trans-common.c: Likewise.
795 * trans-decl.c: Likewise.
796 * trans-intrinsic.c: Likewise.
797 * trans-io.c: Likewise.
798 * trans-stmt.c: Likewise.
799 * trans-types.c: Likewise.
801 2007-06-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
804 * parse.c (decode_statement): Don't call gfc_undo_symbols on MATCH_ERROR
805 for ST_FUNCTION since it is called in reject_statement.
806 (parse_contained): If error, loop back after reject_statement and try
807 again. Free the namespace if an error occured.
809 2007-06-04 Lee Millward <lee.millward@codesourcery.com>
811 * trans-intrinsic.c (gfc_conv_intrinsic_function_args): Adjust
812 to operate on a stack allocated array for the intrinsic arguments
813 instead of creating a TREE_LIST. Add two new parameters for the
814 array and the number of elements. Update all callers to allocate
815 an array of the correct length to pass in. Update comment.
816 (gfc_intrinsic_argument_list_length): New function.
817 (gfc_conv_intrinsic_mnimax): Call it.
818 (gfc_conv_intrinsic_merge): Likewise.
819 (gfc_conv_intrinsic_lib_function): Call it. Use new CALL_EXPR
821 (gfc_conv_intrinsic_cmplx): Likewise.
822 (gfc_conv_intrinsic_ctime): Likewise.
823 (gfc_covn_intrinsic_fdate): Likewise.
824 (gfc_conv_intrinsic_ttynam): Likewise.
825 (gfc_conv_intrinsic_ishftc): Likewise.
826 (gfc_conv_intrinsic_index): Likewise.
827 (gfc_conv_intrinsic_scan): Likewise.
828 (gfc_conv_intrinsic_verify): Likewise.
829 (gfc_conv_intrinsic_trim): Likewise.
830 (gfc_conv_intrinsic_aint): Use new CALL_EXPR constructors.
831 (gfc_conv_intrinsic_exponent): Likewise.
832 (gfc_conv_intrinsic_bound): Likewise.
833 (gfc_conv_intrinsic_abs): Likewise.
834 (gfc_conv_intrinsic_mod): Likewise.
835 (gfc_conv_intrinsic_sign): Likewise.
836 (gfc_conv_intrinsic_len): Likewise.
837 (gfc_conv_intrinsic_adjust): Likewise.
838 (gfc_conv_intrinsic_si_kind): Likewise.
840 2007-06-04 Steve Ellcey <sje@cup.hp.com>
842 * trans-array.c (gfc_conv_array_parameter): Initialize tmp.
844 2007-05-31 Richard Guenther <rguenther@suse.de>
846 * trans-expr.c (gfc_conv_expr_op): Use zero constant
847 that matches the lse type.
848 (gfc_trans_string_copy): Use sizetype zero constant.
849 * intrinsic.c (add_functions): The sizeof intrinsic has
851 * trans-types.c (gfc_get_dtype): Convert size to index
852 type before shifting.
853 * trans-array.c (gfc_trans_array_constructor_value): Use
854 index type for offset computation.
855 * trans-intrinsic.c (gfc_conv_associated): Use correct type
858 2007-05-31 Paul Thomas <pault@gcc.gnu.org>
861 * trans-array.c (gfc_trans_array_constructor): Treat the case
862 where the ss expression charlen is missing.
864 22007-05-31 Paul Thomas <pault@gcc.gnu.org>
867 * module.c (mio_symtree_ref): If an equivalence group member
868 is not used, give it a hidden symbol and set the pointer_info.
869 (load_equiv): Only free the equivalence if none of the members
872 2007-05-29 Daniel Franke <franke.daniel@gmail.com>
874 * gfortran.h: Renamed 'enum gfc_generic_isym_id' to 'enum gfc_isym_id',
875 added missing GFC_ISYM_* enumerators, ordered alphabetically.
876 (struct gfc_intrinsic_sym): Renamed 'generic_id' to 'id'.
877 (gfc_find_subroutine): New prototype.
878 * intrinsic.c (add_sym, add_sym_*): Added argument 'id' and changed all callers.
879 (find_subroutine): Renamed to 'gfc_find_subroutine', removed static.
880 * dependency.c: Changed usage of isym->generic_id to isym->id.
881 * openmp.c: Likewise.
882 * resolve.c: Likewise.
883 * trans-array.c: Likewise.
884 * trans-expr.c: Likewise.
885 * trans-intrinsic.c: Likewise.
886 * trans-openmp.c: Likewise.
888 2007-05-28 Tobias Schlüter <tobi@gcc.gnu.org>
890 * gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_SIZEOF.
891 * intrinsic.c (add_functions): Add stuff for SIZEOF intrinsic.
892 * intrinsic.h (gfc_check_sizeof): Add prototype of ...
893 * check.c (gfc_check_sizeof): .. new function.
894 * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): New function.
895 (gfc_conv_intrinsic_strcmp): Whitespace fix.
896 (gfc_conv_intrinsic_array_transfer): Remove double initialization,
897 use fold_build. where appropriate.
898 (gfc_conv_intrinsic_function): Add case for SIZEOF.
899 * intrinsic.texi: Add documentation for SIZEOF.
901 2007-05-28 Brooks Moses <brooks.moses@codesourcery.com>
903 * trans-array.c (gfc_conv_expr_descriptor): Edit comment.
905 2007-05-28 Brooks Moses <brooks.moses@codesourcery.com>
908 * target-memory.c (gfc_target_expr_size): Add handling
909 for size of BT_HOLLERITH variables.
910 * check.c (gfc_check_transfer): Reject BT_HOLLERITH
911 variables in MOLD argument of TRANSFER.
913 2007-05-28 Brooks Moses <brooks.moses@codesourcery.com>
915 * gfortran.h (gfc_expr): Remove from_H, add "representation"
917 * primary.c (match_hollerith_constant): Store the representation
918 of the Hollerith in representation, not in value.character.
919 * arith.c: Add dependency on target-memory.h.
920 (eval_intrinsic): Remove check for from_H.
921 (hollerith2representation): New function.
922 (gfc_hollerith2int): Determine value of the new constant.
923 (gfc_hollerith2real): Likewise.
924 (gfc_hollerith2complex): Likewise.
925 (gfc_hollerith2logical): Likewise.
926 (gfc_hollerith2character): Point both representation.string and
927 value.character.string at the value string.
928 * data.c (create_character_initializer): For BT_HOLLERITH
929 rvalues, get the value from the representation rather than
931 * expr.c (free_expr0): Update handling of BT_HOLLERITH values
932 and values with representation.string.
933 (gfc_copy_expr): Likewise.
934 * intrinsic.c (do_simplify): Remove special treatement of
935 variables resulting from Hollerith constants.
936 * dump-parse-trees.c (gfc_show_expr): Update handling of
938 * trans-const.c (gfc_conv_constant_to_tree): Replace from_H
939 check with check for representation.string; get Hollerith
940 representation from representation.string, not value.character.
941 * trans-expr.c (is_zero_initializer_p): Replace from_H check
942 with check for representation.string.
943 * trans-stmt.c (gfc_trans_integer_select): Use
944 gfc_conv_mpz_to_tree for case values, so as to avoid picking up
945 the memory representation if the case is given by a transfer
947 * target-memory.c (gfc_target_encode_expr): Use the known memory
948 representation rather than the value, if it exists.
949 (gfc_target_interpret_expr): Store the memory representation of
950 the interpreted expression as well as its value.
951 (interpret_integer): Move to gfc_interpret_integer, make
953 (interpret_float): Move to gfc_interpret_float, make non-static.
954 (interpret_complex): Move to gfc_interpret_complex, make
956 (interpret_logical): Move to gfc_interpret_logical, make
958 (interpret_character): Move to gfc_interpret_character, make
960 (interpret_derived): Move to gfc_interpret_derived, make
962 * target-memory.h: Add prototypes for newly-exported
963 gfc_interpret_* functions.
965 2007-05-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
968 * parse.c (next_statement): Warn for truncated lines if source is free
971 2007-05-27 Paul Thomas <pault@gcc.gnu.org>
972 Tobias Burnus <burnus@net-b.de>
975 * symbol.c (gfc_check_function_type): Copy dimensions of
977 * resolve.c (resolve_contained_fntype): Improve symbol output in
980 2007-05-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
983 * io.c (check_format): Add warning for H specifier in format.
985 2007-05-26 Tobias Burnus <burnus@net-b.de>
987 * gfortran.texi: Document the GFORTRAN_ERROR_DUMPCORE and
988 GFORTRAN_ERROR_BACKTRACE environment variables.
990 2007-05-26 Paul Thomas <pault@gcc.gnu.org>
993 * trans.h : Add no_function_call bitfield to gfc_se structure.
994 Add stmtblock_t argument to prototype of get_array_ctor_strlen.
995 * trans-array.c (get_array_ctor_all_strlen): New function.
996 (get_array_ctor_strlen): Add new stmtblock_t argument and call
997 new function for character elements that are not constants,
999 (gfc_conv_array_parameter): Call get_array_ctor_strlen to get
1001 * trans-intrinsic (gfc_conv_intrinsic_len): Add new argument
1002 to call of get_array_ctor_strlen.
1004 2007-05-25 Kazu Hirata <kazu@codesourcery.com>
1006 * intrinsic.texi: Fix typos.
1008 2007-05-25 Paul Thomas <pault@gcc.gnu.org>
1011 * trans-expr.c (gfc_apply_interface_mapping_to_expr): Change
1012 order in logic under EXPR_FUNCTION to handle functions with
1015 2007-05-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1018 * array.c (spec_dimen_size): Test for correct BT_INTEGER type.
1020 2007-05-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1023 * trans-expr.c (gfc_trans_zero_assign): Convert the result of
1024 TYPE_SIZE_UNIT into a signed type.
1025 (gfc_trans_array_copy): Likewise.
1026 (gfc_trans_array_constructor_copy): Likewise.
1027 * trans-array.c (gfc_trans_create_temp_array): Likewise.
1028 (gfc_grow_array): Likewise.
1029 (gfc_array_init_size): Likewise.
1030 (gfc_duplicate_allocatable): Likewise.
1031 * trans-stmt.c (allocate_temp_for_forall_nest_1): Likewise.
1033 2007-05-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1036 * resolve.c (resolve_function): Don't call resolve_global_procedure if
1037 there is no name. Delete duplicated statement in ELSE clause.
1039 2007-05-22 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1042 * trans-array.c (gfc_trans_array_bound_check): Take extra argument to
1043 indicate whether we should check the upper bound in that dimension.
1044 (gfc_conv_array_index_offset): Check only the lower bound of the
1045 last dimension for assumed-size arrays.
1046 (gfc_conv_array_ref): Likewise.
1047 (gfc_conv_ss_startstride): Likewise.
1049 2007-05-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1050 Daniel Franke <franke.daniel@gmail.com>
1053 * resolve.c (resolve_actual_arglist): Resolve actual argument after
1054 being identified as variable.
1056 2007-05-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1059 * trans-stmt.c (gfc_trans_do): Fix the value of loop variable
1062 2007-05-21 H.J. Lu <hongjiu.lu@intel.com>
1064 * trans-stmt.c (gfc_trans_do): Fix a typo in comment.
1066 2007-05-21 Paul Thomas <pault@gcc.gnu.org>
1070 * trans-array.c (gfc_conv_expr_descriptor): Obtain the stored
1071 offset for non-descriptor, source arrays and correct for stride
1072 not equal to one before writing to field of output descriptor.
1074 2007-05-20 Daniel Franke <franke.daniel@gmail.com>
1077 * check.c (check_rest): Improved argument conformance check and
1078 fixed error message generation.
1080 2007-05-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1083 * Make-lang.in: Remove use of -Wno-error for expr.o, resolve.o,
1084 simplify.o and trans-common.o.
1086 2007-05-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1089 * trans-array.c (gfc_trans_auto_array_allocation): Avoid
1090 multiplication of mismatched types.
1092 2007-05-18 Daniel Franke <franke.daniel@gmail.com>
1095 * symbol.c (gfc_add_flavor): Add the NAME to error message if
1098 2007-05-15 Daniel Franke <franke.daniel@gmail.com>
1103 * intrinsic.c (check_specific): Check elemental intrinsics for
1105 (add_functions): Fixed dummy argument names of BESJN and BESYN.
1106 Fixed elemental status of MCLOCK and MCLOCK8.
1107 * check.c (check_rest): Added check for array conformance.
1108 (gfc_check_merge): Removed check for array conformance.
1109 (gfc_check_besn): Removed check for scalarity.
1110 * intrinsic.texi (CSHIFT, EOSHIFT): Fixed typos.
1111 (BESJN, BESYN): Clarified documentation.
1113 2007-05-17 Tobias Burnus <burnus@net-b.de>
1115 * gfortran.texi (GFORTRAN_CONVERT_UNIT): Improve documentation.
1117 2007-05-16 Brooks Moses <brooks.moses@codesourcery.com>
1124 * target-memory.c: New file.
1125 * target-memory.h: New file.
1126 * simplify.c: Add #include "target-memory.h".
1127 (gfc_simplify_transfer): Implement constant-
1128 folding for TRANSFER intrinsic.
1129 * Make-lang.in: Add dependencies on new target-memory.* files.
1131 2007-05-15 Paul Brook <paul@codesourcery.com>
1133 * trans-types.c (gfc_type_for_size): Handle signed TImode.
1135 2007-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1138 * trans.h (gfor_fndecl_internal_malloc, gfor_fndecl_internal_malloc64,
1139 gfor_fndecl_internal_free): Remove prototypes.
1140 (gfor_fndecl_os_error, gfc_call_free, gfc_call_malloc): Add prototypes.
1141 * trans.c (gfc_call_malloc, gfc_call_free): New functions.
1142 * f95-lang.c (gfc_init_builtin_functions): Add __builtin_free
1143 and __builtin_malloc builtins.
1144 * trans-decl.c (gfor_fndecl_internal_malloc,
1145 gfor_fndecl_internal_malloc64, gfor_fndecl_internal_free): Remove.
1146 (gfor_fndecl_os_error): Add.
1147 (gfc_build_builtin_function_decls): Don't create internal_malloc,
1148 internal_malloc64 and internal_free library function declaration.
1149 Create os_error library call function declaration.
1150 * trans-array.c (gfc_trans_allocate_array_storage,
1151 gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
1152 gfc_conv_array_parameter, gfc_duplicate_allocatable): Use
1153 gfc_call_malloc and gfc_call_free instead of building calls to
1154 internal_malloc and internal_free.
1155 * trans-expr.c (gfc_conv_string_tmp): Likewise.
1156 * trans-stmt.c (gfc_do_allocate, gfc_trans_assign_need_temp,
1157 gfc_trans_pointer_assign_need_temp, gfc_trans_forall_1,
1158 gfc_trans_where_2: Likewise.
1159 * trans-intrinsic.c (gfc_conv_intrinsic_ctime,
1160 gfc_conv_intrinsic_fdate, gfc_conv_intrinsic_ttynam,
1161 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_trim): Likewise.
1163 2007-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1166 * trans-expr.c (gfc_conv_substring): Evaluate substring bounds
1169 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
1171 * f95-lang.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
1172 * trans-intrinsic.c (gfc_conv_intrinsic_ishft): Use unsigned_type_for
1173 instead of gfc_unsigned_type.
1174 * trans-stmt.c (gfc_trans_do): Use unsigned_type_for instead of
1176 * trans-types.c (gfc_unsigned_type): Remove.
1177 * trans-types.h (gfc_unsigned_type): Remove.
1179 2007-05-12 Paul Thomas <pault@gcc.gnu.org>
1182 * resolve.c (check_host_association): New function that detects
1183 incorrect host association and corrects it.
1184 (gfc_resolve_expr): Call the new function for variables and
1186 * match.h : Remove prototype for gfc_match_rvalue.
1187 * gfortran.h : Add prototype for gfc_match_rvalue.
1189 2007-05-11 Paul Thomas <pault@gcc.gnu.org>
1192 * trans-expr.c (gfc_conv_function_call): Reduce indirection for
1193 direct assignments of recursive array valued functions.
1194 * primary.c (gfc_match_rvalue): Correct error for recursive
1195 function calls such that directly recursive calls of scalar
1196 function without an explicit result are disallowed.
1198 2007-05-11 Paul Thomas <pault@gcc.gnu.org>
1201 * resolve.c (resolve_fl_namelist): It is not an error if the
1202 namelist element is the result variable of the enclosing
1203 function. Search for the symbol in current and all parent
1204 namespaces for a potential conflict.
1205 * symbol.c (check_conflict): Remove the conflict between
1206 'in_namelist' and 'FL_PROCEDURE' because the symbol info
1207 is not available to exclude function result variables.
1208 * trans-io.c (nml_get_addr_expr): Use the fake result decl
1209 if the symbol is an implicit result variable.
1211 2007-05-11 Paul Thomas <pault@gcc.gnu.org>
1214 * decl.c (get_proc_name): If an entry has already been declared
1215 as a module procedure, pick up the symbol and the symtree and
1216 use them for the entry.
1218 2007-05-08 Paul Thomas <pault@gcc.gnu.org>
1221 * resolve.c (resolve_symbol): Remove the flagging mechanism from the
1222 formal namespace resolution and instead check that the formal
1223 namespace is not the current namespace.
1225 2007-05-08 Paul Thomas <pault@gcc.gnu.org>
1228 * trans-array.c (gfc_conv_array_parameter): Convert full array
1229 references to the result of the procedure enclusing the call.
1231 2007-05-08 Paul Thomas <pault@gcc.gnu.org>
1235 * decl.c (add_init_expr_to_sym): Expand a scalar initializer
1236 for a parameter array into an array expression with the right
1238 * array.c (spec_dimen_size): Remove static attribute.
1239 * gfortran.h : Prototype for spec_dimen_size.
1241 2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1244 * trans-stmt.c (gfc_trans_do): Handle large loop counts.
1246 2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1249 * simplify.c (gfc_simplify_new_line): NEW_LINE can be simplified
1250 even for non constant arguments.
1252 2007-05-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1253 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1256 * gfortran.h: Add runtime error codes from libgfortran.h. Define
1258 * trans.c (gfc_trans_runtime_check): Update the format of runtime error
1259 messages to match library runtime errors. Use call to new library
1260 function runtime_error_at().
1261 * trans.h: Add prototype for new function gfc_trans_io_runtime_check.
1262 Add declaration for library functions runtime_error_at and
1264 * trans_io.c (gfc_trans_io_runtime_check): New function.
1265 (set_parameter_value): Add error checking for UNIT numbers.
1266 (set_parameter_ref): Initialize the users variable to zero.
1267 (gfc_trans_open): Move setting of unit number to after setting of common
1268 flags so that runtime error trapping can be detected.
1269 (gfc_trans_close): Likewise. (build_filepos): Likewise.
1270 (gfc_trans_inquire): Likewise. (build_dt): Likewise.
1271 * trans-decl.c: Add declarations for runtime_error_at and
1272 generate_error. (gfc_build_builtin_function_decls): Build function
1273 declarations for runtime_error_at and generate_error.
1275 2007-05-06 Paul Thomas <pault@gcc.gnu.org>
1278 * resolve.c (resolve_fl_procedure): Resolve constant character
1281 2007-05-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1284 * decl.c (match_char_spec): Add check for invalid character lengths.
1286 2007-05-04 Brooks Moses <brooks.moses@codesourcery.com>
1288 * intrinsic.texi (CMPLX): Document result kind.
1289 (COMPLEX): Add documentation.
1291 2007-05-04 Daniel Franke <franke.daniel@gmail.com>
1294 * intrinsic.c (add_functions): Replaced calls to gfc_check_g77_math1
1295 by gfc_check_fn_r to avoid checks for scalarity.
1296 * check.c (gfc_check_besn): Removed check for scalarity.
1297 (gfc_check_g77_math1): Removed.
1298 * intrinsic.h (gfc_check_g77_math1): Removed.
1300 2007-05-04 Daniel Franke <franke.daniel@gmail.com>
1302 * check.c (gfc_check_fseek_sub): Fixed typo.
1304 2007-05-04 Daniel Franke <franke.daniel@gmail.com>
1307 * intrinsic.c (add_subroutines): Added FSEEK.
1308 * intrinsic.h (gfc_resolve_fseek_sub, gfc_check_fseek_sub): New.
1309 * iresolve.c (gfc_resolve_fseek_sub): New.
1310 * check.c (gfc_check_fseek_sub): New.
1311 * intrinsic.texi (FSEEK): Updated.
1313 2007-05-04 Tobias Burnus <burnus@net-b.de>
1316 * expr.c (gfc_check_pointer_assign): Check for NULL pointer.
1318 2007-05-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1321 * simplify.c (gfc_simplify_len): Only simplify integer lengths.
1323 2007-05-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1326 * simplify.c (gfc_simplify_repeat): Don't put function call with
1327 side effect in a gcc_assert().
1329 2007-05-04 Tobias Burnus <burnus@net-b.de>
1332 * interface.c (compare_actual_formal): Check character length.
1334 2007-05-01 Thomas Koenig <tkoenig@gcc.gnu.org>
1337 * dependency.c (gfc_full_array_ref_p): If the reference is
1338 to a single element, check that the array has a single
1339 element and that the correct element is referenced.
1341 2007-05-01 Daniel Franke <franke.daniel@gmail.com>
1343 * intrinsic.c (add_functions): Fixed ELEMENTAL specifications.
1344 (add_subroutines): Replaced magic numbers in function calls by
1345 ELEMENTAL and NOT_ELEMENTAL respectively.
1346 * intrinsic.texi (MVBITS): Changed class to elemental subroutine.
1347 (RANDOM_NUMBER): Changed class to subroutine.
1348 (HUGE, TINY): Changed class to inquiry function.
1350 2007-04-30 Brooks Moses <brooks.moses@codesourcery.com>
1352 * trans-const.c (gfc_conv_mpz_to_tree): Use mpz_get_double_int.
1353 (gfc_conv_tree_to_mpz): New function.
1354 (gfc_conv_mpfr_to_tree): Use real_from_mpfr.
1355 (gfc_conv_tree_to_mpfr): New function.
1356 * trans-const.h: (gfc_conv_tree_to_mpz): New prototype.
1357 (gfc_conv_tree_to_mpfr): New prototype.
1359 2007-04-30 Daniel Franke <franke.daniel@gmail.com>
1361 * intrinsic.texi (IERRNO): Changed class to non-elemental function.
1362 (LOG10): Removed COMPLEX as accepted argument type.
1363 (NEW_LINE): Changed class from elemental to inquiry function.
1364 (SIGN): Removed requirement of scalar arguments.
1365 (SNGL): Changed class to elemental function.
1367 2007-04-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1370 * simplify.c (simplify_bound_dim): New function.
1371 (simplify_bound): Use the above. Perform simplification of LBOUND
1372 and UBOUND when DIM argument is not present.
1374 2007-04-29 Daniel Franke <franke.daniel@gmail.com>
1376 * gfortran.texi: Cleaned up keyword index.
1377 * invoke.texi: Likewise.
1378 * intrinsic.texi: Likewise.
1380 2007-04-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1383 * scanner.c (load_file): Discard the byte order mark if one is
1384 found on the first non-preprocessor line of a file.
1386 2007-04-29 Paul Thomas <pault@gcc.gnu.org>
1389 * trans-array.c (gfc_conv_resolve_dependencies): Create a temp
1390 whenever a dependency is found.
1392 2007-04-28 Tobias Schlüter <tobi@gcc.gnu.org>
1394 * options.c (gfc_handle_option): Ensure requested free form line
1395 length is not too small.
1397 2007-04-27 Brooks Moses <brooks.moses@codesourcery.com>
1399 * intrinsic.texi (Transfer): Improve documentation.
1401 2007-04-27 Brooks Moses <brooks.moses@codesourcery.com>
1403 * gfortran.texi (Option Index): Add @samp as needed.
1405 2007-04-27 Daniel Franke <franke.daniel@gmail.com>
1407 * gfortran.texi: Added node and menu entry for an option index.
1408 * invoke.texi: Moved command line option related entries of the concept
1409 index to the option index.
1411 2007-04-27 Daniel Franke <franke.daniel@gmail.com>
1413 * intrinsic.texi (AND, FPUT, FPUTC, MODULO, OR, SET_EXPONENT,
1414 XOR): Fixed examples.
1416 2007-04-27 Daniel Franke <franke.daniel@gmail.com>
1418 * intrinsic.texi (PRODUCT, RESHAPE, SPACING, SPREAD, SUM,
1419 SYSTEM_CLOCK, TRANSFER, UNPACK): New.
1420 (DATE_AND_TIME, CPU_TIME, RRSPACING): Added cross references.
1422 2007-04-26 Daniel Franke <franke.daniel@gmail.com>
1424 * intrinsic.texi (NULL, PACK, PRESENT, REPEAT, SCAN, SHAPE,
1425 SIZE, TRANSPOSE, TRIM, VERIFY): New.
1426 (ADJUSTL, ADJUSTR, INDEX): Added cross references.
1427 (INT, INT2, INT8, LONG): Enabled section header.
1429 2007-04-25 Janne Blomqvist <jb@gcc.gnu.org>
1431 * module.c (module_char): Replace fgetc() with
1433 (write_char): Replace fputc() with putc().
1434 * scanner.c (load_line): Replace fgetc() with getc().
1435 (gfc_read_orig_filename): Likewise.
1437 2007-04-25 Tobias Burnus <burnus@net-b.de>
1440 * error.c (error_print): Fix %% support.
1441 * intrinsic.c (sort_actual): Improve error message.
1442 * resolve.c (resolve_actual_arglist): Allow %VAL for
1443 interfaces defined in the module declaration part.
1445 2007-04-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1448 * intrinsic.texi (GETLOG): Update documentation to reflect
1451 2007-04-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1454 * module.c (write_char): Add character to the MD5 buffer.
1455 (read_md5_from_module_file): New function.
1456 (gfc_dump_module): Compute MD5 for new module file. Call
1457 read_md5_from_module_file. Only overwrite old module file
1458 if the new MD5 is different.
1460 2007-04-23 Paul Thomas <pault@gcc.gnu.org>
1463 * resolve.c (resolve_symbol): Allow resolution of formal
1464 namespaces nested within formal namespaces coming from modules.
1467 * trans-expr.c (gfc_trans_assignment): Make the call to
1468 gfc_trans_zero_assign conditional on the lhs array ref being
1471 2007-04-23 Tobias Burnus <burnus@net-b.de>
1473 * primary.c (match_integer_constant): Mention -fno-range-check
1474 in the error message.
1476 2007-04-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1479 * scanner.c (load_line): Remove check for comment after ampersand and
1480 adjust tracking of ampersand.
1482 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
1484 * f95-lang.c (lang_tree_node): Use GENERIC_NEXT
1485 instead of checking GIMPLE_STMT_P in chain_next.
1487 2007-04-17 Tobias Schlüter <tobi@gcc.gnu.org>
1489 * trans-types.h (gfc_packed): New enum.
1490 (gfc_get_nodesc_array_type): Change prototype to use new enum.
1491 * trans-types.c (gfc_get_nodesc_array): Use gfc_packed for
1492 argument packed. Adapt all references to values accordingly.
1493 (gfc_sym_type): Use enum values in call to gfc_get_nodesc_array.
1494 (gfc_get_derived_type): Likewise.
1495 * trans-array.c (gfc_build_constant_array_constructor): Likewise.
1496 * trans-expr.c (gfc_get_interface_mapping_charlen): Changed packed
1497 argument to type gfc_packed.
1498 (gfc_add_interface_mapping): Use enum values in call to
1499 gfc_get_interface_mapping.
1500 * trans-decl.c (gfc_build_dummy_array_decl): Adapt to use enum
1501 values when determining packing.
1503 * trans-decl.c (gfc_finish_decl): Remove unused second argument
1504 'init'. Simplify code accordingly. Remove calls to
1505 gfc_fatal_error in favor of gcc_assert.
1506 (create_function_arglist): Remove second argument from calls to
1508 (gfc_trans_dummy_character): Likewise.
1510 * arith.h: Update copyright years.
1511 * dependency.h: Likewise.
1512 * gfortran.h: Likewise.
1513 * lang-specs.h: Likewise.
1514 * parse.h: Likewise.
1515 * symbol.c: Likewise.
1516 * trans.h: Likewise.
1517 * trans.c: Likewise.
1518 * trans-array.c: Likewise.
1519 * trans-common.c: Likewise.
1520 * trans-const.h: Likewise.
1521 * trans-const.c: Likewise.
1522 * trans-decl.c: Likewise.
1523 * trans-expr.c: Likewise.
1524 * trans-io.c: Likewise.
1525 * trans-openmp.c: Likewise.
1526 * trans-types.h: Likewise.
1527 * types.def: Likewise.
1529 2007-04-17 Tobias Schlüter <tobi@gcc.gnu.org>
1532 * decl.c (gfc_sym_mangled_identifier): Use capital letters in name
1534 (gfc_sym_mangled_function_id): Likewise.
1536 2007-04-15 Paul Thomas <pault@gcc.gnu.org>
1539 * primary.c (check_for_implicit_index): New function to check
1540 that a host associated variable is not an undeclared implied
1542 (gfc_match_rvalue, match_variable): Use it and reset the
1543 implied_index attribute.
1544 * gfortran.h : Add the implied_index field to symbol_attribute.
1545 * match.c (gfc_match_iterator): Mark the iterator variable
1546 with the new attribute.
1547 * decl.c (build_sym): Reset the new attribute.
1549 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
1551 * gfc-internals.texi: Fix typos.
1552 * simplify.c: Fix a comment typo.
1554 2007-04-14 Bernhard Fischer <aldot@gcc.gnu.org>
1556 * primary.c: Commentary typo fix; Add question about redundant (?)
1559 2007-04-14 Paul Thomas <pault@gcc.gnu.org>
1563 * expr.c (scalarize_intrinsic_call): New function to
1564 scalarize elemental intrinsic functions in initialization
1566 (check_init_expr): Detect elemental intrinsic functions
1567 in initalization expressions and call previous.
1569 2007-04-13 Tobias Burnus <burnus@net-b.de>
1572 * primary.c (match_variable): External functions
1575 2007-04-13 Paul Thomas <pault@gcc.gnu.org>
1578 * trans-types.c (copy_dt_decls_ifequal): Do not get pointer
1579 derived type components.
1581 2007-04-13 Tobias Schlüter <tobi@gcc.gnu.org>
1584 * resolve.c: Include obstack.h and bitmap.h. New variable
1586 (code_stack): Add tail and reachable_labels fields.
1587 (reachable_labels): New function.
1588 (resolve_branch): Rework to use new fields in code_stack.
1589 (resolve_code): Call reachable_labels.
1590 (resolve_codes): Allocate and free labels_obstack.
1592 2007-04-12 Tobias Schlüter <tobi@gcc.gnu.org>
1595 * decl.c (match_char_spec): Move check for negative CHARACTER
1597 * resolve.c (resolve_charlen): ... here.
1598 (resolve_types): Resolve CHARACTER lengths earlier.
1600 2007-04-12 Daniel Franke <franke.daniel@gmail.com>
1603 * intrinsic.texi (RANDOM_SEED, RANDOM_NUMBER): New.
1605 2007-04-12 Tobias Schlüter <tobi@gcc.gnu.org>
1608 * primary.c (gfc_variable_attr): Don't copy string length if it
1610 * resolve.c (resolve_code): Clarify error message.
1613 * decl.c (gfc_match_end): Also check for construct name in END
1614 FORALL and END WERE statements.
1615 * match.c (match_case_eos): Use uppercase for statement name in
1617 (match_elsewhere): Construct name may appear iff construct has a
1620 * trans-types.c: Update copyright years. Reformat long comment
1621 explaining array descriptor format. Remove obsolete mention of
1624 * arith.c (gfc_arith_uplus): Rename to ...
1625 (gfc_arith_identity): ... this.
1626 (gfc_parentheses): New function.
1627 (gfc_uplus): Adapt to renamed function.
1628 * arith.h (gfc_parentheses): Add prototype.
1629 * expr.c (gfc_copy_expr): Deal with INTRINSIC_PARENTHESES.
1630 (simplifiy_intrinsic_op): Treat INTRINSIC_UPLUS separately from
1631 INTRINSIC_PARENTHESES.
1633 2007-04-12 Tobias Burnus <burnus@net-b.de>
1636 * decl.c (match_attr_spec): Allow PRIVATE/PUBLIC
1637 attribute in type definitions.
1638 (gfc_match_private): Allow PRIVATE statement only
1639 in specification part of modules.
1640 (gfc_match_public): Ditto for PUBLIC.
1641 (gfc_match_derived_decl): Allow PRIVATE/PUBLIC attribute only in
1642 specificification part of modules.
1644 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
1647 * intrinsic.c (add_functions): Add ref. to gfc_resolve_achar.
1648 * intrinsic.h : Add prototype for gfc_resolve_achar.
1649 * iresolve.c (gfc_resolve_achar): New function.
1651 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
1654 * resolve.c (resolve_fl_variable): Set flag to 2 for automatic
1655 arrays. Make condition for automatic array error explicit.
1656 If a dummy, no error on an INTENT(OUT) derived type.
1658 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
1661 * expr.c (find_array_element): Correct arithmetic for rank > 1.
1663 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
1666 * check.c (numeric_check): If an expresson has not got a type,
1667 see if it is a symbol for which a default type applies.
1669 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
1672 * trans-decl.c (gfc_get_symbol_decl): Allow unreferenced use
1675 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
1678 * symbol.c (gfc_check_function_type): New function.
1679 * gfortran.h : Add prototype for previous.
1680 * parse.c (parse_progunit): Call it after parsing specification
1683 2007-04-05 Paul Thomas <pault@gcc.gnu.org>
1686 * trans-expr.c (gfc_conv_function_call): Give a dummy
1687 procedure the correct type if it has alternate returns.
1689 2007-04-05 Paul Thomas <pault@gcc.gnu.org>
1692 * decl.c (gfc_match_modproc): Go up to the top of the namespace
1693 tree to find the module namespace for gfc_get_symbol.
1695 2007-04-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1698 * fortran/gfortran.h (gfc_charlen_int_kind): New prototype.
1699 * fortran/trans-types.c (gfc_charlen_int_kind): New variable.
1700 (gfc_init_types): Define gfc_charlen_int_kind.
1701 * fortran/trans.h (gfor_fndecl_string_repeat): Remove prototype.
1702 * fortran/trans-decl.c (gfor_fndecl_string_repeat): Delete.
1703 (gfc_build_intrinsic_function_decls): Don't set
1704 gfor_fndecl_string_repeat.
1705 * fortran/trans-intrinsic.c (gfc_conv_intrinsic_repeat): Rewrite
1706 so that we don't have to call a library function.
1707 * fortran/simplify.c (gfc_simplify_repeat): Perform the necessary
1708 checks on the NCOPIES argument, and work with arbitrary size
1711 2007-03-31 Tobias Burnus <burnus@net-b.de>
1713 * intrinsic.c (add_functions): Fix name of dummy argument
1714 for new_line and exit intrinsic.
1716 2007-03-31 Paul Thomas <pault@gcc.gnu.org>
1719 * gfortran.texi: Add a section for the %VAL, %REF and %LOC
1722 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
1724 * trans-types.c (gfc_signed_or_unsigned_type): Remove.
1725 (gfc_unsigned_type): Use get_signed_or_unsigned_type instead of
1726 gfc_signed_or_unsigned_type.
1727 (gfc_signed_type): Ditto.
1728 * trans-types.h (gfc_signed_or_unsigned_type): Remove.
1729 * f95-lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
1731 2007-03-30 Tobias Schlüter <tobi@gcc.gnu.org>
1733 * symbol.c (gfc_find_gsymbol): Simplify, don't unconditionally
1734 descend into all branches.
1736 2007-03-29 Tobias Schlüter <tobi@gcc.gnu.org>
1738 * intrinsic.c (conv_name): Let gfc_get_string handle the format.
1739 (find_conv): Compare pointers instead of calling strcmp.
1740 (find_sym): Likewise, but ensure that the compared pointer is in
1741 the global string table.
1743 2007-03-28 Tobias Schlüter <tobi@gcc.gnu.org>
1745 * gfc-internals.texi: Fix output filename. Merge type index into
1746 concept index. Start documentation of gfc_code structure.
1748 2007-03-26 Brooks Moses <brooks.moses@codesourcery.com>
1750 * gfc-internals.texi: New file,
1751 * Make-lang.in: Add rules to convert it to dvi, pdf, and info.
1753 2007-03-26 Brooks Moses <brooks.moses@codesourcery.com>
1755 * error.c (show_locus): Remove always-false test.
1757 2007-03-26 Brooks Moses <brooks.moses@codesourcery.com>
1759 * lang.opt: Minor edits to descriptions.
1761 2007-03-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1764 * fortran/interface.c (check_operator_interface): Implement
1765 the standard checks on user operators extending intrinsic operators.
1766 * fortran/resolve.c (resolve_operator): If the ranks of operators
1767 don't match, don't error out but try the user-defined ones first.
1769 2007-03-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1772 * expr.c (check_dimension): Fix logic of comparisons.
1774 2007-03-24 Paul Thomas <pault@gcc.gnu.org>
1777 * trans-expr.c (gfc_apply_interface_mapping_to_expr): Return
1778 int result that is non-zero if the expression is the function
1779 result. Only the characteristics of the result expression
1780 can be used in a procedure interface, so simplify LEN in situ
1781 using its character length.
1785 * trans-expr.c (gfc_conv_function_call): Do not use
1786 gfc_conv_expr_reference for actual pointer function with formal
1787 target because a temporary is created that does not transfer
1788 the reference correctly. Do not indirect formal pointer
1789 functions since it is the function reference that is needed.
1791 2007-03-24 Brooks Moses <brooks.moses@codesourcery.com>
1793 * gfortran.h: Edit comments on GFC_STD_*.
1795 2007-03-23 Brooks Moses <brooks.moses@codesourcery.com>
1797 * invoke.texi: Misc. small typo fixes.
1798 (-Wcharacter-truncation): Add.
1799 (-Wnonstd-intrinsics): Correct spelling.
1801 (-fintrinsic-modules-path): Add.
1803 2007-03-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1806 * arith.c (complex_pow): Rewrite to handle large power.
1807 (gfc_arith_power): Handle large power in the real and integer
1810 2007-03-22 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1813 * trans-const.c (gfc_conv_mpz_to_tree): Allow integer constants
1814 larger than twice the width of a HOST_WIDE_INT.
1816 2006-03-22 Paul Thomas <pault@gcc.gnu.org>
1819 * trans-intrinsic.c (gfc_size_in_bytes): Remove function.
1820 (gfc_conv_intrinsic_array_transfer): Remove calls to previous.
1821 Explicitly extract TREE_TYPEs for source and mold. Use these
1822 to calculate length of source and mold, except for characters,
1823 where the se string_length is used. For mold, the TREE_TYPE is
1824 recalculated using gfc_get_character_type_len so that the
1825 result is correctly cast for character literals and substrings.
1826 Do not use gfc_typenode_for_spec for the final cast.
1828 2007-03-22 Tobias Schlüter <tobi@gcc.gnu.org>
1831 * decl.c (gfc_match_derived_decl): Reliably reject
1832 'doubleprecision' and 'doublecomplex' as type names.
1834 2007-03-19 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1837 * trans-expr.c (gfc_trans_init_string_length): Length should
1839 (gfc_conv_function_call): Likewise.
1841 2007-03-18 Paul Thomas <pault@gcc.gnu.org>
1845 * symbo.c : Add gfc_derived_types.
1846 (gfc_free_dt_list): Free derived type list gfc_derived_types.
1847 (gfc_free_namespace): Remove call to gfc_free_dt_list.
1848 (gfc_symbol_done_2): Call gfc_free_dt_list.
1849 * gfortran.h : Declare gfc_derived_types to be external. Remove
1850 derived types field from gfc_namespace.
1851 * resolve.c (resolve_fl_derived): Refer to gfc_derived types
1852 rather than namespace derived_types.
1853 (resolve_fntype): Remove special treatment for module
1854 derived type functions.
1855 * trans-types.c (gfc_get_derived_type): Remove search for like
1856 derived types. Finish by copying back end declaration to like
1857 derived types in the derived type list gfc_derived_types.
1859 2007-03-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1862 * trans-expr.c (gfc_conv_powi): Make n argument unsigned hwi.
1863 (gfc_conv_cst_int_power): Handle integer exponent with care,
1864 since it might be too large for us.
1866 2007-03-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1869 * invoke.texi: Fix typo.
1871 2007-03-16 Tobias Burnus <burnus@net-b.de>
1873 * trans-decl.c (gfc_generate_function_code): Use all arguments of
1876 2007-03-15 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1878 * gfortran.h (gfc_option_t): Add flag_backtrace field.
1879 * lang.opt: Add -fbacktrace option.
1880 * invoke.texi: Document the new option.
1881 * trans-decl.c (gfc_build_builtin_function_decls): Add new
1882 option to the call to set_std.
1883 * options.c (gfc_init_options, gfc_handle_option): Handle the
1886 2007-03-15 Tobias Burnus <burnus@gcc.gnu.org>
1887 Paul Thomas <pault@gcc.gnu.org>
1890 * decl.c (gfc_match_import): If the parent of the current name-
1891 space is null, try looking for an imported symbol in the parent
1892 of the proc_name interface.
1893 * resolve.c (resolve_fl_variable): Do not check for blocking of
1894 host association by a same symbol, if the symbol is in an
1897 2007-03-15 Paul Thomas <pault@gcc.gnu.org>
1900 * decl.c (match_data_constant): Before going on to try to match
1901 a name, try to match a structure component.
1905 * resolve.c (resolve_actual_arglist): Do not reject a generic
1906 actual argument if it has a same name specific interface.
1909 * trans-array.c (parse_interface): Do not nullify allocatable
1910 components if the symbol has the saved attribute.
1912 2007-03-14 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1914 * trans-array.c (gfc_trans_auto_array_allocation): Replace
1915 fold(convert()) by fold_convert().
1916 (gfc_duplicate_allocatable): Likewise.
1917 * trans-intrinsic.c (gfc_conv_intrinsic_dot_product): Use
1918 build_int_cst instead of converting an integer_zero_node
1921 2007-03-14 Jakub Jelinek <jakub@redhat.com>
1923 * module.c (mio_typespec): Don't look at ts->cl if not BT_CHARACTER.
1925 2007-03-13 Brooks Moses <brooks.moses@codesourcery.com>
1930 * intrinsics.texi (CHDIR): Fix argument names, note
1931 that STATUS must be a default integer.
1932 (CTIME): Fix argument names, note that RESULT must
1933 be a default integer.
1934 (EXIT): Note that STATUS must be a default integer.
1936 2007-03-13 Brooks Moses <brooks.moses@codesourcery.com>
1939 * intrinsic.texi: General whitespace cleanup, remove
1940 comment about missing intrinsics.
1941 (menu): Add lines for new entries listed below.
1942 (ACOSH): Mention specific function DACOSH, correct
1943 description phrasing.
1944 (ASINH): Mention specific function DASINH, correct
1945 description phrasing.
1946 (ATANH): Mention specific function DATANH, correct
1947 description phrasing.
1948 (COS): Add index entry for CCOS.
1949 (CPU_TIME): Correct "REAL" to "REAL(*)".
1950 (EXP): Add index entry for CEXP.
1951 (INT): Correct argument name to "A".
1955 (MAX): Add index entries for specific variants.
1956 (MCLOCK): New entry.
1957 (MCLOCK8): New entry.
1958 (SECNDS): Adjust to a more standard form.
1959 (SECOND): New entry.
1960 (TIME): Add cross-reference to MCLOCK.
1961 (TIME8): Add cross-reference to MCLOCK8.
1963 2007-03-11 Paul Thomas <pault@gcc.gnu.org>
1966 * parse.c (parse_interface): Use the default types from the
1967 formal namespace if a function or its result do not have a type
1968 after parsing the specification statements.
1970 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
1972 * intrinsic.texi: (ICHAR) Improve internal I/O note.
1973 (ACHAR): Reference it.
1974 (CHAR): Reference it.
1975 (IACHAR): Reference it.
1977 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
1979 * intrinsic.texi: (LINK) Document function form.
1985 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
1987 * intrinsic.texi: minor typo fixes, removed prologue.
1988 (FSEEK): moved to correct place in alphabetical order.
1990 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
1993 * check.c (gfc_check_alarm_sub): Added check for default integer
1994 kind of status argument.
1995 * iresolve.c (gfc_resolve_alarm_sub): Removed conversion of
1997 * intrinsic.texi (ALARM): Extended documentation.
1999 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
2001 * intrinsic.texi (GERROR, ISATTY, TTYNAM): New.
2002 (ABORT, FLUSH, FNUM, IRAND, MALLOC, SIGNAL, SRAND): Fixed typo.
2003 * intrinsic.c (add_subroutines): Adjusted dummy argument names
2004 of GERROR and TTYNAM.
2006 2007-07-08 Tobias Burnus <burnus@net-b.de>
2008 * module.c (gfc_match_use): Support renaming of operators
2010 * gfortran.texi (Fortran 2003 Status): Document support of
2011 renaming of operators.
2013 2007-07-08 Tobias Burnus <burnus@net-b.de>
2016 * module.c (read_module): Always import module name as symbol.
2017 (gfc_match_use): Disallow module name in the only clause of
2020 2007-03-08 Paul Thomas <pault@gcc.gnu.org>
2023 * expr.c (find_array_section): Correct arithmetic for section
2026 2007-03-07 Brooks Moses <brooks.moses@codesourcery.com>
2028 * iresolve.c (gfc_resolve_ishftc): Correct s_kind value.
2030 2007-03-06 Daniel Franke <franke.daniel@gmail.com>
2032 PR documentation/30950
2033 * intrinsic.texi (AND, CPU_TIME): Fix dummy argument names.
2034 (FREE): Fix call syntax.
2036 2007-03-06 Brooks Moses <brooks.moses@codesourcery.com>
2038 * intrinsic.texi: Limit column widths to a total of .85.
2040 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
2042 * gfortran.texi (GFortran and G77): Rewrite completely.
2044 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
2046 * match.c (gfc_match_name): Expanded comment.
2048 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
2050 * gfortran.texi (Old-style kind specifications): Document
2051 special handling of old-style kind specifiers for COMPLEX.
2052 * decl.c (gfc_match_old_kind_spec): Document kind/bytesize
2053 assumptions for COMPLEX in comment.
2055 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
2058 * gfortranspec.c (lang_specific_driver): Update program
2059 name and copyright date.
2061 2007-03-03 Paul Thomas <pault@gcc.gnu.org>
2064 * check.c (dim_rank_check): The shape of subsections of
2065 assumed-size arrays is known.
2067 2007-03-02 Paul Thomas <pault@gcc.gnu.org>
2068 Tobias Burnus <burnus@net-b.de>
2071 * decl.c (gfc_match_entry): Remove erroneous entry result check.
2073 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2075 * Make-lang.in: Add install-pdf target as copied from
2076 automake v1.10 rules.
2078 2007-03-01 Tobias Burnus <burnus@net-b.de>
2081 * trans-intrinsic.c (gfc_conv_intrinsic_size): Compare pointers.
2083 2007-02-28 Tobias Burnus <burnus@net-b.de>
2084 Paul Thomas <pault@gcc.gnu.org>
2088 * resolve.c (resolve_actual_arglist): Allow by-value
2089 arguments and non-default-kind for %VAL().
2090 * trans-expr.c (conv_arglist_function): Allow
2091 non-default-kind for %VAL().
2093 2007-02-28 Tobias Burnus <burnus@net-b.de>
2096 * primary.c (next_string_char): Correct reading a character
2097 after the delimiter.
2098 (match_string_constant): Print warning message only once.
2100 2007-02-27 Richard Guenther <rguenther@suse.de>
2102 * trans-array.c (structure_alloc_comps): Use correct type
2103 for null pointer constant.
2105 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
2107 * gfortran.texi: Standardize title page, remove version number
2108 from copyright page.
2110 2007-02-26 Thomas Koenig <Thomas.Koenig@online.de>
2111 Paul Thomas <pault@gcc.gnu.org>
2114 * trans-intrinsic.c (gfc_conv_intrinsic_size):
2115 If dim is an optional argument, check for its
2116 presence and call size0 or size1, respectively.
2118 2007-02-23 Paul Thomas <pault@gcc.gnu.org>
2121 * resolve.c (has_default_initializer): New function.
2122 (resolve_fl_variable): Call has_default_initializer to determine if
2123 the derived type has a default initializer to its ultimate
2127 2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2129 * options.c (set_default_std_flags): New function to consolidate
2131 (gfc_init_options): Use new function.
2132 (gfc_handle_option): Use new function.
2134 2007-02-22 Brooks Moses <brooks.moses@codesourcery.com>
2136 * gfortran.texi (Old-style kind specifications): Document
2137 special handling of old-style kind specifiers for COMPLEX.
2138 * decl.c (gfc_match_old_kind_spec): Documented kind/bytesize
2139 assumptions in comment.
2141 2007-02-21 Bernhard Fischer <aldot@gcc.gnu.org>
2143 * parse.c (next_free): Gooble spaces after OpenMP sentinel.
2145 2007-02-20 Thomas Koenig <Thomas.Koenig@online.de>
2148 * match.c (gfc_match_iterator): Remove conflict between
2149 loop variable and pointer.
2151 2007-02-20 Tobias Burnus <burnus@net-b.de>
2154 * symbol.c (gfc_add_volatile): Allow to set VOLATILE
2155 attribute for host-associated variables.
2156 * gfortran.h (symbol_attribute): Save namespace
2157 where VOLATILE has been set.
2158 * trans-decl.c (gfc_finish_var_decl): Move variable
2159 declaration to the top.
2161 2007-02-20 Tobias Burnus <burnus@net-b.de>
2164 * resolve.c (resolve_symbol): Add character dummy VALUE check.
2166 2007-02-19 Thomas Koenig <Thomas.Koenig@online.de>
2169 * fortran/iresolve.c (gfc_resolve_maxloc): Remove coercion of
2170 argument to default integer.
2171 (gfc_resolve_minloc): Likewise.
2173 2007-02-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2176 * options.c (gfc_init_options): Relax warning level for obsolescent.
2177 * match.c (match_arithmetic_if): Change to obsolescent from deleted.
2178 (gfc_match_if): Same.
2180 2007-02-18 Roger Sayle <roger@eyesopen.com>
2182 * trans-array.c (gfc_build_constant_array_constructor): When the
2183 shape of the constructor is known, use that to construct the
2185 (gfc_trans_constant_array_constructor): Initialize the "info"
2186 information for all of the dimensions of the array constructor.
2187 (constant_array_constructor_loop_size): New function.
2188 (gfc_trans_array_constructor): Use it to determine whether a
2189 loop is suitable for "constant array constructor" optimization.
2191 * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Use fold_build2
2192 instead of build2, to avoid conditions like "(a != b) != 0".
2194 2007-02-18 Roger Sayle <roger@eyesopen.com>
2195 Paul Thomas <pault@gcc.gnu.org>
2198 * match.c (match_forall_iterator): Use gfc_match_expr instead
2199 of gfc_match_variable to match the iterator variable. Return
2200 MATCH_NO if not a variable. Remove the reset of the symbol's
2203 2007-02-16 Tobias Burnus <burnus@net-b.de>
2206 * trans-decl.c (gfc_generate_function_code): Do not initialize
2207 pointers to derived components.
2209 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2210 Brooks Moses <brooks.moses@codesourcery.com>
2211 Lee Millward <lee.millward@codesourcery.com>
2213 * trans-expr.c (gfc_conv_power_op): Use build_call_expr.
2214 (gfc_conv_string_tmp): Likewise.
2215 (gfc_conv_concat_op): Likewise.
2216 (gfc_build_compare_string): Likewise.
2217 (gfc_conv_function_call): Use build_call_list instead of build3.
2219 * trans-array.c (gfc_trans_allocate_array_storage): Use
2221 (gfc_grow_array): Likewise.
2222 (gfc_trans_array_ctor_element): Likewise.
2223 (gfc_trans_array_constructor_value): Likewise.
2224 (gfc_array_allocate): Likewise.
2225 (gfc_array_deallocate): Likewise.
2226 (gfc_trans_auto_array_allocation): Likewise.
2227 (gfc_trans_dummy_array_bias): Likewise.
2228 (gfc_conv_array_parameter): Likewise.
2229 (gfc_trans_dealloc_allocated): Likewise.
2230 (gfc_duplicate_allocatable): Likewise.
2232 * trans-openmp.c (gfc_trans_omp_barrier): Use build_call_expr.
2233 (gfc_trans_omp_flush): Likewise.
2235 * trans-stmt.c (gfc_conv_elementel_dependencies): Use build_call_expr.
2236 (gfc_trans_pause): Likewise.
2237 (gfc_trans_stop): Likewise.
2238 (gfc_trans_character_select): Likewise.
2239 (gfc_do_allocate): Likewise.
2240 (gfc_trans_assign_need_temp): Likewise.
2241 (gfc_trans_pointer_assign_need_temp): Likewise.
2242 (gfc_trans_forall_1): Likewise.
2243 (gfc_trans_where_2): Likewise.
2244 (gfc_trans_allocate): Likewise.
2245 (gfc_trans_deallocate): Likewise.
2247 * trans.c (gfc_trans_runtime_check): Use build_call_expr.
2249 * trans-io.c (gfc_trans_open): Use build_call_expr.
2250 (gfc_trans_close): Likewise.
2251 (build_filepos): Likewise.
2252 (gfc_trans_inquire): Likewise.
2253 (NML_FIRST_ARG): Delete.
2254 (NML_ADD_ARG): Delete.
2255 (transfer_namelist_element): Use build_call_expr.
2256 (build_dt): Likewise.
2257 (gfc_trans_dt_end): Likewise.
2258 (transfer_expr): Likewise.
2259 (transfer_array-desc): Likewise.
2261 * trans-decl.c (gfc_generate_function_code): Use build_call_expr.
2262 (gfc_generate_constructors): Likewise.
2264 * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Use build_call_expr.
2265 (gfc_conv_intrinsic_fdate): Likewise.
2266 (gfc_conv_intrinsic_ttynam): Likewise.
2267 (gfc_conv_intrinsic_array_transfer): Likewise.
2268 (gfc_conv_associated): Likewise.
2269 (gfc_conv_intrinsic_si_kind): Likewise.
2270 (gfc_conv_intrinsic_trim): Likewise.
2271 (gfc_conv_intrinsic_repeat: Likewise.
2272 (gfc_conv_intrinsic_iargc): Likewise.
2274 2007-02-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2277 * scanner.c (gfc_next_char_literal): Add check for end of file after
2278 call to advance_line.
2280 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
2283 * primary.c (match_logical_constant): Return MATCH_ERROR on invalid
2286 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
2288 * misc.c (gfc_typename): Fix potential buffer overflow.
2290 2007-02-13 Paul Thomas <pault@gcc.gnu.org>
2293 * module.c (read_module): Set pointer_info to referenced if the
2294 symbol has no namespace.
2296 2007-02-12 Nick Clifton <nickc@redhat.com>
2298 * lang.opt: Add Warning attribute to warning options.
2300 2007-02-11 Daniel Franke <franke.daniel@gmail.com>
2302 * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
2303 (SLEEP): Added section and documentation.
2305 2007-02-11 Tobias Schlüter <tobi@gcc.gnu.org>
2308 * decl.c (add_init_expr_to_sym): Remove ENUM specific code.
2309 (variable_decl): Likewise. Rewrap comment.
2310 (match_attr_spec): Remove ENUM specific code.
2311 (gfc_match_enum): Fix typo in error message.
2312 (enumerator_decl): New function.
2313 (gfc_match_enumerator_def): Use enumerator_decl instead of
2314 variable_decl. Adapt code accordingly.
2316 2007-02-11 Paul Thomas <pault@gcc.gnu.org>
2319 * module.c (find_symtree_for_symbol): New function to return
2320 a symtree that is not a "unique symtree" given a symbol.
2321 (read_module): Do not automatically set pointer_info to
2322 referenced because this inhibits the generation of a unique
2323 symtree. Recycle the existing symtree if possible by calling
2324 find_symtree_for_symbol.
2327 * decl.c (add_init_expr_to_sym): Make new charlen for an array
2328 constructor initializer.
2330 2007-02-10 Richard Henderson <rth@redhat.com>, Jakub Jelinek <jakub@redhat.com>
2332 * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
2333 and __emutls_register_common.
2334 * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
2335 * trans-common.c (build_common_decl): Don't check have_tls.
2336 * trans-decl.c (gfc_finish_var_decl): Likewise.
2337 * types.def (BT_WORD, BT_FN_PTR_PTR): New.
2338 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
2340 2007-02-09 Tobias Burnus <burnus@net-b.de>
2343 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc,
2344 gfc_conv_intrinsic_minmaxval): Use HUGE-1 for most negative integer.
2346 2007-02-09 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2349 * trans-array.c (gfc_trans_create_temp_array): Remove use of the
2350 function argument. Always generate code for negative extent.
2352 * trans-array.h (gfc_trans_create_temp_array): Change prototype.
2353 * trans-expr.c (gfc_conv_function_call): Remove use of last argument
2354 of gfc_trans_create_temp_array.
2355 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Likewise.
2356 * trans-stmt.c (gfc_conv_elemental_dependencies): Likewise.
2358 2007-02-08 Roger Sayle <roger@eyesopen.com>
2360 * trans-stmt.c (gfc_trans_forall_1): Optimize the cases where the
2361 mask expression is a compile-time constant (".true." or ".false.").
2363 2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2366 * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Evaluate
2367 arguments only once. Generate check that NCOPIES argument is not
2370 2007-02-04 Steven G. Kargl <kargl@gcc.gnu.org>
2373 * fortran/invoke.texi: Update documentation.
2374 * fortran/options.c (gfc_post_options): Deal with tabs with -std=f2003
2377 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
2379 * trans-array.c: Fix a comment typo.
2381 2007-02-03 Paul Thomas <pault@gcc.gnu.org>
2384 * array.c (match_array_element_spec): If the length of an array is
2385 negative, adjust the upper limit to make it zero length.
2388 * resolve.c (pure_function, resolve_function): Initialize name to
2389 null to clear up build warnings.
2390 (resolve_fl_variable): Look at components explicitly to check for
2391 default initializer, rather than using gfc_default_initializer.
2393 2007-02-02 Steven G. Kargl <kargl@gcc.gnu.org>
2396 * resolve.c (resolve_generic_f): Check for non-NULL sym.
2398 2007-02-02 Roger Sayle <roger@eyesopen.com>
2400 * trans.c (gfc_build_array_ref): Use STRIP_TYPE_NOPS to eliminate
2401 NON_LVALUE_EXPR nodes and useless type conversions.
2403 2007-02-02 Paul Thomas <pault@gcc.gnu.org>
2407 * trans-expr.c (gfc_conv_aliased_arg): Remove static attribute
2408 from function and make sure that substring lengths are
2410 (is_aliased_array): Remove static attribute.
2411 * trans.c : Add prototypes for gfc_conv_aliased_arg and
2413 * trans-io.c (set_internal_unit): Add the post block to the
2414 arguments of the function. Use is_aliased_array to check if
2415 temporary is needed; if so call gfc_conv_aliased_arg.
2416 (build_dt): Pass the post block to set_internal_unit and
2417 add to the block after all io activiy is done.
2419 2007-02-01 Roger Sayle <roger@eyesopen.com>
2421 * trans-array.c (gfc_conv_expr_descriptor): We don't need to use
2422 a temporary array to pass a constant non-character array constructor.
2423 Generalize the descriptor generation code to handle scalarizer
2424 "info" without an array reference.
2426 2007-02-01 Roger Sayle <roger@eyesopen.com>
2428 * dependency.c (gfc_check_dependency) <EXPR_ARRAY>: Implement
2429 dependency checking for array constructors.
2431 2007-02-01 Roger Sayle <roger@eyesopen.com>
2433 * trans-stmt.c (compute_overall_iter_number): Document function
2434 arguments. Generalize "unconditional forall nest with constant
2435 bounds" optimization to eliminate unconditional inner loops with
2438 2007-01-31 Tobias Burnus <burnus@net-b.de>
2441 * interface.c (compare_actual_formal): Check conformance between
2442 actual and VOLATILE dummy arguments.
2443 * symbol.c (gfc_add_volatile): Allow setting of VOLATILE
2444 multiple times in different scopes.
2445 * decl.c (gfc_match_volatile): Search symbol in host association.
2447 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
2449 * simplify.c, trans-array.c: Fix comment typos.
2451 2007-01-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2453 * invoke.texi (Code Gen Options): Fix abbreviation typo.
2454 * intrinsic.texi (ACCESS, LSHIFT, RSHIFT): Fix typos.
2456 2007-01-30 Steve Ellcey <sje@cup.hp.com>
2459 * trans-types.c (gfc_get_function_type): Do not add void_type_node
2461 * trans-decl.c (create_function_arglist): Change assert.
2463 2007-01-29 Paul Thomas <pault@gcc.gnu.org>
2466 * module.c (read_module): If a symbol is excluded by an ONLY
2467 clause, check to see if there is a symtree already loaded. If
2468 so, attach the symtree to the pointer_info.
2470 2007-01-28 Thomas Koenig <Thomas.Koenig@online.de>
2473 * gfortran.h: Remove gfc_simplify_init_1.
2474 * arith.h: Remove third argument from gfc_compare_string.
2475 * arith.c (gfc_compare_expression): Remove third argument
2476 from call to gfc_compare_string.
2477 (gfc_compare_string): Remove third argument xcoll_table.
2478 Remove use of xcoll_table.
2479 * misc.c (gfc_init_1): Remove call to gfc_simplify_init_1.
2480 * simplify.c (ascii_table): Remove.
2481 (xascii_table): Likewise.
2482 (gfc_simplify_achar): ICE if extract_int fails. Remove use of
2483 ascii_table. Warn if -Wsurprising and value < 0 or > 127.
2484 (gfc_simplify_char): ICE if extract_int fails. Error if
2485 value < 0 or value > 255.
2486 (gfc_simplify_iachar): Remove use of xascii_table.
2487 Char values outside of 0..255 are an ICE.
2488 (gfc_simplify_lge): Remove use of xascii_table.
2489 (gfc_simplify_lgt): Likewise.
2490 (gfc_simplify_lle): Likewise.
2491 (gfc_simplify_llt): Likewise.
2492 (invert_table): Remove.
2493 (gfc_simplify_init_1): Remove.
2495 2007-01-27 Roger Sayle <roger@eyesopen.com>
2497 * trans-stmt.c (forall_info): Replace the next_nest and outer
2498 fields that previously implemented a doubly-linked list with a
2499 single prev_nest field (singly-linked list).
2500 (gfc_trans_nested_forall_loop): The nested_forall_info argument
2501 now denotes the innermost FORALL in the loop nest.
2502 (compute_overall_iter_number): Use prev_nest instead of next_nest.
2503 (gfc_trans_forall_1): Link/cons the new "info" to the head of the
2504 nested_forall_info linked list. Free the current "info" when done.
2506 2007-01-27 Paul Thomas <pault@gcc.gnu.org>
2509 * trans-expr.c (gfc_conv_operator_assign): New function.
2510 * trans.h : Add prototype for gfc_conv_operator_assign.
2511 * trans-stmt.c (gfc_trans_where_assign): Add a gfc_symbol for
2512 a potential operator assignment subroutine. If it is non-NULL
2513 call gfc_conv_operator_assign instead of the first assignment.
2514 ( gfc_trans_where_2): In the case of an operator assignment,
2515 extract the argument expressions from the code for the
2516 subroutine call and pass the symbol to gfc_trans_where_assign.
2517 resolve.c (resolve_where, gfc_resolve_where_code_in_forall,
2518 gfc_resolve_forall_body): Resolve the subroutine call for
2519 operator assignments.
2521 2007-01-26 Steven Bosscher <stevenb.gcc@gmail.com>
2522 Steven G. Kargl <kargl@gcc.gnu.org>
2525 * fortran/io.c (next_char): Deal with backslash escaped characters.
2526 Issue warnings in non -std=gnu cases.
2527 * fortran/primary.c (next_string_char): Issue warnings in non
2529 2007-01-26 Tobias Burnus <burnus@net-b.de>
2531 * lang-specs.h: Add support for .f03 and .F03 extensions.
2532 * gfortran.texi: Document .f03 extension.
2533 * options.c (form_from_filename): Recognize .f03.
2535 2007-01-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2538 * lang.opt (Wall): Remove RejectNegative.
2539 * options.c (gfc_handle_option): Wall can be disabled.
2540 (set_Wall): Add a parameter for disabling Wall.
2542 2007-01-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2545 * scanner.c (load_line): Remove check fot ctrl-z and don't gobble.
2547 2007-01-23 Paul Thomas <pault@gcc.gnu.org>
2550 * match.c (gfc_match_namelist): Add check for assumed size character
2551 in namelist and provide error if found.
2553 2007-01-21 Brooks Moses <brooks.moses@codesourcery.com>
2555 * intrinsic.texi (ACHAR): Added cross-references.
2556 (CHAR): Put cross-references in alphabetical order.
2557 (IACHAR): Added cross-references.
2558 (ICHAR): Added cross-references.
2560 2007-01-20 Brooks Moses <brooks.moses@codesourcery.com>
2562 * intrinsic.texi: Edited all "Syntax" examples to a consistent form.
2563 (MAXVAL): Corrected description of result characteristics.
2565 (UMASK): Added documentation.
2567 2007-01-20 Steven G. Kargl <kargl@gcc.gnu.org>
2569 * openmp.c, matchexp.c, module.c, scanner.c, resolve.c, st.c,
2570 parse.c, primary.c, options.c, misc.c, simplify.c: Next installment
2571 in the massive whitespace patch.
2573 2007-01-20 Roger Sayle <roger@eyesopen.com>
2575 * module.c (mio_array_ref): The dimen_type fields of an array ref
2576 are an enumerated type and can't be read/written directly with a
2577 call to mio_integer. Instead loop over and cast each element.
2579 2007-01-20 Roger Sayle <roger@eyesopen.com>
2581 * dependency.c (gfc_full_array_ref_p): Check that ref->next is NULL,
2582 i.e. that the ARRAY_REF doesn't mention components.
2583 * trans-array.c (gfc_constant_array_constructor_p): Export external
2584 function renamed from constant_array_constructor_p.
2585 (gfc_build_constant_array_constructor): Export.
2586 (gfc_trans_array_constructor): Update call to the renamed function
2587 constant_array_constructor_p.
2588 * trans-array.h (gfc_constant_array_constructor_p): Prototype here.
2589 (gfc_build_constant_array_constructor): Likewise.
2590 * trans-expr.c (gfc_build_memcpy_call): New helper function split
2591 out from gfc_trans_array_copy.
2592 (gfc_trans_array_copy): Use gfc_build_memcpy_call.
2593 (gfc_trans_array_constructor_copy): New function to optimize
2594 assigning an entire array from a constant array constructor.
2595 (gfc_trans_assignment): Call gfc_trans_array_constructor_copy
2598 2007-01-20 Roger Sayle <roger@eyesopen.com>
2600 * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
2601 implementation for the SIGN intrinsic with integral operands.
2602 (gfc_conv_intrinsic_minmax): Fix whitespace.
2604 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2606 * gfortran.h (gfc_options_t): Add flag_allow_leading_underscore.
2607 * lang.opt: Add -fallow-leading-underscore.
2608 * match.c (gfc_match_name): Allow leading underscore in symbol
2609 name if -fallow-leading-underscore is used.
2610 * symbol.c (gfc_get_default_type): Add special case for symbol
2611 names beginning with an underscore.
2612 * trans-decl.c (gfc_get_extern_function_decl,
2613 gfc_build_intrinsic_function_decls): Add _gfortran prefix to
2614 library symbols selected_int_kind, selected_real_kind and
2616 * options.c (gfc_init_options, gfc_handle_option): Handle the
2617 new -fallow-leading-underscore option.
2619 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2622 * options.c (gfc_handle_module_path_options): Path used in -J
2623 option is now added to the module search path.
2625 2007-01-20 Richard Guenther <rguenther@suse.de>
2628 * f95-lang.c (gfc_init_builtin_functions): Provide cbrt and
2629 cexpi builtins if we have TARGET_C99_FUNCTIONS. Provide
2630 sincos builtins if the target has sincos.
2632 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
2634 * intrinsic.texi (MATMUL): Corrected a typo.
2635 (MAX): Separated @var arguments.
2636 (MIN): Separated @var arguments.
2638 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
2640 * intrinsic.texi: general whitespace cleanup.
2641 (menu): Added TIME8, removed UNMASK.
2642 (AINT): Clarified argument requirement.
2643 (ANINT): Clarified argument requirement.
2644 (CEILING): Clarified argument requirement.
2645 (CHAR): Clarified argument requirement.
2646 (CMPLX): Clarified argument requirement.
2647 (DCMPLX): Clarified argument requirement.
2648 (FGET): Line rewrapping.
2649 (FLOOR): Clarified argument requirement.
2650 (GMTIME): Added documentation.
2651 (IAND): Added cross-reference.
2652 (IBCLR): Added cross-reference.
2653 (IBSET): Added cross-reference.
2654 (IEOR): Added cross-reference.
2655 (INT): Collapsed examples, clarified argument requirement.
2656 (IOR): Added cross-references.
2657 (LEN_TRIM): Corrected result kind.
2658 (LINK): Added cross-reference.
2659 (LLT): Removed "documentation pending".
2660 (LOGICAL): Added documentation.
2661 (LSHIFT): Added documentation.
2662 (LTIME): Added documentation.
2663 (MATMUL): Added documentation.
2664 (MAX): Added documentation.
2665 (MAXLOC): Added documentation.
2666 (MAXVAL): Added documentation.
2667 (MERGE): Added documentation.
2668 (MIN): Added documentation.
2669 (MINLOC): Added documentation.
2670 (MINVAL): Added documentation.
2671 (MVBITS): Moved to correct place, added documentation.
2672 (NOT): Added documentation.
2673 (PERROR): Added documentation.
2674 (RAN): Moved to correct place, added documentation.
2675 (REAL): Clarified argument requirement.
2676 (RENAME): Added documentation.
2677 (RSHIFT): Clarified argument requirement.
2678 (SIGN): Corrected table specification.
2679 (SYMLNK): Added documentation.
2680 (SYSTEM): Added documentation.
2681 (TIME): Added documentation.
2682 (TIME8): Added section and documentation.
2683 (UNMASK): Removed erroneous section.
2685 2007-01-18 H.J. Lu <hongjiu.lu@intel.com>
2687 * trans-stmt.c (compute_overall_iter_number): Fix a typo.
2689 2007-01-18 Roger Sayle <roger@eyesopen.com>
2691 * trans-expr.c (copyable_array_p): Consider user derived types without
2692 allocatable components to be copyable.
2694 2007-01-18 Roger Sayle <roger@eyesopen.com>
2696 * trans-stmt.c (compute_overall_iter_number): Enhance to precompute
2697 the number of interations in unconditional FORALL nests with constant
2700 2007-01-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2701 Tobias Burnus <burnus@net-b.de>
2704 * gfortran.h (gfc_option_t): Add flag_dump_core.
2705 * lang.opt: Add -fdump-core option.
2706 * invoke.texi: Document the new options.
2707 * trans-decl.c (gfc_build_builtin_function_decls): Add new
2708 options to the call to set_std.
2709 * options.c (gfc_init_options, gfc_handle_option): Set the
2712 2007-01-17 Paul Thomas <pault@gcc.gnu.org>
2715 * module.c (load_generic_interfaces): Make the marking of the
2716 symbol as ambiguous conditional on the module names being
2718 (write_generic): Ensure that the generic interface has a
2719 non-NULL module field.
2721 2007-01-16 Roger Sayle <roger@eyesopen.com>
2724 * trans-stmt.c (forall_info): Remove pmask field.
2725 (gfc_trans_forall_loop): Remove NVAR argument, instead assume that
2726 NVAR covers all the interation variables in the current forall_info.
2727 Add an extra OUTER parameter, which specified the loop header in
2728 which to place mask index initializations.
2729 (gfc_trans_nested_forall_loop): Remove NEST_FLAG argument.
2730 Change the semantics of MASK_FLAG to only control the mask in the
2732 (compute_overall_iter_number): Optimize the trivial case of a
2733 top-level loop having a constant number of iterations. Update
2734 call to gfc_trans_nested_forall_loop. Calculate the number of
2735 times the inner loop will be executed, not to size of the
2737 (allocate_temp_for_forall_nest_1): Reuse SIZE as BYTESIZE when
2738 sizeof(type) == 1. Tidy up.
2739 (gfc_trans_assign_need_temp): Remove NEST_FLAG argument from calls
2740 to gfc_trans_nested_forall_loop.
2741 (gfc_trans_pointer_assign_need_temp): Likewise.
2742 (gfc_trans_forall_1): Remove unused BYTESIZE, TMPVAR, SIZEVAR and
2743 LENVAR local variables. Split mask allocation into a separate
2744 hunk/pass from mask population. Use allocate_temp_for_forall_nest
2745 to allocate the FORALL mask with the correct size. Update calls
2746 to gfc_trans_nested_forall_loop.
2747 (gfc_evaluate_where_mask): Update call to
2748 gfc_trans_nested_forall_loop.
2749 (gfc_trans_where_2): Likewise.
2751 2007-01-15 Paul Thomas <pault@gcc.gnu.org>
2754 * trans-stmt.c (gfc_trans_call): If it does not have one, get
2755 a backend_decl for an alternate return.
2758 * resolve.c (pure_function): Statement functions are pure. Note
2759 that this will have to recurse to comply fully with F95.
2762 * resolve.c (resolve_function): Only a reference to the final
2763 dimension of an assumed size array is an error in an inquiry
2767 * resolve.c (resolve_function): Make sure that the function
2768 expression has a type.
2770 2007-01-14 Paul Thomas <pault@gcc.gnu.org>
2773 * trans-decl.c (gfc_sym_mangled_function_id): Module, external
2774 symbols must not have the module name prepended.
2776 2007-01-11 Thomas Koenig <Thomas.Koenig@online.de>
2779 * iresolve.c (gfc_resolve_maxloc): If the rank
2780 of the return array is nonzero and we process an
2781 integer array smaller than default kind, coerce
2782 the array to default integer.
2783 * iresolve.c (gfc_resolve_minloc): Likewise.
2785 2007-01-11 Brooks Moses <brooks.moses@codesourcery.com>
2787 * simplify.c: Update copyright to 2007.
2790 2007-01-11 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2793 * scanner.c (gfc_release_include_path): Free gfc_option.module_dir
2796 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
2798 * simplify.c (gfc_simplify_ibclr): Fix POS comparison.
2799 (gfc_simplify_ibset): Same.
2801 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
2805 * simplify.c (convert_mpz_to_unsigned): New function.
2806 (convert_mpz_to_signed): New function, largely based on
2808 (twos_complement): Removed.
2809 (gfc_simplify_ibclr): Add conversions to and from an
2810 unsigned representation before bit-twiddling.
2811 (gfc_simplify_ibset): Same.
2812 (gfc_simplify_ishftc): Add checks for overly large
2813 constant arguments, only check the third argument if
2814 it's present, carry over high bits into the result as
2815 appropriate, and perform the final conversion back to
2816 a signed representation using the correct sign bit.
2817 (gfc_simplify_not): Removed unnecessary masking.
2819 2007-01-09 Paul Thomas <pault@gcc.gnu.org>
2822 * resolve.c (resolve_code): Use the code->expr character length
2823 directly to set length of llen.
2825 2007-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2828 * lang.opt: Add Wcharacter_truncation option.
2829 * options.c (gfc_init_options): Initialize
2830 gfc_option.warn_character_truncation to zero.
2831 (gfc_handle_option): Add case for OPT_Wcharacter_truncation.
2833 2007-01-08 Steven G. Kargl <kargl@gcc.gnu.org>
2835 * interface.c, intrinsic.c, gfortranspec.c, io.c, f95-lang.c,
2836 iresolve.c, match.c: Update Copyright years. Whitespace.
2838 2007-01-08 Richard Guenther <rguenther@suse.de>
2840 * trans-io.c (transfer_array_desc): Use build_int_cst instead
2843 2007-01-08 Roger Sayle <roger@eyesopen.com>
2845 * trans-array.c (constant_array_constructor_p): New function to
2846 determine whether an array constructor consists only of constant
2847 elements, and if so return it's size.
2848 (gfc_build_constant_array_constructor): Construct a statically
2849 initialized gfortran array for a given EXPR_ARRAY.
2850 (gfc_trans_constant_array_constructor): Efficiently scalarize
2851 a constant array constructor.
2852 (gfc_trans_array_constructor): Tidy up use of CONST_STRING.
2853 Special case scalarization of constant array constructors, all of
2854 whose elements are specified, using constant_array_constructor_p
2855 and gfc_trans_constant_array_constructor.
2856 (gfc_conv_scalarized_array_ref): Check whetger info->offset is zero
2857 before adding it to index, to avoid creating a NON_LVALUE_EXPR.
2859 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
2861 gfortran.texi: Fix typos.
2863 2007-01-07 Steven G. Kargl <kargl@gcc.gnu.org>
2865 * decl.c, dump-parse-tree.c, error.c, data.c, expr.c, dependency.c,
2866 convert.c: Update Copyright dates. Fix whitespace.
2868 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
2870 * data.c (gfc_assign_data_value): Fix whitespace.
2872 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
2874 * trans-array.c (gfc_trans_create_temp_array, gfc_array_init_size):
2875 Commentary typo fix.
2877 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
2880 * match.c (gfc_match_name): Print diagnostics for invalid
2883 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
2885 * array.c: Fix whitespace in comment table.
2887 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
2889 * array.c, bbt.c, check.c: Update copyright years. Whitespace.
2891 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
2893 * arith.c: Update copyright years. Whitespace.
2895 2007-01-05 Roger Sayle <roger@eyesopen.com>
2897 * trans-expr.c (gfc_trans_assignment_1): New subroutine to scalarize
2898 array assignments split out from gfc_trans_assignment.
2899 (gfc_trans_array_copy): New function to implement array to array
2900 copies via calls to __builtin_memcpy.
2901 (copyable_array_p): New helper function to identify an array of
2902 simple/POD types, that may be copied/assigned using memcpy.
2903 (gfc_trans_assignment): Use gfc_trans_array_copy to handle simple
2904 whole array assignments considered suitable by copyable_array_p.
2905 Invoke gfc_trans_assignment_1 to perform the fallback scalarization.
2907 2007-01-05 Roger Sayle <roger@eyesopen.com>
2909 * trans-array.c (gfc_trans_array_constructor_value): Make the
2910 static const "data" array as TREE_READONLY.
2911 * trans-stmt.c (gfc_trans_character_select): Likewise.
2913 2007-01-05 Roger Sayle <roger@eyesopen.com>
2915 * trans-array.c (gfc_conv_loop_setup): Test whether the loop
2916 stride is one, to avoid fold_build2 introducing a useless
2917 NON_LVALUE_EXPR node.
2919 2007-01-05 Tobias Burnus <burnus@net-b.de>
2921 * symbol.c (check_conflict): Fix error message.
2923 2007-01-05 Paul Thomas <pault@gcc.gnu.org>
2926 * decl.c (gfc_in_match_data, gfc_set_in_match_data): New
2927 functions to signal that a DATA statement is being matched.
2928 (gfc_match_data): Call gfc_set_in_match_data on entry and on
2930 * gfortran.h : Add prototypes for above.
2931 * expr.c (check_init_expr): Avoid check on parameter or
2932 variable if gfc_in_match_data is true.
2933 (gfc_match_init_expr): Do not call error on non-reduction of
2934 expression if gfc_in_match_data is true.
2938 * decl.c (gfc_set_constant_character_len): Add boolean arg to
2939 flag array constructor resolution. Warn if string is being
2940 truncated. Standard dependent error if string is padded. Set
2941 new arg to false for all three calls to
2942 gfc_set_constant_character_len.
2943 * match.h : Add boolean arg to prototype for
2944 gfc_set_constant_character_len.
2945 * gfortran.h : Add warn_character_truncation to gfc_options.
2946 * options.c (set_Wall): Set warn_character_truncation if -Wall
2948 * resolve.c (resolve_code): Warn if rhs string in character
2949 assignment has to be truncated.
2950 * array.c (gfc_resolve_character_array_constructor): Set new
2951 argument to true for call to gfc_set_constant_character_len.
2953 2007-01-05 Tobias Burnus <burnus@net-b.de>
2956 * interface.c (compare_parameter_intent): New function.
2957 (check_intents): Support pointer intents.
2958 * symbol.c (check_conflict): Support pointer intents,
2959 better conflict_std message.
2960 * expr.c (gfc_check_assign,gfc_check_pointer_assign):
2961 Support pointer intents.
2962 * resolve.c (resolve_deallocate_expr,resolve_allocate_expr):
2963 Support pointer intents.
2965 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
2968 * check.c (gfc_check_kill_sub): Add checks for non-scalar
2971 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
2973 * intrinsic.texi: Minor cleanup, reflowing overlong
2974 paragraphs, and correcting whitespace.
2976 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
2978 * intrinsic.texi (LBOUND): Add documentation.
2979 (LGE): Add documentation.
2980 (LGT): Add documentation.
2981 (LINK): Add documentation.
2982 (LLE): Add documentation.
2983 (LLT): Add documentation.
2984 (LNBLNK): Add documentation.
2985 (UBOUND): Add documentation.
2986 (UNLINK): Add documentation.
2988 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
2990 * intrinsic.texi (IAND): Clarify argument specifications.
2991 (IBCLR): Add documentation.
2992 (IBITS): Add documentation.
2993 (IBSET): Add documentation.
2994 (IEOR): Add documentation.
2995 (IERRNO): Add documentation.
2996 (INDEX): Add documentation.
2997 (IOR): Add documentation.
2998 (ISHFT): Add documentation.
2999 (ISHFTC): Add documentation.
3000 (KILL): Add documentation.
3001 (LEN_TRIM): Add documentation.
3003 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
3006 * interface.c (compare_actual_formal): check for
3007 alternate returns when iterating over non-present
3010 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
3012 * invoke.texi: Update manpage copyright to include 2007.
3014 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
3016 * gfortran.texi: Update copyright to include 2007.
3017 * intrinsic.texi: Update copyright to include 2007.
3018 * invoke.texi: Update copyright to include 2007.
3020 2007-01-02 Tobias Burnus <burnus@net-b.de>
3021 Jakub Jelinek <jakub@redhat.com>
3024 * scanner.c (open_included_file): Revert patch.
3025 (gfc_open_included_file): Support absolute pathnames.
3026 (gfc_open_intrinsic_module): Support absolute pathnames.
3028 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
3030 * gfortran.texi (GNU Fortran and GCC): Rewrite
3032 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
3034 * gfortran.texi (Introduction): Lower "Part I:
3035 Introduction" to a chapter, renumber Parts II and III to
3037 * intrinsic.texi (Introduction): Rename to "Introduction
3038 to Intrinsics" to avoid conflict with the new chapter.
3040 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
3042 * intrinsic.texi (Introduction): Rewrite first paragraph.
3044 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
3046 * invoke.texi (OpenMP): Added index entry.
3047 * gfortran.texi (title page): Removed erroneous '*'.
3049 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
3051 * gfortran.texi (GFORTRAN_DEFAULT_RECL): Added units
3053 (Extensions): Miscellaneous minor rewriting and copyediting.
3054 (BOZ-literal constants): Renamed from Hexadecimal constants.
3055 (Hollerith constants support): Added explanation and
3056 suggestions for standard-conforming modern equivalents.
3058 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
3060 * intrinsic.texi: Improvements to index entries; change
3061 @findex entries to @cindex entries.
3062 * invoke.texi: Standardize and improve index entries.
3063 * gfortran.texi: Fix @code in one index entry.
3065 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
3067 * invoke.texi: Change @code-type macros to appropriate
3068 variants (@command, @option, etc.)
3069 * gfortran.texi: Same.
3071 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
3073 * intrinsic.texi: Various minor cleanups.
3075 2007-01-02 Steven G. Kargl <kargls@comcast.net>
3077 * trans-intrinsic.c (gfc_conv_intrinsic_ibits): Fix call to
3080 2007-01-02 Tobias Burnus <burnus@net-b.de>
3083 * scanner.c (open_included_file): Support full-path filenames.
3085 2007-01-02 Paul Thomas <pault@gcc.gnu.org>
3088 * interface.c (check_sym_interfaces): Remove call to
3089 resolve_global_procedure.
3090 gfortran.h : Remove prototype for resolve_global_procedure.
3091 resolve.c (resolve_global_procedure): Add static attribute
3092 to function declaration.
3094 2007-01-01 Steven G. Kargl <kargls@comcast.net>
3096 * ChangeLog: Copy to ...
3097 * ChangeLog-2006: here.