1 2007-05-31 Paul Thomas <pault@gcc.gnu.org>
4 * module.c (mio_symtree_ref): If an equivalence group member
5 is not used, give it a hidden symbol and set the pointer_info.
6 (load_equiv): Only free the equivalence if none of the members
9 2007-05-29 Daniel Franke <franke.daniel@gmail.com>
11 * gfortran.h: Renamed 'enum gfc_generic_isym_id' to 'enum gfc_isym_id',
12 added missing GFC_ISYM_* enumerators, ordered alphabetically.
13 (struct gfc_intrinsic_sym): Renamed 'generic_id' to 'id'.
14 (gfc_find_subroutine): New prototype.
15 * intrinsic.c (add_sym, add_sym_*): Added argument 'id' and changed all callers.
16 (find_subroutine): Renamed to 'gfc_find_subroutine', removed static.
17 * dependency.c: Changed usage of isym->generic_id to isym->id.
19 * resolve.c: Likewise.
20 * trans-array.c: Likewise.
21 * trans-expr.c: Likewise.
22 * trans-intrinsic.c: Likewise.
23 * trans-openmp.c: Likewise.
25 2007-05-28 Tobias Schlüter <tobi@gcc.gnu.org>
27 * gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_SIZEOF.
28 * intrinsic.c (add_functions): Add stuff for SIZEOF intrinsic.
29 * intrinsic.h (gfc_check_sizeof): Add prototype of ...
30 * check.c (gfc_check_sizeof): .. new function.
31 * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): New function.
32 (gfc_conv_intrinsic_strcmp): Whitespace fix.
33 (gfc_conv_intrinsic_array_transfer): Remove double initialization,
34 use fold_build. where appropriate.
35 (gfc_conv_intrinsic_function): Add case for SIZEOF.
36 * intrinsic.texi: Add documentation for SIZEOF.
38 2007-05-28 Brooks Moses <brooks.moses@codesourcery.com>
40 * trans-array.c (gfc_conv_expr_descriptor): Edit comment.
42 2007-05-28 Brooks Moses <brooks.moses@codesourcery.com>
45 * target-memory.c (gfc_target_expr_size): Add handling
46 for size of BT_HOLLERITH variables.
47 * check.c (gfc_check_transfer): Reject BT_HOLLERITH
48 variables in MOLD argument of TRANSFER.
50 2007-05-28 Brooks Moses <brooks.moses@codesourcery.com>
52 * gfortran.h (gfc_expr): Remove from_H, add "representation"
54 * primary.c (match_hollerith_constant): Store the representation
55 of the Hollerith in representation, not in value.character.
56 * arith.c: Add dependency on target-memory.h.
57 (eval_intrinsic): Remove check for from_H.
58 (hollerith2representation): New function.
59 (gfc_hollerith2int): Determine value of the new constant.
60 (gfc_hollerith2real): Likewise.
61 (gfc_hollerith2complex): Likewise.
62 (gfc_hollerith2logical): Likewise.
63 (gfc_hollerith2character): Point both representation.string and
64 value.character.string at the value string.
65 * data.c (create_character_initializer): For BT_HOLLERITH
66 rvalues, get the value from the representation rather than
68 * expr.c (free_expr0): Update handling of BT_HOLLERITH values
69 and values with representation.string.
70 (gfc_copy_expr): Likewise.
71 * intrinsic.c (do_simplify): Remove special treatement of
72 variables resulting from Hollerith constants.
73 * dump-parse-trees.c (gfc_show_expr): Update handling of
75 * trans-const.c (gfc_conv_constant_to_tree): Replace from_H
76 check with check for representation.string; get Hollerith
77 representation from representation.string, not value.character.
78 * trans-expr.c (is_zero_initializer_p): Replace from_H check
79 with check for representation.string.
80 * trans-stmt.c (gfc_trans_integer_select): Use
81 gfc_conv_mpz_to_tree for case values, so as to avoid picking up
82 the memory representation if the case is given by a transfer
84 * target-memory.c (gfc_target_encode_expr): Use the known memory
85 representation rather than the value, if it exists.
86 (gfc_target_interpret_expr): Store the memory representation of
87 the interpreted expression as well as its value.
88 (interpret_integer): Move to gfc_interpret_integer, make
90 (interpret_float): Move to gfc_interpret_float, make non-static.
91 (interpret_complex): Move to gfc_interpret_complex, make
93 (interpret_logical): Move to gfc_interpret_logical, make
95 (interpret_character): Move to gfc_interpret_character, make
97 (interpret_derived): Move to gfc_interpret_derived, make
99 * target-memory.h: Add prototypes for newly-exported
100 gfc_interpret_* functions.
102 2007-05-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
105 * parse.c (next_statement): Warn for truncated lines if source is free
108 2007-05-27 Paul Thomas <pault@gcc.gnu.org>
109 Tobias Burnus <burnus@net-b.de>
112 * symbol.c (gfc_check_function_type): Copy dimensions of
114 * resolve.c (resolve_contained_fntype): Improve symbol output in
117 2007-05-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
120 * io.c (check_format): Add warning for H specifier in format.
122 2007-05-26 Tobias Burnus <burnus@net-b.de>
124 * gfortran.texi: Document the GFORTRAN_ERROR_DUMPCORE and
125 GFORTRAN_ERROR_BACKTRACE environment variables.
127 2007-05-26 Paul Thomas <pault@gcc.gnu.org>
130 * trans.h : Add no_function_call bitfield to gfc_se structure.
131 Add stmtblock_t argument to prototype of get_array_ctor_strlen.
132 * trans-array.c (get_array_ctor_all_strlen): New function.
133 (get_array_ctor_strlen): Add new stmtblock_t argument and call
134 new function for character elements that are not constants,
136 (gfc_conv_array_parameter): Call get_array_ctor_strlen to get
138 * trans-intrinsic (gfc_conv_intrinsic_len): Add new argument
139 to call of get_array_ctor_strlen.
141 2007-05-25 Kazu Hirata <kazu@codesourcery.com>
143 * intrinsic.texi: Fix typos.
145 2007-05-25 Paul Thomas <pault@gcc.gnu.org>
148 * trans-expr.c (gfc_apply_interface_mapping_to_expr): Change
149 order in logic under EXPR_FUNCTION to handle functions with
152 2007-05-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
155 * array.c (spec_dimen_size): Test for correct BT_INTEGER type.
157 2007-05-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
160 * trans-expr.c (gfc_trans_zero_assign): Convert the result of
161 TYPE_SIZE_UNIT into a signed type.
162 (gfc_trans_array_copy): Likewise.
163 (gfc_trans_array_constructor_copy): Likewise.
164 * trans-array.c (gfc_trans_create_temp_array): Likewise.
165 (gfc_grow_array): Likewise.
166 (gfc_array_init_size): Likewise.
167 (gfc_duplicate_allocatable): Likewise.
168 * trans-stmt.c (allocate_temp_for_forall_nest_1): Likewise.
170 2007-05-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
173 * resolve.c (resolve_function): Don't call resolve_global_procedure if
174 there is no name. Delete duplicated statement in ELSE clause.
176 2007-05-22 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
179 * trans-array.c (gfc_trans_array_bound_check): Take extra argument to
180 indicate whether we should check the upper bound in that dimension.
181 (gfc_conv_array_index_offset): Check only the lower bound of the
182 last dimension for assumed-size arrays.
183 (gfc_conv_array_ref): Likewise.
184 (gfc_conv_ss_startstride): Likewise.
186 2007-05-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
187 Daniel Franke <franke.daniel@gmail.com>
190 * resolve.c (resolve_actual_arglist): Resolve actual argument after
191 being identified as variable.
193 2007-05-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
196 * trans-stmt.c (gfc_trans_do): Fix the value of loop variable
199 2007-05-21 H.J. Lu <hongjiu.lu@intel.com>
201 * trans-stmt.c (gfc_trans_do): Fix a typo in comment.
203 2007-05-21 Paul Thomas <pault@gcc.gnu.org>
207 * trans-array.c (gfc_conv_expr_descriptor): Obtain the stored
208 offset for non-descriptor, source arrays and correct for stride
209 not equal to one before writing to field of output descriptor.
211 2007-05-20 Daniel Franke <franke.daniel@gmail.com>
214 * check.c (check_rest): Improved argument conformance check and
215 fixed error message generation.
217 2007-05-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
220 * Make-lang.in: Remove use of -Wno-error for expr.o, resolve.o,
221 simplify.o and trans-common.o.
223 2007-05-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
226 * trans-array.c (gfc_trans_auto_array_allocation): Avoid
227 multiplication of mismatched types.
229 2007-05-18 Daniel Franke <franke.daniel@gmail.com>
232 * symbol.c (gfc_add_flavor): Add the NAME to error message if
235 2007-05-15 Daniel Franke <franke.daniel@gmail.com>
240 * intrinsic.c (check_specific): Check elemental intrinsics for
242 (add_functions): Fixed dummy argument names of BESJN and BESYN.
243 Fixed elemental status of MCLOCK and MCLOCK8.
244 * check.c (check_rest): Added check for array conformance.
245 (gfc_check_merge): Removed check for array conformance.
246 (gfc_check_besn): Removed check for scalarity.
247 * intrinsic.texi (CSHIFT, EOSHIFT): Fixed typos.
248 (BESJN, BESYN): Clarified documentation.
250 2007-05-17 Tobias Burnus <burnus@net-b.de>
252 * gfortran.texi (GFORTRAN_CONVERT_UNIT): Improve documentation.
254 2007-05-16 Brooks Moses <brooks.moses@codesourcery.com>
261 * target-memory.c: New file.
262 * target-memory.h: New file.
263 * simplify.c: Add #include "target-memory.h".
264 (gfc_simplify_transfer): Implement constant-
265 folding for TRANSFER intrinsic.
266 * Make-lang.in: Add dependencies on new target-memory.* files.
268 2007-05-15 Paul Brook <paul@codesourcery.com>
270 * trans-types.c (gfc_type_for_size): Handle signed TImode.
272 2007-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
275 * trans.h (gfor_fndecl_internal_malloc, gfor_fndecl_internal_malloc64,
276 gfor_fndecl_internal_free): Remove prototypes.
277 (gfor_fndecl_os_error, gfc_call_free, gfc_call_malloc): Add prototypes.
278 * trans.c (gfc_call_malloc, gfc_call_free): New functions.
279 * f95-lang.c (gfc_init_builtin_functions): Add __builtin_free
280 and __builtin_malloc builtins.
281 * trans-decl.c (gfor_fndecl_internal_malloc,
282 gfor_fndecl_internal_malloc64, gfor_fndecl_internal_free): Remove.
283 (gfor_fndecl_os_error): Add.
284 (gfc_build_builtin_function_decls): Don't create internal_malloc,
285 internal_malloc64 and internal_free library function declaration.
286 Create os_error library call function declaration.
287 * trans-array.c (gfc_trans_allocate_array_storage,
288 gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
289 gfc_conv_array_parameter, gfc_duplicate_allocatable): Use
290 gfc_call_malloc and gfc_call_free instead of building calls to
291 internal_malloc and internal_free.
292 * trans-expr.c (gfc_conv_string_tmp): Likewise.
293 * trans-stmt.c (gfc_do_allocate, gfc_trans_assign_need_temp,
294 gfc_trans_pointer_assign_need_temp, gfc_trans_forall_1,
295 gfc_trans_where_2: Likewise.
296 * trans-intrinsic.c (gfc_conv_intrinsic_ctime,
297 gfc_conv_intrinsic_fdate, gfc_conv_intrinsic_ttynam,
298 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_trim): Likewise.
300 2007-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
303 * trans-expr.c (gfc_conv_substring): Evaluate substring bounds
306 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
308 * f95-lang.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
309 * trans-intrinsic.c (gfc_conv_intrinsic_ishft): Use unsigned_type_for
310 instead of gfc_unsigned_type.
311 * trans-stmt.c (gfc_trans_do): Use unsigned_type_for instead of
313 * trans-types.c (gfc_unsigned_type): Remove.
314 * trans-types.h (gfc_unsigned_type): Remove.
316 2007-05-12 Paul Thomas <pault@gcc.gnu.org>
319 * resolve.c (check_host_association): New function that detects
320 incorrect host association and corrects it.
321 (gfc_resolve_expr): Call the new function for variables and
323 * match.h : Remove prototype for gfc_match_rvalue.
324 * gfortran.h : Add prototype for gfc_match_rvalue.
326 2007-05-11 Paul Thomas <pault@gcc.gnu.org>
329 * trans-expr.c (gfc_conv_function_call): Reduce indirection for
330 direct assignments of recursive array valued functions.
331 * primary.c (gfc_match_rvalue): Correct error for recursive
332 function calls such that directly recursive calls of scalar
333 function without an explicit result are disallowed.
335 2007-05-11 Paul Thomas <pault@gcc.gnu.org>
338 * resolve.c (resolve_fl_namelist): It is not an error if the
339 namelist element is the result variable of the enclosing
340 function. Search for the symbol in current and all parent
341 namespaces for a potential conflict.
342 * symbol.c (check_conflict): Remove the conflict between
343 'in_namelist' and 'FL_PROCEDURE' because the symbol info
344 is not available to exclude function result variables.
345 * trans-io.c (nml_get_addr_expr): Use the fake result decl
346 if the symbol is an implicit result variable.
348 2007-05-11 Paul Thomas <pault@gcc.gnu.org>
351 * decl.c (get_proc_name): If an entry has already been declared
352 as a module procedure, pick up the symbol and the symtree and
353 use them for the entry.
355 2007-05-08 Paul Thomas <pault@gcc.gnu.org>
358 * resolve.c (resolve_symbol): Remove the flagging mechanism from the
359 formal namespace resolution and instead check that the formal
360 namespace is not the current namespace.
362 2007-05-08 Paul Thomas <pault@gcc.gnu.org>
365 * trans-array.c (gfc_conv_array_parameter): Convert full array
366 references to the result of the procedure enclusing the call.
368 2007-05-08 Paul Thomas <pault@gcc.gnu.org>
372 * decl.c (add_init_expr_to_sym): Expand a scalar initializer
373 for a parameter array into an array expression with the right
375 * array.c (spec_dimen_size): Remove static attribute.
376 * gfortran.h : Prototype for spec_dimen_size.
378 2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
381 * trans-stmt.c (gfc_trans_do): Handle large loop counts.
383 2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
386 * simplify.c (gfc_simplify_new_line): NEW_LINE can be simplified
387 even for non constant arguments.
389 2007-05-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
390 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
393 * gfortran.h: Add runtime error codes from libgfortran.h. Define
395 * trans.c (gfc_trans_runtime_check): Update the format of runtime error
396 messages to match library runtime errors. Use call to new library
397 function runtime_error_at().
398 * trans.h: Add prototype for new function gfc_trans_io_runtime_check.
399 Add declaration for library functions runtime_error_at and
401 * trans_io.c (gfc_trans_io_runtime_check): New function.
402 (set_parameter_value): Add error checking for UNIT numbers.
403 (set_parameter_ref): Initialize the users variable to zero.
404 (gfc_trans_open): Move setting of unit number to after setting of common
405 flags so that runtime error trapping can be detected.
406 (gfc_trans_close): Likewise. (build_filepos): Likewise.
407 (gfc_trans_inquire): Likewise. (build_dt): Likewise.
408 * trans-decl.c: Add declarations for runtime_error_at and
409 generate_error. (gfc_build_builtin_function_decls): Build function
410 declarations for runtime_error_at and generate_error.
412 2007-05-06 Paul Thomas <pault@gcc.gnu.org>
415 * resolve.c (resolve_fl_procedure): Resolve constant character
418 2007-05-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
421 * decl.c (match_char_spec): Add check for invalid character lengths.
423 2007-05-04 Brooks Moses <brooks.moses@codesourcery.com>
425 * intrinsic.texi (CMPLX): Document result kind.
426 (COMPLEX): Add documentation.
428 2007-05-04 Daniel Franke <franke.daniel@gmail.com>
431 * intrinsic.c (add_functions): Replaced calls to gfc_check_g77_math1
432 by gfc_check_fn_r to avoid checks for scalarity.
433 * check.c (gfc_check_besn): Removed check for scalarity.
434 (gfc_check_g77_math1): Removed.
435 * intrinsic.h (gfc_check_g77_math1): Removed.
437 2007-05-04 Daniel Franke <franke.daniel@gmail.com>
439 * check.c (gfc_check_fseek_sub): Fixed typo.
441 2007-05-04 Daniel Franke <franke.daniel@gmail.com>
444 * intrinsic.c (add_subroutines): Added FSEEK.
445 * intrinsic.h (gfc_resolve_fseek_sub, gfc_check_fseek_sub): New.
446 * iresolve.c (gfc_resolve_fseek_sub): New.
447 * check.c (gfc_check_fseek_sub): New.
448 * intrinsic.texi (FSEEK): Updated.
450 2007-05-04 Tobias Burnus <burnus@net-b.de>
453 * expr.c (gfc_check_pointer_assign): Check for NULL pointer.
455 2007-05-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
458 * simplify.c (gfc_simplify_len): Only simplify integer lengths.
460 2007-05-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
463 * simplify.c (gfc_simplify_repeat): Don't put function call with
464 side effect in a gcc_assert().
466 2007-05-04 Tobias Burnus <burnus@net-b.de>
469 * interface.c (compare_actual_formal): Check character length.
471 2007-05-01 Thomas Koenig <tkoenig@gcc.gnu.org>
474 * dependency.c (gfc_full_array_ref_p): If the reference is
475 to a single element, check that the array has a single
476 element and that the correct element is referenced.
478 2007-05-01 Daniel Franke <franke.daniel@gmail.com>
480 * intrinsic.c (add_functions): Fixed ELEMENTAL specifications.
481 (add_subroutines): Replaced magic numbers in function calls by
482 ELEMENTAL and NOT_ELEMENTAL respectively.
483 * intrinsic.texi (MVBITS): Changed class to elemental subroutine.
484 (RANDOM_NUMBER): Changed class to subroutine.
485 (HUGE, TINY): Changed class to inquiry function.
487 2007-04-30 Brooks Moses <brooks.moses@codesourcery.com>
489 * trans-const.c (gfc_conv_mpz_to_tree): Use mpz_get_double_int.
490 (gfc_conv_tree_to_mpz): New function.
491 (gfc_conv_mpfr_to_tree): Use real_from_mpfr.
492 (gfc_conv_tree_to_mpfr): New function.
493 * trans-const.h: (gfc_conv_tree_to_mpz): New prototype.
494 (gfc_conv_tree_to_mpfr): New prototype.
496 2007-04-30 Daniel Franke <franke.daniel@gmail.com>
498 * intrinsic.texi (IERRNO): Changed class to non-elemental function.
499 (LOG10): Removed COMPLEX as accepted argument type.
500 (NEW_LINE): Changed class from elemental to inquiry function.
501 (SIGN): Removed requirement of scalar arguments.
502 (SNGL): Changed class to elemental function.
504 2007-04-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
507 * simplify.c (simplify_bound_dim): New function.
508 (simplify_bound): Use the above. Perform simplification of LBOUND
509 and UBOUND when DIM argument is not present.
511 2007-04-29 Daniel Franke <franke.daniel@gmail.com>
513 * gfortran.texi: Cleaned up keyword index.
514 * invoke.texi: Likewise.
515 * intrinsic.texi: Likewise.
517 2007-04-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
520 * scanner.c (load_file): Discard the byte order mark if one is
521 found on the first non-preprocessor line of a file.
523 2007-04-29 Paul Thomas <pault@gcc.gnu.org>
526 * trans-array.c (gfc_conv_resolve_dependencies): Create a temp
527 whenever a dependency is found.
529 2007-04-28 Tobias Schlüter <tobi@gcc.gnu.org>
531 * options.c (gfc_handle_option): Ensure requested free form line
532 length is not too small.
534 2007-04-27 Brooks Moses <brooks.moses@codesourcery.com>
536 * intrinsic.texi (Transfer): Improve documentation.
538 2007-04-27 Brooks Moses <brooks.moses@codesourcery.com>
540 * gfortran.texi (Option Index): Add @samp as needed.
542 2007-04-27 Daniel Franke <franke.daniel@gmail.com>
544 * gfortran.texi: Added node and menu entry for an option index.
545 * invoke.texi: Moved command line option related entries of the concept
546 index to the option index.
548 2007-04-27 Daniel Franke <franke.daniel@gmail.com>
550 * intrinsic.texi (AND, FPUT, FPUTC, MODULO, OR, SET_EXPONENT,
551 XOR): Fixed examples.
553 2007-04-27 Daniel Franke <franke.daniel@gmail.com>
555 * intrinsic.texi (PRODUCT, RESHAPE, SPACING, SPREAD, SUM,
556 SYSTEM_CLOCK, TRANSFER, UNPACK): New.
557 (DATE_AND_TIME, CPU_TIME, RRSPACING): Added cross references.
559 2007-04-26 Daniel Franke <franke.daniel@gmail.com>
561 * intrinsic.texi (NULL, PACK, PRESENT, REPEAT, SCAN, SHAPE,
562 SIZE, TRANSPOSE, TRIM, VERIFY): New.
563 (ADJUSTL, ADJUSTR, INDEX): Added cross references.
564 (INT, INT2, INT8, LONG): Enabled section header.
566 2007-04-25 Janne Blomqvist <jb@gcc.gnu.org>
568 * module.c (module_char): Replace fgetc() with
570 (write_char): Replace fputc() with putc().
571 * scanner.c (load_line): Replace fgetc() with getc().
572 (gfc_read_orig_filename): Likewise.
574 2007-04-25 Tobias Burnus <burnus@net-b.de>
577 * error.c (error_print): Fix %% support.
578 * intrinsic.c (sort_actual): Improve error message.
579 * resolve.c (resolve_actual_arglist): Allow %VAL for
580 interfaces defined in the module declaration part.
582 2007-04-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
585 * intrinsic.texi (GETLOG): Update documentation to reflect
588 2007-04-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
591 * module.c (write_char): Add character to the MD5 buffer.
592 (read_md5_from_module_file): New function.
593 (gfc_dump_module): Compute MD5 for new module file. Call
594 read_md5_from_module_file. Only overwrite old module file
595 if the new MD5 is different.
597 2007-04-23 Paul Thomas <pault@gcc.gnu.org>
600 * resolve.c (resolve_symbol): Allow resolution of formal
601 namespaces nested within formal namespaces coming from modules.
604 * trans-expr.c (gfc_trans_assignment): Make the call to
605 gfc_trans_zero_assign conditional on the lhs array ref being
608 2007-04-23 Tobias Burnus <burnus@net-b.de>
610 * primary.c (match_integer_constant): Mention -fno-range-check
611 in the error message.
613 2007-04-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
616 * scanner.c (load_line): Remove check for comment after ampersand and
617 adjust tracking of ampersand.
619 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
621 * f95-lang.c (lang_tree_node): Use GENERIC_NEXT
622 instead of checking GIMPLE_STMT_P in chain_next.
624 2007-04-17 Tobias Schlüter <tobi@gcc.gnu.org>
626 * trans-types.h (gfc_packed): New enum.
627 (gfc_get_nodesc_array_type): Change prototype to use new enum.
628 * trans-types.c (gfc_get_nodesc_array): Use gfc_packed for
629 argument packed. Adapt all references to values accordingly.
630 (gfc_sym_type): Use enum values in call to gfc_get_nodesc_array.
631 (gfc_get_derived_type): Likewise.
632 * trans-array.c (gfc_build_constant_array_constructor): Likewise.
633 * trans-expr.c (gfc_get_interface_mapping_charlen): Changed packed
634 argument to type gfc_packed.
635 (gfc_add_interface_mapping): Use enum values in call to
636 gfc_get_interface_mapping.
637 * trans-decl.c (gfc_build_dummy_array_decl): Adapt to use enum
638 values when determining packing.
640 * trans-decl.c (gfc_finish_decl): Remove unused second argument
641 'init'. Simplify code accordingly. Remove calls to
642 gfc_fatal_error in favor of gcc_assert.
643 (create_function_arglist): Remove second argument from calls to
645 (gfc_trans_dummy_character): Likewise.
647 * arith.h: Update copyright years.
648 * dependency.h: Likewise.
649 * gfortran.h: Likewise.
650 * lang-specs.h: Likewise.
652 * symbol.c: Likewise.
655 * trans-array.c: Likewise.
656 * trans-common.c: Likewise.
657 * trans-const.h: Likewise.
658 * trans-const.c: Likewise.
659 * trans-decl.c: Likewise.
660 * trans-expr.c: Likewise.
661 * trans-io.c: Likewise.
662 * trans-openmp.c: Likewise.
663 * trans-types.h: Likewise.
664 * types.def: Likewise.
666 2007-04-17 Tobias Schlüter <tobi@gcc.gnu.org>
669 * decl.c (gfc_sym_mangled_identifier): Use capital letters in name
671 (gfc_sym_mangled_function_id): Likewise.
673 2007-04-15 Paul Thomas <pault@gcc.gnu.org>
676 * primary.c (check_for_implicit_index): New function to check
677 that a host associated variable is not an undeclared implied
679 (gfc_match_rvalue, match_variable): Use it and reset the
680 implied_index attribute.
681 * gfortran.h : Add the implied_index field to symbol_attribute.
682 * match.c (gfc_match_iterator): Mark the iterator variable
683 with the new attribute.
684 * decl.c (build_sym): Reset the new attribute.
686 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
688 * gfc-internals.texi: Fix typos.
689 * simplify.c: Fix a comment typo.
691 2007-04-14 Bernhard Fischer <aldot@gcc.gnu.org>
693 * primary.c: Commentary typo fix; Add question about redundant (?)
696 2007-04-14 Paul Thomas <pault@gcc.gnu.org>
700 * expr.c (scalarize_intrinsic_call): New function to
701 scalarize elemental intrinsic functions in initialization
703 (check_init_expr): Detect elemental intrinsic functions
704 in initalization expressions and call previous.
706 2007-04-13 Tobias Burnus <burnus@net-b.de>
709 * primary.c (match_variable): External functions
712 2007-04-13 Paul Thomas <pault@gcc.gnu.org>
715 * trans-types.c (copy_dt_decls_ifequal): Do not get pointer
716 derived type components.
718 2007-04-13 Tobias Schlüter <tobi@gcc.gnu.org>
721 * resolve.c: Include obstack.h and bitmap.h. New variable
723 (code_stack): Add tail and reachable_labels fields.
724 (reachable_labels): New function.
725 (resolve_branch): Rework to use new fields in code_stack.
726 (resolve_code): Call reachable_labels.
727 (resolve_codes): Allocate and free labels_obstack.
729 2007-04-12 Tobias Schlüter <tobi@gcc.gnu.org>
732 * decl.c (match_char_spec): Move check for negative CHARACTER
734 * resolve.c (resolve_charlen): ... here.
735 (resolve_types): Resolve CHARACTER lengths earlier.
737 2007-04-12 Daniel Franke <franke.daniel@gmail.com>
740 * intrinsic.texi (RANDOM_SEED, RANDOM_NUMBER): New.
742 2007-04-12 Tobias Schlüter <tobi@gcc.gnu.org>
745 * primary.c (gfc_variable_attr): Don't copy string length if it
747 * resolve.c (resolve_code): Clarify error message.
750 * decl.c (gfc_match_end): Also check for construct name in END
751 FORALL and END WERE statements.
752 * match.c (match_case_eos): Use uppercase for statement name in
754 (match_elsewhere): Construct name may appear iff construct has a
757 * trans-types.c: Update copyright years. Reformat long comment
758 explaining array descriptor format. Remove obsolete mention of
761 * arith.c (gfc_arith_uplus): Rename to ...
762 (gfc_arith_identity): ... this.
763 (gfc_parentheses): New function.
764 (gfc_uplus): Adapt to renamed function.
765 * arith.h (gfc_parentheses): Add prototype.
766 * expr.c (gfc_copy_expr): Deal with INTRINSIC_PARENTHESES.
767 (simplifiy_intrinsic_op): Treat INTRINSIC_UPLUS separately from
768 INTRINSIC_PARENTHESES.
770 2007-04-12 Tobias Burnus <burnus@net-b.de>
773 * decl.c (match_attr_spec): Allow PRIVATE/PUBLIC
774 attribute in type definitions.
775 (gfc_match_private): Allow PRIVATE statement only
776 in specification part of modules.
777 (gfc_match_public): Ditto for PUBLIC.
778 (gfc_match_derived_decl): Allow PRIVATE/PUBLIC attribute only in
779 specificification part of modules.
781 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
784 * intrinsic.c (add_functions): Add ref. to gfc_resolve_achar.
785 * intrinsic.h : Add prototype for gfc_resolve_achar.
786 * iresolve.c (gfc_resolve_achar): New function.
788 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
791 * resolve.c (resolve_fl_variable): Set flag to 2 for automatic
792 arrays. Make condition for automatic array error explicit.
793 If a dummy, no error on an INTENT(OUT) derived type.
795 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
798 * expr.c (find_array_element): Correct arithmetic for rank > 1.
800 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
803 * check.c (numeric_check): If an expresson has not got a type,
804 see if it is a symbol for which a default type applies.
806 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
809 * trans-decl.c (gfc_get_symbol_decl): Allow unreferenced use
812 2007-04-07 Paul Thomas <pault@gcc.gnu.org>
815 * symbol.c (gfc_check_function_type): New function.
816 * gfortran.h : Add prototype for previous.
817 * parse.c (parse_progunit): Call it after parsing specification
820 2007-04-05 Paul Thomas <pault@gcc.gnu.org>
823 * trans-expr.c (gfc_conv_function_call): Give a dummy
824 procedure the correct type if it has alternate returns.
826 2007-04-05 Paul Thomas <pault@gcc.gnu.org>
829 * decl.c (gfc_match_modproc): Go up to the top of the namespace
830 tree to find the module namespace for gfc_get_symbol.
832 2007-04-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
835 * fortran/gfortran.h (gfc_charlen_int_kind): New prototype.
836 * fortran/trans-types.c (gfc_charlen_int_kind): New variable.
837 (gfc_init_types): Define gfc_charlen_int_kind.
838 * fortran/trans.h (gfor_fndecl_string_repeat): Remove prototype.
839 * fortran/trans-decl.c (gfor_fndecl_string_repeat): Delete.
840 (gfc_build_intrinsic_function_decls): Don't set
841 gfor_fndecl_string_repeat.
842 * fortran/trans-intrinsic.c (gfc_conv_intrinsic_repeat): Rewrite
843 so that we don't have to call a library function.
844 * fortran/simplify.c (gfc_simplify_repeat): Perform the necessary
845 checks on the NCOPIES argument, and work with arbitrary size
848 2007-03-31 Tobias Burnus <burnus@net-b.de>
850 * intrinsic.c (add_functions): Fix name of dummy argument
851 for new_line and exit intrinsic.
853 2007-03-31 Paul Thomas <pault@gcc.gnu.org>
856 * gfortran.texi: Add a section for the %VAL, %REF and %LOC
859 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
861 * trans-types.c (gfc_signed_or_unsigned_type): Remove.
862 (gfc_unsigned_type): Use get_signed_or_unsigned_type instead of
863 gfc_signed_or_unsigned_type.
864 (gfc_signed_type): Ditto.
865 * trans-types.h (gfc_signed_or_unsigned_type): Remove.
866 * f95-lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
868 2007-03-30 Tobias Schlüter <tobi@gcc.gnu.org>
870 * symbol.c (gfc_find_gsymbol): Simplify, don't unconditionally
871 descend into all branches.
873 2007-03-29 Tobias Schlüter <tobi@gcc.gnu.org>
875 * intrinsic.c (conv_name): Let gfc_get_string handle the format.
876 (find_conv): Compare pointers instead of calling strcmp.
877 (find_sym): Likewise, but ensure that the compared pointer is in
878 the global string table.
880 2007-03-28 Tobias Schlüter <tobi@gcc.gnu.org>
882 * gfc-internals.texi: Fix output filename. Merge type index into
883 concept index. Start documentation of gfc_code structure.
885 2007-03-26 Brooks Moses <brooks.moses@codesourcery.com>
887 * gfc-internals.texi: New file,
888 * Make-lang.in: Add rules to convert it to dvi, pdf, and info.
890 2007-03-26 Brooks Moses <brooks.moses@codesourcery.com>
892 * error.c (show_locus): Remove always-false test.
894 2007-03-26 Brooks Moses <brooks.moses@codesourcery.com>
896 * lang.opt: Minor edits to descriptions.
898 2007-03-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
901 * fortran/interface.c (check_operator_interface): Implement
902 the standard checks on user operators extending intrinsic operators.
903 * fortran/resolve.c (resolve_operator): If the ranks of operators
904 don't match, don't error out but try the user-defined ones first.
906 2007-03-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
909 * expr.c (check_dimension): Fix logic of comparisons.
911 2007-03-24 Paul Thomas <pault@gcc.gnu.org>
914 * trans-expr.c (gfc_apply_interface_mapping_to_expr): Return
915 int result that is non-zero if the expression is the function
916 result. Only the characteristics of the result expression
917 can be used in a procedure interface, so simplify LEN in situ
918 using its character length.
922 * trans-expr.c (gfc_conv_function_call): Do not use
923 gfc_conv_expr_reference for actual pointer function with formal
924 target because a temporary is created that does not transfer
925 the reference correctly. Do not indirect formal pointer
926 functions since it is the function reference that is needed.
928 2007-03-24 Brooks Moses <brooks.moses@codesourcery.com>
930 * gfortran.h: Edit comments on GFC_STD_*.
932 2007-03-23 Brooks Moses <brooks.moses@codesourcery.com>
934 * invoke.texi: Misc. small typo fixes.
935 (-Wcharacter-truncation): Add.
936 (-Wnonstd-intrinsics): Correct spelling.
938 (-fintrinsic-modules-path): Add.
940 2007-03-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
943 * arith.c (complex_pow): Rewrite to handle large power.
944 (gfc_arith_power): Handle large power in the real and integer
947 2007-03-22 Francois-Xavier Coudert <coudert@clipper.ens.fr>
950 * trans-const.c (gfc_conv_mpz_to_tree): Allow integer constants
951 larger than twice the width of a HOST_WIDE_INT.
953 2006-03-22 Paul Thomas <pault@gcc.gnu.org>
956 * trans-intrinsic.c (gfc_size_in_bytes): Remove function.
957 (gfc_conv_intrinsic_array_transfer): Remove calls to previous.
958 Explicitly extract TREE_TYPEs for source and mold. Use these
959 to calculate length of source and mold, except for characters,
960 where the se string_length is used. For mold, the TREE_TYPE is
961 recalculated using gfc_get_character_type_len so that the
962 result is correctly cast for character literals and substrings.
963 Do not use gfc_typenode_for_spec for the final cast.
965 2007-03-22 Tobias Schlüter <tobi@gcc.gnu.org>
968 * decl.c (gfc_match_derived_decl): Reliably reject
969 'doubleprecision' and 'doublecomplex' as type names.
971 2007-03-19 Francois-Xavier Coudert <coudert@clipper.ens.fr>
974 * trans-expr.c (gfc_trans_init_string_length): Length should
976 (gfc_conv_function_call): Likewise.
978 2007-03-18 Paul Thomas <pault@gcc.gnu.org>
982 * symbo.c : Add gfc_derived_types.
983 (gfc_free_dt_list): Free derived type list gfc_derived_types.
984 (gfc_free_namespace): Remove call to gfc_free_dt_list.
985 (gfc_symbol_done_2): Call gfc_free_dt_list.
986 * gfortran.h : Declare gfc_derived_types to be external. Remove
987 derived types field from gfc_namespace.
988 * resolve.c (resolve_fl_derived): Refer to gfc_derived types
989 rather than namespace derived_types.
990 (resolve_fntype): Remove special treatment for module
991 derived type functions.
992 * trans-types.c (gfc_get_derived_type): Remove search for like
993 derived types. Finish by copying back end declaration to like
994 derived types in the derived type list gfc_derived_types.
996 2007-03-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
999 * trans-expr.c (gfc_conv_powi): Make n argument unsigned hwi.
1000 (gfc_conv_cst_int_power): Handle integer exponent with care,
1001 since it might be too large for us.
1003 2007-03-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1006 * invoke.texi: Fix typo.
1008 2007-03-16 Tobias Burnus <burnus@net-b.de>
1010 * trans-decl.c (gfc_generate_function_code): Use all arguments of
1013 2007-03-15 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1015 * gfortran.h (gfc_option_t): Add flag_backtrace field.
1016 * lang.opt: Add -fbacktrace option.
1017 * invoke.texi: Document the new option.
1018 * trans-decl.c (gfc_build_builtin_function_decls): Add new
1019 option to the call to set_std.
1020 * options.c (gfc_init_options, gfc_handle_option): Handle the
1023 2007-03-15 Tobias Burnus <burnus@gcc.gnu.org>
1024 Paul Thomas <pault@gcc.gnu.org>
1027 * decl.c (gfc_match_import): If the parent of the current name-
1028 space is null, try looking for an imported symbol in the parent
1029 of the proc_name interface.
1030 * resolve.c (resolve_fl_variable): Do not check for blocking of
1031 host association by a same symbol, if the symbol is in an
1034 2007-03-15 Paul Thomas <pault@gcc.gnu.org>
1037 * decl.c (match_data_constant): Before going on to try to match
1038 a name, try to match a structure component.
1042 * resolve.c (resolve_actual_arglist): Do not reject a generic
1043 actual argument if it has a same name specific interface.
1046 * trans-array.c (parse_interface): Do not nullify allocatable
1047 components if the symbol has the saved attribute.
1049 2007-03-14 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1051 * trans-array.c (gfc_trans_auto_array_allocation): Replace
1052 fold(convert()) by fold_convert().
1053 (gfc_duplicate_allocatable): Likewise.
1054 * trans-intrinsic.c (gfc_conv_intrinsic_dot_product): Use
1055 build_int_cst instead of converting an integer_zero_node
1058 2007-03-14 Jakub Jelinek <jakub@redhat.com>
1060 * module.c (mio_typespec): Don't look at ts->cl if not BT_CHARACTER.
1062 2007-03-13 Brooks Moses <brooks.moses@codesourcery.com>
1067 * intrinsics.texi (CHDIR): Fix argument names, note
1068 that STATUS must be a default integer.
1069 (CTIME): Fix argument names, note that RESULT must
1070 be a default integer.
1071 (EXIT): Note that STATUS must be a default integer.
1073 2007-03-13 Brooks Moses <brooks.moses@codesourcery.com>
1076 * intrinsic.texi: General whitespace cleanup, remove
1077 comment about missing intrinsics.
1078 (menu): Add lines for new entries listed below.
1079 (ACOSH): Mention specific function DACOSH, correct
1080 description phrasing.
1081 (ASINH): Mention specific function DASINH, correct
1082 description phrasing.
1083 (ATANH): Mention specific function DATANH, correct
1084 description phrasing.
1085 (COS): Add index entry for CCOS.
1086 (CPU_TIME): Correct "REAL" to "REAL(*)".
1087 (EXP): Add index entry for CEXP.
1088 (INT): Correct argument name to "A".
1092 (MAX): Add index entries for specific variants.
1093 (MCLOCK): New entry.
1094 (MCLOCK8): New entry.
1095 (SECNDS): Adjust to a more standard form.
1096 (SECOND): New entry.
1097 (TIME): Add cross-reference to MCLOCK.
1098 (TIME8): Add cross-reference to MCLOCK8.
1100 2007-03-11 Paul Thomas <pault@gcc.gnu.org>
1103 * parse.c (parse_interface): Use the default types from the
1104 formal namespace if a function or its result do not have a type
1105 after parsing the specification statements.
1107 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
1109 * intrinsic.texi: (ICHAR) Improve internal I/O note.
1110 (ACHAR): Reference it.
1111 (CHAR): Reference it.
1112 (IACHAR): Reference it.
1114 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
1116 * intrinsic.texi: (LINK) Document function form.
1122 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
1124 * intrinsic.texi: minor typo fixes, removed prologue.
1125 (FSEEK): moved to correct place in alphabetical order.
1127 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
1130 * check.c (gfc_check_alarm_sub): Added check for default integer
1131 kind of status argument.
1132 * iresolve.c (gfc_resolve_alarm_sub): Removed conversion of
1134 * intrinsic.texi (ALARM): Extended documentation.
1136 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
1138 * intrinsic.texi (GERROR, ISATTY, TTYNAM): New.
1139 (ABORT, FLUSH, FNUM, IRAND, MALLOC, SIGNAL, SRAND): Fixed typo.
1140 * intrinsic.c (add_subroutines): Adjusted dummy argument names
1141 of GERROR and TTYNAM.
1143 2007-07-08 Tobias Burnus <burnus@net-b.de>
1145 * module.c (gfc_match_use): Support renaming of operators
1147 * gfortran.texi (Fortran 2003 Status): Document support of
1148 renaming of operators.
1150 2007-07-08 Tobias Burnus <burnus@net-b.de>
1153 * module.c (read_module): Always import module name as symbol.
1154 (gfc_match_use): Disallow module name in the only clause of
1157 2007-03-08 Paul Thomas <pault@gcc.gnu.org>
1160 * expr.c (find_array_section): Correct arithmetic for section
1163 2007-03-07 Brooks Moses <brooks.moses@codesourcery.com>
1165 * iresolve.c (gfc_resolve_ishftc): Correct s_kind value.
1167 2007-03-06 Daniel Franke <franke.daniel@gmail.com>
1169 PR documentation/30950
1170 * intrinsic.texi (AND, CPU_TIME): Fix dummy argument names.
1171 (FREE): Fix call syntax.
1173 2007-03-06 Brooks Moses <brooks.moses@codesourcery.com>
1175 * intrinsic.texi: Limit column widths to a total of .85.
1177 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
1179 * gfortran.texi (GFortran and G77): Rewrite completely.
1181 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
1183 * match.c (gfc_match_name): Expanded comment.
1185 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
1187 * gfortran.texi (Old-style kind specifications): Document
1188 special handling of old-style kind specifiers for COMPLEX.
1189 * decl.c (gfc_match_old_kind_spec): Document kind/bytesize
1190 assumptions for COMPLEX in comment.
1192 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
1195 * gfortranspec.c (lang_specific_driver): Update program
1196 name and copyright date.
1198 2007-03-03 Paul Thomas <pault@gcc.gnu.org>
1201 * check.c (dim_rank_check): The shape of subsections of
1202 assumed-size arrays is known.
1204 2007-03-02 Paul Thomas <pault@gcc.gnu.org>
1205 Tobias Burnus <burnus@net-b.de>
1208 * decl.c (gfc_match_entry): Remove erroneous entry result check.
1210 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1212 * Make-lang.in: Add install-pdf target as copied from
1213 automake v1.10 rules.
1215 2007-03-01 Tobias Burnus <burnus@net-b.de>
1218 * trans-intrinsic.c (gfc_conv_intrinsic_size): Compare pointers.
1220 2007-02-28 Tobias Burnus <burnus@net-b.de>
1221 Paul Thomas <pault@gcc.gnu.org>
1225 * resolve.c (resolve_actual_arglist): Allow by-value
1226 arguments and non-default-kind for %VAL().
1227 * trans-expr.c (conv_arglist_function): Allow
1228 non-default-kind for %VAL().
1230 2007-02-28 Tobias Burnus <burnus@net-b.de>
1233 * primary.c (next_string_char): Correct reading a character
1234 after the delimiter.
1235 (match_string_constant): Print warning message only once.
1237 2007-02-27 Richard Guenther <rguenther@suse.de>
1239 * trans-array.c (structure_alloc_comps): Use correct type
1240 for null pointer constant.
1242 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
1244 * gfortran.texi: Standardize title page, remove version number
1245 from copyright page.
1247 2007-02-26 Thomas Koenig <Thomas.Koenig@online.de>
1248 Paul Thomas <pault@gcc.gnu.org>
1251 * trans-intrinsic.c (gfc_conv_intrinsic_size):
1252 If dim is an optional argument, check for its
1253 presence and call size0 or size1, respectively.
1255 2007-02-23 Paul Thomas <pault@gcc.gnu.org>
1258 * resolve.c (has_default_initializer): New function.
1259 (resolve_fl_variable): Call has_default_initializer to determine if
1260 the derived type has a default initializer to its ultimate
1264 2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1266 * options.c (set_default_std_flags): New function to consolidate
1268 (gfc_init_options): Use new function.
1269 (gfc_handle_option): Use new function.
1271 2007-02-22 Brooks Moses <brooks.moses@codesourcery.com>
1273 * gfortran.texi (Old-style kind specifications): Document
1274 special handling of old-style kind specifiers for COMPLEX.
1275 * decl.c (gfc_match_old_kind_spec): Documented kind/bytesize
1276 assumptions in comment.
1278 2007-02-21 Bernhard Fischer <aldot@gcc.gnu.org>
1280 * parse.c (next_free): Gooble spaces after OpenMP sentinel.
1282 2007-02-20 Thomas Koenig <Thomas.Koenig@online.de>
1285 * match.c (gfc_match_iterator): Remove conflict between
1286 loop variable and pointer.
1288 2007-02-20 Tobias Burnus <burnus@net-b.de>
1291 * symbol.c (gfc_add_volatile): Allow to set VOLATILE
1292 attribute for host-associated variables.
1293 * gfortran.h (symbol_attribute): Save namespace
1294 where VOLATILE has been set.
1295 * trans-decl.c (gfc_finish_var_decl): Move variable
1296 declaration to the top.
1298 2007-02-20 Tobias Burnus <burnus@net-b.de>
1301 * resolve.c (resolve_symbol): Add character dummy VALUE check.
1303 2007-02-19 Thomas Koenig <Thomas.Koenig@online.de>
1306 * fortran/iresolve.c (gfc_resolve_maxloc): Remove coercion of
1307 argument to default integer.
1308 (gfc_resolve_minloc): Likewise.
1310 2007-02-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1313 * options.c (gfc_init_options): Relax warning level for obsolescent.
1314 * match.c (match_arithmetic_if): Change to obsolescent from deleted.
1315 (gfc_match_if): Same.
1317 2007-02-18 Roger Sayle <roger@eyesopen.com>
1319 * trans-array.c (gfc_build_constant_array_constructor): When the
1320 shape of the constructor is known, use that to construct the
1322 (gfc_trans_constant_array_constructor): Initialize the "info"
1323 information for all of the dimensions of the array constructor.
1324 (constant_array_constructor_loop_size): New function.
1325 (gfc_trans_array_constructor): Use it to determine whether a
1326 loop is suitable for "constant array constructor" optimization.
1328 * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Use fold_build2
1329 instead of build2, to avoid conditions like "(a != b) != 0".
1331 2007-02-18 Roger Sayle <roger@eyesopen.com>
1332 Paul Thomas <pault@gcc.gnu.org>
1335 * match.c (match_forall_iterator): Use gfc_match_expr instead
1336 of gfc_match_variable to match the iterator variable. Return
1337 MATCH_NO if not a variable. Remove the reset of the symbol's
1340 2007-02-16 Tobias Burnus <burnus@net-b.de>
1343 * trans-decl.c (gfc_generate_function_code): Do not initialize
1344 pointers to derived components.
1346 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
1347 Brooks Moses <brooks.moses@codesourcery.com>
1348 Lee Millward <lee.millward@codesourcery.com>
1350 * trans-expr.c (gfc_conv_power_op): Use build_call_expr.
1351 (gfc_conv_string_tmp): Likewise.
1352 (gfc_conv_concat_op): Likewise.
1353 (gfc_build_compare_string): Likewise.
1354 (gfc_conv_function_call): Use build_call_list instead of build3.
1356 * trans-array.c (gfc_trans_allocate_array_storage): Use
1358 (gfc_grow_array): Likewise.
1359 (gfc_trans_array_ctor_element): Likewise.
1360 (gfc_trans_array_constructor_value): Likewise.
1361 (gfc_array_allocate): Likewise.
1362 (gfc_array_deallocate): Likewise.
1363 (gfc_trans_auto_array_allocation): Likewise.
1364 (gfc_trans_dummy_array_bias): Likewise.
1365 (gfc_conv_array_parameter): Likewise.
1366 (gfc_trans_dealloc_allocated): Likewise.
1367 (gfc_duplicate_allocatable): Likewise.
1369 * trans-openmp.c (gfc_trans_omp_barrier): Use build_call_expr.
1370 (gfc_trans_omp_flush): Likewise.
1372 * trans-stmt.c (gfc_conv_elementel_dependencies): Use build_call_expr.
1373 (gfc_trans_pause): Likewise.
1374 (gfc_trans_stop): Likewise.
1375 (gfc_trans_character_select): Likewise.
1376 (gfc_do_allocate): Likewise.
1377 (gfc_trans_assign_need_temp): Likewise.
1378 (gfc_trans_pointer_assign_need_temp): Likewise.
1379 (gfc_trans_forall_1): Likewise.
1380 (gfc_trans_where_2): Likewise.
1381 (gfc_trans_allocate): Likewise.
1382 (gfc_trans_deallocate): Likewise.
1384 * trans.c (gfc_trans_runtime_check): Use build_call_expr.
1386 * trans-io.c (gfc_trans_open): Use build_call_expr.
1387 (gfc_trans_close): Likewise.
1388 (build_filepos): Likewise.
1389 (gfc_trans_inquire): Likewise.
1390 (NML_FIRST_ARG): Delete.
1391 (NML_ADD_ARG): Delete.
1392 (transfer_namelist_element): Use build_call_expr.
1393 (build_dt): Likewise.
1394 (gfc_trans_dt_end): Likewise.
1395 (transfer_expr): Likewise.
1396 (transfer_array-desc): Likewise.
1398 * trans-decl.c (gfc_generate_function_code): Use build_call_expr.
1399 (gfc_generate_constructors): Likewise.
1401 * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Use build_call_expr.
1402 (gfc_conv_intrinsic_fdate): Likewise.
1403 (gfc_conv_intrinsic_ttynam): Likewise.
1404 (gfc_conv_intrinsic_array_transfer): Likewise.
1405 (gfc_conv_associated): Likewise.
1406 (gfc_conv_intrinsic_si_kind): Likewise.
1407 (gfc_conv_intrinsic_trim): Likewise.
1408 (gfc_conv_intrinsic_repeat: Likewise.
1409 (gfc_conv_intrinsic_iargc): Likewise.
1411 2007-02-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1414 * scanner.c (gfc_next_char_literal): Add check for end of file after
1415 call to advance_line.
1417 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
1420 * primary.c (match_logical_constant): Return MATCH_ERROR on invalid
1423 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
1425 * misc.c (gfc_typename): Fix potential buffer overflow.
1427 2007-02-13 Paul Thomas <pault@gcc.gnu.org>
1430 * module.c (read_module): Set pointer_info to referenced if the
1431 symbol has no namespace.
1433 2007-02-12 Nick Clifton <nickc@redhat.com>
1435 * lang.opt: Add Warning attribute to warning options.
1437 2007-02-11 Daniel Franke <franke.daniel@gmail.com>
1439 * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
1440 (SLEEP): Added section and documentation.
1442 2007-02-11 Tobias Schlüter <tobi@gcc.gnu.org>
1445 * decl.c (add_init_expr_to_sym): Remove ENUM specific code.
1446 (variable_decl): Likewise. Rewrap comment.
1447 (match_attr_spec): Remove ENUM specific code.
1448 (gfc_match_enum): Fix typo in error message.
1449 (enumerator_decl): New function.
1450 (gfc_match_enumerator_def): Use enumerator_decl instead of
1451 variable_decl. Adapt code accordingly.
1453 2007-02-11 Paul Thomas <pault@gcc.gnu.org>
1456 * module.c (find_symtree_for_symbol): New function to return
1457 a symtree that is not a "unique symtree" given a symbol.
1458 (read_module): Do not automatically set pointer_info to
1459 referenced because this inhibits the generation of a unique
1460 symtree. Recycle the existing symtree if possible by calling
1461 find_symtree_for_symbol.
1464 * decl.c (add_init_expr_to_sym): Make new charlen for an array
1465 constructor initializer.
1467 2007-02-10 Richard Henderson <rth@redhat.com>, Jakub Jelinek <jakub@redhat.com>
1469 * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
1470 and __emutls_register_common.
1471 * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
1472 * trans-common.c (build_common_decl): Don't check have_tls.
1473 * trans-decl.c (gfc_finish_var_decl): Likewise.
1474 * types.def (BT_WORD, BT_FN_PTR_PTR): New.
1475 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
1477 2007-02-09 Tobias Burnus <burnus@net-b.de>
1480 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc,
1481 gfc_conv_intrinsic_minmaxval): Use HUGE-1 for most negative integer.
1483 2007-02-09 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1486 * trans-array.c (gfc_trans_create_temp_array): Remove use of the
1487 function argument. Always generate code for negative extent.
1489 * trans-array.h (gfc_trans_create_temp_array): Change prototype.
1490 * trans-expr.c (gfc_conv_function_call): Remove use of last argument
1491 of gfc_trans_create_temp_array.
1492 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Likewise.
1493 * trans-stmt.c (gfc_conv_elemental_dependencies): Likewise.
1495 2007-02-08 Roger Sayle <roger@eyesopen.com>
1497 * trans-stmt.c (gfc_trans_forall_1): Optimize the cases where the
1498 mask expression is a compile-time constant (".true." or ".false.").
1500 2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1503 * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Evaluate
1504 arguments only once. Generate check that NCOPIES argument is not
1507 2007-02-04 Steven G. Kargl <kargl@gcc.gnu.org>
1510 * fortran/invoke.texi: Update documentation.
1511 * fortran/options.c (gfc_post_options): Deal with tabs with -std=f2003
1514 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
1516 * trans-array.c: Fix a comment typo.
1518 2007-02-03 Paul Thomas <pault@gcc.gnu.org>
1521 * array.c (match_array_element_spec): If the length of an array is
1522 negative, adjust the upper limit to make it zero length.
1525 * resolve.c (pure_function, resolve_function): Initialize name to
1526 null to clear up build warnings.
1527 (resolve_fl_variable): Look at components explicitly to check for
1528 default initializer, rather than using gfc_default_initializer.
1530 2007-02-02 Steven G. Kargl <kargl@gcc.gnu.org>
1533 * resolve.c (resolve_generic_f): Check for non-NULL sym.
1535 2007-02-02 Roger Sayle <roger@eyesopen.com>
1537 * trans.c (gfc_build_array_ref): Use STRIP_TYPE_NOPS to eliminate
1538 NON_LVALUE_EXPR nodes and useless type conversions.
1540 2007-02-02 Paul Thomas <pault@gcc.gnu.org>
1544 * trans-expr.c (gfc_conv_aliased_arg): Remove static attribute
1545 from function and make sure that substring lengths are
1547 (is_aliased_array): Remove static attribute.
1548 * trans.c : Add prototypes for gfc_conv_aliased_arg and
1550 * trans-io.c (set_internal_unit): Add the post block to the
1551 arguments of the function. Use is_aliased_array to check if
1552 temporary is needed; if so call gfc_conv_aliased_arg.
1553 (build_dt): Pass the post block to set_internal_unit and
1554 add to the block after all io activiy is done.
1556 2007-02-01 Roger Sayle <roger@eyesopen.com>
1558 * trans-array.c (gfc_conv_expr_descriptor): We don't need to use
1559 a temporary array to pass a constant non-character array constructor.
1560 Generalize the descriptor generation code to handle scalarizer
1561 "info" without an array reference.
1563 2007-02-01 Roger Sayle <roger@eyesopen.com>
1565 * dependency.c (gfc_check_dependency) <EXPR_ARRAY>: Implement
1566 dependency checking for array constructors.
1568 2007-02-01 Roger Sayle <roger@eyesopen.com>
1570 * trans-stmt.c (compute_overall_iter_number): Document function
1571 arguments. Generalize "unconditional forall nest with constant
1572 bounds" optimization to eliminate unconditional inner loops with
1575 2007-01-31 Tobias Burnus <burnus@net-b.de>
1578 * interface.c (compare_actual_formal): Check conformance between
1579 actual and VOLATILE dummy arguments.
1580 * symbol.c (gfc_add_volatile): Allow setting of VOLATILE
1581 multiple times in different scopes.
1582 * decl.c (gfc_match_volatile): Search symbol in host association.
1584 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
1586 * simplify.c, trans-array.c: Fix comment typos.
1588 2007-01-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1590 * invoke.texi (Code Gen Options): Fix abbreviation typo.
1591 * intrinsic.texi (ACCESS, LSHIFT, RSHIFT): Fix typos.
1593 2007-01-30 Steve Ellcey <sje@cup.hp.com>
1596 * trans-types.c (gfc_get_function_type): Do not add void_type_node
1598 * trans-decl.c (create_function_arglist): Change assert.
1600 2007-01-29 Paul Thomas <pault@gcc.gnu.org>
1603 * module.c (read_module): If a symbol is excluded by an ONLY
1604 clause, check to see if there is a symtree already loaded. If
1605 so, attach the symtree to the pointer_info.
1607 2007-01-28 Thomas Koenig <Thomas.Koenig@online.de>
1610 * gfortran.h: Remove gfc_simplify_init_1.
1611 * arith.h: Remove third argument from gfc_compare_string.
1612 * arith.c (gfc_compare_expression): Remove third argument
1613 from call to gfc_compare_string.
1614 (gfc_compare_string): Remove third argument xcoll_table.
1615 Remove use of xcoll_table.
1616 * misc.c (gfc_init_1): Remove call to gfc_simplify_init_1.
1617 * simplify.c (ascii_table): Remove.
1618 (xascii_table): Likewise.
1619 (gfc_simplify_achar): ICE if extract_int fails. Remove use of
1620 ascii_table. Warn if -Wsurprising and value < 0 or > 127.
1621 (gfc_simplify_char): ICE if extract_int fails. Error if
1622 value < 0 or value > 255.
1623 (gfc_simplify_iachar): Remove use of xascii_table.
1624 Char values outside of 0..255 are an ICE.
1625 (gfc_simplify_lge): Remove use of xascii_table.
1626 (gfc_simplify_lgt): Likewise.
1627 (gfc_simplify_lle): Likewise.
1628 (gfc_simplify_llt): Likewise.
1629 (invert_table): Remove.
1630 (gfc_simplify_init_1): Remove.
1632 2007-01-27 Roger Sayle <roger@eyesopen.com>
1634 * trans-stmt.c (forall_info): Replace the next_nest and outer
1635 fields that previously implemented a doubly-linked list with a
1636 single prev_nest field (singly-linked list).
1637 (gfc_trans_nested_forall_loop): The nested_forall_info argument
1638 now denotes the innermost FORALL in the loop nest.
1639 (compute_overall_iter_number): Use prev_nest instead of next_nest.
1640 (gfc_trans_forall_1): Link/cons the new "info" to the head of the
1641 nested_forall_info linked list. Free the current "info" when done.
1643 2007-01-27 Paul Thomas <pault@gcc.gnu.org>
1646 * trans-expr.c (gfc_conv_operator_assign): New function.
1647 * trans.h : Add prototype for gfc_conv_operator_assign.
1648 * trans-stmt.c (gfc_trans_where_assign): Add a gfc_symbol for
1649 a potential operator assignment subroutine. If it is non-NULL
1650 call gfc_conv_operator_assign instead of the first assignment.
1651 ( gfc_trans_where_2): In the case of an operator assignment,
1652 extract the argument expressions from the code for the
1653 subroutine call and pass the symbol to gfc_trans_where_assign.
1654 resolve.c (resolve_where, gfc_resolve_where_code_in_forall,
1655 gfc_resolve_forall_body): Resolve the subroutine call for
1656 operator assignments.
1658 2007-01-26 Steven Bosscher <stevenb.gcc@gmail.com>
1659 Steven G. Kargl <kargl@gcc.gnu.org>
1662 * fortran/io.c (next_char): Deal with backslash escaped characters.
1663 Issue warnings in non -std=gnu cases.
1664 * fortran/primary.c (next_string_char): Issue warnings in non
1666 2007-01-26 Tobias Burnus <burnus@net-b.de>
1668 * lang-specs.h: Add support for .f03 and .F03 extensions.
1669 * gfortran.texi: Document .f03 extension.
1670 * options.c (form_from_filename): Recognize .f03.
1672 2007-01-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1675 * lang.opt (Wall): Remove RejectNegative.
1676 * options.c (gfc_handle_option): Wall can be disabled.
1677 (set_Wall): Add a parameter for disabling Wall.
1679 2007-01-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1682 * scanner.c (load_line): Remove check fot ctrl-z and don't gobble.
1684 2007-01-23 Paul Thomas <pault@gcc.gnu.org>
1687 * match.c (gfc_match_namelist): Add check for assumed size character
1688 in namelist and provide error if found.
1690 2007-01-21 Brooks Moses <brooks.moses@codesourcery.com>
1692 * intrinsic.texi (ACHAR): Added cross-references.
1693 (CHAR): Put cross-references in alphabetical order.
1694 (IACHAR): Added cross-references.
1695 (ICHAR): Added cross-references.
1697 2007-01-20 Brooks Moses <brooks.moses@codesourcery.com>
1699 * intrinsic.texi: Edited all "Syntax" examples to a consistent form.
1700 (MAXVAL): Corrected description of result characteristics.
1702 (UMASK): Added documentation.
1704 2007-01-20 Steven G. Kargl <kargl@gcc.gnu.org>
1706 * openmp.c, matchexp.c, module.c, scanner.c, resolve.c, st.c,
1707 parse.c, primary.c, options.c, misc.c, simplify.c: Next installment
1708 in the massive whitespace patch.
1710 2007-01-20 Roger Sayle <roger@eyesopen.com>
1712 * module.c (mio_array_ref): The dimen_type fields of an array ref
1713 are an enumerated type and can't be read/written directly with a
1714 call to mio_integer. Instead loop over and cast each element.
1716 2007-01-20 Roger Sayle <roger@eyesopen.com>
1718 * dependency.c (gfc_full_array_ref_p): Check that ref->next is NULL,
1719 i.e. that the ARRAY_REF doesn't mention components.
1720 * trans-array.c (gfc_constant_array_constructor_p): Export external
1721 function renamed from constant_array_constructor_p.
1722 (gfc_build_constant_array_constructor): Export.
1723 (gfc_trans_array_constructor): Update call to the renamed function
1724 constant_array_constructor_p.
1725 * trans-array.h (gfc_constant_array_constructor_p): Prototype here.
1726 (gfc_build_constant_array_constructor): Likewise.
1727 * trans-expr.c (gfc_build_memcpy_call): New helper function split
1728 out from gfc_trans_array_copy.
1729 (gfc_trans_array_copy): Use gfc_build_memcpy_call.
1730 (gfc_trans_array_constructor_copy): New function to optimize
1731 assigning an entire array from a constant array constructor.
1732 (gfc_trans_assignment): Call gfc_trans_array_constructor_copy
1735 2007-01-20 Roger Sayle <roger@eyesopen.com>
1737 * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
1738 implementation for the SIGN intrinsic with integral operands.
1739 (gfc_conv_intrinsic_minmax): Fix whitespace.
1741 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1743 * gfortran.h (gfc_options_t): Add flag_allow_leading_underscore.
1744 * lang.opt: Add -fallow-leading-underscore.
1745 * match.c (gfc_match_name): Allow leading underscore in symbol
1746 name if -fallow-leading-underscore is used.
1747 * symbol.c (gfc_get_default_type): Add special case for symbol
1748 names beginning with an underscore.
1749 * trans-decl.c (gfc_get_extern_function_decl,
1750 gfc_build_intrinsic_function_decls): Add _gfortran prefix to
1751 library symbols selected_int_kind, selected_real_kind and
1753 * options.c (gfc_init_options, gfc_handle_option): Handle the
1754 new -fallow-leading-underscore option.
1756 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1759 * options.c (gfc_handle_module_path_options): Path used in -J
1760 option is now added to the module search path.
1762 2007-01-20 Richard Guenther <rguenther@suse.de>
1765 * f95-lang.c (gfc_init_builtin_functions): Provide cbrt and
1766 cexpi builtins if we have TARGET_C99_FUNCTIONS. Provide
1767 sincos builtins if the target has sincos.
1769 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
1771 * intrinsic.texi (MATMUL): Corrected a typo.
1772 (MAX): Separated @var arguments.
1773 (MIN): Separated @var arguments.
1775 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
1777 * intrinsic.texi: general whitespace cleanup.
1778 (menu): Added TIME8, removed UNMASK.
1779 (AINT): Clarified argument requirement.
1780 (ANINT): Clarified argument requirement.
1781 (CEILING): Clarified argument requirement.
1782 (CHAR): Clarified argument requirement.
1783 (CMPLX): Clarified argument requirement.
1784 (DCMPLX): Clarified argument requirement.
1785 (FGET): Line rewrapping.
1786 (FLOOR): Clarified argument requirement.
1787 (GMTIME): Added documentation.
1788 (IAND): Added cross-reference.
1789 (IBCLR): Added cross-reference.
1790 (IBSET): Added cross-reference.
1791 (IEOR): Added cross-reference.
1792 (INT): Collapsed examples, clarified argument requirement.
1793 (IOR): Added cross-references.
1794 (LEN_TRIM): Corrected result kind.
1795 (LINK): Added cross-reference.
1796 (LLT): Removed "documentation pending".
1797 (LOGICAL): Added documentation.
1798 (LSHIFT): Added documentation.
1799 (LTIME): Added documentation.
1800 (MATMUL): Added documentation.
1801 (MAX): Added documentation.
1802 (MAXLOC): Added documentation.
1803 (MAXVAL): Added documentation.
1804 (MERGE): Added documentation.
1805 (MIN): Added documentation.
1806 (MINLOC): Added documentation.
1807 (MINVAL): Added documentation.
1808 (MVBITS): Moved to correct place, added documentation.
1809 (NOT): Added documentation.
1810 (PERROR): Added documentation.
1811 (RAN): Moved to correct place, added documentation.
1812 (REAL): Clarified argument requirement.
1813 (RENAME): Added documentation.
1814 (RSHIFT): Clarified argument requirement.
1815 (SIGN): Corrected table specification.
1816 (SYMLNK): Added documentation.
1817 (SYSTEM): Added documentation.
1818 (TIME): Added documentation.
1819 (TIME8): Added section and documentation.
1820 (UNMASK): Removed erroneous section.
1822 2007-01-18 H.J. Lu <hongjiu.lu@intel.com>
1824 * trans-stmt.c (compute_overall_iter_number): Fix a typo.
1826 2007-01-18 Roger Sayle <roger@eyesopen.com>
1828 * trans-expr.c (copyable_array_p): Consider user derived types without
1829 allocatable components to be copyable.
1831 2007-01-18 Roger Sayle <roger@eyesopen.com>
1833 * trans-stmt.c (compute_overall_iter_number): Enhance to precompute
1834 the number of interations in unconditional FORALL nests with constant
1837 2007-01-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1838 Tobias Burnus <burnus@net-b.de>
1841 * gfortran.h (gfc_option_t): Add flag_dump_core.
1842 * lang.opt: Add -fdump-core option.
1843 * invoke.texi: Document the new options.
1844 * trans-decl.c (gfc_build_builtin_function_decls): Add new
1845 options to the call to set_std.
1846 * options.c (gfc_init_options, gfc_handle_option): Set the
1849 2007-01-17 Paul Thomas <pault@gcc.gnu.org>
1852 * module.c (load_generic_interfaces): Make the marking of the
1853 symbol as ambiguous conditional on the module names being
1855 (write_generic): Ensure that the generic interface has a
1856 non-NULL module field.
1858 2007-01-16 Roger Sayle <roger@eyesopen.com>
1861 * trans-stmt.c (forall_info): Remove pmask field.
1862 (gfc_trans_forall_loop): Remove NVAR argument, instead assume that
1863 NVAR covers all the interation variables in the current forall_info.
1864 Add an extra OUTER parameter, which specified the loop header in
1865 which to place mask index initializations.
1866 (gfc_trans_nested_forall_loop): Remove NEST_FLAG argument.
1867 Change the semantics of MASK_FLAG to only control the mask in the
1869 (compute_overall_iter_number): Optimize the trivial case of a
1870 top-level loop having a constant number of iterations. Update
1871 call to gfc_trans_nested_forall_loop. Calculate the number of
1872 times the inner loop will be executed, not to size of the
1874 (allocate_temp_for_forall_nest_1): Reuse SIZE as BYTESIZE when
1875 sizeof(type) == 1. Tidy up.
1876 (gfc_trans_assign_need_temp): Remove NEST_FLAG argument from calls
1877 to gfc_trans_nested_forall_loop.
1878 (gfc_trans_pointer_assign_need_temp): Likewise.
1879 (gfc_trans_forall_1): Remove unused BYTESIZE, TMPVAR, SIZEVAR and
1880 LENVAR local variables. Split mask allocation into a separate
1881 hunk/pass from mask population. Use allocate_temp_for_forall_nest
1882 to allocate the FORALL mask with the correct size. Update calls
1883 to gfc_trans_nested_forall_loop.
1884 (gfc_evaluate_where_mask): Update call to
1885 gfc_trans_nested_forall_loop.
1886 (gfc_trans_where_2): Likewise.
1888 2007-01-15 Paul Thomas <pault@gcc.gnu.org>
1891 * trans-stmt.c (gfc_trans_call): If it does not have one, get
1892 a backend_decl for an alternate return.
1895 * resolve.c (pure_function): Statement functions are pure. Note
1896 that this will have to recurse to comply fully with F95.
1899 * resolve.c (resolve_function): Only a reference to the final
1900 dimension of an assumed size array is an error in an inquiry
1904 * resolve.c (resolve_function): Make sure that the function
1905 expression has a type.
1907 2007-01-14 Paul Thomas <pault@gcc.gnu.org>
1910 * trans-decl.c (gfc_sym_mangled_function_id): Module, external
1911 symbols must not have the module name prepended.
1913 2007-01-11 Thomas Koenig <Thomas.Koenig@online.de>
1916 * iresolve.c (gfc_resolve_maxloc): If the rank
1917 of the return array is nonzero and we process an
1918 integer array smaller than default kind, coerce
1919 the array to default integer.
1920 * iresolve.c (gfc_resolve_minloc): Likewise.
1922 2007-01-11 Brooks Moses <brooks.moses@codesourcery.com>
1924 * simplify.c: Update copyright to 2007.
1927 2007-01-11 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1930 * scanner.c (gfc_release_include_path): Free gfc_option.module_dir
1933 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
1935 * simplify.c (gfc_simplify_ibclr): Fix POS comparison.
1936 (gfc_simplify_ibset): Same.
1938 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
1942 * simplify.c (convert_mpz_to_unsigned): New function.
1943 (convert_mpz_to_signed): New function, largely based on
1945 (twos_complement): Removed.
1946 (gfc_simplify_ibclr): Add conversions to and from an
1947 unsigned representation before bit-twiddling.
1948 (gfc_simplify_ibset): Same.
1949 (gfc_simplify_ishftc): Add checks for overly large
1950 constant arguments, only check the third argument if
1951 it's present, carry over high bits into the result as
1952 appropriate, and perform the final conversion back to
1953 a signed representation using the correct sign bit.
1954 (gfc_simplify_not): Removed unnecessary masking.
1956 2007-01-09 Paul Thomas <pault@gcc.gnu.org>
1959 * resolve.c (resolve_code): Use the code->expr character length
1960 directly to set length of llen.
1962 2007-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1965 * lang.opt: Add Wcharacter_truncation option.
1966 * options.c (gfc_init_options): Initialize
1967 gfc_option.warn_character_truncation to zero.
1968 (gfc_handle_option): Add case for OPT_Wcharacter_truncation.
1970 2007-01-08 Steven G. Kargl <kargl@gcc.gnu.org>
1972 * interface.c, intrinsic.c, gfortranspec.c, io.c, f95-lang.c,
1973 iresolve.c, match.c: Update Copyright years. Whitespace.
1975 2007-01-08 Richard Guenther <rguenther@suse.de>
1977 * trans-io.c (transfer_array_desc): Use build_int_cst instead
1980 2007-01-08 Roger Sayle <roger@eyesopen.com>
1982 * trans-array.c (constant_array_constructor_p): New function to
1983 determine whether an array constructor consists only of constant
1984 elements, and if so return it's size.
1985 (gfc_build_constant_array_constructor): Construct a statically
1986 initialized gfortran array for a given EXPR_ARRAY.
1987 (gfc_trans_constant_array_constructor): Efficiently scalarize
1988 a constant array constructor.
1989 (gfc_trans_array_constructor): Tidy up use of CONST_STRING.
1990 Special case scalarization of constant array constructors, all of
1991 whose elements are specified, using constant_array_constructor_p
1992 and gfc_trans_constant_array_constructor.
1993 (gfc_conv_scalarized_array_ref): Check whetger info->offset is zero
1994 before adding it to index, to avoid creating a NON_LVALUE_EXPR.
1996 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
1998 gfortran.texi: Fix typos.
2000 2007-01-07 Steven G. Kargl <kargl@gcc.gnu.org>
2002 * decl.c, dump-parse-tree.c, error.c, data.c, expr.c, dependency.c,
2003 convert.c: Update Copyright dates. Fix whitespace.
2005 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
2007 * data.c (gfc_assign_data_value): Fix whitespace.
2009 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
2011 * trans-array.c (gfc_trans_create_temp_array, gfc_array_init_size):
2012 Commentary typo fix.
2014 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
2017 * match.c (gfc_match_name): Print diagnostics for invalid
2020 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
2022 * array.c: Fix whitespace in comment table.
2024 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
2026 * array.c, bbt.c, check.c: Update copyright years. Whitespace.
2028 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
2030 * arith.c: Update copyright years. Whitespace.
2032 2007-01-05 Roger Sayle <roger@eyesopen.com>
2034 * trans-expr.c (gfc_trans_assignment_1): New subroutine to scalarize
2035 array assignments split out from gfc_trans_assignment.
2036 (gfc_trans_array_copy): New function to implement array to array
2037 copies via calls to __builtin_memcpy.
2038 (copyable_array_p): New helper function to identify an array of
2039 simple/POD types, that may be copied/assigned using memcpy.
2040 (gfc_trans_assignment): Use gfc_trans_array_copy to handle simple
2041 whole array assignments considered suitable by copyable_array_p.
2042 Invoke gfc_trans_assignment_1 to perform the fallback scalarization.
2044 2007-01-05 Roger Sayle <roger@eyesopen.com>
2046 * trans-array.c (gfc_trans_array_constructor_value): Make the
2047 static const "data" array as TREE_READONLY.
2048 * trans-stmt.c (gfc_trans_character_select): Likewise.
2050 2007-01-05 Roger Sayle <roger@eyesopen.com>
2052 * trans-array.c (gfc_conv_loop_setup): Test whether the loop
2053 stride is one, to avoid fold_build2 introducing a useless
2054 NON_LVALUE_EXPR node.
2056 2007-01-05 Tobias Burnus <burnus@net-b.de>
2058 * symbol.c (check_conflict): Fix error message.
2060 2007-01-05 Paul Thomas <pault@gcc.gnu.org>
2063 * decl.c (gfc_in_match_data, gfc_set_in_match_data): New
2064 functions to signal that a DATA statement is being matched.
2065 (gfc_match_data): Call gfc_set_in_match_data on entry and on
2067 * gfortran.h : Add prototypes for above.
2068 * expr.c (check_init_expr): Avoid check on parameter or
2069 variable if gfc_in_match_data is true.
2070 (gfc_match_init_expr): Do not call error on non-reduction of
2071 expression if gfc_in_match_data is true.
2075 * decl.c (gfc_set_constant_character_len): Add boolean arg to
2076 flag array constructor resolution. Warn if string is being
2077 truncated. Standard dependent error if string is padded. Set
2078 new arg to false for all three calls to
2079 gfc_set_constant_character_len.
2080 * match.h : Add boolean arg to prototype for
2081 gfc_set_constant_character_len.
2082 * gfortran.h : Add warn_character_truncation to gfc_options.
2083 * options.c (set_Wall): Set warn_character_truncation if -Wall
2085 * resolve.c (resolve_code): Warn if rhs string in character
2086 assignment has to be truncated.
2087 * array.c (gfc_resolve_character_array_constructor): Set new
2088 argument to true for call to gfc_set_constant_character_len.
2090 2007-01-05 Tobias Burnus <burnus@net-b.de>
2093 * interface.c (compare_parameter_intent): New function.
2094 (check_intents): Support pointer intents.
2095 * symbol.c (check_conflict): Support pointer intents,
2096 better conflict_std message.
2097 * expr.c (gfc_check_assign,gfc_check_pointer_assign):
2098 Support pointer intents.
2099 * resolve.c (resolve_deallocate_expr,resolve_allocate_expr):
2100 Support pointer intents.
2102 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
2105 * check.c (gfc_check_kill_sub): Add checks for non-scalar
2108 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
2110 * intrinsic.texi: Minor cleanup, reflowing overlong
2111 paragraphs, and correcting whitespace.
2113 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
2115 * intrinsic.texi (LBOUND): Add documentation.
2116 (LGE): Add documentation.
2117 (LGT): Add documentation.
2118 (LINK): Add documentation.
2119 (LLE): Add documentation.
2120 (LLT): Add documentation.
2121 (LNBLNK): Add documentation.
2122 (UBOUND): Add documentation.
2123 (UNLINK): Add documentation.
2125 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
2127 * intrinsic.texi (IAND): Clarify argument specifications.
2128 (IBCLR): Add documentation.
2129 (IBITS): Add documentation.
2130 (IBSET): Add documentation.
2131 (IEOR): Add documentation.
2132 (IERRNO): Add documentation.
2133 (INDEX): Add documentation.
2134 (IOR): Add documentation.
2135 (ISHFT): Add documentation.
2136 (ISHFTC): Add documentation.
2137 (KILL): Add documentation.
2138 (LEN_TRIM): Add documentation.
2140 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
2143 * interface.c (compare_actual_formal): check for
2144 alternate returns when iterating over non-present
2147 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
2149 * invoke.texi: Update manpage copyright to include 2007.
2151 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
2153 * gfortran.texi: Update copyright to include 2007.
2154 * intrinsic.texi: Update copyright to include 2007.
2155 * invoke.texi: Update copyright to include 2007.
2157 2007-01-02 Tobias Burnus <burnus@net-b.de>
2158 Jakub Jelinek <jakub@redhat.com>
2161 * scanner.c (open_included_file): Revert patch.
2162 (gfc_open_included_file): Support absolute pathnames.
2163 (gfc_open_intrinsic_module): Support absolute pathnames.
2165 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
2167 * gfortran.texi (GNU Fortran and GCC): Rewrite
2169 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
2171 * gfortran.texi (Introduction): Lower "Part I:
2172 Introduction" to a chapter, renumber Parts II and III to
2174 * intrinsic.texi (Introduction): Rename to "Introduction
2175 to Intrinsics" to avoid conflict with the new chapter.
2177 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
2179 * intrinsic.texi (Introduction): Rewrite first paragraph.
2181 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
2183 * invoke.texi (OpenMP): Added index entry.
2184 * gfortran.texi (title page): Removed erroneous '*'.
2186 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
2188 * gfortran.texi (GFORTRAN_DEFAULT_RECL): Added units
2190 (Extensions): Miscellaneous minor rewriting and copyediting.
2191 (BOZ-literal constants): Renamed from Hexadecimal constants.
2192 (Hollerith constants support): Added explanation and
2193 suggestions for standard-conforming modern equivalents.
2195 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
2197 * intrinsic.texi: Improvements to index entries; change
2198 @findex entries to @cindex entries.
2199 * invoke.texi: Standardize and improve index entries.
2200 * gfortran.texi: Fix @code in one index entry.
2202 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
2204 * invoke.texi: Change @code-type macros to appropriate
2205 variants (@command, @option, etc.)
2206 * gfortran.texi: Same.
2208 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
2210 * intrinsic.texi: Various minor cleanups.
2212 2007-01-02 Steven G. Kargl <kargls@comcast.net>
2214 * trans-intrinsic.c (gfc_conv_intrinsic_ibits): Fix call to
2217 2007-01-02 Tobias Burnus <burnus@net-b.de>
2220 * scanner.c (open_included_file): Support full-path filenames.
2222 2007-01-02 Paul Thomas <pault@gcc.gnu.org>
2225 * interface.c (check_sym_interfaces): Remove call to
2226 resolve_global_procedure.
2227 gfortran.h : Remove prototype for resolve_global_procedure.
2228 resolve.c (resolve_global_procedure): Add static attribute
2229 to function declaration.
2231 2007-01-01 Steven G. Kargl <kargls@comcast.net>
2233 * ChangeLog: Copy to ...
2234 * ChangeLog-2006: here.