1 2007-03-13 Brooks Moses <brooks.moses@codesourcery.com>
6 * intrinsics.texi (CHDIR): Fix argument names, note
7 that STATUS must be a default integer.
8 (CTIME): Fix argument names, note that RESULT must
10 (EXIT): Note that STATUS must be a default integer.
12 2007-03-13 Brooks Moses <brooks.moses@codesourcery.com>
15 * intrinsic.texi: General whitespace cleanup, remove
16 comment about missing intrinsics.
17 (menu): Add lines for new entries listed below.
18 (ACOSH): Mention specific function DACOSH, correct
20 (ASINH): Mention specific function DASINH, correct
22 (ATANH): Mention specific function DATANH, correct
24 (COS): Add index entry for CCOS.
25 (CPU_TIME): Correct "REAL" to "REAL(*)".
26 (EXP): Add index entry for CEXP.
27 (INT): Correct argument name to "A".
31 (MAX): Add index entries for specific variants.
34 (SECNDS): Adjust to a more standard form.
36 (TIME): Add cross-reference to MCLOCK.
37 (TIME8): Add cross-reference to MCLOCK8.
39 2007-03-11 Paul Thomas <pault@gcc.gnu.org>
42 * parse.c (parse_interface): Use the default types from the
43 formal namespace if a function or its result do not have a type
44 after parsing the specification statements.
46 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
48 * intrinsic.texi: (ICHAR) Improve internal I/O note.
49 (ACHAR): Reference it.
51 (IACHAR): Reference it.
53 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
55 * intrinsic.texi: (LINK) Document function form.
61 2007-03-08 Brooks Moses <brooks.moses@codesourcery.com>
63 * intrinsic.texi: minor typo fixes, removed prologue.
64 (FSEEK): moved to correct place in alphabetical order.
66 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
69 * check.c (gfc_check_alarm_sub): Added check for default integer
70 kind of status argument.
71 * iresolve.c (gfc_resolve_alarm_sub): Removed conversion of
73 * intrinsic.texi (ALARM): Extended documentation.
75 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
77 * intrinsic.texi (GERROR, ISATTY, TTYNAM): New.
78 (ABORT, FLUSH, FNUM, IRAND, MALLOC, SIGNAL, SRAND): Fixed typo.
79 * intrinsic.c (add_subroutines): Adjusted dummy argument names
82 2007-07-08 Tobias Burnus <burnus@net-b.de>
84 * module.c (gfc_match_use): Support renaming of operators
86 * gfortran.texi (Fortran 2003 Status): Document support of
87 renaming of operators.
89 2007-07-08 Tobias Burnus <burnus@net-b.de>
92 * module.c (read_module): Always import module name as symbol.
93 (gfc_match_use): Disallow module name in the only clause of
96 2007-03-08 Paul Thomas <pault@gcc.gnu.org>
99 * expr.c (find_array_section): Correct arithmetic for section
102 2007-03-07 Brooks Moses <brooks.moses@codesourcery.com>
104 * iresolve.c (gfc_resolve_ishftc): Correct s_kind value.
106 2007-03-06 Daniel Franke <franke.daniel@gmail.com>
108 PR documentation/30950
109 * intrinsic.texi (AND, CPU_TIME): Fix dummy argument names.
110 (FREE): Fix call syntax.
112 2007-03-06 Brooks Moses <brooks.moses@codesourcery.com>
114 * intrinsic.texi: Limit column widths to a total of .85.
116 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
118 * gfortran.texi (GFortran and G77): Rewrite completely.
120 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
122 * match.c (gfc_match_name): Expanded comment.
124 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
126 * gfortran.texi (Old-style kind specifications): Document
127 special handling of old-style kind specifiers for COMPLEX.
128 * decl.c (gfc_match_old_kind_spec): Document kind/bytesize
129 assumptions for COMPLEX in comment.
131 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
134 * gfortranspec.c (lang_specific_driver): Update program
135 name and copyright date.
137 2007-03-03 Paul Thomas <pault@gcc.gnu.org>
140 * check.c (dim_rank_check): The shape of subsections of
141 assumed-size arrays is known.
143 2007-03-02 Paul Thomas <pault@gcc.gnu.org>
144 Tobias Burnus <burnus@net-b.de>
147 * decl.c (gfc_match_entry): Remove erroneous entry result check.
149 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
151 * Make-lang.in: Add install-pdf target as copied from
152 automake v1.10 rules.
154 2007-03-01 Tobias Burnus <burnus@net-b.de>
157 * trans-intrinsic.c (gfc_conv_intrinsic_size): Compare pointers.
159 2007-02-28 Tobias Burnus <burnus@net-b.de>
160 Paul Thomas <pault@gcc.gnu.org>
164 * resolve.c (resolve_actual_arglist): Allow by-value
165 arguments and non-default-kind for %VAL().
166 * trans-expr.c (conv_arglist_function): Allow
167 non-default-kind for %VAL().
169 2007-02-28 Tobias Burnus <burnus@net-b.de>
172 * primary.c (next_string_char): Correct reading a character
174 (match_string_constant): Print warning message only once.
176 2007-02-27 Richard Guenther <rguenther@suse.de>
178 * trans-array.c (structure_alloc_comps): Use correct type
179 for null pointer constant.
181 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
183 * gfortran.texi: Standardize title page, remove version number
186 2007-02-26 Thomas Koenig <Thomas.Koenig@online.de>
187 Paul Thomas <pault@gcc.gnu.org>
190 * trans-intrinsic.c (gfc_conv_intrinsic_size):
191 If dim is an optional argument, check for its
192 presence and call size0 or size1, respectively.
194 2007-02-23 Paul Thomas <pault@gcc.gnu.org>
197 * resolve.c (has_default_initializer): New function.
198 (resolve_fl_variable): Call has_default_initializer to determine if
199 the derived type has a default initializer to its ultimate
203 2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
205 * options.c (set_default_std_flags): New function to consolidate
207 (gfc_init_options): Use new function.
208 (gfc_handle_option): Use new function.
210 2007-02-22 Brooks Moses <brooks.moses@codesourcery.com>
212 * gfortran.texi (Old-style kind specifications): Document
213 special handling of old-style kind specifiers for COMPLEX.
214 * decl.c (gfc_match_old_kind_spec): Documented kind/bytesize
215 assumptions in comment.
217 2007-02-21 Bernhard Fischer <aldot@gcc.gnu.org>
219 * parse.c (next_free): Gooble spaces after OpenMP sentinel.
221 2007-02-20 Thomas Koenig <Thomas.Koenig@online.de>
224 * match.c (gfc_match_iterator): Remove conflict between
225 loop variable and pointer.
227 2007-02-20 Tobias Burnus <burnus@net-b.de>
230 * symbol.c (gfc_add_volatile): Allow to set VOLATILE
231 attribute for host-associated variables.
232 * gfortran.h (symbol_attribute): Save namespace
233 where VOLATILE has been set.
234 * trans-decl.c (gfc_finish_var_decl): Move variable
235 declaration to the top.
237 2007-02-20 Tobias Burnus <burnus@net-b.de>
240 * resolve.c (resolve_symbol): Add character dummy VALUE check.
242 2007-02-19 Thomas Koenig <Thomas.Koenig@online.de>
245 * fortran/iresolve.c (gfc_resolve_maxloc): Remove coercion of
246 argument to default integer.
247 (gfc_resolve_minloc): Likewise.
249 2007-02-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
252 * options.c (gfc_init_options): Relax warning level for obsolescent.
253 * match.c (match_arithmetic_if): Change to obsolescent from deleted.
254 (gfc_match_if): Same.
256 2007-02-18 Roger Sayle <roger@eyesopen.com>
258 * trans-array.c (gfc_build_constant_array_constructor): When the
259 shape of the constructor is known, use that to construct the
261 (gfc_trans_constant_array_constructor): Initialize the "info"
262 information for all of the dimensions of the array constructor.
263 (constant_array_constructor_loop_size): New function.
264 (gfc_trans_array_constructor): Use it to determine whether a
265 loop is suitable for "constant array constructor" optimization.
267 * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Use fold_build2
268 instead of build2, to avoid conditions like "(a != b) != 0".
270 2007-02-18 Roger Sayle <roger@eyesopen.com>
271 Paul Thomas <pault@gcc.gnu.org>
274 * match.c (match_forall_iterator): Use gfc_match_expr instead
275 of gfc_match_variable to match the iterator variable. Return
276 MATCH_NO if not a variable. Remove the reset of the symbol's
279 2007-02-16 Tobias Burnus <burnus@net-b.de>
282 * trans-decl.c (gfc_generate_function_code): Do not initialize
283 pointers to derived components.
285 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
286 Brooks Moses <brooks.moses@codesourcery.com>
287 Lee Millward <lee.millward@codesourcery.com>
289 * trans-expr.c (gfc_conv_power_op): Use build_call_expr.
290 (gfc_conv_string_tmp): Likewise.
291 (gfc_conv_concat_op): Likewise.
292 (gfc_build_compare_string): Likewise.
293 (gfc_conv_function_call): Use build_call_list instead of build3.
295 * trans-array.c (gfc_trans_allocate_array_storage): Use
297 (gfc_grow_array): Likewise.
298 (gfc_trans_array_ctor_element): Likewise.
299 (gfc_trans_array_constructor_value): Likewise.
300 (gfc_array_allocate): Likewise.
301 (gfc_array_deallocate): Likewise.
302 (gfc_trans_auto_array_allocation): Likewise.
303 (gfc_trans_dummy_array_bias): Likewise.
304 (gfc_conv_array_parameter): Likewise.
305 (gfc_trans_dealloc_allocated): Likewise.
306 (gfc_duplicate_allocatable): Likewise.
308 * trans-openmp.c (gfc_trans_omp_barrier): Use build_call_expr.
309 (gfc_trans_omp_flush): Likewise.
311 * trans-stmt.c (gfc_conv_elementel_dependencies): Use build_call_expr.
312 (gfc_trans_pause): Likewise.
313 (gfc_trans_stop): Likewise.
314 (gfc_trans_character_select): Likewise.
315 (gfc_do_allocate): Likewise.
316 (gfc_trans_assign_need_temp): Likewise.
317 (gfc_trans_pointer_assign_need_temp): Likewise.
318 (gfc_trans_forall_1): Likewise.
319 (gfc_trans_where_2): Likewise.
320 (gfc_trans_allocate): Likewise.
321 (gfc_trans_deallocate): Likewise.
323 * trans.c (gfc_trans_runtime_check): Use build_call_expr.
325 * trans-io.c (gfc_trans_open): Use build_call_expr.
326 (gfc_trans_close): Likewise.
327 (build_filepos): Likewise.
328 (gfc_trans_inquire): Likewise.
329 (NML_FIRST_ARG): Delete.
330 (NML_ADD_ARG): Delete.
331 (transfer_namelist_element): Use build_call_expr.
332 (build_dt): Likewise.
333 (gfc_trans_dt_end): Likewise.
334 (transfer_expr): Likewise.
335 (transfer_array-desc): Likewise.
337 * trans-decl.c (gfc_generate_function_code): Use build_call_expr.
338 (gfc_generate_constructors): Likewise.
340 * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Use build_call_expr.
341 (gfc_conv_intrinsic_fdate): Likewise.
342 (gfc_conv_intrinsic_ttynam): Likewise.
343 (gfc_conv_intrinsic_array_transfer): Likewise.
344 (gfc_conv_associated): Likewise.
345 (gfc_conv_intrinsic_si_kind): Likewise.
346 (gfc_conv_intrinsic_trim): Likewise.
347 (gfc_conv_intrinsic_repeat: Likewise.
348 (gfc_conv_intrinsic_iargc): Likewise.
350 2007-02-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
353 * scanner.c (gfc_next_char_literal): Add check for end of file after
354 call to advance_line.
356 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
359 * primary.c (match_logical_constant): Return MATCH_ERROR on invalid
362 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
364 * misc.c (gfc_typename): Fix potential buffer overflow.
366 2007-02-13 Paul Thomas <pault@gcc.gnu.org>
369 * module.c (read_module): Set pointer_info to referenced if the
370 symbol has no namespace.
372 2007-02-12 Nick Clifton <nickc@redhat.com>
374 * lang.opt: Add Warning attribute to warning options.
376 2007-02-11 Daniel Franke <franke.daniel@gmail.com>
378 * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
379 (SLEEP): Added section and documentation.
381 2007-02-11 Tobias Schlüter <tobi@gcc.gnu.org>
384 * decl.c (add_init_expr_to_sym): Remove ENUM specific code.
385 (variable_decl): Likewise. Rewrap comment.
386 (match_attr_spec): Remove ENUM specific code.
387 (gfc_match_enum): Fix typo in error message.
388 (enumerator_decl): New function.
389 (gfc_match_enumerator_def): Use enumerator_decl instead of
390 variable_decl. Adapt code accordingly.
392 2007-02-11 Paul Thomas <pault@gcc.gnu.org>
395 * module.c (find_symtree_for_symbol): New function to return
396 a symtree that is not a "unique symtree" given a symbol.
397 (read_module): Do not automatically set pointer_info to
398 referenced because this inhibits the generation of a unique
399 symtree. Recycle the existing symtree if possible by calling
400 find_symtree_for_symbol.
403 * decl.c (add_init_expr_to_sym): Make new charlen for an array
404 constructor initializer.
406 2007-02-10 Richard Henderson <rth@redhat.com>, Jakub Jelinek <jakub@redhat.com>
408 * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
409 and __emutls_register_common.
410 * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
411 * trans-common.c (build_common_decl): Don't check have_tls.
412 * trans-decl.c (gfc_finish_var_decl): Likewise.
413 * types.def (BT_WORD, BT_FN_PTR_PTR): New.
414 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
416 2007-02-09 Tobias Burnus <burnus@net-b.de>
419 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc,
420 gfc_conv_intrinsic_minmaxval): Use HUGE-1 for most negative integer.
422 2007-02-09 Francois-Xavier Coudert <coudert@clipper.ens.fr>
425 * trans-array.c (gfc_trans_create_temp_array): Remove use of the
426 function argument. Always generate code for negative extent.
428 * trans-array.h (gfc_trans_create_temp_array): Change prototype.
429 * trans-expr.c (gfc_conv_function_call): Remove use of last argument
430 of gfc_trans_create_temp_array.
431 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Likewise.
432 * trans-stmt.c (gfc_conv_elemental_dependencies): Likewise.
434 2007-02-08 Roger Sayle <roger@eyesopen.com>
436 * trans-stmt.c (gfc_trans_forall_1): Optimize the cases where the
437 mask expression is a compile-time constant (".true." or ".false.").
439 2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
442 * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Evaluate
443 arguments only once. Generate check that NCOPIES argument is not
446 2007-02-04 Steven G. Kargl <kargl@gcc.gnu.org>
449 * fortran/invoke.texi: Update documentation.
450 * fortran/options.c (gfc_post_options): Deal with tabs with -std=f2003
453 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
455 * trans-array.c: Fix a comment typo.
457 2007-02-03 Paul Thomas <pault@gcc.gnu.org>
460 * array.c (match_array_element_spec): If the length of an array is
461 negative, adjust the upper limit to make it zero length.
464 * resolve.c (pure_function, resolve_function): Initialize name to
465 null to clear up build warnings.
466 (resolve_fl_variable): Look at components explicitly to check for
467 default initializer, rather than using gfc_default_initializer.
469 2007-02-02 Steven G. Kargl <kargl@gcc.gnu.org>
472 * resolve.c (resolve_generic_f): Check for non-NULL sym.
474 2007-02-02 Roger Sayle <roger@eyesopen.com>
476 * trans.c (gfc_build_array_ref): Use STRIP_TYPE_NOPS to eliminate
477 NON_LVALUE_EXPR nodes and useless type conversions.
479 2007-02-02 Paul Thomas <pault@gcc.gnu.org>
483 * trans-expr.c (gfc_conv_aliased_arg): Remove static attribute
484 from function and make sure that substring lengths are
486 (is_aliased_array): Remove static attribute.
487 * trans.c : Add prototypes for gfc_conv_aliased_arg and
489 * trans-io.c (set_internal_unit): Add the post block to the
490 arguments of the function. Use is_aliased_array to check if
491 temporary is needed; if so call gfc_conv_aliased_arg.
492 (build_dt): Pass the post block to set_internal_unit and
493 add to the block after all io activiy is done.
495 2007-02-01 Roger Sayle <roger@eyesopen.com>
497 * trans-array.c (gfc_conv_expr_descriptor): We don't need to use
498 a temporary array to pass a constant non-character array constructor.
499 Generalize the descriptor generation code to handle scalarizer
500 "info" without an array reference.
502 2007-02-01 Roger Sayle <roger@eyesopen.com>
504 * dependency.c (gfc_check_dependency) <EXPR_ARRAY>: Implement
505 dependency checking for array constructors.
507 2007-02-01 Roger Sayle <roger@eyesopen.com>
509 * trans-stmt.c (compute_overall_iter_number): Document function
510 arguments. Generalize "unconditional forall nest with constant
511 bounds" optimization to eliminate unconditional inner loops with
514 2007-01-31 Tobias Burnus <burnus@net-b.de>
517 * interface.c (compare_actual_formal): Check conformance between
518 actual and VOLATILE dummy arguments.
519 * symbol.c (gfc_add_volatile): Allow setting of VOLATILE
520 multiple times in different scopes.
521 * decl.c (gfc_match_volatile): Search symbol in host association.
523 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
525 * simplify.c, trans-array.c: Fix comment typos.
527 2007-01-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
529 * invoke.texi (Code Gen Options): Fix abbreviation typo.
530 * intrinsic.texi (ACCESS, LSHIFT, RSHIFT): Fix typos.
532 2007-01-30 Steve Ellcey <sje@cup.hp.com>
535 * trans-types.c (gfc_get_function_type): Do not add void_type_node
537 * trans-decl.c (create_function_arglist): Change assert.
539 2007-01-29 Paul Thomas <pault@gcc.gnu.org>
542 * module.c (read_module): If a symbol is excluded by an ONLY
543 clause, check to see if there is a symtree already loaded. If
544 so, attach the symtree to the pointer_info.
546 2007-01-28 Thomas Koenig <Thomas.Koenig@online.de>
549 * gfortran.h: Remove gfc_simplify_init_1.
550 * arith.h: Remove third argument from gfc_compare_string.
551 * arith.c (gfc_compare_expression): Remove third argument
552 from call to gfc_compare_string.
553 (gfc_compare_string): Remove third argument xcoll_table.
554 Remove use of xcoll_table.
555 * misc.c (gfc_init_1): Remove call to gfc_simplify_init_1.
556 * simplify.c (ascii_table): Remove.
557 (xascii_table): Likewise.
558 (gfc_simplify_achar): ICE if extract_int fails. Remove use of
559 ascii_table. Warn if -Wsurprising and value < 0 or > 127.
560 (gfc_simplify_char): ICE if extract_int fails. Error if
561 value < 0 or value > 255.
562 (gfc_simplify_iachar): Remove use of xascii_table.
563 Char values outside of 0..255 are an ICE.
564 (gfc_simplify_lge): Remove use of xascii_table.
565 (gfc_simplify_lgt): Likewise.
566 (gfc_simplify_lle): Likewise.
567 (gfc_simplify_llt): Likewise.
568 (invert_table): Remove.
569 (gfc_simplify_init_1): Remove.
571 2007-01-27 Roger Sayle <roger@eyesopen.com>
573 * trans-stmt.c (forall_info): Replace the next_nest and outer
574 fields that previously implemented a doubly-linked list with a
575 single prev_nest field (singly-linked list).
576 (gfc_trans_nested_forall_loop): The nested_forall_info argument
577 now denotes the innermost FORALL in the loop nest.
578 (compute_overall_iter_number): Use prev_nest instead of next_nest.
579 (gfc_trans_forall_1): Link/cons the new "info" to the head of the
580 nested_forall_info linked list. Free the current "info" when done.
582 2007-01-27 Paul Thomas <pault@gcc.gnu.org>
585 * trans-expr.c (gfc_conv_operator_assign): New function.
586 * trans.h : Add prototype for gfc_conv_operator_assign.
587 * trans-stmt.c (gfc_trans_where_assign): Add a gfc_symbol for
588 a potential operator assignment subroutine. If it is non-NULL
589 call gfc_conv_operator_assign instead of the first assignment.
590 ( gfc_trans_where_2): In the case of an operator assignment,
591 extract the argument expressions from the code for the
592 subroutine call and pass the symbol to gfc_trans_where_assign.
593 resolve.c (resolve_where, gfc_resolve_where_code_in_forall,
594 gfc_resolve_forall_body): Resolve the subroutine call for
595 operator assignments.
597 2007-01-26 Steven Bosscher <stevenb.gcc@gmail.com>
598 Steven G. Kargl <kargl@gcc.gnu.org>
601 * fortran/io.c (next_char): Deal with backslash escaped characters.
602 Issue warnings in non -std=gnu cases.
603 * fortran/primary.c (next_string_char): Issue warnings in non
605 2007-01-26 Tobias Burnus <burnus@net-b.de>
607 * lang-specs.h: Add support for .f03 and .F03 extensions.
608 * gfortran.texi: Document .f03 extension.
609 * options.c (form_from_filename): Recognize .f03.
611 2007-01-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
614 * lang.opt (Wall): Remove RejectNegative.
615 * options.c (gfc_handle_option): Wall can be disabled.
616 (set_Wall): Add a parameter for disabling Wall.
618 2007-01-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
621 * scanner.c (load_line): Remove check fot ctrl-z and don't gobble.
623 2007-01-23 Paul Thomas <pault@gcc.gnu.org>
626 * match.c (gfc_match_namelist): Add check for assumed size character
627 in namelist and provide error if found.
629 2007-01-21 Brooks Moses <brooks.moses@codesourcery.com>
631 * intrinsic.texi (ACHAR): Added cross-references.
632 (CHAR): Put cross-references in alphabetical order.
633 (IACHAR): Added cross-references.
634 (ICHAR): Added cross-references.
636 2007-01-20 Brooks Moses <brooks.moses@codesourcery.com>
638 * intrinsic.texi: Edited all "Syntax" examples to a consistent form.
639 (MAXVAL): Corrected description of result characteristics.
641 (UMASK): Added documentation.
643 2007-01-20 Steven G. Kargl <kargl@gcc.gnu.org>
645 * openmp.c, matchexp.c, module.c, scanner.c, resolve.c, st.c,
646 parse.c, primary.c, options.c, misc.c, simplify.c: Next installment
647 in the massive whitespace patch.
649 2007-01-20 Roger Sayle <roger@eyesopen.com>
651 * module.c (mio_array_ref): The dimen_type fields of an array ref
652 are an enumerated type and can't be read/written directly with a
653 call to mio_integer. Instead loop over and cast each element.
655 2007-01-20 Roger Sayle <roger@eyesopen.com>
657 * dependency.c (gfc_full_array_ref_p): Check that ref->next is NULL,
658 i.e. that the ARRAY_REF doesn't mention components.
659 * trans-array.c (gfc_constant_array_constructor_p): Export external
660 function renamed from constant_array_constructor_p.
661 (gfc_build_constant_array_constructor): Export.
662 (gfc_trans_array_constructor): Update call to the renamed function
663 constant_array_constructor_p.
664 * trans-array.h (gfc_constant_array_constructor_p): Prototype here.
665 (gfc_build_constant_array_constructor): Likewise.
666 * trans-expr.c (gfc_build_memcpy_call): New helper function split
667 out from gfc_trans_array_copy.
668 (gfc_trans_array_copy): Use gfc_build_memcpy_call.
669 (gfc_trans_array_constructor_copy): New function to optimize
670 assigning an entire array from a constant array constructor.
671 (gfc_trans_assignment): Call gfc_trans_array_constructor_copy
674 2007-01-20 Roger Sayle <roger@eyesopen.com>
676 * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
677 implementation for the SIGN intrinsic with integral operands.
678 (gfc_conv_intrinsic_minmax): Fix whitespace.
680 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
682 * gfortran.h (gfc_options_t): Add flag_allow_leading_underscore.
683 * lang.opt: Add -fallow-leading-underscore.
684 * match.c (gfc_match_name): Allow leading underscore in symbol
685 name if -fallow-leading-underscore is used.
686 * symbol.c (gfc_get_default_type): Add special case for symbol
687 names beginning with an underscore.
688 * trans-decl.c (gfc_get_extern_function_decl,
689 gfc_build_intrinsic_function_decls): Add _gfortran prefix to
690 library symbols selected_int_kind, selected_real_kind and
692 * options.c (gfc_init_options, gfc_handle_option): Handle the
693 new -fallow-leading-underscore option.
695 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
698 * options.c (gfc_handle_module_path_options): Path used in -J
699 option is now added to the module search path.
701 2007-01-20 Richard Guenther <rguenther@suse.de>
704 * f95-lang.c (gfc_init_builtin_functions): Provide cbrt and
705 cexpi builtins if we have TARGET_C99_FUNCTIONS. Provide
706 sincos builtins if the target has sincos.
708 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
710 * intrinsic.texi (MATMUL): Corrected a typo.
711 (MAX): Separated @var arguments.
712 (MIN): Separated @var arguments.
714 2007-01-19 Brooks Moses <brooks.moses@codesourcery.com>
716 * intrinsic.texi: general whitespace cleanup.
717 (menu): Added TIME8, removed UNMASK.
718 (AINT): Clarified argument requirement.
719 (ANINT): Clarified argument requirement.
720 (CEILING): Clarified argument requirement.
721 (CHAR): Clarified argument requirement.
722 (CMPLX): Clarified argument requirement.
723 (DCMPLX): Clarified argument requirement.
724 (FGET): Line rewrapping.
725 (FLOOR): Clarified argument requirement.
726 (GMTIME): Added documentation.
727 (IAND): Added cross-reference.
728 (IBCLR): Added cross-reference.
729 (IBSET): Added cross-reference.
730 (IEOR): Added cross-reference.
731 (INT): Collapsed examples, clarified argument requirement.
732 (IOR): Added cross-references.
733 (LEN_TRIM): Corrected result kind.
734 (LINK): Added cross-reference.
735 (LLT): Removed "documentation pending".
736 (LOGICAL): Added documentation.
737 (LSHIFT): Added documentation.
738 (LTIME): Added documentation.
739 (MATMUL): Added documentation.
740 (MAX): Added documentation.
741 (MAXLOC): Added documentation.
742 (MAXVAL): Added documentation.
743 (MERGE): Added documentation.
744 (MIN): Added documentation.
745 (MINLOC): Added documentation.
746 (MINVAL): Added documentation.
747 (MVBITS): Moved to correct place, added documentation.
748 (NOT): Added documentation.
749 (PERROR): Added documentation.
750 (RAN): Moved to correct place, added documentation.
751 (REAL): Clarified argument requirement.
752 (RENAME): Added documentation.
753 (RSHIFT): Clarified argument requirement.
754 (SIGN): Corrected table specification.
755 (SYMLNK): Added documentation.
756 (SYSTEM): Added documentation.
757 (TIME): Added documentation.
758 (TIME8): Added section and documentation.
759 (UNMASK): Removed erroneous section.
761 2007-01-18 H.J. Lu <hongjiu.lu@intel.com>
763 * trans-stmt.c (compute_overall_iter_number): Fix a typo.
765 2007-01-18 Roger Sayle <roger@eyesopen.com>
767 * trans-expr.c (copyable_array_p): Consider user derived types without
768 allocatable components to be copyable.
770 2007-01-18 Roger Sayle <roger@eyesopen.com>
772 * trans-stmt.c (compute_overall_iter_number): Enhance to precompute
773 the number of interations in unconditional FORALL nests with constant
776 2007-01-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
777 Tobias Burnus <burnus@net-b.de>
780 * gfortran.h (gfc_option_t): Add flag_dump_core.
781 * lang.opt: Add -fdump-core option.
782 * invoke.texi: Document the new options.
783 * trans-decl.c (gfc_build_builtin_function_decls): Add new
784 options to the call to set_std.
785 * options.c (gfc_init_options, gfc_handle_option): Set the
788 2007-01-17 Paul Thomas <pault@gcc.gnu.org>
791 * module.c (load_generic_interfaces): Make the marking of the
792 symbol as ambiguous conditional on the module names being
794 (write_generic): Ensure that the generic interface has a
795 non-NULL module field.
797 2007-01-16 Roger Sayle <roger@eyesopen.com>
800 * trans-stmt.c (forall_info): Remove pmask field.
801 (gfc_trans_forall_loop): Remove NVAR argument, instead assume that
802 NVAR covers all the interation variables in the current forall_info.
803 Add an extra OUTER parameter, which specified the loop header in
804 which to place mask index initializations.
805 (gfc_trans_nested_forall_loop): Remove NEST_FLAG argument.
806 Change the semantics of MASK_FLAG to only control the mask in the
808 (compute_overall_iter_number): Optimize the trivial case of a
809 top-level loop having a constant number of iterations. Update
810 call to gfc_trans_nested_forall_loop. Calculate the number of
811 times the inner loop will be executed, not to size of the
813 (allocate_temp_for_forall_nest_1): Reuse SIZE as BYTESIZE when
814 sizeof(type) == 1. Tidy up.
815 (gfc_trans_assign_need_temp): Remove NEST_FLAG argument from calls
816 to gfc_trans_nested_forall_loop.
817 (gfc_trans_pointer_assign_need_temp): Likewise.
818 (gfc_trans_forall_1): Remove unused BYTESIZE, TMPVAR, SIZEVAR and
819 LENVAR local variables. Split mask allocation into a separate
820 hunk/pass from mask population. Use allocate_temp_for_forall_nest
821 to allocate the FORALL mask with the correct size. Update calls
822 to gfc_trans_nested_forall_loop.
823 (gfc_evaluate_where_mask): Update call to
824 gfc_trans_nested_forall_loop.
825 (gfc_trans_where_2): Likewise.
827 2007-01-15 Paul Thomas <pault@gcc.gnu.org>
830 * trans-stmt.c (gfc_trans_call): If it does not have one, get
831 a backend_decl for an alternate return.
834 * resolve.c (pure_function): Statement functions are pure. Note
835 that this will have to recurse to comply fully with F95.
838 * resolve.c (resolve_function): Only a reference to the final
839 dimension of an assumed size array is an error in an inquiry
843 * resolve.c (resolve_function): Make sure that the function
844 expression has a type.
846 2007-01-14 Paul Thomas <pault@gcc.gnu.org>
849 * trans-decl.c (gfc_sym_mangled_function_id): Module, external
850 symbols must not have the module name prepended.
852 2007-01-11 Thomas Koenig <Thomas.Koenig@online.de>
855 * iresolve.c (gfc_resolve_maxloc): If the rank
856 of the return array is nonzero and we process an
857 integer array smaller than default kind, coerce
858 the array to default integer.
859 * iresolve.c (gfc_resolve_minloc): Likewise.
861 2007-01-11 Brooks Moses <brooks.moses@codesourcery.com>
863 * simplify.c: Update copyright to 2007.
866 2007-01-11 Francois-Xavier Coudert <coudert@clipper.ens.fr>
869 * scanner.c (gfc_release_include_path): Free gfc_option.module_dir
872 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
874 * simplify.c (gfc_simplify_ibclr): Fix POS comparison.
875 (gfc_simplify_ibset): Same.
877 2007-01-09 Brooks Moses <brooks.moses@codesourcery.com>
881 * simplify.c (convert_mpz_to_unsigned): New function.
882 (convert_mpz_to_signed): New function, largely based on
884 (twos_complement): Removed.
885 (gfc_simplify_ibclr): Add conversions to and from an
886 unsigned representation before bit-twiddling.
887 (gfc_simplify_ibset): Same.
888 (gfc_simplify_ishftc): Add checks for overly large
889 constant arguments, only check the third argument if
890 it's present, carry over high bits into the result as
891 appropriate, and perform the final conversion back to
892 a signed representation using the correct sign bit.
893 (gfc_simplify_not): Removed unnecessary masking.
895 2007-01-09 Paul Thomas <pault@gcc.gnu.org>
898 * resolve.c (resolve_code): Use the code->expr character length
899 directly to set length of llen.
901 2007-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
904 * lang.opt: Add Wcharacter_truncation option.
905 * options.c (gfc_init_options): Initialize
906 gfc_option.warn_character_truncation to zero.
907 (gfc_handle_option): Add case for OPT_Wcharacter_truncation.
909 2007-01-08 Steven G. Kargl <kargl@gcc.gnu.org>
911 * interface.c, intrinsic.c, gfortranspec.c, io.c, f95-lang.c,
912 iresolve.c, match.c: Update Copyright years. Whitespace.
914 2007-01-08 Richard Guenther <rguenther@suse.de>
916 * trans-io.c (transfer_array_desc): Use build_int_cst instead
919 2007-01-08 Roger Sayle <roger@eyesopen.com>
921 * trans-array.c (constant_array_constructor_p): New function to
922 determine whether an array constructor consists only of constant
923 elements, and if so return it's size.
924 (gfc_build_constant_array_constructor): Construct a statically
925 initialized gfortran array for a given EXPR_ARRAY.
926 (gfc_trans_constant_array_constructor): Efficiently scalarize
927 a constant array constructor.
928 (gfc_trans_array_constructor): Tidy up use of CONST_STRING.
929 Special case scalarization of constant array constructors, all of
930 whose elements are specified, using constant_array_constructor_p
931 and gfc_trans_constant_array_constructor.
932 (gfc_conv_scalarized_array_ref): Check whetger info->offset is zero
933 before adding it to index, to avoid creating a NON_LVALUE_EXPR.
935 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
937 gfortran.texi: Fix typos.
939 2007-01-07 Steven G. Kargl <kargl@gcc.gnu.org>
941 * decl.c, dump-parse-tree.c, error.c, data.c, expr.c, dependency.c,
942 convert.c: Update Copyright dates. Fix whitespace.
944 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
946 * data.c (gfc_assign_data_value): Fix whitespace.
948 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
950 * trans-array.c (gfc_trans_create_temp_array, gfc_array_init_size):
953 2007-01-07 Bernhard Fischer <aldot@gcc.gnu.org>
956 * match.c (gfc_match_name): Print diagnostics for invalid
959 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
961 * array.c: Fix whitespace in comment table.
963 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
965 * array.c, bbt.c, check.c: Update copyright years. Whitespace.
967 2007-01-06 Steven G. Kargl <kargl@gcc.gnu.org>
969 * arith.c: Update copyright years. Whitespace.
971 2007-01-05 Roger Sayle <roger@eyesopen.com>
973 * trans-expr.c (gfc_trans_assignment_1): New subroutine to scalarize
974 array assignments split out from gfc_trans_assignment.
975 (gfc_trans_array_copy): New function to implement array to array
976 copies via calls to __builtin_memcpy.
977 (copyable_array_p): New helper function to identify an array of
978 simple/POD types, that may be copied/assigned using memcpy.
979 (gfc_trans_assignment): Use gfc_trans_array_copy to handle simple
980 whole array assignments considered suitable by copyable_array_p.
981 Invoke gfc_trans_assignment_1 to perform the fallback scalarization.
983 2007-01-05 Roger Sayle <roger@eyesopen.com>
985 * trans-array.c (gfc_trans_array_constructor_value): Make the
986 static const "data" array as TREE_READONLY.
987 * trans-stmt.c (gfc_trans_character_select): Likewise.
989 2007-01-05 Roger Sayle <roger@eyesopen.com>
991 * trans-array.c (gfc_conv_loop_setup): Test whether the loop
992 stride is one, to avoid fold_build2 introducing a useless
993 NON_LVALUE_EXPR node.
995 2007-01-05 Tobias Burnus <burnus@net-b.de>
997 * symbol.c (check_conflict): Fix error message.
999 2007-01-05 Paul Thomas <pault@gcc.gnu.org>
1002 * decl.c (gfc_in_match_data, gfc_set_in_match_data): New
1003 functions to signal that a DATA statement is being matched.
1004 (gfc_match_data): Call gfc_set_in_match_data on entry and on
1006 * gfortran.h : Add prototypes for above.
1007 * expr.c (check_init_expr): Avoid check on parameter or
1008 variable if gfc_in_match_data is true.
1009 (gfc_match_init_expr): Do not call error on non-reduction of
1010 expression if gfc_in_match_data is true.
1014 * decl.c (gfc_set_constant_character_len): Add boolean arg to
1015 flag array constructor resolution. Warn if string is being
1016 truncated. Standard dependent error if string is padded. Set
1017 new arg to false for all three calls to
1018 gfc_set_constant_character_len.
1019 * match.h : Add boolean arg to prototype for
1020 gfc_set_constant_character_len.
1021 * gfortran.h : Add warn_character_truncation to gfc_options.
1022 * options.c (set_Wall): Set warn_character_truncation if -Wall
1024 * resolve.c (resolve_code): Warn if rhs string in character
1025 assignment has to be truncated.
1026 * array.c (gfc_resolve_character_array_constructor): Set new
1027 argument to true for call to gfc_set_constant_character_len.
1029 2007-01-05 Tobias Burnus <burnus@net-b.de>
1032 * interface.c (compare_parameter_intent): New function.
1033 (check_intents): Support pointer intents.
1034 * symbol.c (check_conflict): Support pointer intents,
1035 better conflict_std message.
1036 * expr.c (gfc_check_assign,gfc_check_pointer_assign):
1037 Support pointer intents.
1038 * resolve.c (resolve_deallocate_expr,resolve_allocate_expr):
1039 Support pointer intents.
1041 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1044 * check.c (gfc_check_kill_sub): Add checks for non-scalar
1047 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1049 * intrinsic.texi: Minor cleanup, reflowing overlong
1050 paragraphs, and correcting whitespace.
1052 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1054 * intrinsic.texi (LBOUND): Add documentation.
1055 (LGE): Add documentation.
1056 (LGT): Add documentation.
1057 (LINK): Add documentation.
1058 (LLE): Add documentation.
1059 (LLT): Add documentation.
1060 (LNBLNK): Add documentation.
1061 (UBOUND): Add documentation.
1062 (UNLINK): Add documentation.
1064 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1066 * intrinsic.texi (IAND): Clarify argument specifications.
1067 (IBCLR): Add documentation.
1068 (IBITS): Add documentation.
1069 (IBSET): Add documentation.
1070 (IEOR): Add documentation.
1071 (IERRNO): Add documentation.
1072 (INDEX): Add documentation.
1073 (IOR): Add documentation.
1074 (ISHFT): Add documentation.
1075 (ISHFTC): Add documentation.
1076 (KILL): Add documentation.
1077 (LEN_TRIM): Add documentation.
1079 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1082 * interface.c (compare_actual_formal): check for
1083 alternate returns when iterating over non-present
1086 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1088 * invoke.texi: Update manpage copyright to include 2007.
1090 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
1092 * gfortran.texi: Update copyright to include 2007.
1093 * intrinsic.texi: Update copyright to include 2007.
1094 * invoke.texi: Update copyright to include 2007.
1096 2007-01-02 Tobias Burnus <burnus@net-b.de>
1097 Jakub Jelinek <jakub@redhat.com>
1100 * scanner.c (open_included_file): Revert patch.
1101 (gfc_open_included_file): Support absolute pathnames.
1102 (gfc_open_intrinsic_module): Support absolute pathnames.
1104 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1106 * gfortran.texi (GNU Fortran and GCC): Rewrite
1108 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1110 * gfortran.texi (Introduction): Lower "Part I:
1111 Introduction" to a chapter, renumber Parts II and III to
1113 * intrinsic.texi (Introduction): Rename to "Introduction
1114 to Intrinsics" to avoid conflict with the new chapter.
1116 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1118 * intrinsic.texi (Introduction): Rewrite first paragraph.
1120 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1122 * invoke.texi (OpenMP): Added index entry.
1123 * gfortran.texi (title page): Removed erroneous '*'.
1125 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1127 * gfortran.texi (GFORTRAN_DEFAULT_RECL): Added units
1129 (Extensions): Miscellaneous minor rewriting and copyediting.
1130 (BOZ-literal constants): Renamed from Hexadecimal constants.
1131 (Hollerith constants support): Added explanation and
1132 suggestions for standard-conforming modern equivalents.
1134 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1136 * intrinsic.texi: Improvements to index entries; change
1137 @findex entries to @cindex entries.
1138 * invoke.texi: Standardize and improve index entries.
1139 * gfortran.texi: Fix @code in one index entry.
1141 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1143 * invoke.texi: Change @code-type macros to appropriate
1144 variants (@command, @option, etc.)
1145 * gfortran.texi: Same.
1147 2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
1149 * intrinsic.texi: Various minor cleanups.
1151 2007-01-02 Steven G. Kargl <kargls@comcast.net>
1153 * trans-intrinsic.c (gfc_conv_intrinsic_ibits): Fix call to
1156 2007-01-02 Tobias Burnus <burnus@net-b.de>
1159 * scanner.c (open_included_file): Support full-path filenames.
1161 2007-01-02 Paul Thomas <pault@gcc.gnu.org>
1164 * interface.c (check_sym_interfaces): Remove call to
1165 resolve_global_procedure.
1166 gfortran.h : Remove prototype for resolve_global_procedure.
1167 resolve.c (resolve_global_procedure): Add static attribute
1168 to function declaration.
1170 2007-01-01 Steven G. Kargl <kargls@comcast.net>
1172 * ChangeLog: Copy to ...
1173 * ChangeLog-2006: here.