1 2007-03-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4 * invoke.texi: Fix typo.
6 2007-03-16 Tobias Burnus <burnus@net-b.de>
8 * trans-decl.c (gfc_generate_function_code): Use all arguments of
11 2007-03-15 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13 * gfortran.h (gfc_option_t): Add flag_backtrace field.
14 * lang.opt: Add -fbacktrace option.
15 * invoke.texi: Document the new option.
16 * trans-decl.c (gfc_build_builtin_function_decls): Add new
17 option to the call to set_std.
18 * options.c (gfc_init_options, gfc_handle_option): Handle the
21 2007-03-15 Tobias Burnus <burnus@gcc.gnu.org>
22 Paul Thomas <pault@gcc.gnu.org>
25 * decl.c (gfc_match_import): If the parent of the current name-
26 space is null, try looking for an imported symbol in the parent
27 of the proc_name interface.
28 * resolve.c (resolve_fl_variable): Do not check for blocking of
29 host association by a same symbol, if the symbol is in an
32 2007-03-15 Paul Thomas <pault@gcc.gnu.org>
35 * decl.c (match_data_constant): Before going on to try to match
36 a name, try to match a structure component.
40 * resolve.c (resolve_actual_arglist): Do not reject a generic
41 actual argument if it has a same name specific interface.
44 * trans-array.c (parse_interface): Do not nullify allocatable
45 components if the symbol has the saved attribute.
47 2007-03-14 Francois-Xavier Coudert <coudert@clipper.ens.fr>
49 * trans-array.c (gfc_trans_auto_array_allocation): Replace
50 fold(convert()) by fold_convert().
51 (gfc_duplicate_allocatable): Likewise.
52 * trans-intrinsic.c (gfc_conv_intrinsic_dot_product): Use
53 build_int_cst instead of converting an integer_zero_node
56 2007-03-14 Jakub Jelinek <jakub@redhat.com>
58 * module.c (mio_typespec): Don't look at ts->cl if not BT_CHARACTER.
60 2007-03-13 Brooks Moses <brooks.moses@codesourcery.com>
65 * intrinsics.texi (CHDIR): Fix argument names, note
66 that STATUS must be a default integer.
67 (CTIME): Fix argument names, note that RESULT must
69 (EXIT): Note that STATUS must be a default integer.
71 2007-03-13 Brooks Moses <brooks.moses@codesourcery.com>
74 * intrinsic.texi: General whitespace cleanup, remove
75 comment about missing intrinsics.
76 (menu): Add lines for new entries listed below.
77 (ACOSH): Mention specific function DACOSH, correct
79 (ASINH): Mention specific function DASINH, correct
81 (ATANH): Mention specific function DATANH, correct
83 (COS): Add index entry for CCOS.
84 (CPU_TIME): Correct "REAL" to "REAL(*)".
85 (EXP): Add index entry for CEXP.
86 (INT): Correct argument name to "A".
90 (MAX): Add index entries for specific variants.
93 (SECNDS): Adjust to a more standard form.
95 (TIME): Add cross-reference to MCLOCK.
96 (TIME8): Add cross-reference to MCLOCK8.
98 2007-03-11 Paul Thomas <pault@gcc.gnu.org>
101 * parse.c (parse_interface): Use the default types from the
102 formal namespace if a function or its result do not have a type
103 after parsing the specification statements.
105 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
107 * intrinsic.texi: (ICHAR) Improve internal I/O note.
108 (ACHAR): Reference it.
109 (CHAR): Reference it.
110 (IACHAR): Reference it.
112 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
114 * intrinsic.texi: (LINK) Document function form.
120 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
122 * intrinsic.texi: minor typo fixes, removed prologue.
123 (FSEEK): moved to correct place in alphabetical order.
125 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
128 * check.c (gfc_check_alarm_sub): Added check for default integer
129 kind of status argument.
130 * iresolve.c (gfc_resolve_alarm_sub): Removed conversion of
132 * intrinsic.texi (ALARM): Extended documentation.
134 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
136 * intrinsic.texi (GERROR, ISATTY, TTYNAM): New.
137 (ABORT, FLUSH, FNUM, IRAND, MALLOC, SIGNAL, SRAND): Fixed typo.
138 * intrinsic.c (add_subroutines): Adjusted dummy argument names
139 of GERROR and TTYNAM.
141 2007-07-08 Tobias Burnus <burnus@net-b.de>
143 * module.c (gfc_match_use): Support renaming of operators
145 * gfortran.texi (Fortran 2003 Status): Document support of
146 renaming of operators.
148 2007-07-08 Tobias Burnus <burnus@net-b.de>
151 * module.c (read_module): Always import module name as symbol.
152 (gfc_match_use): Disallow module name in the only clause of
155 2007-03-08 Paul Thomas <pault@gcc.gnu.org>
158 * expr.c (find_array_section): Correct arithmetic for section
161 2007-03-07 Brooks Moses <brooks.moses@codesourcery.com>
163 * iresolve.c (gfc_resolve_ishftc): Correct s_kind value.
165 2007-03-06 Daniel Franke <franke.daniel@gmail.com>
167 PR documentation/30950
168 * intrinsic.texi (AND, CPU_TIME): Fix dummy argument names.
169 (FREE): Fix call syntax.
171 2007-03-06 Brooks Moses <brooks.moses@codesourcery.com>
173 * intrinsic.texi: Limit column widths to a total of .85.
175 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
177 * gfortran.texi (GFortran and G77): Rewrite completely.
179 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
181 * match.c (gfc_match_name): Expanded comment.
183 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
185 * gfortran.texi (Old-style kind specifications): Document
186 special handling of old-style kind specifiers for COMPLEX.
187 * decl.c (gfc_match_old_kind_spec): Document kind/bytesize
188 assumptions for COMPLEX in comment.
190 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
193 * gfortranspec.c (lang_specific_driver): Update program
194 name and copyright date.
196 2007-03-03 Paul Thomas <pault@gcc.gnu.org>
199 * check.c (dim_rank_check): The shape of subsections of
200 assumed-size arrays is known.
202 2007-03-02 Paul Thomas <pault@gcc.gnu.org>
203 Tobias Burnus <burnus@net-b.de>
206 * decl.c (gfc_match_entry): Remove erroneous entry result check.
208 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
210 * Make-lang.in: Add install-pdf target as copied from
211 automake v1.10 rules.
213 2007-03-01 Tobias Burnus <burnus@net-b.de>
216 * trans-intrinsic.c (gfc_conv_intrinsic_size): Compare pointers.
218 2007-02-28 Tobias Burnus <burnus@net-b.de>
219 Paul Thomas <pault@gcc.gnu.org>
223 * resolve.c (resolve_actual_arglist): Allow by-value
224 arguments and non-default-kind for %VAL().
225 * trans-expr.c (conv_arglist_function): Allow
226 non-default-kind for %VAL().
228 2007-02-28 Tobias Burnus <burnus@net-b.de>
231 * primary.c (next_string_char): Correct reading a character
233 (match_string_constant): Print warning message only once.
235 2007-02-27 Richard Guenther <rguenther@suse.de>
237 * trans-array.c (structure_alloc_comps): Use correct type
238 for null pointer constant.
240 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
242 * gfortran.texi: Standardize title page, remove version number
245 2007-02-26 Thomas Koenig <Thomas.Koenig@online.de>
246 Paul Thomas <pault@gcc.gnu.org>
249 * trans-intrinsic.c (gfc_conv_intrinsic_size):
250 If dim is an optional argument, check for its
251 presence and call size0 or size1, respectively.
253 2007-02-23 Paul Thomas <pault@gcc.gnu.org>
256 * resolve.c (has_default_initializer): New function.
257 (resolve_fl_variable): Call has_default_initializer to determine if
258 the derived type has a default initializer to its ultimate
262 2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
264 * options.c (set_default_std_flags): New function to consolidate
266 (gfc_init_options): Use new function.
267 (gfc_handle_option): Use new function.
269 2007-02-22 Brooks Moses <brooks.moses@codesourcery.com>
271 * gfortran.texi (Old-style kind specifications): Document
272 special handling of old-style kind specifiers for COMPLEX.
273 * decl.c (gfc_match_old_kind_spec): Documented kind/bytesize
274 assumptions in comment.
276 2007-02-21 Bernhard Fischer <aldot@gcc.gnu.org>
278 * parse.c (next_free): Gooble spaces after OpenMP sentinel.
280 2007-02-20 Thomas Koenig <Thomas.Koenig@online.de>
283 * match.c (gfc_match_iterator): Remove conflict between
284 loop variable and pointer.
286 2007-02-20 Tobias Burnus <burnus@net-b.de>
289 * symbol.c (gfc_add_volatile): Allow to set VOLATILE
290 attribute for host-associated variables.
291 * gfortran.h (symbol_attribute): Save namespace
292 where VOLATILE has been set.
293 * trans-decl.c (gfc_finish_var_decl): Move variable
294 declaration to the top.
296 2007-02-20 Tobias Burnus <burnus@net-b.de>
299 * resolve.c (resolve_symbol): Add character dummy VALUE check.
301 2007-02-19 Thomas Koenig <Thomas.Koenig@online.de>
304 * fortran/iresolve.c (gfc_resolve_maxloc): Remove coercion of
305 argument to default integer.
306 (gfc_resolve_minloc): Likewise.
308 2007-02-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
311 * options.c (gfc_init_options): Relax warning level for obsolescent.
312 * match.c (match_arithmetic_if): Change to obsolescent from deleted.
313 (gfc_match_if): Same.
315 2007-02-18 Roger Sayle <roger@eyesopen.com>
317 * trans-array.c (gfc_build_constant_array_constructor): When the
318 shape of the constructor is known, use that to construct the
320 (gfc_trans_constant_array_constructor): Initialize the "info"
321 information for all of the dimensions of the array constructor.
322 (constant_array_constructor_loop_size): New function.
323 (gfc_trans_array_constructor): Use it to determine whether a
324 loop is suitable for "constant array constructor" optimization.
326 * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Use fold_build2
327 instead of build2, to avoid conditions like "(a != b) != 0".
329 2007-02-18 Roger Sayle <roger@eyesopen.com>
330 Paul Thomas <pault@gcc.gnu.org>
333 * match.c (match_forall_iterator): Use gfc_match_expr instead
334 of gfc_match_variable to match the iterator variable. Return
335 MATCH_NO if not a variable. Remove the reset of the symbol's
338 2007-02-16 Tobias Burnus <burnus@net-b.de>
341 * trans-decl.c (gfc_generate_function_code): Do not initialize
342 pointers to derived components.
344 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
345 Brooks Moses <brooks.moses@codesourcery.com>
346 Lee Millward <lee.millward@codesourcery.com>
348 * trans-expr.c (gfc_conv_power_op): Use build_call_expr.
349 (gfc_conv_string_tmp): Likewise.
350 (gfc_conv_concat_op): Likewise.
351 (gfc_build_compare_string): Likewise.
352 (gfc_conv_function_call): Use build_call_list instead of build3.
354 * trans-array.c (gfc_trans_allocate_array_storage): Use
356 (gfc_grow_array): Likewise.
357 (gfc_trans_array_ctor_element): Likewise.
358 (gfc_trans_array_constructor_value): Likewise.
359 (gfc_array_allocate): Likewise.
360 (gfc_array_deallocate): Likewise.
361 (gfc_trans_auto_array_allocation): Likewise.
362 (gfc_trans_dummy_array_bias): Likewise.
363 (gfc_conv_array_parameter): Likewise.
364 (gfc_trans_dealloc_allocated): Likewise.
365 (gfc_duplicate_allocatable): Likewise.
367 * trans-openmp.c (gfc_trans_omp_barrier): Use build_call_expr.
368 (gfc_trans_omp_flush): Likewise.
370 * trans-stmt.c (gfc_conv_elementel_dependencies): Use build_call_expr.
371 (gfc_trans_pause): Likewise.
372 (gfc_trans_stop): Likewise.
373 (gfc_trans_character_select): Likewise.
374 (gfc_do_allocate): Likewise.
375 (gfc_trans_assign_need_temp): Likewise.
376 (gfc_trans_pointer_assign_need_temp): Likewise.
377 (gfc_trans_forall_1): Likewise.
378 (gfc_trans_where_2): Likewise.
379 (gfc_trans_allocate): Likewise.
380 (gfc_trans_deallocate): Likewise.
382 * trans.c (gfc_trans_runtime_check): Use build_call_expr.
384 * trans-io.c (gfc_trans_open): Use build_call_expr.
385 (gfc_trans_close): Likewise.
386 (build_filepos): Likewise.
387 (gfc_trans_inquire): Likewise.
388 (NML_FIRST_ARG): Delete.
389 (NML_ADD_ARG): Delete.
390 (transfer_namelist_element): Use build_call_expr.
391 (build_dt): Likewise.
392 (gfc_trans_dt_end): Likewise.
393 (transfer_expr): Likewise.
394 (transfer_array-desc): Likewise.
396 * trans-decl.c (gfc_generate_function_code): Use build_call_expr.
397 (gfc_generate_constructors): Likewise.
399 * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Use build_call_expr.
400 (gfc_conv_intrinsic_fdate): Likewise.
401 (gfc_conv_intrinsic_ttynam): Likewise.
402 (gfc_conv_intrinsic_array_transfer): Likewise.
403 (gfc_conv_associated): Likewise.
404 (gfc_conv_intrinsic_si_kind): Likewise.
405 (gfc_conv_intrinsic_trim): Likewise.
406 (gfc_conv_intrinsic_repeat: Likewise.
407 (gfc_conv_intrinsic_iargc): Likewise.
409 2007-02-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
412 * scanner.c (gfc_next_char_literal): Add check for end of file after
413 call to advance_line.
415 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
418 * primary.c (match_logical_constant): Return MATCH_ERROR on invalid
421 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
423 * misc.c (gfc_typename): Fix potential buffer overflow.
425 2007-02-13 Paul Thomas <pault@gcc.gnu.org>
428 * module.c (read_module): Set pointer_info to referenced if the
429 symbol has no namespace.
431 2007-02-12 Nick Clifton <nickc@redhat.com>
433 * lang.opt: Add Warning attribute to warning options.
435 2007-02-11 Daniel Franke <franke.daniel@gmail.com>
437 * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
438 (SLEEP): Added section and documentation.
440 2007-02-11 Tobias Schlüter <tobi@gcc.gnu.org>
443 * decl.c (add_init_expr_to_sym): Remove ENUM specific code.
444 (variable_decl): Likewise. Rewrap comment.
445 (match_attr_spec): Remove ENUM specific code.
446 (gfc_match_enum): Fix typo in error message.
447 (enumerator_decl): New function.
448 (gfc_match_enumerator_def): Use enumerator_decl instead of
449 variable_decl. Adapt code accordingly.
451 2007-02-11 Paul Thomas <pault@gcc.gnu.org>
454 * module.c (find_symtree_for_symbol): New function to return
455 a symtree that is not a "unique symtree" given a symbol.
456 (read_module): Do not automatically set pointer_info to
457 referenced because this inhibits the generation of a unique
458 symtree. Recycle the existing symtree if possible by calling
459 find_symtree_for_symbol.
462 * decl.c (add_init_expr_to_sym): Make new charlen for an array
463 constructor initializer.
465 2007-02-10 Richard Henderson <rth@redhat.com>, Jakub Jelinek <jakub@redhat.com>
467 * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
468 and __emutls_register_common.
469 * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
470 * trans-common.c (build_common_decl): Don't check have_tls.
471 * trans-decl.c (gfc_finish_var_decl): Likewise.
472 * types.def (BT_WORD, BT_FN_PTR_PTR): New.
473 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
475 2007-02-09 Tobias Burnus <burnus@net-b.de>
478 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc,
479 gfc_conv_intrinsic_minmaxval): Use HUGE-1 for most negative integer.
481 2007-02-09 Francois-Xavier Coudert <coudert@clipper.ens.fr>
484 * trans-array.c (gfc_trans_create_temp_array): Remove use of the
485 function argument. Always generate code for negative extent.
487 * trans-array.h (gfc_trans_create_temp_array): Change prototype.
488 * trans-expr.c (gfc_conv_function_call): Remove use of last argument
489 of gfc_trans_create_temp_array.
490 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Likewise.
491 * trans-stmt.c (gfc_conv_elemental_dependencies): Likewise.
493 2007-02-08 Roger Sayle <roger@eyesopen.com>
495 * trans-stmt.c (gfc_trans_forall_1): Optimize the cases where the
496 mask expression is a compile-time constant (".true." or ".false.").
498 2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
501 * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Evaluate
502 arguments only once. Generate check that NCOPIES argument is not
505 2007-02-04 Steven G. Kargl <kargl@gcc.gnu.org>
508 * fortran/invoke.texi: Update documentation.
509 * fortran/options.c (gfc_post_options): Deal with tabs with -std=f2003
512 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
514 * trans-array.c: Fix a comment typo.
516 2007-02-03 Paul Thomas <pault@gcc.gnu.org>
519 * array.c (match_array_element_spec): If the length of an array is
520 negative, adjust the upper limit to make it zero length.
523 * resolve.c (pure_function, resolve_function): Initialize name to
524 null to clear up build warnings.
525 (resolve_fl_variable): Look at components explicitly to check for
526 default initializer, rather than using gfc_default_initializer.
528 2007-02-02 Steven G. Kargl <kargl@gcc.gnu.org>
531 * resolve.c (resolve_generic_f): Check for non-NULL sym.
533 2007-02-02 Roger Sayle <roger@eyesopen.com>
535 * trans.c (gfc_build_array_ref): Use STRIP_TYPE_NOPS to eliminate
536 NON_LVALUE_EXPR nodes and useless type conversions.
538 2007-02-02 Paul Thomas <pault@gcc.gnu.org>
542 * trans-expr.c (gfc_conv_aliased_arg): Remove static attribute
543 from function and make sure that substring lengths are
545 (is_aliased_array): Remove static attribute.
546 * trans.c : Add prototypes for gfc_conv_aliased_arg and
548 * trans-io.c (set_internal_unit): Add the post block to the
549 arguments of the function. Use is_aliased_array to check if
550 temporary is needed; if so call gfc_conv_aliased_arg.
551 (build_dt): Pass the post block to set_internal_unit and
552 add to the block after all io activiy is done.
554 2007-02-01 Roger Sayle <roger@eyesopen.com>
556 * trans-array.c (gfc_conv_expr_descriptor): We don't need to use
557 a temporary array to pass a constant non-character array constructor.
558 Generalize the descriptor generation code to handle scalarizer
559 "info" without an array reference.
561 2007-02-01 Roger Sayle <roger@eyesopen.com>
563 * dependency.c (gfc_check_dependency) <EXPR_ARRAY>: Implement
564 dependency checking for array constructors.
566 2007-02-01 Roger Sayle <roger@eyesopen.com>
568 * trans-stmt.c (compute_overall_iter_number): Document function
569 arguments. Generalize "unconditional forall nest with constant
570 bounds" optimization to eliminate unconditional inner loops with
573 2007-01-31 Tobias Burnus <burnus@net-b.de>
576 * interface.c (compare_actual_formal): Check conformance between
577 actual and VOLATILE dummy arguments.
578 * symbol.c (gfc_add_volatile): Allow setting of VOLATILE
579 multiple times in different scopes.
580 * decl.c (gfc_match_volatile): Search symbol in host association.
582 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
584 * simplify.c, trans-array.c: Fix comment typos.
586 2007-01-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
588 * invoke.texi (Code Gen Options): Fix abbreviation typo.
589 * intrinsic.texi (ACCESS, LSHIFT, RSHIFT): Fix typos.
591 2007-01-30 Steve Ellcey <sje@cup.hp.com>
594 * trans-types.c (gfc_get_function_type): Do not add void_type_node
596 * trans-decl.c (create_function_arglist): Change assert.
598 2007-01-29 Paul Thomas <pault@gcc.gnu.org>
601 * module.c (read_module): If a symbol is excluded by an ONLY
602 clause, check to see if there is a symtree already loaded. If
603 so, attach the symtree to the pointer_info.
605 2007-01-28 Thomas Koenig <Thomas.Koenig@online.de>
608 * gfortran.h: Remove gfc_simplify_init_1.
609 * arith.h: Remove third argument from gfc_compare_string.
610 * arith.c (gfc_compare_expression): Remove third argument
611 from call to gfc_compare_string.
612 (gfc_compare_string): Remove third argument xcoll_table.
613 Remove use of xcoll_table.
614 * misc.c (gfc_init_1): Remove call to gfc_simplify_init_1.
615 * simplify.c (ascii_table): Remove.
616 (xascii_table): Likewise.
617 (gfc_simplify_achar): ICE if extract_int fails. Remove use of
618 ascii_table. Warn if -Wsurprising and value < 0 or > 127.
619 (gfc_simplify_char): ICE if extract_int fails. Error if
620 value < 0 or value > 255.
621 (gfc_simplify_iachar): Remove use of xascii_table.
622 Char values outside of 0..255 are an ICE.
623 (gfc_simplify_lge): Remove use of xascii_table.
624 (gfc_simplify_lgt): Likewise.
625 (gfc_simplify_lle): Likewise.
626 (gfc_simplify_llt): Likewise.
627 (invert_table): Remove.
628 (gfc_simplify_init_1): Remove.
630 2007-01-27 Roger Sayle <roger@eyesopen.com>
632 * trans-stmt.c (forall_info): Replace the next_nest and outer
633 fields that previously implemented a doubly-linked list with a
634 single prev_nest field (singly-linked list).
635 (gfc_trans_nested_forall_loop): The nested_forall_info argument
636 now denotes the innermost FORALL in the loop nest.
637 (compute_overall_iter_number): Use prev_nest instead of next_nest.
638 (gfc_trans_forall_1): Link/cons the new "info" to the head of the
639 nested_forall_info linked list. Free the current "info" when done.
641 2007-01-27 Paul Thomas <pault@gcc.gnu.org>
644 * trans-expr.c (gfc_conv_operator_assign): New function.
645 * trans.h : Add prototype for gfc_conv_operator_assign.
646 * trans-stmt.c (gfc_trans_where_assign): Add a gfc_symbol for
647 a potential operator assignment subroutine. If it is non-NULL
648 call gfc_conv_operator_assign instead of the first assignment.
649 ( gfc_trans_where_2): In the case of an operator assignment,
650 extract the argument expressions from the code for the
651 subroutine call and pass the symbol to gfc_trans_where_assign.
652 resolve.c (resolve_where, gfc_resolve_where_code_in_forall,
653 gfc_resolve_forall_body): Resolve the subroutine call for
654 operator assignments.
656 2007-01-26 Steven Bosscher <stevenb.gcc@gmail.com>
657 Steven G. Kargl <kargl@gcc.gnu.org>
660 * fortran/io.c (next_char): Deal with backslash escaped characters.
661 Issue warnings in non -std=gnu cases.
662 * fortran/primary.c (next_string_char): Issue warnings in non
664 2007-01-26 Tobias Burnus <burnus@net-b.de>
666 * lang-specs.h: Add support for .f03 and .F03 extensions.
667 * gfortran.texi: Document .f03 extension.
668 * options.c (form_from_filename): Recognize .f03.
670 2007-01-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
673 * lang.opt (Wall): Remove RejectNegative.
674 * options.c (gfc_handle_option): Wall can be disabled.
675 (set_Wall): Add a parameter for disabling Wall.
677 2007-01-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
680 * scanner.c (load_line): Remove check fot ctrl-z and don't gobble.
682 2007-01-23 Paul Thomas <pault@gcc.gnu.org>
685 * match.c (gfc_match_namelist): Add check for assumed size character
686 in namelist and provide error if found.
688 2007-01-21 Brooks Moses <brooks.moses@codesourcery.com>
690 * intrinsic.texi (ACHAR): Added cross-references.
691 (CHAR): Put cross-references in alphabetical order.
692 (IACHAR): Added cross-references.
693 (ICHAR): Added cross-references.
695 2007-01-20 Brooks Moses <brooks.moses@codesourcery.com>
697 * intrinsic.texi: Edited all "Syntax" examples to a consistent form.
698 (MAXVAL): Corrected description of result characteristics.
700 (UMASK): Added documentation.
702 2007-01-20 Steven G. Kargl <kargl@gcc.gnu.org>
704 * openmp.c, matchexp.c, module.c, scanner.c, resolve.c, st.c,
705 parse.c, primary.c, options.c, misc.c, simplify.c: Next installment
706 in the massive whitespace patch.
708 2007-01-20 Roger Sayle <roger@eyesopen.com>
710 * module.c (mio_array_ref): The dimen_type fields of an array ref
711 are an enumerated type and can't be read/written directly with a
712 call to mio_integer. Instead loop over and cast each element.
714 2007-01-20 Roger Sayle <roger@eyesopen.com>
716 * dependency.c (gfc_full_array_ref_p): Check that ref->next is NULL,
717 i.e. that the ARRAY_REF doesn't mention components.
718 * trans-array.c (gfc_constant_array_constructor_p): Export external
719 function renamed from constant_array_constructor_p.
720 (gfc_build_constant_array_constructor): Export.
721 (gfc_trans_array_constructor): Update call to the renamed function
722 constant_array_constructor_p.
723 * trans-array.h (gfc_constant_array_constructor_p): Prototype here.
724 (gfc_build_constant_array_constructor): Likewise.
725 * trans-expr.c (gfc_build_memcpy_call): New helper function split
726 out from gfc_trans_array_copy.
727 (gfc_trans_array_copy): Use gfc_build_memcpy_call.
728 (gfc_trans_array_constructor_copy): New function to optimize
729 assigning an entire array from a constant array constructor.
730 (gfc_trans_assignment): Call gfc_trans_array_constructor_copy
733 2007-01-20 Roger Sayle <roger@eyesopen.com>
735 * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
736 implementation for the SIGN intrinsic with integral operands.
737 (gfc_conv_intrinsic_minmax): Fix whitespace.
739 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
741 * gfortran.h (gfc_options_t): Add flag_allow_leading_underscore.
742 * lang.opt: Add -fallow-leading-underscore.
743 * match.c (gfc_match_name): Allow leading underscore in symbol
744 name if -fallow-leading-underscore is used.
745 * symbol.c (gfc_get_default_type): Add special case for symbol
746 names beginning with an underscore.
747 * trans-decl.c (gfc_get_extern_function_decl,
748 gfc_build_intrinsic_function_decls): Add _gfortran prefix to
749 library symbols selected_int_kind, selected_real_kind and
751 * options.c (gfc_init_options, gfc_handle_option): Handle the
752 new -fallow-leading-underscore option.
754 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
757 * options.c (gfc_handle_module_path_options): Path used in -J
758 option is now added to the module search path.
760 2007-01-20 Richard Guenther <rguenther@suse.de>
763 * f95-lang.c (gfc_init_builtin_functions): Provide cbrt and
764 cexpi builtins if we have TARGET_C99_FUNCTIONS. Provide
765 sincos builtins if the target has sincos.
767 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
769 * intrinsic.texi (MATMUL): Corrected a typo.
770 (MAX): Separated @var arguments.
771 (MIN): Separated @var arguments.
773 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
775 * intrinsic.texi: general whitespace cleanup.
776 (menu): Added TIME8, removed UNMASK.
777 (AINT): Clarified argument requirement.
778 (ANINT): Clarified argument requirement.
779 (CEILING): Clarified argument requirement.
780 (CHAR): Clarified argument requirement.
781 (CMPLX): Clarified argument requirement.
782 (DCMPLX): Clarified argument requirement.
783 (FGET): Line rewrapping.
784 (FLOOR): Clarified argument requirement.
785 (GMTIME): Added documentation.
786 (IAND): Added cross-reference.
787 (IBCLR): Added cross-reference.
788 (IBSET): Added cross-reference.
789 (IEOR): Added cross-reference.
790 (INT): Collapsed examples, clarified argument requirement.
791 (IOR): Added cross-references.
792 (LEN_TRIM): Corrected result kind.
793 (LINK): Added cross-reference.
794 (LLT): Removed "documentation pending".
795 (LOGICAL): Added documentation.
796 (LSHIFT): Added documentation.
797 (LTIME): Added documentation.
798 (MATMUL): Added documentation.
799 (MAX): Added documentation.
800 (MAXLOC): Added documentation.
801 (MAXVAL): Added documentation.
802 (MERGE): Added documentation.
803 (MIN): Added documentation.
804 (MINLOC): Added documentation.
805 (MINVAL): Added documentation.
806 (MVBITS): Moved to correct place, added documentation.
807 (NOT): Added documentation.
808 (PERROR): Added documentation.
809 (RAN): Moved to correct place, added documentation.
810 (REAL): Clarified argument requirement.
811 (RENAME): Added documentation.
812 (RSHIFT): Clarified argument requirement.
813 (SIGN): Corrected table specification.
814 (SYMLNK): Added documentation.
815 (SYSTEM): Added documentation.
816 (TIME): Added documentation.
817 (TIME8): Added section and documentation.
818 (UNMASK): Removed erroneous section.
820 2007-01-18 H.J. Lu <hongjiu.lu@intel.com>
822 * trans-stmt.c (compute_overall_iter_number): Fix a typo.
824 2007-01-18 Roger Sayle <roger@eyesopen.com>
826 * trans-expr.c (copyable_array_p): Consider user derived types without
827 allocatable components to be copyable.
829 2007-01-18 Roger Sayle <roger@eyesopen.com>
831 * trans-stmt.c (compute_overall_iter_number): Enhance to precompute
832 the number of interations in unconditional FORALL nests with constant
835 2007-01-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
836 Tobias Burnus <burnus@net-b.de>
839 * gfortran.h (gfc_option_t): Add flag_dump_core.
840 * lang.opt: Add -fdump-core option.
841 * invoke.texi: Document the new options.
842 * trans-decl.c (gfc_build_builtin_function_decls): Add new
843 options to the call to set_std.
844 * options.c (gfc_init_options, gfc_handle_option): Set the
847 2007-01-17 Paul Thomas <pault@gcc.gnu.org>
850 * module.c (load_generic_interfaces): Make the marking of the
851 symbol as ambiguous conditional on the module names being
853 (write_generic): Ensure that the generic interface has a
854 non-NULL module field.
856 2007-01-16 Roger Sayle <roger@eyesopen.com>
859 * trans-stmt.c (forall_info): Remove pmask field.
860 (gfc_trans_forall_loop): Remove NVAR argument, instead assume that
861 NVAR covers all the interation variables in the current forall_info.
862 Add an extra OUTER parameter, which specified the loop header in
863 which to place mask index initializations.
864 (gfc_trans_nested_forall_loop): Remove NEST_FLAG argument.
865 Change the semantics of MASK_FLAG to only control the mask in the
867 (compute_overall_iter_number): Optimize the trivial case of a
868 top-level loop having a constant number of iterations. Update
869 call to gfc_trans_nested_forall_loop. Calculate the number of
870 times the inner loop will be executed, not to size of the
872 (allocate_temp_for_forall_nest_1): Reuse SIZE as BYTESIZE when
873 sizeof(type) == 1. Tidy up.
874 (gfc_trans_assign_need_temp): Remove NEST_FLAG argument from calls
875 to gfc_trans_nested_forall_loop.
876 (gfc_trans_pointer_assign_need_temp): Likewise.
877 (gfc_trans_forall_1): Remove unused BYTESIZE, TMPVAR, SIZEVAR and
878 LENVAR local variables. Split mask allocation into a separate
879 hunk/pass from mask population. Use allocate_temp_for_forall_nest
880 to allocate the FORALL mask with the correct size. Update calls
881 to gfc_trans_nested_forall_loop.
882 (gfc_evaluate_where_mask): Update call to
883 gfc_trans_nested_forall_loop.
884 (gfc_trans_where_2): Likewise.
886 2007-01-15 Paul Thomas <pault@gcc.gnu.org>
889 * trans-stmt.c (gfc_trans_call): If it does not have one, get
890 a backend_decl for an alternate return.
893 * resolve.c (pure_function): Statement functions are pure. Note
894 that this will have to recurse to comply fully with F95.
897 * resolve.c (resolve_function): Only a reference to the final
898 dimension of an assumed size array is an error in an inquiry
902 * resolve.c (resolve_function): Make sure that the function
903 expression has a type.
905 2007-01-14 Paul Thomas <pault@gcc.gnu.org>
908 * trans-decl.c (gfc_sym_mangled_function_id): Module, external
909 symbols must not have the module name prepended.
911 2007-01-11 Thomas Koenig <Thomas.Koenig@online.de>
914 * iresolve.c (gfc_resolve_maxloc): If the rank
915 of the return array is nonzero and we process an
916 integer array smaller than default kind, coerce
917 the array to default integer.
918 * iresolve.c (gfc_resolve_minloc): Likewise.
920 2007-01-11 Brooks Moses <brooks.moses@codesourcery.com>
922 * simplify.c: Update copyright to 2007.
925 2007-01-11 Francois-Xavier Coudert <coudert@clipper.ens.fr>
928 * scanner.c (gfc_release_include_path): Free gfc_option.module_dir
931 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
933 * simplify.c (gfc_simplify_ibclr): Fix POS comparison.
934 (gfc_simplify_ibset): Same.
936 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
940 * simplify.c (convert_mpz_to_unsigned): New function.
941 (convert_mpz_to_signed): New function, largely based on
943 (twos_complement): Removed.
944 (gfc_simplify_ibclr): Add conversions to and from an
945 unsigned representation before bit-twiddling.
946 (gfc_simplify_ibset): Same.
947 (gfc_simplify_ishftc): Add checks for overly large
948 constant arguments, only check the third argument if
949 it's present, carry over high bits into the result as
950 appropriate, and perform the final conversion back to
951 a signed representation using the correct sign bit.
952 (gfc_simplify_not): Removed unnecessary masking.
954 2007-01-09 Paul Thomas <pault@gcc.gnu.org>
957 * resolve.c (resolve_code): Use the code->expr character length
958 directly to set length of llen.
960 2007-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
963 * lang.opt: Add Wcharacter_truncation option.
964 * options.c (gfc_init_options): Initialize
965 gfc_option.warn_character_truncation to zero.
966 (gfc_handle_option): Add case for OPT_Wcharacter_truncation.
968 2007-01-08 Steven G. Kargl <kargl@gcc.gnu.org>
970 * interface.c, intrinsic.c, gfortranspec.c, io.c, f95-lang.c,
971 iresolve.c, match.c: Update Copyright years. Whitespace.
973 2007-01-08 Richard Guenther <rguenther@suse.de>
975 * trans-io.c (transfer_array_desc): Use build_int_cst instead
978 2007-01-08 Roger Sayle <roger@eyesopen.com>
980 * trans-array.c (constant_array_constructor_p): New function to
981 determine whether an array constructor consists only of constant
982 elements, and if so return it's size.
983 (gfc_build_constant_array_constructor): Construct a statically
984 initialized gfortran array for a given EXPR_ARRAY.
985 (gfc_trans_constant_array_constructor): Efficiently scalarize
986 a constant array constructor.
987 (gfc_trans_array_constructor): Tidy up use of CONST_STRING.
988 Special case scalarization of constant array constructors, all of
989 whose elements are specified, using constant_array_constructor_p
990 and gfc_trans_constant_array_constructor.
991 (gfc_conv_scalarized_array_ref): Check whetger info->offset is zero
992 before adding it to index, to avoid creating a NON_LVALUE_EXPR.
994 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
996 gfortran.texi: Fix typos.
998 2007-01-07 Steven G. Kargl <kargl@gcc.gnu.org>
1000 * decl.c, dump-parse-tree.c, error.c, data.c, expr.c, dependency.c,
1001 convert.c: Update Copyright dates. Fix whitespace.
1003 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
1005 * data.c (gfc_assign_data_value): Fix whitespace.
1007 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
1009 * trans-array.c (gfc_trans_create_temp_array, gfc_array_init_size):
1010 Commentary typo fix.
1012 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
1015 * match.c (gfc_match_name): Print diagnostics for invalid
1018 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
1020 * array.c: Fix whitespace in comment table.
1022 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
1024 * array.c, bbt.c, check.c: Update copyright years. Whitespace.
1026 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
1028 * arith.c: Update copyright years. Whitespace.
1030 2007-01-05 Roger Sayle <roger@eyesopen.com>
1032 * trans-expr.c (gfc_trans_assignment_1): New subroutine to scalarize
1033 array assignments split out from gfc_trans_assignment.
1034 (gfc_trans_array_copy): New function to implement array to array
1035 copies via calls to __builtin_memcpy.
1036 (copyable_array_p): New helper function to identify an array of
1037 simple/POD types, that may be copied/assigned using memcpy.
1038 (gfc_trans_assignment): Use gfc_trans_array_copy to handle simple
1039 whole array assignments considered suitable by copyable_array_p.
1040 Invoke gfc_trans_assignment_1 to perform the fallback scalarization.
1042 2007-01-05 Roger Sayle <roger@eyesopen.com>
1044 * trans-array.c (gfc_trans_array_constructor_value): Make the
1045 static const "data" array as TREE_READONLY.
1046 * trans-stmt.c (gfc_trans_character_select): Likewise.
1048 2007-01-05 Roger Sayle <roger@eyesopen.com>
1050 * trans-array.c (gfc_conv_loop_setup): Test whether the loop
1051 stride is one, to avoid fold_build2 introducing a useless
1052 NON_LVALUE_EXPR node.
1054 2007-01-05 Tobias Burnus <burnus@net-b.de>
1056 * symbol.c (check_conflict): Fix error message.
1058 2007-01-05 Paul Thomas <pault@gcc.gnu.org>
1061 * decl.c (gfc_in_match_data, gfc_set_in_match_data): New
1062 functions to signal that a DATA statement is being matched.
1063 (gfc_match_data): Call gfc_set_in_match_data on entry and on
1065 * gfortran.h : Add prototypes for above.
1066 * expr.c (check_init_expr): Avoid check on parameter or
1067 variable if gfc_in_match_data is true.
1068 (gfc_match_init_expr): Do not call error on non-reduction of
1069 expression if gfc_in_match_data is true.
1073 * decl.c (gfc_set_constant_character_len): Add boolean arg to
1074 flag array constructor resolution. Warn if string is being
1075 truncated. Standard dependent error if string is padded. Set
1076 new arg to false for all three calls to
1077 gfc_set_constant_character_len.
1078 * match.h : Add boolean arg to prototype for
1079 gfc_set_constant_character_len.
1080 * gfortran.h : Add warn_character_truncation to gfc_options.
1081 * options.c (set_Wall): Set warn_character_truncation if -Wall
1083 * resolve.c (resolve_code): Warn if rhs string in character
1084 assignment has to be truncated.
1085 * array.c (gfc_resolve_character_array_constructor): Set new
1086 argument to true for call to gfc_set_constant_character_len.
1088 2007-01-05 Tobias Burnus <burnus@net-b.de>
1091 * interface.c (compare_parameter_intent): New function.
1092 (check_intents): Support pointer intents.
1093 * symbol.c (check_conflict): Support pointer intents,
1094 better conflict_std message.
1095 * expr.c (gfc_check_assign,gfc_check_pointer_assign):
1096 Support pointer intents.
1097 * resolve.c (resolve_deallocate_expr,resolve_allocate_expr):
1098 Support pointer intents.
1100 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1103 * check.c (gfc_check_kill_sub): Add checks for non-scalar
1106 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1108 * intrinsic.texi: Minor cleanup, reflowing overlong
1109 paragraphs, and correcting whitespace.
1111 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1113 * intrinsic.texi (LBOUND): Add documentation.
1114 (LGE): Add documentation.
1115 (LGT): Add documentation.
1116 (LINK): Add documentation.
1117 (LLE): Add documentation.
1118 (LLT): Add documentation.
1119 (LNBLNK): Add documentation.
1120 (UBOUND): Add documentation.
1121 (UNLINK): Add documentation.
1123 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1125 * intrinsic.texi (IAND): Clarify argument specifications.
1126 (IBCLR): Add documentation.
1127 (IBITS): Add documentation.
1128 (IBSET): Add documentation.
1129 (IEOR): Add documentation.
1130 (IERRNO): Add documentation.
1131 (INDEX): Add documentation.
1132 (IOR): Add documentation.
1133 (ISHFT): Add documentation.
1134 (ISHFTC): Add documentation.
1135 (KILL): Add documentation.
1136 (LEN_TRIM): Add documentation.
1138 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1141 * interface.c (compare_actual_formal): check for
1142 alternate returns when iterating over non-present
1145 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1147 * invoke.texi: Update manpage copyright to include 2007.
1149 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1151 * gfortran.texi: Update copyright to include 2007.
1152 * intrinsic.texi: Update copyright to include 2007.
1153 * invoke.texi: Update copyright to include 2007.
1155 2007-01-02 Tobias Burnus <burnus@net-b.de>
1156 Jakub Jelinek <jakub@redhat.com>
1159 * scanner.c (open_included_file): Revert patch.
1160 (gfc_open_included_file): Support absolute pathnames.
1161 (gfc_open_intrinsic_module): Support absolute pathnames.
1163 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1165 * gfortran.texi (GNU Fortran and GCC): Rewrite
1167 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1169 * gfortran.texi (Introduction): Lower "Part I:
1170 Introduction" to a chapter, renumber Parts II and III to
1172 * intrinsic.texi (Introduction): Rename to "Introduction
1173 to Intrinsics" to avoid conflict with the new chapter.
1175 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1177 * intrinsic.texi (Introduction): Rewrite first paragraph.
1179 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1181 * invoke.texi (OpenMP): Added index entry.
1182 * gfortran.texi (title page): Removed erroneous '*'.
1184 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1186 * gfortran.texi (GFORTRAN_DEFAULT_RECL): Added units
1188 (Extensions): Miscellaneous minor rewriting and copyediting.
1189 (BOZ-literal constants): Renamed from Hexadecimal constants.
1190 (Hollerith constants support): Added explanation and
1191 suggestions for standard-conforming modern equivalents.
1193 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1195 * intrinsic.texi: Improvements to index entries; change
1196 @findex entries to @cindex entries.
1197 * invoke.texi: Standardize and improve index entries.
1198 * gfortran.texi: Fix @code in one index entry.
1200 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1202 * invoke.texi: Change @code-type macros to appropriate
1203 variants (@command, @option, etc.)
1204 * gfortran.texi: Same.
1206 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1208 * intrinsic.texi: Various minor cleanups.
1210 2007-01-02 Steven G. Kargl <kargls@comcast.net>
1212 * trans-intrinsic.c (gfc_conv_intrinsic_ibits): Fix call to
1215 2007-01-02 Tobias Burnus <burnus@net-b.de>
1218 * scanner.c (open_included_file): Support full-path filenames.
1220 2007-01-02 Paul Thomas <pault@gcc.gnu.org>
1223 * interface.c (check_sym_interfaces): Remove call to
1224 resolve_global_procedure.
1225 gfortran.h : Remove prototype for resolve_global_procedure.
1226 resolve.c (resolve_global_procedure): Add static attribute
1227 to function declaration.
1229 2007-01-01 Steven G. Kargl <kargls@comcast.net>
1231 * ChangeLog: Copy to ...
1232 * ChangeLog-2006: here.