1 2007-03-13 Brooks Moses <brooks.moses@codesourcery.com>
4 * intrinsic.texi: General whitespace cleanup, remove
5 comment about missing intrinsics.
6 (menu): Add lines for new entries listed below.
7 (ACOSH): Mention specific function DACOSH, correct
9 (ASINH): Mention specific function DASINH, correct
11 (ATANH): Mention specific function DATANH, correct
13 (COS): Add index entry for CCOS.
14 (CPU_TIME): Correct "REAL" to "REAL(*)".
15 (EXP): Add index entry for CEXP.
16 (INT): Correct argument name to "A".
20 (MAX): Add index entries for specific variants.
23 (SECNDS): Adjust to a more standard form.
25 (TIME): Add cross-reference to MCLOCK.
26 (TIME8): Add cross-reference to MCLOCK8.
28 2007-03-11 Paul Thomas <pault@gcc.gnu.org>
31 * parse.c (parse_interface): Use the default types from the
32 formal namespace if a function or its result do not have a type
33 after parsing the specification statements.
35 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
37 * intrinsic.texi: (ICHAR) Improve internal I/O note.
38 (ACHAR): Reference it.
40 (IACHAR): Reference it.
42 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
44 * intrinsic.texi: (LINK) Document function form.
50 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
52 * intrinsic.texi: minor typo fixes, removed prologue.
53 (FSEEK): moved to correct place in alphabetical order.
55 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
58 * check.c (gfc_check_alarm_sub): Added check for default integer
59 kind of status argument.
60 * iresolve.c (gfc_resolve_alarm_sub): Removed conversion of
62 * intrinsic.texi (ALARM): Extended documentation.
64 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
66 * intrinsic.texi (GERROR, ISATTY, TTYNAM): New.
67 (ABORT, FLUSH, FNUM, IRAND, MALLOC, SIGNAL, SRAND): Fixed typo.
68 * intrinsic.c (add_subroutines): Adjusted dummy argument names
71 2007-07-08 Tobias Burnus <burnus@net-b.de>
73 * module.c (gfc_match_use): Support renaming of operators
75 * gfortran.texi (Fortran 2003 Status): Document support of
76 renaming of operators.
78 2007-07-08 Tobias Burnus <burnus@net-b.de>
81 * module.c (read_module): Always import module name as symbol.
82 (gfc_match_use): Disallow module name in the only clause of
85 2007-03-08 Paul Thomas <pault@gcc.gnu.org>
88 * expr.c (find_array_section): Correct arithmetic for section
91 2007-03-07 Brooks Moses <brooks.moses@codesourcery.com>
93 * iresolve.c (gfc_resolve_ishftc): Correct s_kind value.
95 2007-03-06 Daniel Franke <franke.daniel@gmail.com>
97 PR documentation/30950
98 * intrinsic.texi (AND, CPU_TIME): Fix dummy argument names.
99 (FREE): Fix call syntax.
101 2007-03-06 Brooks Moses <brooks.moses@codesourcery.com>
103 * intrinsic.texi: Limit column widths to a total of .85.
105 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
107 * gfortran.texi (GFortran and G77): Rewrite completely.
109 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
111 * match.c (gfc_match_name): Expanded comment.
113 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
115 * gfortran.texi (Old-style kind specifications): Document
116 special handling of old-style kind specifiers for COMPLEX.
117 * decl.c (gfc_match_old_kind_spec): Document kind/bytesize
118 assumptions for COMPLEX in comment.
120 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
123 * gfortranspec.c (lang_specific_driver): Update program
124 name and copyright date.
126 2007-03-03 Paul Thomas <pault@gcc.gnu.org>
129 * check.c (dim_rank_check): The shape of subsections of
130 assumed-size arrays is known.
132 2007-03-02 Paul Thomas <pault@gcc.gnu.org>
133 Tobias Burnus <burnus@net-b.de>
136 * decl.c (gfc_match_entry): Remove erroneous entry result check.
138 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
140 * Make-lang.in: Add install-pdf target as copied from
141 automake v1.10 rules.
143 2007-03-01 Tobias Burnus <burnus@net-b.de>
146 * trans-intrinsic.c (gfc_conv_intrinsic_size): Compare pointers.
148 2007-02-28 Tobias Burnus <burnus@net-b.de>
149 Paul Thomas <pault@gcc.gnu.org>
153 * resolve.c (resolve_actual_arglist): Allow by-value
154 arguments and non-default-kind for %VAL().
155 * trans-expr.c (conv_arglist_function): Allow
156 non-default-kind for %VAL().
158 2007-02-28 Tobias Burnus <burnus@net-b.de>
161 * primary.c (next_string_char): Correct reading a character
163 (match_string_constant): Print warning message only once.
165 2007-02-27 Richard Guenther <rguenther@suse.de>
167 * trans-array.c (structure_alloc_comps): Use correct type
168 for null pointer constant.
170 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
172 * gfortran.texi: Standardize title page, remove version number
175 2007-02-26 Thomas Koenig <Thomas.Koenig@online.de>
176 Paul Thomas <pault@gcc.gnu.org>
179 * trans-intrinsic.c (gfc_conv_intrinsic_size):
180 If dim is an optional argument, check for its
181 presence and call size0 or size1, respectively.
183 2007-02-23 Paul Thomas <pault@gcc.gnu.org>
186 * resolve.c (has_default_initializer): New function.
187 (resolve_fl_variable): Call has_default_initializer to determine if
188 the derived type has a default initializer to its ultimate
192 2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
194 * options.c (set_default_std_flags): New function to consolidate
196 (gfc_init_options): Use new function.
197 (gfc_handle_option): Use new function.
199 2007-02-22 Brooks Moses <brooks.moses@codesourcery.com>
201 * gfortran.texi (Old-style kind specifications): Document
202 special handling of old-style kind specifiers for COMPLEX.
203 * decl.c (gfc_match_old_kind_spec): Documented kind/bytesize
204 assumptions in comment.
206 2007-02-21 Bernhard Fischer <aldot@gcc.gnu.org>
208 * parse.c (next_free): Gooble spaces after OpenMP sentinel.
210 2007-02-20 Thomas Koenig <Thomas.Koenig@online.de>
213 * match.c (gfc_match_iterator): Remove conflict between
214 loop variable and pointer.
216 2007-02-20 Tobias Burnus <burnus@net-b.de>
219 * symbol.c (gfc_add_volatile): Allow to set VOLATILE
220 attribute for host-associated variables.
221 * gfortran.h (symbol_attribute): Save namespace
222 where VOLATILE has been set.
223 * trans-decl.c (gfc_finish_var_decl): Move variable
224 declaration to the top.
226 2007-02-20 Tobias Burnus <burnus@net-b.de>
229 * resolve.c (resolve_symbol): Add character dummy VALUE check.
231 2007-02-19 Thomas Koenig <Thomas.Koenig@online.de>
234 * fortran/iresolve.c (gfc_resolve_maxloc): Remove coercion of
235 argument to default integer.
236 (gfc_resolve_minloc): Likewise.
238 2007-02-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
241 * options.c (gfc_init_options): Relax warning level for obsolescent.
242 * match.c (match_arithmetic_if): Change to obsolescent from deleted.
243 (gfc_match_if): Same.
245 2007-02-18 Roger Sayle <roger@eyesopen.com>
247 * trans-array.c (gfc_build_constant_array_constructor): When the
248 shape of the constructor is known, use that to construct the
250 (gfc_trans_constant_array_constructor): Initialize the "info"
251 information for all of the dimensions of the array constructor.
252 (constant_array_constructor_loop_size): New function.
253 (gfc_trans_array_constructor): Use it to determine whether a
254 loop is suitable for "constant array constructor" optimization.
256 * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Use fold_build2
257 instead of build2, to avoid conditions like "(a != b) != 0".
259 2007-02-18 Roger Sayle <roger@eyesopen.com>
260 Paul Thomas <pault@gcc.gnu.org>
263 * match.c (match_forall_iterator): Use gfc_match_expr instead
264 of gfc_match_variable to match the iterator variable. Return
265 MATCH_NO if not a variable. Remove the reset of the symbol's
268 2007-02-16 Tobias Burnus <burnus@net-b.de>
271 * trans-decl.c (gfc_generate_function_code): Do not initialize
272 pointers to derived components.
274 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
275 Brooks Moses <brooks.moses@codesourcery.com>
276 Lee Millward <lee.millward@codesourcery.com>
278 * trans-expr.c (gfc_conv_power_op): Use build_call_expr.
279 (gfc_conv_string_tmp): Likewise.
280 (gfc_conv_concat_op): Likewise.
281 (gfc_build_compare_string): Likewise.
282 (gfc_conv_function_call): Use build_call_list instead of build3.
284 * trans-array.c (gfc_trans_allocate_array_storage): Use
286 (gfc_grow_array): Likewise.
287 (gfc_trans_array_ctor_element): Likewise.
288 (gfc_trans_array_constructor_value): Likewise.
289 (gfc_array_allocate): Likewise.
290 (gfc_array_deallocate): Likewise.
291 (gfc_trans_auto_array_allocation): Likewise.
292 (gfc_trans_dummy_array_bias): Likewise.
293 (gfc_conv_array_parameter): Likewise.
294 (gfc_trans_dealloc_allocated): Likewise.
295 (gfc_duplicate_allocatable): Likewise.
297 * trans-openmp.c (gfc_trans_omp_barrier): Use build_call_expr.
298 (gfc_trans_omp_flush): Likewise.
300 * trans-stmt.c (gfc_conv_elementel_dependencies): Use build_call_expr.
301 (gfc_trans_pause): Likewise.
302 (gfc_trans_stop): Likewise.
303 (gfc_trans_character_select): Likewise.
304 (gfc_do_allocate): Likewise.
305 (gfc_trans_assign_need_temp): Likewise.
306 (gfc_trans_pointer_assign_need_temp): Likewise.
307 (gfc_trans_forall_1): Likewise.
308 (gfc_trans_where_2): Likewise.
309 (gfc_trans_allocate): Likewise.
310 (gfc_trans_deallocate): Likewise.
312 * trans.c (gfc_trans_runtime_check): Use build_call_expr.
314 * trans-io.c (gfc_trans_open): Use build_call_expr.
315 (gfc_trans_close): Likewise.
316 (build_filepos): Likewise.
317 (gfc_trans_inquire): Likewise.
318 (NML_FIRST_ARG): Delete.
319 (NML_ADD_ARG): Delete.
320 (transfer_namelist_element): Use build_call_expr.
321 (build_dt): Likewise.
322 (gfc_trans_dt_end): Likewise.
323 (transfer_expr): Likewise.
324 (transfer_array-desc): Likewise.
326 * trans-decl.c (gfc_generate_function_code): Use build_call_expr.
327 (gfc_generate_constructors): Likewise.
329 * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Use build_call_expr.
330 (gfc_conv_intrinsic_fdate): Likewise.
331 (gfc_conv_intrinsic_ttynam): Likewise.
332 (gfc_conv_intrinsic_array_transfer): Likewise.
333 (gfc_conv_associated): Likewise.
334 (gfc_conv_intrinsic_si_kind): Likewise.
335 (gfc_conv_intrinsic_trim): Likewise.
336 (gfc_conv_intrinsic_repeat: Likewise.
337 (gfc_conv_intrinsic_iargc): Likewise.
339 2007-02-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
342 * scanner.c (gfc_next_char_literal): Add check for end of file after
343 call to advance_line.
345 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
348 * primary.c (match_logical_constant): Return MATCH_ERROR on invalid
351 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
353 * misc.c (gfc_typename): Fix potential buffer overflow.
355 2007-02-13 Paul Thomas <pault@gcc.gnu.org>
358 * module.c (read_module): Set pointer_info to referenced if the
359 symbol has no namespace.
361 2007-02-12 Nick Clifton <nickc@redhat.com>
363 * lang.opt: Add Warning attribute to warning options.
365 2007-02-11 Daniel Franke <franke.daniel@gmail.com>
367 * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
368 (SLEEP): Added section and documentation.
370 2007-02-11 Tobias Schlüter <tobi@gcc.gnu.org>
373 * decl.c (add_init_expr_to_sym): Remove ENUM specific code.
374 (variable_decl): Likewise. Rewrap comment.
375 (match_attr_spec): Remove ENUM specific code.
376 (gfc_match_enum): Fix typo in error message.
377 (enumerator_decl): New function.
378 (gfc_match_enumerator_def): Use enumerator_decl instead of
379 variable_decl. Adapt code accordingly.
381 2007-02-11 Paul Thomas <pault@gcc.gnu.org>
384 * module.c (find_symtree_for_symbol): New function to return
385 a symtree that is not a "unique symtree" given a symbol.
386 (read_module): Do not automatically set pointer_info to
387 referenced because this inhibits the generation of a unique
388 symtree. Recycle the existing symtree if possible by calling
389 find_symtree_for_symbol.
392 * decl.c (add_init_expr_to_sym): Make new charlen for an array
393 constructor initializer.
395 2007-02-10 Richard Henderson <rth@redhat.com>, Jakub Jelinek <jakub@redhat.com>
397 * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
398 and __emutls_register_common.
399 * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
400 * trans-common.c (build_common_decl): Don't check have_tls.
401 * trans-decl.c (gfc_finish_var_decl): Likewise.
402 * types.def (BT_WORD, BT_FN_PTR_PTR): New.
403 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
405 2007-02-09 Tobias Burnus <burnus@net-b.de>
408 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc,
409 gfc_conv_intrinsic_minmaxval): Use HUGE-1 for most negative integer.
411 2007-02-09 Francois-Xavier Coudert <coudert@clipper.ens.fr>
414 * trans-array.c (gfc_trans_create_temp_array): Remove use of the
415 function argument. Always generate code for negative extent.
417 * trans-array.h (gfc_trans_create_temp_array): Change prototype.
418 * trans-expr.c (gfc_conv_function_call): Remove use of last argument
419 of gfc_trans_create_temp_array.
420 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Likewise.
421 * trans-stmt.c (gfc_conv_elemental_dependencies): Likewise.
423 2007-02-08 Roger Sayle <roger@eyesopen.com>
425 * trans-stmt.c (gfc_trans_forall_1): Optimize the cases where the
426 mask expression is a compile-time constant (".true." or ".false.").
428 2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
431 * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Evaluate
432 arguments only once. Generate check that NCOPIES argument is not
435 2007-02-04 Steven G. Kargl <kargl@gcc.gnu.org>
438 * fortran/invoke.texi: Update documentation.
439 * fortran/options.c (gfc_post_options): Deal with tabs with -std=f2003
442 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
444 * trans-array.c: Fix a comment typo.
446 2007-02-03 Paul Thomas <pault@gcc.gnu.org>
449 * array.c (match_array_element_spec): If the length of an array is
450 negative, adjust the upper limit to make it zero length.
453 * resolve.c (pure_function, resolve_function): Initialize name to
454 null to clear up build warnings.
455 (resolve_fl_variable): Look at components explicitly to check for
456 default initializer, rather than using gfc_default_initializer.
458 2007-02-02 Steven G. Kargl <kargl@gcc.gnu.org>
461 * resolve.c (resolve_generic_f): Check for non-NULL sym.
463 2007-02-02 Roger Sayle <roger@eyesopen.com>
465 * trans.c (gfc_build_array_ref): Use STRIP_TYPE_NOPS to eliminate
466 NON_LVALUE_EXPR nodes and useless type conversions.
468 2007-02-02 Paul Thomas <pault@gcc.gnu.org>
472 * trans-expr.c (gfc_conv_aliased_arg): Remove static attribute
473 from function and make sure that substring lengths are
475 (is_aliased_array): Remove static attribute.
476 * trans.c : Add prototypes for gfc_conv_aliased_arg and
478 * trans-io.c (set_internal_unit): Add the post block to the
479 arguments of the function. Use is_aliased_array to check if
480 temporary is needed; if so call gfc_conv_aliased_arg.
481 (build_dt): Pass the post block to set_internal_unit and
482 add to the block after all io activiy is done.
484 2007-02-01 Roger Sayle <roger@eyesopen.com>
486 * trans-array.c (gfc_conv_expr_descriptor): We don't need to use
487 a temporary array to pass a constant non-character array constructor.
488 Generalize the descriptor generation code to handle scalarizer
489 "info" without an array reference.
491 2007-02-01 Roger Sayle <roger@eyesopen.com>
493 * dependency.c (gfc_check_dependency) <EXPR_ARRAY>: Implement
494 dependency checking for array constructors.
496 2007-02-01 Roger Sayle <roger@eyesopen.com>
498 * trans-stmt.c (compute_overall_iter_number): Document function
499 arguments. Generalize "unconditional forall nest with constant
500 bounds" optimization to eliminate unconditional inner loops with
503 2007-01-31 Tobias Burnus <burnus@net-b.de>
506 * interface.c (compare_actual_formal): Check conformance between
507 actual and VOLATILE dummy arguments.
508 * symbol.c (gfc_add_volatile): Allow setting of VOLATILE
509 multiple times in different scopes.
510 * decl.c (gfc_match_volatile): Search symbol in host association.
512 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
514 * simplify.c, trans-array.c: Fix comment typos.
516 2007-01-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
518 * invoke.texi (Code Gen Options): Fix abbreviation typo.
519 * intrinsic.texi (ACCESS, LSHIFT, RSHIFT): Fix typos.
521 2007-01-30 Steve Ellcey <sje@cup.hp.com>
524 * trans-types.c (gfc_get_function_type): Do not add void_type_node
526 * trans-decl.c (create_function_arglist): Change assert.
528 2007-01-29 Paul Thomas <pault@gcc.gnu.org>
531 * module.c (read_module): If a symbol is excluded by an ONLY
532 clause, check to see if there is a symtree already loaded. If
533 so, attach the symtree to the pointer_info.
535 2007-01-28 Thomas Koenig <Thomas.Koenig@online.de>
538 * gfortran.h: Remove gfc_simplify_init_1.
539 * arith.h: Remove third argument from gfc_compare_string.
540 * arith.c (gfc_compare_expression): Remove third argument
541 from call to gfc_compare_string.
542 (gfc_compare_string): Remove third argument xcoll_table.
543 Remove use of xcoll_table.
544 * misc.c (gfc_init_1): Remove call to gfc_simplify_init_1.
545 * simplify.c (ascii_table): Remove.
546 (xascii_table): Likewise.
547 (gfc_simplify_achar): ICE if extract_int fails. Remove use of
548 ascii_table. Warn if -Wsurprising and value < 0 or > 127.
549 (gfc_simplify_char): ICE if extract_int fails. Error if
550 value < 0 or value > 255.
551 (gfc_simplify_iachar): Remove use of xascii_table.
552 Char values outside of 0..255 are an ICE.
553 (gfc_simplify_lge): Remove use of xascii_table.
554 (gfc_simplify_lgt): Likewise.
555 (gfc_simplify_lle): Likewise.
556 (gfc_simplify_llt): Likewise.
557 (invert_table): Remove.
558 (gfc_simplify_init_1): Remove.
560 2007-01-27 Roger Sayle <roger@eyesopen.com>
562 * trans-stmt.c (forall_info): Replace the next_nest and outer
563 fields that previously implemented a doubly-linked list with a
564 single prev_nest field (singly-linked list).
565 (gfc_trans_nested_forall_loop): The nested_forall_info argument
566 now denotes the innermost FORALL in the loop nest.
567 (compute_overall_iter_number): Use prev_nest instead of next_nest.
568 (gfc_trans_forall_1): Link/cons the new "info" to the head of the
569 nested_forall_info linked list. Free the current "info" when done.
571 2007-01-27 Paul Thomas <pault@gcc.gnu.org>
574 * trans-expr.c (gfc_conv_operator_assign): New function.
575 * trans.h : Add prototype for gfc_conv_operator_assign.
576 * trans-stmt.c (gfc_trans_where_assign): Add a gfc_symbol for
577 a potential operator assignment subroutine. If it is non-NULL
578 call gfc_conv_operator_assign instead of the first assignment.
579 ( gfc_trans_where_2): In the case of an operator assignment,
580 extract the argument expressions from the code for the
581 subroutine call and pass the symbol to gfc_trans_where_assign.
582 resolve.c (resolve_where, gfc_resolve_where_code_in_forall,
583 gfc_resolve_forall_body): Resolve the subroutine call for
584 operator assignments.
586 2007-01-26 Steven Bosscher <stevenb.gcc@gmail.com>
587 Steven G. Kargl <kargl@gcc.gnu.org>
590 * fortran/io.c (next_char): Deal with backslash escaped characters.
591 Issue warnings in non -std=gnu cases.
592 * fortran/primary.c (next_string_char): Issue warnings in non
594 2007-01-26 Tobias Burnus <burnus@net-b.de>
596 * lang-specs.h: Add support for .f03 and .F03 extensions.
597 * gfortran.texi: Document .f03 extension.
598 * options.c (form_from_filename): Recognize .f03.
600 2007-01-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
603 * lang.opt (Wall): Remove RejectNegative.
604 * options.c (gfc_handle_option): Wall can be disabled.
605 (set_Wall): Add a parameter for disabling Wall.
607 2007-01-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
610 * scanner.c (load_line): Remove check fot ctrl-z and don't gobble.
612 2007-01-23 Paul Thomas <pault@gcc.gnu.org>
615 * match.c (gfc_match_namelist): Add check for assumed size character
616 in namelist and provide error if found.
618 2007-01-21 Brooks Moses <brooks.moses@codesourcery.com>
620 * intrinsic.texi (ACHAR): Added cross-references.
621 (CHAR): Put cross-references in alphabetical order.
622 (IACHAR): Added cross-references.
623 (ICHAR): Added cross-references.
625 2007-01-20 Brooks Moses <brooks.moses@codesourcery.com>
627 * intrinsic.texi: Edited all "Syntax" examples to a consistent form.
628 (MAXVAL): Corrected description of result characteristics.
630 (UMASK): Added documentation.
632 2007-01-20 Steven G. Kargl <kargl@gcc.gnu.org>
634 * openmp.c, matchexp.c, module.c, scanner.c, resolve.c, st.c,
635 parse.c, primary.c, options.c, misc.c, simplify.c: Next installment
636 in the massive whitespace patch.
638 2007-01-20 Roger Sayle <roger@eyesopen.com>
640 * module.c (mio_array_ref): The dimen_type fields of an array ref
641 are an enumerated type and can't be read/written directly with a
642 call to mio_integer. Instead loop over and cast each element.
644 2007-01-20 Roger Sayle <roger@eyesopen.com>
646 * dependency.c (gfc_full_array_ref_p): Check that ref->next is NULL,
647 i.e. that the ARRAY_REF doesn't mention components.
648 * trans-array.c (gfc_constant_array_constructor_p): Export external
649 function renamed from constant_array_constructor_p.
650 (gfc_build_constant_array_constructor): Export.
651 (gfc_trans_array_constructor): Update call to the renamed function
652 constant_array_constructor_p.
653 * trans-array.h (gfc_constant_array_constructor_p): Prototype here.
654 (gfc_build_constant_array_constructor): Likewise.
655 * trans-expr.c (gfc_build_memcpy_call): New helper function split
656 out from gfc_trans_array_copy.
657 (gfc_trans_array_copy): Use gfc_build_memcpy_call.
658 (gfc_trans_array_constructor_copy): New function to optimize
659 assigning an entire array from a constant array constructor.
660 (gfc_trans_assignment): Call gfc_trans_array_constructor_copy
663 2007-01-20 Roger Sayle <roger@eyesopen.com>
665 * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
666 implementation for the SIGN intrinsic with integral operands.
667 (gfc_conv_intrinsic_minmax): Fix whitespace.
669 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
671 * gfortran.h (gfc_options_t): Add flag_allow_leading_underscore.
672 * lang.opt: Add -fallow-leading-underscore.
673 * match.c (gfc_match_name): Allow leading underscore in symbol
674 name if -fallow-leading-underscore is used.
675 * symbol.c (gfc_get_default_type): Add special case for symbol
676 names beginning with an underscore.
677 * trans-decl.c (gfc_get_extern_function_decl,
678 gfc_build_intrinsic_function_decls): Add _gfortran prefix to
679 library symbols selected_int_kind, selected_real_kind and
681 * options.c (gfc_init_options, gfc_handle_option): Handle the
682 new -fallow-leading-underscore option.
684 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
687 * options.c (gfc_handle_module_path_options): Path used in -J
688 option is now added to the module search path.
690 2007-01-20 Richard Guenther <rguenther@suse.de>
693 * f95-lang.c (gfc_init_builtin_functions): Provide cbrt and
694 cexpi builtins if we have TARGET_C99_FUNCTIONS. Provide
695 sincos builtins if the target has sincos.
697 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
699 * intrinsic.texi (MATMUL): Corrected a typo.
700 (MAX): Separated @var arguments.
701 (MIN): Separated @var arguments.
703 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
705 * intrinsic.texi: general whitespace cleanup.
706 (menu): Added TIME8, removed UNMASK.
707 (AINT): Clarified argument requirement.
708 (ANINT): Clarified argument requirement.
709 (CEILING): Clarified argument requirement.
710 (CHAR): Clarified argument requirement.
711 (CMPLX): Clarified argument requirement.
712 (DCMPLX): Clarified argument requirement.
713 (FGET): Line rewrapping.
714 (FLOOR): Clarified argument requirement.
715 (GMTIME): Added documentation.
716 (IAND): Added cross-reference.
717 (IBCLR): Added cross-reference.
718 (IBSET): Added cross-reference.
719 (IEOR): Added cross-reference.
720 (INT): Collapsed examples, clarified argument requirement.
721 (IOR): Added cross-references.
722 (LEN_TRIM): Corrected result kind.
723 (LINK): Added cross-reference.
724 (LLT): Removed "documentation pending".
725 (LOGICAL): Added documentation.
726 (LSHIFT): Added documentation.
727 (LTIME): Added documentation.
728 (MATMUL): Added documentation.
729 (MAX): Added documentation.
730 (MAXLOC): Added documentation.
731 (MAXVAL): Added documentation.
732 (MERGE): Added documentation.
733 (MIN): Added documentation.
734 (MINLOC): Added documentation.
735 (MINVAL): Added documentation.
736 (MVBITS): Moved to correct place, added documentation.
737 (NOT): Added documentation.
738 (PERROR): Added documentation.
739 (RAN): Moved to correct place, added documentation.
740 (REAL): Clarified argument requirement.
741 (RENAME): Added documentation.
742 (RSHIFT): Clarified argument requirement.
743 (SIGN): Corrected table specification.
744 (SYMLNK): Added documentation.
745 (SYSTEM): Added documentation.
746 (TIME): Added documentation.
747 (TIME8): Added section and documentation.
748 (UNMASK): Removed erroneous section.
750 2007-01-18 H.J. Lu <hongjiu.lu@intel.com>
752 * trans-stmt.c (compute_overall_iter_number): Fix a typo.
754 2007-01-18 Roger Sayle <roger@eyesopen.com>
756 * trans-expr.c (copyable_array_p): Consider user derived types without
757 allocatable components to be copyable.
759 2007-01-18 Roger Sayle <roger@eyesopen.com>
761 * trans-stmt.c (compute_overall_iter_number): Enhance to precompute
762 the number of interations in unconditional FORALL nests with constant
765 2007-01-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
766 Tobias Burnus <burnus@net-b.de>
769 * gfortran.h (gfc_option_t): Add flag_dump_core.
770 * lang.opt: Add -fdump-core option.
771 * invoke.texi: Document the new options.
772 * trans-decl.c (gfc_build_builtin_function_decls): Add new
773 options to the call to set_std.
774 * options.c (gfc_init_options, gfc_handle_option): Set the
777 2007-01-17 Paul Thomas <pault@gcc.gnu.org>
780 * module.c (load_generic_interfaces): Make the marking of the
781 symbol as ambiguous conditional on the module names being
783 (write_generic): Ensure that the generic interface has a
784 non-NULL module field.
786 2007-01-16 Roger Sayle <roger@eyesopen.com>
789 * trans-stmt.c (forall_info): Remove pmask field.
790 (gfc_trans_forall_loop): Remove NVAR argument, instead assume that
791 NVAR covers all the interation variables in the current forall_info.
792 Add an extra OUTER parameter, which specified the loop header in
793 which to place mask index initializations.
794 (gfc_trans_nested_forall_loop): Remove NEST_FLAG argument.
795 Change the semantics of MASK_FLAG to only control the mask in the
797 (compute_overall_iter_number): Optimize the trivial case of a
798 top-level loop having a constant number of iterations. Update
799 call to gfc_trans_nested_forall_loop. Calculate the number of
800 times the inner loop will be executed, not to size of the
802 (allocate_temp_for_forall_nest_1): Reuse SIZE as BYTESIZE when
803 sizeof(type) == 1. Tidy up.
804 (gfc_trans_assign_need_temp): Remove NEST_FLAG argument from calls
805 to gfc_trans_nested_forall_loop.
806 (gfc_trans_pointer_assign_need_temp): Likewise.
807 (gfc_trans_forall_1): Remove unused BYTESIZE, TMPVAR, SIZEVAR and
808 LENVAR local variables. Split mask allocation into a separate
809 hunk/pass from mask population. Use allocate_temp_for_forall_nest
810 to allocate the FORALL mask with the correct size. Update calls
811 to gfc_trans_nested_forall_loop.
812 (gfc_evaluate_where_mask): Update call to
813 gfc_trans_nested_forall_loop.
814 (gfc_trans_where_2): Likewise.
816 2007-01-15 Paul Thomas <pault@gcc.gnu.org>
819 * trans-stmt.c (gfc_trans_call): If it does not have one, get
820 a backend_decl for an alternate return.
823 * resolve.c (pure_function): Statement functions are pure. Note
824 that this will have to recurse to comply fully with F95.
827 * resolve.c (resolve_function): Only a reference to the final
828 dimension of an assumed size array is an error in an inquiry
832 * resolve.c (resolve_function): Make sure that the function
833 expression has a type.
835 2007-01-14 Paul Thomas <pault@gcc.gnu.org>
838 * trans-decl.c (gfc_sym_mangled_function_id): Module, external
839 symbols must not have the module name prepended.
841 2007-01-11 Thomas Koenig <Thomas.Koenig@online.de>
844 * iresolve.c (gfc_resolve_maxloc): If the rank
845 of the return array is nonzero and we process an
846 integer array smaller than default kind, coerce
847 the array to default integer.
848 * iresolve.c (gfc_resolve_minloc): Likewise.
850 2007-01-11 Brooks Moses <brooks.moses@codesourcery.com>
852 * simplify.c: Update copyright to 2007.
855 2007-01-11 Francois-Xavier Coudert <coudert@clipper.ens.fr>
858 * scanner.c (gfc_release_include_path): Free gfc_option.module_dir
861 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
863 * simplify.c (gfc_simplify_ibclr): Fix POS comparison.
864 (gfc_simplify_ibset): Same.
866 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
870 * simplify.c (convert_mpz_to_unsigned): New function.
871 (convert_mpz_to_signed): New function, largely based on
873 (twos_complement): Removed.
874 (gfc_simplify_ibclr): Add conversions to and from an
875 unsigned representation before bit-twiddling.
876 (gfc_simplify_ibset): Same.
877 (gfc_simplify_ishftc): Add checks for overly large
878 constant arguments, only check the third argument if
879 it's present, carry over high bits into the result as
880 appropriate, and perform the final conversion back to
881 a signed representation using the correct sign bit.
882 (gfc_simplify_not): Removed unnecessary masking.
884 2007-01-09 Paul Thomas <pault@gcc.gnu.org>
887 * resolve.c (resolve_code): Use the code->expr character length
888 directly to set length of llen.
890 2007-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
893 * lang.opt: Add Wcharacter_truncation option.
894 * options.c (gfc_init_options): Initialize
895 gfc_option.warn_character_truncation to zero.
896 (gfc_handle_option): Add case for OPT_Wcharacter_truncation.
898 2007-01-08 Steven G. Kargl <kargl@gcc.gnu.org>
900 * interface.c, intrinsic.c, gfortranspec.c, io.c, f95-lang.c,
901 iresolve.c, match.c: Update Copyright years. Whitespace.
903 2007-01-08 Richard Guenther <rguenther@suse.de>
905 * trans-io.c (transfer_array_desc): Use build_int_cst instead
908 2007-01-08 Roger Sayle <roger@eyesopen.com>
910 * trans-array.c (constant_array_constructor_p): New function to
911 determine whether an array constructor consists only of constant
912 elements, and if so return it's size.
913 (gfc_build_constant_array_constructor): Construct a statically
914 initialized gfortran array for a given EXPR_ARRAY.
915 (gfc_trans_constant_array_constructor): Efficiently scalarize
916 a constant array constructor.
917 (gfc_trans_array_constructor): Tidy up use of CONST_STRING.
918 Special case scalarization of constant array constructors, all of
919 whose elements are specified, using constant_array_constructor_p
920 and gfc_trans_constant_array_constructor.
921 (gfc_conv_scalarized_array_ref): Check whetger info->offset is zero
922 before adding it to index, to avoid creating a NON_LVALUE_EXPR.
924 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
926 gfortran.texi: Fix typos.
928 2007-01-07 Steven G. Kargl <kargl@gcc.gnu.org>
930 * decl.c, dump-parse-tree.c, error.c, data.c, expr.c, dependency.c,
931 convert.c: Update Copyright dates. Fix whitespace.
933 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
935 * data.c (gfc_assign_data_value): Fix whitespace.
937 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
939 * trans-array.c (gfc_trans_create_temp_array, gfc_array_init_size):
942 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
945 * match.c (gfc_match_name): Print diagnostics for invalid
948 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
950 * array.c: Fix whitespace in comment table.
952 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
954 * array.c, bbt.c, check.c: Update copyright years. Whitespace.
956 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
958 * arith.c: Update copyright years. Whitespace.
960 2007-01-05 Roger Sayle <roger@eyesopen.com>
962 * trans-expr.c (gfc_trans_assignment_1): New subroutine to scalarize
963 array assignments split out from gfc_trans_assignment.
964 (gfc_trans_array_copy): New function to implement array to array
965 copies via calls to __builtin_memcpy.
966 (copyable_array_p): New helper function to identify an array of
967 simple/POD types, that may be copied/assigned using memcpy.
968 (gfc_trans_assignment): Use gfc_trans_array_copy to handle simple
969 whole array assignments considered suitable by copyable_array_p.
970 Invoke gfc_trans_assignment_1 to perform the fallback scalarization.
972 2007-01-05 Roger Sayle <roger@eyesopen.com>
974 * trans-array.c (gfc_trans_array_constructor_value): Make the
975 static const "data" array as TREE_READONLY.
976 * trans-stmt.c (gfc_trans_character_select): Likewise.
978 2007-01-05 Roger Sayle <roger@eyesopen.com>
980 * trans-array.c (gfc_conv_loop_setup): Test whether the loop
981 stride is one, to avoid fold_build2 introducing a useless
982 NON_LVALUE_EXPR node.
984 2007-01-05 Tobias Burnus <burnus@net-b.de>
986 * symbol.c (check_conflict): Fix error message.
988 2007-01-05 Paul Thomas <pault@gcc.gnu.org>
991 * decl.c (gfc_in_match_data, gfc_set_in_match_data): New
992 functions to signal that a DATA statement is being matched.
993 (gfc_match_data): Call gfc_set_in_match_data on entry and on
995 * gfortran.h : Add prototypes for above.
996 * expr.c (check_init_expr): Avoid check on parameter or
997 variable if gfc_in_match_data is true.
998 (gfc_match_init_expr): Do not call error on non-reduction of
999 expression if gfc_in_match_data is true.
1003 * decl.c (gfc_set_constant_character_len): Add boolean arg to
1004 flag array constructor resolution. Warn if string is being
1005 truncated. Standard dependent error if string is padded. Set
1006 new arg to false for all three calls to
1007 gfc_set_constant_character_len.
1008 * match.h : Add boolean arg to prototype for
1009 gfc_set_constant_character_len.
1010 * gfortran.h : Add warn_character_truncation to gfc_options.
1011 * options.c (set_Wall): Set warn_character_truncation if -Wall
1013 * resolve.c (resolve_code): Warn if rhs string in character
1014 assignment has to be truncated.
1015 * array.c (gfc_resolve_character_array_constructor): Set new
1016 argument to true for call to gfc_set_constant_character_len.
1018 2007-01-05 Tobias Burnus <burnus@net-b.de>
1021 * interface.c (compare_parameter_intent): New function.
1022 (check_intents): Support pointer intents.
1023 * symbol.c (check_conflict): Support pointer intents,
1024 better conflict_std message.
1025 * expr.c (gfc_check_assign,gfc_check_pointer_assign):
1026 Support pointer intents.
1027 * resolve.c (resolve_deallocate_expr,resolve_allocate_expr):
1028 Support pointer intents.
1030 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1033 * check.c (gfc_check_kill_sub): Add checks for non-scalar
1036 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1038 * intrinsic.texi: Minor cleanup, reflowing overlong
1039 paragraphs, and correcting whitespace.
1041 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1043 * intrinsic.texi (LBOUND): Add documentation.
1044 (LGE): Add documentation.
1045 (LGT): Add documentation.
1046 (LINK): Add documentation.
1047 (LLE): Add documentation.
1048 (LLT): Add documentation.
1049 (LNBLNK): Add documentation.
1050 (UBOUND): Add documentation.
1051 (UNLINK): Add documentation.
1053 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1055 * intrinsic.texi (IAND): Clarify argument specifications.
1056 (IBCLR): Add documentation.
1057 (IBITS): Add documentation.
1058 (IBSET): Add documentation.
1059 (IEOR): Add documentation.
1060 (IERRNO): Add documentation.
1061 (INDEX): Add documentation.
1062 (IOR): Add documentation.
1063 (ISHFT): Add documentation.
1064 (ISHFTC): Add documentation.
1065 (KILL): Add documentation.
1066 (LEN_TRIM): Add documentation.
1068 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1071 * interface.c (compare_actual_formal): check for
1072 alternate returns when iterating over non-present
1075 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1077 * invoke.texi: Update manpage copyright to include 2007.
1079 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1081 * gfortran.texi: Update copyright to include 2007.
1082 * intrinsic.texi: Update copyright to include 2007.
1083 * invoke.texi: Update copyright to include 2007.
1085 2007-01-02 Tobias Burnus <burnus@net-b.de>
1086 Jakub Jelinek <jakub@redhat.com>
1089 * scanner.c (open_included_file): Revert patch.
1090 (gfc_open_included_file): Support absolute pathnames.
1091 (gfc_open_intrinsic_module): Support absolute pathnames.
1093 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1095 * gfortran.texi (GNU Fortran and GCC): Rewrite
1097 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1099 * gfortran.texi (Introduction): Lower "Part I:
1100 Introduction" to a chapter, renumber Parts II and III to
1102 * intrinsic.texi (Introduction): Rename to "Introduction
1103 to Intrinsics" to avoid conflict with the new chapter.
1105 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1107 * intrinsic.texi (Introduction): Rewrite first paragraph.
1109 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1111 * invoke.texi (OpenMP): Added index entry.
1112 * gfortran.texi (title page): Removed erroneous '*'.
1114 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1116 * gfortran.texi (GFORTRAN_DEFAULT_RECL): Added units
1118 (Extensions): Miscellaneous minor rewriting and copyediting.
1119 (BOZ-literal constants): Renamed from Hexadecimal constants.
1120 (Hollerith constants support): Added explanation and
1121 suggestions for standard-conforming modern equivalents.
1123 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1125 * intrinsic.texi: Improvements to index entries; change
1126 @findex entries to @cindex entries.
1127 * invoke.texi: Standardize and improve index entries.
1128 * gfortran.texi: Fix @code in one index entry.
1130 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1132 * invoke.texi: Change @code-type macros to appropriate
1133 variants (@command, @option, etc.)
1134 * gfortran.texi: Same.
1136 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1138 * intrinsic.texi: Various minor cleanups.
1140 2007-01-02 Steven G. Kargl <kargls@comcast.net>
1142 * trans-intrinsic.c (gfc_conv_intrinsic_ibits): Fix call to
1145 2007-01-02 Tobias Burnus <burnus@net-b.de>
1148 * scanner.c (open_included_file): Support full-path filenames.
1150 2007-01-02 Paul Thomas <pault@gcc.gnu.org>
1153 * interface.c (check_sym_interfaces): Remove call to
1154 resolve_global_procedure.
1155 gfortran.h : Remove prototype for resolve_global_procedure.
1156 resolve.c (resolve_global_procedure): Add static attribute
1157 to function declaration.
1159 2007-01-01 Steven G. Kargl <kargls@comcast.net>
1161 * ChangeLog: Copy to ...
1162 * ChangeLog-2006: here.