1 2007-03-15 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3 * gfortran.h (gfc_option_t): Add flag_backtrace field.
4 * lang.opt: Add -fbacktrace option.
5 * invoke.texi: Document the new option.
6 * trans-decl.c (gfc_build_builtin_function_decls): Add new
7 option to the call to set_std.
8 * options.c (gfc_init_options, gfc_handle_option): Handle the
11 2007-03-15 Tobias Burnus <burnus@gcc.gnu.org>
12 Paul Thomas <pault@gcc.gnu.org>
15 * decl.c (gfc_match_import): If the parent of the current name-
16 space is null, try looking for an imported symbol in the parent
17 of the proc_name interface.
18 * resolve.c (resolve_fl_variable): Do not check for blocking of
19 host association by a same symbol, if the symbol is in an
22 2007-03-15 Paul Thomas <pault@gcc.gnu.org>
25 * decl.c (match_data_constant): Before going on to try to match
26 a name, try to match a structure component.
30 * resolve.c (resolve_actual_arglist): Do not reject a generic
31 actual argument if it has a same name specific interface.
34 * trans-array.c (parse_interface): Do not nullify allocatable
35 components if the symbol has the saved attribute.
37 2007-03-14 Francois-Xavier Coudert <coudert@clipper.ens.fr>
39 * trans-array.c (gfc_trans_auto_array_allocation): Replace
40 fold(convert()) by fold_convert().
41 (gfc_duplicate_allocatable): Likewise.
42 * trans-intrinsic.c (gfc_conv_intrinsic_dot_product): Use
43 build_int_cst instead of converting an integer_zero_node
46 2007-03-14 Jakub Jelinek <jakub@redhat.com>
48 * module.c (mio_typespec): Don't look at ts->cl if not BT_CHARACTER.
50 2007-03-13 Brooks Moses <brooks.moses@codesourcery.com>
55 * intrinsics.texi (CHDIR): Fix argument names, note
56 that STATUS must be a default integer.
57 (CTIME): Fix argument names, note that RESULT must
59 (EXIT): Note that STATUS must be a default integer.
61 2007-03-13 Brooks Moses <brooks.moses@codesourcery.com>
64 * intrinsic.texi: General whitespace cleanup, remove
65 comment about missing intrinsics.
66 (menu): Add lines for new entries listed below.
67 (ACOSH): Mention specific function DACOSH, correct
69 (ASINH): Mention specific function DASINH, correct
71 (ATANH): Mention specific function DATANH, correct
73 (COS): Add index entry for CCOS.
74 (CPU_TIME): Correct "REAL" to "REAL(*)".
75 (EXP): Add index entry for CEXP.
76 (INT): Correct argument name to "A".
80 (MAX): Add index entries for specific variants.
83 (SECNDS): Adjust to a more standard form.
85 (TIME): Add cross-reference to MCLOCK.
86 (TIME8): Add cross-reference to MCLOCK8.
88 2007-03-11 Paul Thomas <pault@gcc.gnu.org>
91 * parse.c (parse_interface): Use the default types from the
92 formal namespace if a function or its result do not have a type
93 after parsing the specification statements.
95 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
97 * intrinsic.texi: (ICHAR) Improve internal I/O note.
98 (ACHAR): Reference it.
100 (IACHAR): Reference it.
102 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
104 * intrinsic.texi: (LINK) Document function form.
110 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
112 * intrinsic.texi: minor typo fixes, removed prologue.
113 (FSEEK): moved to correct place in alphabetical order.
115 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
118 * check.c (gfc_check_alarm_sub): Added check for default integer
119 kind of status argument.
120 * iresolve.c (gfc_resolve_alarm_sub): Removed conversion of
122 * intrinsic.texi (ALARM): Extended documentation.
124 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
126 * intrinsic.texi (GERROR, ISATTY, TTYNAM): New.
127 (ABORT, FLUSH, FNUM, IRAND, MALLOC, SIGNAL, SRAND): Fixed typo.
128 * intrinsic.c (add_subroutines): Adjusted dummy argument names
129 of GERROR and TTYNAM.
131 2007-07-08 Tobias Burnus <burnus@net-b.de>
133 * module.c (gfc_match_use): Support renaming of operators
135 * gfortran.texi (Fortran 2003 Status): Document support of
136 renaming of operators.
138 2007-07-08 Tobias Burnus <burnus@net-b.de>
141 * module.c (read_module): Always import module name as symbol.
142 (gfc_match_use): Disallow module name in the only clause of
145 2007-03-08 Paul Thomas <pault@gcc.gnu.org>
148 * expr.c (find_array_section): Correct arithmetic for section
151 2007-03-07 Brooks Moses <brooks.moses@codesourcery.com>
153 * iresolve.c (gfc_resolve_ishftc): Correct s_kind value.
155 2007-03-06 Daniel Franke <franke.daniel@gmail.com>
157 PR documentation/30950
158 * intrinsic.texi (AND, CPU_TIME): Fix dummy argument names.
159 (FREE): Fix call syntax.
161 2007-03-06 Brooks Moses <brooks.moses@codesourcery.com>
163 * intrinsic.texi: Limit column widths to a total of .85.
165 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
167 * gfortran.texi (GFortran and G77): Rewrite completely.
169 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
171 * match.c (gfc_match_name): Expanded comment.
173 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
175 * gfortran.texi (Old-style kind specifications): Document
176 special handling of old-style kind specifiers for COMPLEX.
177 * decl.c (gfc_match_old_kind_spec): Document kind/bytesize
178 assumptions for COMPLEX in comment.
180 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
183 * gfortranspec.c (lang_specific_driver): Update program
184 name and copyright date.
186 2007-03-03 Paul Thomas <pault@gcc.gnu.org>
189 * check.c (dim_rank_check): The shape of subsections of
190 assumed-size arrays is known.
192 2007-03-02 Paul Thomas <pault@gcc.gnu.org>
193 Tobias Burnus <burnus@net-b.de>
196 * decl.c (gfc_match_entry): Remove erroneous entry result check.
198 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
200 * Make-lang.in: Add install-pdf target as copied from
201 automake v1.10 rules.
203 2007-03-01 Tobias Burnus <burnus@net-b.de>
206 * trans-intrinsic.c (gfc_conv_intrinsic_size): Compare pointers.
208 2007-02-28 Tobias Burnus <burnus@net-b.de>
209 Paul Thomas <pault@gcc.gnu.org>
213 * resolve.c (resolve_actual_arglist): Allow by-value
214 arguments and non-default-kind for %VAL().
215 * trans-expr.c (conv_arglist_function): Allow
216 non-default-kind for %VAL().
218 2007-02-28 Tobias Burnus <burnus@net-b.de>
221 * primary.c (next_string_char): Correct reading a character
223 (match_string_constant): Print warning message only once.
225 2007-02-27 Richard Guenther <rguenther@suse.de>
227 * trans-array.c (structure_alloc_comps): Use correct type
228 for null pointer constant.
230 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
232 * gfortran.texi: Standardize title page, remove version number
235 2007-02-26 Thomas Koenig <Thomas.Koenig@online.de>
236 Paul Thomas <pault@gcc.gnu.org>
239 * trans-intrinsic.c (gfc_conv_intrinsic_size):
240 If dim is an optional argument, check for its
241 presence and call size0 or size1, respectively.
243 2007-02-23 Paul Thomas <pault@gcc.gnu.org>
246 * resolve.c (has_default_initializer): New function.
247 (resolve_fl_variable): Call has_default_initializer to determine if
248 the derived type has a default initializer to its ultimate
252 2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
254 * options.c (set_default_std_flags): New function to consolidate
256 (gfc_init_options): Use new function.
257 (gfc_handle_option): Use new function.
259 2007-02-22 Brooks Moses <brooks.moses@codesourcery.com>
261 * gfortran.texi (Old-style kind specifications): Document
262 special handling of old-style kind specifiers for COMPLEX.
263 * decl.c (gfc_match_old_kind_spec): Documented kind/bytesize
264 assumptions in comment.
266 2007-02-21 Bernhard Fischer <aldot@gcc.gnu.org>
268 * parse.c (next_free): Gooble spaces after OpenMP sentinel.
270 2007-02-20 Thomas Koenig <Thomas.Koenig@online.de>
273 * match.c (gfc_match_iterator): Remove conflict between
274 loop variable and pointer.
276 2007-02-20 Tobias Burnus <burnus@net-b.de>
279 * symbol.c (gfc_add_volatile): Allow to set VOLATILE
280 attribute for host-associated variables.
281 * gfortran.h (symbol_attribute): Save namespace
282 where VOLATILE has been set.
283 * trans-decl.c (gfc_finish_var_decl): Move variable
284 declaration to the top.
286 2007-02-20 Tobias Burnus <burnus@net-b.de>
289 * resolve.c (resolve_symbol): Add character dummy VALUE check.
291 2007-02-19 Thomas Koenig <Thomas.Koenig@online.de>
294 * fortran/iresolve.c (gfc_resolve_maxloc): Remove coercion of
295 argument to default integer.
296 (gfc_resolve_minloc): Likewise.
298 2007-02-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
301 * options.c (gfc_init_options): Relax warning level for obsolescent.
302 * match.c (match_arithmetic_if): Change to obsolescent from deleted.
303 (gfc_match_if): Same.
305 2007-02-18 Roger Sayle <roger@eyesopen.com>
307 * trans-array.c (gfc_build_constant_array_constructor): When the
308 shape of the constructor is known, use that to construct the
310 (gfc_trans_constant_array_constructor): Initialize the "info"
311 information for all of the dimensions of the array constructor.
312 (constant_array_constructor_loop_size): New function.
313 (gfc_trans_array_constructor): Use it to determine whether a
314 loop is suitable for "constant array constructor" optimization.
316 * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Use fold_build2
317 instead of build2, to avoid conditions like "(a != b) != 0".
319 2007-02-18 Roger Sayle <roger@eyesopen.com>
320 Paul Thomas <pault@gcc.gnu.org>
323 * match.c (match_forall_iterator): Use gfc_match_expr instead
324 of gfc_match_variable to match the iterator variable. Return
325 MATCH_NO if not a variable. Remove the reset of the symbol's
328 2007-02-16 Tobias Burnus <burnus@net-b.de>
331 * trans-decl.c (gfc_generate_function_code): Do not initialize
332 pointers to derived components.
334 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
335 Brooks Moses <brooks.moses@codesourcery.com>
336 Lee Millward <lee.millward@codesourcery.com>
338 * trans-expr.c (gfc_conv_power_op): Use build_call_expr.
339 (gfc_conv_string_tmp): Likewise.
340 (gfc_conv_concat_op): Likewise.
341 (gfc_build_compare_string): Likewise.
342 (gfc_conv_function_call): Use build_call_list instead of build3.
344 * trans-array.c (gfc_trans_allocate_array_storage): Use
346 (gfc_grow_array): Likewise.
347 (gfc_trans_array_ctor_element): Likewise.
348 (gfc_trans_array_constructor_value): Likewise.
349 (gfc_array_allocate): Likewise.
350 (gfc_array_deallocate): Likewise.
351 (gfc_trans_auto_array_allocation): Likewise.
352 (gfc_trans_dummy_array_bias): Likewise.
353 (gfc_conv_array_parameter): Likewise.
354 (gfc_trans_dealloc_allocated): Likewise.
355 (gfc_duplicate_allocatable): Likewise.
357 * trans-openmp.c (gfc_trans_omp_barrier): Use build_call_expr.
358 (gfc_trans_omp_flush): Likewise.
360 * trans-stmt.c (gfc_conv_elementel_dependencies): Use build_call_expr.
361 (gfc_trans_pause): Likewise.
362 (gfc_trans_stop): Likewise.
363 (gfc_trans_character_select): Likewise.
364 (gfc_do_allocate): Likewise.
365 (gfc_trans_assign_need_temp): Likewise.
366 (gfc_trans_pointer_assign_need_temp): Likewise.
367 (gfc_trans_forall_1): Likewise.
368 (gfc_trans_where_2): Likewise.
369 (gfc_trans_allocate): Likewise.
370 (gfc_trans_deallocate): Likewise.
372 * trans.c (gfc_trans_runtime_check): Use build_call_expr.
374 * trans-io.c (gfc_trans_open): Use build_call_expr.
375 (gfc_trans_close): Likewise.
376 (build_filepos): Likewise.
377 (gfc_trans_inquire): Likewise.
378 (NML_FIRST_ARG): Delete.
379 (NML_ADD_ARG): Delete.
380 (transfer_namelist_element): Use build_call_expr.
381 (build_dt): Likewise.
382 (gfc_trans_dt_end): Likewise.
383 (transfer_expr): Likewise.
384 (transfer_array-desc): Likewise.
386 * trans-decl.c (gfc_generate_function_code): Use build_call_expr.
387 (gfc_generate_constructors): Likewise.
389 * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Use build_call_expr.
390 (gfc_conv_intrinsic_fdate): Likewise.
391 (gfc_conv_intrinsic_ttynam): Likewise.
392 (gfc_conv_intrinsic_array_transfer): Likewise.
393 (gfc_conv_associated): Likewise.
394 (gfc_conv_intrinsic_si_kind): Likewise.
395 (gfc_conv_intrinsic_trim): Likewise.
396 (gfc_conv_intrinsic_repeat: Likewise.
397 (gfc_conv_intrinsic_iargc): Likewise.
399 2007-02-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
402 * scanner.c (gfc_next_char_literal): Add check for end of file after
403 call to advance_line.
405 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
408 * primary.c (match_logical_constant): Return MATCH_ERROR on invalid
411 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
413 * misc.c (gfc_typename): Fix potential buffer overflow.
415 2007-02-13 Paul Thomas <pault@gcc.gnu.org>
418 * module.c (read_module): Set pointer_info to referenced if the
419 symbol has no namespace.
421 2007-02-12 Nick Clifton <nickc@redhat.com>
423 * lang.opt: Add Warning attribute to warning options.
425 2007-02-11 Daniel Franke <franke.daniel@gmail.com>
427 * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
428 (SLEEP): Added section and documentation.
430 2007-02-11 Tobias Schlüter <tobi@gcc.gnu.org>
433 * decl.c (add_init_expr_to_sym): Remove ENUM specific code.
434 (variable_decl): Likewise. Rewrap comment.
435 (match_attr_spec): Remove ENUM specific code.
436 (gfc_match_enum): Fix typo in error message.
437 (enumerator_decl): New function.
438 (gfc_match_enumerator_def): Use enumerator_decl instead of
439 variable_decl. Adapt code accordingly.
441 2007-02-11 Paul Thomas <pault@gcc.gnu.org>
444 * module.c (find_symtree_for_symbol): New function to return
445 a symtree that is not a "unique symtree" given a symbol.
446 (read_module): Do not automatically set pointer_info to
447 referenced because this inhibits the generation of a unique
448 symtree. Recycle the existing symtree if possible by calling
449 find_symtree_for_symbol.
452 * decl.c (add_init_expr_to_sym): Make new charlen for an array
453 constructor initializer.
455 2007-02-10 Richard Henderson <rth@redhat.com>, Jakub Jelinek <jakub@redhat.com>
457 * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
458 and __emutls_register_common.
459 * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
460 * trans-common.c (build_common_decl): Don't check have_tls.
461 * trans-decl.c (gfc_finish_var_decl): Likewise.
462 * types.def (BT_WORD, BT_FN_PTR_PTR): New.
463 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
465 2007-02-09 Tobias Burnus <burnus@net-b.de>
468 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc,
469 gfc_conv_intrinsic_minmaxval): Use HUGE-1 for most negative integer.
471 2007-02-09 Francois-Xavier Coudert <coudert@clipper.ens.fr>
474 * trans-array.c (gfc_trans_create_temp_array): Remove use of the
475 function argument. Always generate code for negative extent.
477 * trans-array.h (gfc_trans_create_temp_array): Change prototype.
478 * trans-expr.c (gfc_conv_function_call): Remove use of last argument
479 of gfc_trans_create_temp_array.
480 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Likewise.
481 * trans-stmt.c (gfc_conv_elemental_dependencies): Likewise.
483 2007-02-08 Roger Sayle <roger@eyesopen.com>
485 * trans-stmt.c (gfc_trans_forall_1): Optimize the cases where the
486 mask expression is a compile-time constant (".true." or ".false.").
488 2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
491 * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Evaluate
492 arguments only once. Generate check that NCOPIES argument is not
495 2007-02-04 Steven G. Kargl <kargl@gcc.gnu.org>
498 * fortran/invoke.texi: Update documentation.
499 * fortran/options.c (gfc_post_options): Deal with tabs with -std=f2003
502 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
504 * trans-array.c: Fix a comment typo.
506 2007-02-03 Paul Thomas <pault@gcc.gnu.org>
509 * array.c (match_array_element_spec): If the length of an array is
510 negative, adjust the upper limit to make it zero length.
513 * resolve.c (pure_function, resolve_function): Initialize name to
514 null to clear up build warnings.
515 (resolve_fl_variable): Look at components explicitly to check for
516 default initializer, rather than using gfc_default_initializer.
518 2007-02-02 Steven G. Kargl <kargl@gcc.gnu.org>
521 * resolve.c (resolve_generic_f): Check for non-NULL sym.
523 2007-02-02 Roger Sayle <roger@eyesopen.com>
525 * trans.c (gfc_build_array_ref): Use STRIP_TYPE_NOPS to eliminate
526 NON_LVALUE_EXPR nodes and useless type conversions.
528 2007-02-02 Paul Thomas <pault@gcc.gnu.org>
532 * trans-expr.c (gfc_conv_aliased_arg): Remove static attribute
533 from function and make sure that substring lengths are
535 (is_aliased_array): Remove static attribute.
536 * trans.c : Add prototypes for gfc_conv_aliased_arg and
538 * trans-io.c (set_internal_unit): Add the post block to the
539 arguments of the function. Use is_aliased_array to check if
540 temporary is needed; if so call gfc_conv_aliased_arg.
541 (build_dt): Pass the post block to set_internal_unit and
542 add to the block after all io activiy is done.
544 2007-02-01 Roger Sayle <roger@eyesopen.com>
546 * trans-array.c (gfc_conv_expr_descriptor): We don't need to use
547 a temporary array to pass a constant non-character array constructor.
548 Generalize the descriptor generation code to handle scalarizer
549 "info" without an array reference.
551 2007-02-01 Roger Sayle <roger@eyesopen.com>
553 * dependency.c (gfc_check_dependency) <EXPR_ARRAY>: Implement
554 dependency checking for array constructors.
556 2007-02-01 Roger Sayle <roger@eyesopen.com>
558 * trans-stmt.c (compute_overall_iter_number): Document function
559 arguments. Generalize "unconditional forall nest with constant
560 bounds" optimization to eliminate unconditional inner loops with
563 2007-01-31 Tobias Burnus <burnus@net-b.de>
566 * interface.c (compare_actual_formal): Check conformance between
567 actual and VOLATILE dummy arguments.
568 * symbol.c (gfc_add_volatile): Allow setting of VOLATILE
569 multiple times in different scopes.
570 * decl.c (gfc_match_volatile): Search symbol in host association.
572 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
574 * simplify.c, trans-array.c: Fix comment typos.
576 2007-01-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
578 * invoke.texi (Code Gen Options): Fix abbreviation typo.
579 * intrinsic.texi (ACCESS, LSHIFT, RSHIFT): Fix typos.
581 2007-01-30 Steve Ellcey <sje@cup.hp.com>
584 * trans-types.c (gfc_get_function_type): Do not add void_type_node
586 * trans-decl.c (create_function_arglist): Change assert.
588 2007-01-29 Paul Thomas <pault@gcc.gnu.org>
591 * module.c (read_module): If a symbol is excluded by an ONLY
592 clause, check to see if there is a symtree already loaded. If
593 so, attach the symtree to the pointer_info.
595 2007-01-28 Thomas Koenig <Thomas.Koenig@online.de>
598 * gfortran.h: Remove gfc_simplify_init_1.
599 * arith.h: Remove third argument from gfc_compare_string.
600 * arith.c (gfc_compare_expression): Remove third argument
601 from call to gfc_compare_string.
602 (gfc_compare_string): Remove third argument xcoll_table.
603 Remove use of xcoll_table.
604 * misc.c (gfc_init_1): Remove call to gfc_simplify_init_1.
605 * simplify.c (ascii_table): Remove.
606 (xascii_table): Likewise.
607 (gfc_simplify_achar): ICE if extract_int fails. Remove use of
608 ascii_table. Warn if -Wsurprising and value < 0 or > 127.
609 (gfc_simplify_char): ICE if extract_int fails. Error if
610 value < 0 or value > 255.
611 (gfc_simplify_iachar): Remove use of xascii_table.
612 Char values outside of 0..255 are an ICE.
613 (gfc_simplify_lge): Remove use of xascii_table.
614 (gfc_simplify_lgt): Likewise.
615 (gfc_simplify_lle): Likewise.
616 (gfc_simplify_llt): Likewise.
617 (invert_table): Remove.
618 (gfc_simplify_init_1): Remove.
620 2007-01-27 Roger Sayle <roger@eyesopen.com>
622 * trans-stmt.c (forall_info): Replace the next_nest and outer
623 fields that previously implemented a doubly-linked list with a
624 single prev_nest field (singly-linked list).
625 (gfc_trans_nested_forall_loop): The nested_forall_info argument
626 now denotes the innermost FORALL in the loop nest.
627 (compute_overall_iter_number): Use prev_nest instead of next_nest.
628 (gfc_trans_forall_1): Link/cons the new "info" to the head of the
629 nested_forall_info linked list. Free the current "info" when done.
631 2007-01-27 Paul Thomas <pault@gcc.gnu.org>
634 * trans-expr.c (gfc_conv_operator_assign): New function.
635 * trans.h : Add prototype for gfc_conv_operator_assign.
636 * trans-stmt.c (gfc_trans_where_assign): Add a gfc_symbol for
637 a potential operator assignment subroutine. If it is non-NULL
638 call gfc_conv_operator_assign instead of the first assignment.
639 ( gfc_trans_where_2): In the case of an operator assignment,
640 extract the argument expressions from the code for the
641 subroutine call and pass the symbol to gfc_trans_where_assign.
642 resolve.c (resolve_where, gfc_resolve_where_code_in_forall,
643 gfc_resolve_forall_body): Resolve the subroutine call for
644 operator assignments.
646 2007-01-26 Steven Bosscher <stevenb.gcc@gmail.com>
647 Steven G. Kargl <kargl@gcc.gnu.org>
650 * fortran/io.c (next_char): Deal with backslash escaped characters.
651 Issue warnings in non -std=gnu cases.
652 * fortran/primary.c (next_string_char): Issue warnings in non
654 2007-01-26 Tobias Burnus <burnus@net-b.de>
656 * lang-specs.h: Add support for .f03 and .F03 extensions.
657 * gfortran.texi: Document .f03 extension.
658 * options.c (form_from_filename): Recognize .f03.
660 2007-01-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
663 * lang.opt (Wall): Remove RejectNegative.
664 * options.c (gfc_handle_option): Wall can be disabled.
665 (set_Wall): Add a parameter for disabling Wall.
667 2007-01-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
670 * scanner.c (load_line): Remove check fot ctrl-z and don't gobble.
672 2007-01-23 Paul Thomas <pault@gcc.gnu.org>
675 * match.c (gfc_match_namelist): Add check for assumed size character
676 in namelist and provide error if found.
678 2007-01-21 Brooks Moses <brooks.moses@codesourcery.com>
680 * intrinsic.texi (ACHAR): Added cross-references.
681 (CHAR): Put cross-references in alphabetical order.
682 (IACHAR): Added cross-references.
683 (ICHAR): Added cross-references.
685 2007-01-20 Brooks Moses <brooks.moses@codesourcery.com>
687 * intrinsic.texi: Edited all "Syntax" examples to a consistent form.
688 (MAXVAL): Corrected description of result characteristics.
690 (UMASK): Added documentation.
692 2007-01-20 Steven G. Kargl <kargl@gcc.gnu.org>
694 * openmp.c, matchexp.c, module.c, scanner.c, resolve.c, st.c,
695 parse.c, primary.c, options.c, misc.c, simplify.c: Next installment
696 in the massive whitespace patch.
698 2007-01-20 Roger Sayle <roger@eyesopen.com>
700 * module.c (mio_array_ref): The dimen_type fields of an array ref
701 are an enumerated type and can't be read/written directly with a
702 call to mio_integer. Instead loop over and cast each element.
704 2007-01-20 Roger Sayle <roger@eyesopen.com>
706 * dependency.c (gfc_full_array_ref_p): Check that ref->next is NULL,
707 i.e. that the ARRAY_REF doesn't mention components.
708 * trans-array.c (gfc_constant_array_constructor_p): Export external
709 function renamed from constant_array_constructor_p.
710 (gfc_build_constant_array_constructor): Export.
711 (gfc_trans_array_constructor): Update call to the renamed function
712 constant_array_constructor_p.
713 * trans-array.h (gfc_constant_array_constructor_p): Prototype here.
714 (gfc_build_constant_array_constructor): Likewise.
715 * trans-expr.c (gfc_build_memcpy_call): New helper function split
716 out from gfc_trans_array_copy.
717 (gfc_trans_array_copy): Use gfc_build_memcpy_call.
718 (gfc_trans_array_constructor_copy): New function to optimize
719 assigning an entire array from a constant array constructor.
720 (gfc_trans_assignment): Call gfc_trans_array_constructor_copy
723 2007-01-20 Roger Sayle <roger@eyesopen.com>
725 * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
726 implementation for the SIGN intrinsic with integral operands.
727 (gfc_conv_intrinsic_minmax): Fix whitespace.
729 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
731 * gfortran.h (gfc_options_t): Add flag_allow_leading_underscore.
732 * lang.opt: Add -fallow-leading-underscore.
733 * match.c (gfc_match_name): Allow leading underscore in symbol
734 name if -fallow-leading-underscore is used.
735 * symbol.c (gfc_get_default_type): Add special case for symbol
736 names beginning with an underscore.
737 * trans-decl.c (gfc_get_extern_function_decl,
738 gfc_build_intrinsic_function_decls): Add _gfortran prefix to
739 library symbols selected_int_kind, selected_real_kind and
741 * options.c (gfc_init_options, gfc_handle_option): Handle the
742 new -fallow-leading-underscore option.
744 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
747 * options.c (gfc_handle_module_path_options): Path used in -J
748 option is now added to the module search path.
750 2007-01-20 Richard Guenther <rguenther@suse.de>
753 * f95-lang.c (gfc_init_builtin_functions): Provide cbrt and
754 cexpi builtins if we have TARGET_C99_FUNCTIONS. Provide
755 sincos builtins if the target has sincos.
757 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
759 * intrinsic.texi (MATMUL): Corrected a typo.
760 (MAX): Separated @var arguments.
761 (MIN): Separated @var arguments.
763 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
765 * intrinsic.texi: general whitespace cleanup.
766 (menu): Added TIME8, removed UNMASK.
767 (AINT): Clarified argument requirement.
768 (ANINT): Clarified argument requirement.
769 (CEILING): Clarified argument requirement.
770 (CHAR): Clarified argument requirement.
771 (CMPLX): Clarified argument requirement.
772 (DCMPLX): Clarified argument requirement.
773 (FGET): Line rewrapping.
774 (FLOOR): Clarified argument requirement.
775 (GMTIME): Added documentation.
776 (IAND): Added cross-reference.
777 (IBCLR): Added cross-reference.
778 (IBSET): Added cross-reference.
779 (IEOR): Added cross-reference.
780 (INT): Collapsed examples, clarified argument requirement.
781 (IOR): Added cross-references.
782 (LEN_TRIM): Corrected result kind.
783 (LINK): Added cross-reference.
784 (LLT): Removed "documentation pending".
785 (LOGICAL): Added documentation.
786 (LSHIFT): Added documentation.
787 (LTIME): Added documentation.
788 (MATMUL): Added documentation.
789 (MAX): Added documentation.
790 (MAXLOC): Added documentation.
791 (MAXVAL): Added documentation.
792 (MERGE): Added documentation.
793 (MIN): Added documentation.
794 (MINLOC): Added documentation.
795 (MINVAL): Added documentation.
796 (MVBITS): Moved to correct place, added documentation.
797 (NOT): Added documentation.
798 (PERROR): Added documentation.
799 (RAN): Moved to correct place, added documentation.
800 (REAL): Clarified argument requirement.
801 (RENAME): Added documentation.
802 (RSHIFT): Clarified argument requirement.
803 (SIGN): Corrected table specification.
804 (SYMLNK): Added documentation.
805 (SYSTEM): Added documentation.
806 (TIME): Added documentation.
807 (TIME8): Added section and documentation.
808 (UNMASK): Removed erroneous section.
810 2007-01-18 H.J. Lu <hongjiu.lu@intel.com>
812 * trans-stmt.c (compute_overall_iter_number): Fix a typo.
814 2007-01-18 Roger Sayle <roger@eyesopen.com>
816 * trans-expr.c (copyable_array_p): Consider user derived types without
817 allocatable components to be copyable.
819 2007-01-18 Roger Sayle <roger@eyesopen.com>
821 * trans-stmt.c (compute_overall_iter_number): Enhance to precompute
822 the number of interations in unconditional FORALL nests with constant
825 2007-01-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
826 Tobias Burnus <burnus@net-b.de>
829 * gfortran.h (gfc_option_t): Add flag_dump_core.
830 * lang.opt: Add -fdump-core option.
831 * invoke.texi: Document the new options.
832 * trans-decl.c (gfc_build_builtin_function_decls): Add new
833 options to the call to set_std.
834 * options.c (gfc_init_options, gfc_handle_option): Set the
837 2007-01-17 Paul Thomas <pault@gcc.gnu.org>
840 * module.c (load_generic_interfaces): Make the marking of the
841 symbol as ambiguous conditional on the module names being
843 (write_generic): Ensure that the generic interface has a
844 non-NULL module field.
846 2007-01-16 Roger Sayle <roger@eyesopen.com>
849 * trans-stmt.c (forall_info): Remove pmask field.
850 (gfc_trans_forall_loop): Remove NVAR argument, instead assume that
851 NVAR covers all the interation variables in the current forall_info.
852 Add an extra OUTER parameter, which specified the loop header in
853 which to place mask index initializations.
854 (gfc_trans_nested_forall_loop): Remove NEST_FLAG argument.
855 Change the semantics of MASK_FLAG to only control the mask in the
857 (compute_overall_iter_number): Optimize the trivial case of a
858 top-level loop having a constant number of iterations. Update
859 call to gfc_trans_nested_forall_loop. Calculate the number of
860 times the inner loop will be executed, not to size of the
862 (allocate_temp_for_forall_nest_1): Reuse SIZE as BYTESIZE when
863 sizeof(type) == 1. Tidy up.
864 (gfc_trans_assign_need_temp): Remove NEST_FLAG argument from calls
865 to gfc_trans_nested_forall_loop.
866 (gfc_trans_pointer_assign_need_temp): Likewise.
867 (gfc_trans_forall_1): Remove unused BYTESIZE, TMPVAR, SIZEVAR and
868 LENVAR local variables. Split mask allocation into a separate
869 hunk/pass from mask population. Use allocate_temp_for_forall_nest
870 to allocate the FORALL mask with the correct size. Update calls
871 to gfc_trans_nested_forall_loop.
872 (gfc_evaluate_where_mask): Update call to
873 gfc_trans_nested_forall_loop.
874 (gfc_trans_where_2): Likewise.
876 2007-01-15 Paul Thomas <pault@gcc.gnu.org>
879 * trans-stmt.c (gfc_trans_call): If it does not have one, get
880 a backend_decl for an alternate return.
883 * resolve.c (pure_function): Statement functions are pure. Note
884 that this will have to recurse to comply fully with F95.
887 * resolve.c (resolve_function): Only a reference to the final
888 dimension of an assumed size array is an error in an inquiry
892 * resolve.c (resolve_function): Make sure that the function
893 expression has a type.
895 2007-01-14 Paul Thomas <pault@gcc.gnu.org>
898 * trans-decl.c (gfc_sym_mangled_function_id): Module, external
899 symbols must not have the module name prepended.
901 2007-01-11 Thomas Koenig <Thomas.Koenig@online.de>
904 * iresolve.c (gfc_resolve_maxloc): If the rank
905 of the return array is nonzero and we process an
906 integer array smaller than default kind, coerce
907 the array to default integer.
908 * iresolve.c (gfc_resolve_minloc): Likewise.
910 2007-01-11 Brooks Moses <brooks.moses@codesourcery.com>
912 * simplify.c: Update copyright to 2007.
915 2007-01-11 Francois-Xavier Coudert <coudert@clipper.ens.fr>
918 * scanner.c (gfc_release_include_path): Free gfc_option.module_dir
921 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
923 * simplify.c (gfc_simplify_ibclr): Fix POS comparison.
924 (gfc_simplify_ibset): Same.
926 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
930 * simplify.c (convert_mpz_to_unsigned): New function.
931 (convert_mpz_to_signed): New function, largely based on
933 (twos_complement): Removed.
934 (gfc_simplify_ibclr): Add conversions to and from an
935 unsigned representation before bit-twiddling.
936 (gfc_simplify_ibset): Same.
937 (gfc_simplify_ishftc): Add checks for overly large
938 constant arguments, only check the third argument if
939 it's present, carry over high bits into the result as
940 appropriate, and perform the final conversion back to
941 a signed representation using the correct sign bit.
942 (gfc_simplify_not): Removed unnecessary masking.
944 2007-01-09 Paul Thomas <pault@gcc.gnu.org>
947 * resolve.c (resolve_code): Use the code->expr character length
948 directly to set length of llen.
950 2007-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
953 * lang.opt: Add Wcharacter_truncation option.
954 * options.c (gfc_init_options): Initialize
955 gfc_option.warn_character_truncation to zero.
956 (gfc_handle_option): Add case for OPT_Wcharacter_truncation.
958 2007-01-08 Steven G. Kargl <kargl@gcc.gnu.org>
960 * interface.c, intrinsic.c, gfortranspec.c, io.c, f95-lang.c,
961 iresolve.c, match.c: Update Copyright years. Whitespace.
963 2007-01-08 Richard Guenther <rguenther@suse.de>
965 * trans-io.c (transfer_array_desc): Use build_int_cst instead
968 2007-01-08 Roger Sayle <roger@eyesopen.com>
970 * trans-array.c (constant_array_constructor_p): New function to
971 determine whether an array constructor consists only of constant
972 elements, and if so return it's size.
973 (gfc_build_constant_array_constructor): Construct a statically
974 initialized gfortran array for a given EXPR_ARRAY.
975 (gfc_trans_constant_array_constructor): Efficiently scalarize
976 a constant array constructor.
977 (gfc_trans_array_constructor): Tidy up use of CONST_STRING.
978 Special case scalarization of constant array constructors, all of
979 whose elements are specified, using constant_array_constructor_p
980 and gfc_trans_constant_array_constructor.
981 (gfc_conv_scalarized_array_ref): Check whetger info->offset is zero
982 before adding it to index, to avoid creating a NON_LVALUE_EXPR.
984 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
986 gfortran.texi: Fix typos.
988 2007-01-07 Steven G. Kargl <kargl@gcc.gnu.org>
990 * decl.c, dump-parse-tree.c, error.c, data.c, expr.c, dependency.c,
991 convert.c: Update Copyright dates. Fix whitespace.
993 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
995 * data.c (gfc_assign_data_value): Fix whitespace.
997 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
999 * trans-array.c (gfc_trans_create_temp_array, gfc_array_init_size):
1000 Commentary typo fix.
1002 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
1005 * match.c (gfc_match_name): Print diagnostics for invalid
1008 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
1010 * array.c: Fix whitespace in comment table.
1012 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
1014 * array.c, bbt.c, check.c: Update copyright years. Whitespace.
1016 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
1018 * arith.c: Update copyright years. Whitespace.
1020 2007-01-05 Roger Sayle <roger@eyesopen.com>
1022 * trans-expr.c (gfc_trans_assignment_1): New subroutine to scalarize
1023 array assignments split out from gfc_trans_assignment.
1024 (gfc_trans_array_copy): New function to implement array to array
1025 copies via calls to __builtin_memcpy.
1026 (copyable_array_p): New helper function to identify an array of
1027 simple/POD types, that may be copied/assigned using memcpy.
1028 (gfc_trans_assignment): Use gfc_trans_array_copy to handle simple
1029 whole array assignments considered suitable by copyable_array_p.
1030 Invoke gfc_trans_assignment_1 to perform the fallback scalarization.
1032 2007-01-05 Roger Sayle <roger@eyesopen.com>
1034 * trans-array.c (gfc_trans_array_constructor_value): Make the
1035 static const "data" array as TREE_READONLY.
1036 * trans-stmt.c (gfc_trans_character_select): Likewise.
1038 2007-01-05 Roger Sayle <roger@eyesopen.com>
1040 * trans-array.c (gfc_conv_loop_setup): Test whether the loop
1041 stride is one, to avoid fold_build2 introducing a useless
1042 NON_LVALUE_EXPR node.
1044 2007-01-05 Tobias Burnus <burnus@net-b.de>
1046 * symbol.c (check_conflict): Fix error message.
1048 2007-01-05 Paul Thomas <pault@gcc.gnu.org>
1051 * decl.c (gfc_in_match_data, gfc_set_in_match_data): New
1052 functions to signal that a DATA statement is being matched.
1053 (gfc_match_data): Call gfc_set_in_match_data on entry and on
1055 * gfortran.h : Add prototypes for above.
1056 * expr.c (check_init_expr): Avoid check on parameter or
1057 variable if gfc_in_match_data is true.
1058 (gfc_match_init_expr): Do not call error on non-reduction of
1059 expression if gfc_in_match_data is true.
1063 * decl.c (gfc_set_constant_character_len): Add boolean arg to
1064 flag array constructor resolution. Warn if string is being
1065 truncated. Standard dependent error if string is padded. Set
1066 new arg to false for all three calls to
1067 gfc_set_constant_character_len.
1068 * match.h : Add boolean arg to prototype for
1069 gfc_set_constant_character_len.
1070 * gfortran.h : Add warn_character_truncation to gfc_options.
1071 * options.c (set_Wall): Set warn_character_truncation if -Wall
1073 * resolve.c (resolve_code): Warn if rhs string in character
1074 assignment has to be truncated.
1075 * array.c (gfc_resolve_character_array_constructor): Set new
1076 argument to true for call to gfc_set_constant_character_len.
1078 2007-01-05 Tobias Burnus <burnus@net-b.de>
1081 * interface.c (compare_parameter_intent): New function.
1082 (check_intents): Support pointer intents.
1083 * symbol.c (check_conflict): Support pointer intents,
1084 better conflict_std message.
1085 * expr.c (gfc_check_assign,gfc_check_pointer_assign):
1086 Support pointer intents.
1087 * resolve.c (resolve_deallocate_expr,resolve_allocate_expr):
1088 Support pointer intents.
1090 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1093 * check.c (gfc_check_kill_sub): Add checks for non-scalar
1096 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1098 * intrinsic.texi: Minor cleanup, reflowing overlong
1099 paragraphs, and correcting whitespace.
1101 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1103 * intrinsic.texi (LBOUND): Add documentation.
1104 (LGE): Add documentation.
1105 (LGT): Add documentation.
1106 (LINK): Add documentation.
1107 (LLE): Add documentation.
1108 (LLT): Add documentation.
1109 (LNBLNK): Add documentation.
1110 (UBOUND): Add documentation.
1111 (UNLINK): Add documentation.
1113 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1115 * intrinsic.texi (IAND): Clarify argument specifications.
1116 (IBCLR): Add documentation.
1117 (IBITS): Add documentation.
1118 (IBSET): Add documentation.
1119 (IEOR): Add documentation.
1120 (IERRNO): Add documentation.
1121 (INDEX): Add documentation.
1122 (IOR): Add documentation.
1123 (ISHFT): Add documentation.
1124 (ISHFTC): Add documentation.
1125 (KILL): Add documentation.
1126 (LEN_TRIM): Add documentation.
1128 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1131 * interface.c (compare_actual_formal): check for
1132 alternate returns when iterating over non-present
1135 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1137 * invoke.texi: Update manpage copyright to include 2007.
1139 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1141 * gfortran.texi: Update copyright to include 2007.
1142 * intrinsic.texi: Update copyright to include 2007.
1143 * invoke.texi: Update copyright to include 2007.
1145 2007-01-02 Tobias Burnus <burnus@net-b.de>
1146 Jakub Jelinek <jakub@redhat.com>
1149 * scanner.c (open_included_file): Revert patch.
1150 (gfc_open_included_file): Support absolute pathnames.
1151 (gfc_open_intrinsic_module): Support absolute pathnames.
1153 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1155 * gfortran.texi (GNU Fortran and GCC): Rewrite
1157 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1159 * gfortran.texi (Introduction): Lower "Part I:
1160 Introduction" to a chapter, renumber Parts II and III to
1162 * intrinsic.texi (Introduction): Rename to "Introduction
1163 to Intrinsics" to avoid conflict with the new chapter.
1165 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1167 * intrinsic.texi (Introduction): Rewrite first paragraph.
1169 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1171 * invoke.texi (OpenMP): Added index entry.
1172 * gfortran.texi (title page): Removed erroneous '*'.
1174 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1176 * gfortran.texi (GFORTRAN_DEFAULT_RECL): Added units
1178 (Extensions): Miscellaneous minor rewriting and copyediting.
1179 (BOZ-literal constants): Renamed from Hexadecimal constants.
1180 (Hollerith constants support): Added explanation and
1181 suggestions for standard-conforming modern equivalents.
1183 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1185 * intrinsic.texi: Improvements to index entries; change
1186 @findex entries to @cindex entries.
1187 * invoke.texi: Standardize and improve index entries.
1188 * gfortran.texi: Fix @code in one index entry.
1190 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1192 * invoke.texi: Change @code-type macros to appropriate
1193 variants (@command, @option, etc.)
1194 * gfortran.texi: Same.
1196 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1198 * intrinsic.texi: Various minor cleanups.
1200 2007-01-02 Steven G. Kargl <kargls@comcast.net>
1202 * trans-intrinsic.c (gfc_conv_intrinsic_ibits): Fix call to
1205 2007-01-02 Tobias Burnus <burnus@net-b.de>
1208 * scanner.c (open_included_file): Support full-path filenames.
1210 2007-01-02 Paul Thomas <pault@gcc.gnu.org>
1213 * interface.c (check_sym_interfaces): Remove call to
1214 resolve_global_procedure.
1215 gfortran.h : Remove prototype for resolve_global_procedure.
1216 resolve.c (resolve_global_procedure): Add static attribute
1217 to function declaration.
1219 2007-01-01 Steven G. Kargl <kargls@comcast.net>
1221 * ChangeLog: Copy to ...
1222 * ChangeLog-2006: here.