* c-common.c (get_priority): Add check for
[official-gcc.git] / gcc / fortran / ChangeLog
blobd4b548db7f2015983f6c382f45546ddc9fdf7926
1 2007-02-27  Richard Guenther  <rguenther@suse.de>
3         * trans-array.c (structure_alloc_comps): Use correct type
4         for null pointer constant.
6 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
8         * gfortran.texi: Standardize title page, remove version number
9         from copyright page.
11 2007-02-26  Thomas Koenig  <Thomas.Koenig@online.de>
12             Paul Thomas  <pault@gcc.gnu.org>
14         PR fortran/30865
15         * trans-intrinsic.c (gfc_conv_intrinsic_size):
16         If dim is an optional argument, check for its
17         presence and call size0 or size1, respectively.
19 2007-02-23  Paul Thomas <pault@gcc.gnu.org>
21         PR fortran/30660
22         * resolve.c (has_default_initializer): New function.
23         (resolve_fl_variable): Call has_default_initializer to determine if
24         the derived type has a default initializer to its ultimate
25         components.
28 2007-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
30         * options.c (set_default_std_flags): New function to consolidate
31         setting the flags.
32         (gfc_init_options): Use new function.
33         (gfc_handle_option): Use new function.
35 2007-02-22  Brooks Moses  <brooks.moses@codesourcery.com>
37         * gfortran.texi (Old-style kind specifications): Document
38         special handling of old-style kind specifiers for COMPLEX.
39         * decl.c (gfc_match_old_kind_spec): Documented kind/bytesize
40         assumptions in comment.
42 2007-02-21  Bernhard Fischer  <aldot@gcc.gnu.org>
44         * parse.c (next_free): Gooble spaces after OpenMP sentinel.
46 2007-02-20  Thomas Koenig  <Thomas.Koenig@online.de>
48         PR fortran/30869
49         * match.c (gfc_match_iterator): Remove conflict between
50         loop variable and pointer.
52 2007-02-20  Tobias Burnus  <burnus@net-b.de>
54         PR fortran/30522
55         * symbol.c (gfc_add_volatile): Allow to set VOLATILE
56           attribute for host-associated variables.
57         * gfortran.h (symbol_attribute): Save namespace
58           where VOLATILE has been set.
59         * trans-decl.c (gfc_finish_var_decl): Move variable
60           declaration to the top.
62 2007-02-20  Tobias Burnus  <burnus@net-b.de>
64         PR fortran/30783
65         * resolve.c (resolve_symbol): Add character dummy VALUE check.
67 2007-02-19  Thomas Koenig  <Thomas.Koenig@online.de>
69         PR libfortran/30533
70         * fortran/iresolve.c (gfc_resolve_maxloc): Remove coercion of
71         argument to default integer.
72         (gfc_resolve_minloc): Likewise.
74 2007-02-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
76         PR fortran/30681
77         * options.c (gfc_init_options): Relax warning level for obsolescent.
78         * match.c (match_arithmetic_if): Change to obsolescent from deleted.
79         (gfc_match_if): Same.
81 2007-02-18  Roger Sayle  <roger@eyesopen.com>
83         * trans-array.c (gfc_build_constant_array_constructor): When the
84         shape of the constructor is known, use that to construct the
85         gfc_array_spec.
86         (gfc_trans_constant_array_constructor): Initialize the "info"
87         information for all of the dimensions of the array constructor.
88         (constant_array_constructor_loop_size): New function.
89         (gfc_trans_array_constructor): Use it to determine whether a
90         loop is suitable for "constant array constructor" optimization.
92         * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Use fold_build2
93         instead of build2, to avoid conditions like "(a != b) != 0".
95 2007-02-18  Roger Sayle  <roger@eyesopen.com>
96             Paul Thomas <pault@gcc.gnu.org>
98         PR fortran/30400
99         * match.c (match_forall_iterator): Use gfc_match_expr instead
100         of gfc_match_variable to match the iterator variable.  Return
101         MATCH_NO if not a variable.  Remove the reset of the symbol's
102         flavor in cleanup.
104 2007-02-16  Tobias Burnus  <burnus@net-b.de>
106         PR fortran/30793
107         * trans-decl.c (gfc_generate_function_code): Do not initialize
108         pointers to derived components.
110 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
111             Brooks Moses  <brooks.moses@codesourcery.com>
112             Lee Millward  <lee.millward@codesourcery.com>
114         * trans-expr.c (gfc_conv_power_op): Use build_call_expr.
115         (gfc_conv_string_tmp): Likewise.
116         (gfc_conv_concat_op): Likewise.
117         (gfc_build_compare_string): Likewise.
118         (gfc_conv_function_call): Use build_call_list instead of build3.
120         * trans-array.c (gfc_trans_allocate_array_storage): Use
121         build_call_expr.
122         (gfc_grow_array): Likewise.
123         (gfc_trans_array_ctor_element): Likewise.
124         (gfc_trans_array_constructor_value): Likewise.
125         (gfc_array_allocate): Likewise.
126         (gfc_array_deallocate): Likewise.
127         (gfc_trans_auto_array_allocation): Likewise.
128         (gfc_trans_dummy_array_bias): Likewise.
129         (gfc_conv_array_parameter): Likewise.
130         (gfc_trans_dealloc_allocated): Likewise.
131         (gfc_duplicate_allocatable): Likewise.
133         * trans-openmp.c (gfc_trans_omp_barrier): Use build_call_expr.
134         (gfc_trans_omp_flush): Likewise.
136         * trans-stmt.c (gfc_conv_elementel_dependencies): Use build_call_expr.
137         (gfc_trans_pause): Likewise.
138         (gfc_trans_stop): Likewise.
139         (gfc_trans_character_select): Likewise.
140         (gfc_do_allocate): Likewise.
141         (gfc_trans_assign_need_temp): Likewise.
142         (gfc_trans_pointer_assign_need_temp): Likewise.
143         (gfc_trans_forall_1): Likewise.
144         (gfc_trans_where_2): Likewise.
145         (gfc_trans_allocate): Likewise.
146         (gfc_trans_deallocate): Likewise.
148         * trans.c (gfc_trans_runtime_check): Use build_call_expr.
150         * trans-io.c (gfc_trans_open): Use build_call_expr.
151         (gfc_trans_close): Likewise.
152         (build_filepos): Likewise.
153         (gfc_trans_inquire): Likewise.
154         (NML_FIRST_ARG): Delete.
155         (NML_ADD_ARG): Delete.
156         (transfer_namelist_element): Use build_call_expr.
157         (build_dt): Likewise.
158         (gfc_trans_dt_end): Likewise.
159         (transfer_expr): Likewise.
160         (transfer_array-desc): Likewise.
162         * trans-decl.c (gfc_generate_function_code): Use build_call_expr.
163         (gfc_generate_constructors): Likewise.
165         * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Use build_call_expr.
166         (gfc_conv_intrinsic_fdate): Likewise.
167         (gfc_conv_intrinsic_ttynam): Likewise.
168         (gfc_conv_intrinsic_array_transfer): Likewise.
169         (gfc_conv_associated): Likewise.
170         (gfc_conv_intrinsic_si_kind): Likewise.
171         (gfc_conv_intrinsic_trim): Likewise.
172         (gfc_conv_intrinsic_repeat: Likewise.
173         (gfc_conv_intrinsic_iargc): Likewise.
175 2007-02-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
177         PR fortran/30779
178         * scanner.c (gfc_next_char_literal): Add check for end of file after
179         call to advance_line.
181 2007-02-14  Steven G. Kargl  <kargl@gcc.gnu.org>
183         PR fortran/30799
184         * primary.c (match_logical_constant): Return MATCH_ERROR on invalid
185         kind.
187 2007-02-14  Steven G. Kargl  <kargl@gcc.gnu.org>
189         * misc.c (gfc_typename): Fix potential buffer overflow.
191 2007-02-13  Paul Thomas  <pault@gcc.gnu.org>
193         PR fortran/30554
194         * module.c (read_module): Set pointer_info to referenced if the
195         symbol has no namespace.
197 2007-02-12  Nick Clifton  <nickc@redhat.com>
199         * lang.opt: Add Warning attribute to warning options.
201 2007-02-11  Daniel Franke  <franke.daniel@gmail.com>
203         * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
204         (SLEEP): Added section and documentation.
206 2007-02-11  Tobias Schlüter  <tobi@gcc.gnu.org>
208         PR fortran/30478
209         * decl.c (add_init_expr_to_sym): Remove ENUM specific code.
210         (variable_decl): Likewise.  Rewrap comment.
211         (match_attr_spec): Remove ENUM specific code.
212         (gfc_match_enum): Fix typo in error message.
213         (enumerator_decl): New function.
214         (gfc_match_enumerator_def): Use enumerator_decl instead of
215         variable_decl.  Adapt code accordingly.
217 2007-02-11  Paul Thomas  <pault@gcc.gnu.org>
219         PR fortran/30554
220         * module.c (find_symtree_for_symbol): New function to return
221         a symtree that is not a "unique symtree" given a symbol.
222         (read_module): Do not automatically set pointer_info to
223         referenced because this inhibits the generation of a unique
224         symtree.  Recycle the existing symtree if possible by calling
225         find_symtree_for_symbol.
227         PR fortran/30319
228         * decl.c (add_init_expr_to_sym): Make new charlen for an array
229         constructor initializer.
231 2007-02-10  Richard Henderson  <rth@redhat.com>, Jakub Jelinek  <jakub@redhat.com>
233         * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
234         and __emutls_register_common.
235         * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
236         * trans-common.c (build_common_decl): Don't check have_tls.
237         * trans-decl.c (gfc_finish_var_decl): Likewise.
238         * types.def (BT_WORD, BT_FN_PTR_PTR): New.
239         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
241 2007-02-09  Tobias Burnus  <burnus@net-b.de>
243         PR fortran/30512
244         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc,
245           gfc_conv_intrinsic_minmaxval): Use HUGE-1 for most negative integer.
247 2007-02-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
249         PR fortran/30720
250         * trans-array.c (gfc_trans_create_temp_array): Remove use of the
251         function argument. Always generate code for negative extent.
252         Simplify said code.
253         * trans-array.h (gfc_trans_create_temp_array): Change prototype.
254         * trans-expr.c (gfc_conv_function_call): Remove use of last argument
255         of gfc_trans_create_temp_array.
256         * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Likewise.
257         * trans-stmt.c (gfc_conv_elemental_dependencies): Likewise.
259 2007-02-08  Roger Sayle  <roger@eyesopen.com>
261         * trans-stmt.c (gfc_trans_forall_1): Optimize the cases where the
262         mask expression is a compile-time constant (".true." or ".false.").
264 2007-02-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
266         PR fortran/30611
267         * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Evaluate
268         arguments only once. Generate check that NCOPIES argument is not
269         negative.
271 2007-02-04  Steven G. Kargl <kargl@gcc.gnu.org>
273         PR fortran/30605
274         * fortran/invoke.texi: Update documentation.
275         * fortran/options.c (gfc_post_options): Deal with tabs with -std=f2003
276         and -pedantic.
278 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
280         * trans-array.c: Fix a comment typo.
282 2007-02-03  Paul Thomas  <pault@gcc.gnu.org>
284         PR fortran/30514
285         * array.c (match_array_element_spec): If the length of an array is
286         negative, adjust the upper limit to make it zero length.
288         PR fortran/30660
289         * resolve.c (pure_function, resolve_function): Initialize name to
290         null to clear up build warnings.
291         (resolve_fl_variable): Look at components explicitly to check for
292         default initializer, rather than using gfc_default_initializer.
294 2007-02-02  Steven G. Kargl <kargl@gcc.gnu.org>
296         PR fortran/30683
297         * resolve.c (resolve_generic_f): Check for non-NULL sym.
299 2007-02-02  Roger Sayle  <roger@eyesopen.com>
301         * trans.c (gfc_build_array_ref): Use STRIP_TYPE_NOPS to eliminate
302         NON_LVALUE_EXPR nodes and useless type conversions.
304 2007-02-02  Paul Thomas  <pault@gcc.gnu.org>
306         PR fortran/30284
307         PR fortran/30626
308         * trans-expr.c (gfc_conv_aliased_arg): Remove static attribute
309         from function and make sure that substring lengths are
310         translated.
311         (is_aliased_array): Remove static attribute.
312         * trans.c : Add prototypes for gfc_conv_aliased_arg and
313         is_aliased_array.
314         * trans-io.c (set_internal_unit): Add the post block to the
315         arguments of the function.  Use is_aliased_array to check if
316         temporary is needed; if so call gfc_conv_aliased_arg.
317         (build_dt): Pass the post block to set_internal_unit and
318         add to the block after all io activiy is done.
320 2007-02-01  Roger Sayle  <roger@eyesopen.com>
322         * trans-array.c (gfc_conv_expr_descriptor): We don't need to use
323         a temporary array to pass a constant non-character array constructor.
324         Generalize the descriptor generation code to handle scalarizer
325         "info" without an array reference.
327 2007-02-01  Roger Sayle  <roger@eyesopen.com>
329         * dependency.c (gfc_check_dependency) <EXPR_ARRAY>: Implement
330         dependency checking for array constructors.
332 2007-02-01  Roger Sayle  <roger@eyesopen.com>
334         * trans-stmt.c (compute_overall_iter_number): Document function
335         arguments.  Generalize "unconditional forall nest with constant
336         bounds" optimization to eliminate unconditional inner loops with
337         constant bounds.
339 2007-01-31  Tobias Burnus  <burnus@net-b.de>
341         PR fortran/30520
342         * interface.c (compare_actual_formal): Check conformance between
343           actual and VOLATILE dummy arguments.
344         * symbol.c (gfc_add_volatile): Allow setting of VOLATILE
345           multiple times in different scopes.
346         * decl.c (gfc_match_volatile): Search symbol in host association.
348 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
350         * simplify.c, trans-array.c: Fix comment typos.
352 2007-01-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
354         * invoke.texi (Code Gen Options): Fix abbreviation typo.
355         * intrinsic.texi (ACCESS, LSHIFT, RSHIFT): Fix typos.
357 2007-01-30  Steve Ellcey  <sje@cup.hp.com>
359         PR fortran/30432
360         * trans-types.c (gfc_get_function_type): Do not add void_type_node
361         to empty arg list.
362         * trans-decl.c (create_function_arglist): Change assert.
364 2007-01-29  Paul Thomas  <pault@gcc.gnu.org>
366         PR fortran/30554
367         * module.c (read_module): If a symbol is excluded by an ONLY
368         clause, check to see if there is a symtree already loaded. If
369         so, attach the symtree to the pointer_info.
371 2007-01-28  Thomas Koenig  <Thomas.Koenig@online.de>
373         PR libfortran/30389
374         * gfortran.h: Remove gfc_simplify_init_1.
375         * arith.h: Remove third argument from gfc_compare_string.
376         * arith.c (gfc_compare_expression): Remove third argument
377         from call to gfc_compare_string.
378         (gfc_compare_string): Remove third argument xcoll_table.
379         Remove use of xcoll_table.
380         * misc.c (gfc_init_1): Remove call to gfc_simplify_init_1.
381         * simplify.c (ascii_table): Remove.
382         (xascii_table): Likewise.
383         (gfc_simplify_achar): ICE if extract_int fails.  Remove use of
384         ascii_table.  Warn if -Wsurprising and value < 0 or > 127.
385         (gfc_simplify_char): ICE if extract_int fails. Error if
386         value < 0 or value > 255.
387         (gfc_simplify_iachar): Remove use of xascii_table.
388         Char values outside of 0..255 are an ICE.
389         (gfc_simplify_lge): Remove use of xascii_table.
390         (gfc_simplify_lgt): Likewise.
391         (gfc_simplify_lle): Likewise.
392         (gfc_simplify_llt): Likewise.
393         (invert_table): Remove.
394         (gfc_simplify_init_1): Remove.
396 2007-01-27  Roger Sayle  <roger@eyesopen.com>
398         * trans-stmt.c (forall_info): Replace the next_nest and outer
399         fields that previously implemented a doubly-linked list with a
400         single prev_nest field (singly-linked list).
401         (gfc_trans_nested_forall_loop): The nested_forall_info argument
402         now denotes the innermost FORALL in the loop nest.
403         (compute_overall_iter_number): Use prev_nest instead of next_nest.
404         (gfc_trans_forall_1): Link/cons the new "info" to the head of the
405         nested_forall_info linked list.  Free the current "info" when done.
407 2007-01-27  Paul Thomas  <pault@gcc.gnu.org>
409         PR fortran/30407
410         * trans-expr.c (gfc_conv_operator_assign): New function.
411         * trans.h : Add prototype for gfc_conv_operator_assign.
412         * trans-stmt.c (gfc_trans_where_assign): Add a gfc_symbol for
413         a potential operator assignment subroutine.  If it is non-NULL
414         call gfc_conv_operator_assign instead of the first assignment.
415         ( gfc_trans_where_2): In the case of an operator assignment,
416         extract the argument expressions from the code for the
417         subroutine call and pass the symbol to gfc_trans_where_assign.
418         resolve.c (resolve_where, gfc_resolve_where_code_in_forall,
419         gfc_resolve_forall_body): Resolve the subroutine call for
420         operator assignments.
422 2007-01-26  Steven Bosscher  <stevenb.gcc@gmail.com>
423             Steven G. Kargl <kargl@gcc.gnu.org>
425         PR fortran/30278
426         * fortran/io.c (next_char): Deal with backslash escaped characters.
427         Issue warnings in non -std=gnu cases.
428         * fortran/primary.c (next_string_char): Issue warnings in non
430 2007-01-26  Tobias Burnus  <burnus@net-b.de>
432         * lang-specs.h: Add support for .f03 and .F03 extensions.
433         * gfortran.texi: Document .f03 extension.
434         * options.c (form_from_filename): Recognize .f03.
436 2007-01-25  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
438         PR fortran/30437
439         * lang.opt (Wall): Remove RejectNegative.
440         * options.c (gfc_handle_option): Wall can be disabled.
441         (set_Wall): Add a parameter for disabling Wall.
442         
443 2007-01-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
445         PR fortran/30532
446         * scanner.c (load_line): Remove check fot ctrl-z and don't gobble.
447         
448 2007-01-23  Paul Thomas  <pault@gcc.gnu.org>
450         PR fortran/30481
451         * match.c (gfc_match_namelist): Add check for assumed size character
452         in namelist and provide error if found.
454 2007-01-21  Brooks Moses  <brooks.moses@codesourcery.com>
456         * intrinsic.texi (ACHAR): Added cross-references.
457         (CHAR): Put cross-references in alphabetical order.
458         (IACHAR): Added cross-references.
459         (ICHAR): Added cross-references.
461 2007-01-20  Brooks Moses  <brooks.moses@codesourcery.com>
463         * intrinsic.texi: Edited all "Syntax" examples to a consistent form.
464         (MAXVAL): Corrected description of result characteristics.
465         (MINVAL): Same.
466         (UMASK): Added documentation.
468 2007-01-20  Steven G. Kargl  <kargl@gcc.gnu.org>
470         * openmp.c, matchexp.c, module.c, scanner.c, resolve.c, st.c,
471         parse.c, primary.c, options.c, misc.c, simplify.c: Next installment
472         in the massive whitespace patch.
474 2007-01-20  Roger Sayle  <roger@eyesopen.com>
476         * module.c (mio_array_ref): The dimen_type fields of an array ref
477         are an enumerated type and can't be read/written directly with a
478         call to mio_integer.  Instead loop over and cast each element.
480 2007-01-20  Roger Sayle  <roger@eyesopen.com>
482         * dependency.c (gfc_full_array_ref_p): Check that ref->next is NULL,
483         i.e. that the ARRAY_REF doesn't mention components.
484         * trans-array.c (gfc_constant_array_constructor_p): Export external
485         function renamed from constant_array_constructor_p.
486         (gfc_build_constant_array_constructor): Export.
487         (gfc_trans_array_constructor): Update call to the renamed function
488         constant_array_constructor_p.
489         * trans-array.h (gfc_constant_array_constructor_p): Prototype here.
490         (gfc_build_constant_array_constructor): Likewise.
491         * trans-expr.c (gfc_build_memcpy_call): New helper function split
492         out from gfc_trans_array_copy.
493         (gfc_trans_array_copy): Use gfc_build_memcpy_call.
494         (gfc_trans_array_constructor_copy): New function to optimize
495         assigning an entire array from a constant array constructor.
496         (gfc_trans_assignment): Call gfc_trans_array_constructor_copy
497         when appropriate.
499 2007-01-20  Roger Sayle  <roger@eyesopen.com>
501         * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
502         implementation for the SIGN intrinsic with integral operands.
503         (gfc_conv_intrinsic_minmax): Fix whitespace.
505 2007-01-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
507         * gfortran.h (gfc_options_t): Add flag_allow_leading_underscore.
508         * lang.opt: Add -fallow-leading-underscore.
509         * match.c (gfc_match_name): Allow leading underscore in symbol
510         name if -fallow-leading-underscore is used.
511         * symbol.c (gfc_get_default_type): Add special case for symbol
512         names beginning with an underscore.
513         * trans-decl.c (gfc_get_extern_function_decl,
514         gfc_build_intrinsic_function_decls): Add _gfortran prefix to
515         library symbols selected_int_kind, selected_real_kind and 
516         all specifics.
517         * options.c (gfc_init_options, gfc_handle_option): Handle the
518         new -fallow-leading-underscore option.
520 2007-01-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
522         PR fortran/30446
523         * options.c (gfc_handle_module_path_options): Path used in -J
524         option is now added to the module search path.
526 2007-01-20  Richard Guenther  <rguenther@suse.de>
528         PR fortran/30223
529         * f95-lang.c (gfc_init_builtin_functions): Provide cbrt and
530         cexpi builtins if we have TARGET_C99_FUNCTIONS.  Provide
531         sincos builtins if the target has sincos.
533 2007-01-19  Brooks Moses  <brooks.moses@codesourcery.com>
535         * intrinsic.texi (MATMUL): Corrected a typo.
536         (MAX): Separated @var arguments.
537         (MIN): Separated @var arguments.
539 2007-01-19  Brooks Moses  <brooks.moses@codesourcery.com>
541         * intrinsic.texi: general whitespace cleanup.
542         (menu): Added TIME8, removed UNMASK.
543         (AINT): Clarified argument requirement.
544         (ANINT): Clarified argument requirement.
545         (CEILING): Clarified argument requirement.
546         (CHAR): Clarified argument requirement.
547         (CMPLX): Clarified argument requirement.
548         (DCMPLX): Clarified argument requirement.
549         (FGET): Line rewrapping.
550         (FLOOR): Clarified argument requirement.
551         (GMTIME): Added documentation.
552         (IAND): Added cross-reference.
553         (IBCLR): Added cross-reference.
554         (IBSET): Added cross-reference.
555         (IEOR): Added cross-reference.
556         (INT): Collapsed examples, clarified argument requirement.
557         (IOR): Added cross-references.
558         (LEN_TRIM): Corrected result kind.
559         (LINK): Added cross-reference.
560         (LLT): Removed "documentation pending".
561         (LOGICAL): Added documentation.
562         (LSHIFT): Added documentation.
563         (LTIME): Added documentation.
564         (MATMUL): Added documentation.
565         (MAX): Added documentation.
566         (MAXLOC): Added documentation.
567         (MAXVAL): Added documentation.
568         (MERGE): Added documentation.
569         (MIN): Added documentation.
570         (MINLOC): Added documentation.
571         (MINVAL): Added documentation.
572         (MVBITS): Moved to correct place, added documentation.
573         (NOT): Added documentation.
574         (PERROR): Added documentation.
575         (RAN): Moved to correct place, added documentation.
576         (REAL): Clarified argument requirement.
577         (RENAME): Added documentation.
578         (RSHIFT): Clarified argument requirement.
579         (SIGN): Corrected table specification.
580         (SYMLNK): Added documentation.
581         (SYSTEM): Added documentation.
582         (TIME): Added documentation.
583         (TIME8): Added section and documentation.
584         (UNMASK): Removed erroneous section.
586 2007-01-18  H.J. Lu  <hongjiu.lu@intel.com>
588         * trans-stmt.c (compute_overall_iter_number): Fix a typo.
590 2007-01-18  Roger Sayle  <roger@eyesopen.com>
592         * trans-expr.c (copyable_array_p): Consider user derived types without
593         allocatable components to be copyable.
595 2007-01-18  Roger Sayle  <roger@eyesopen.com>
597         * trans-stmt.c (compute_overall_iter_number): Enhance to precompute
598         the number of interations in unconditional FORALL nests with constant
599         bounds.
601 2007-01-18  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
602             Tobias Burnus  <burnus@net-b.de>
604         PR libfortran/29649
605         * gfortran.h (gfc_option_t): Add flag_dump_core.
606         * lang.opt: Add -fdump-core option.
607         * invoke.texi: Document the new options.
608         * trans-decl.c (gfc_build_builtin_function_decls): Add new
609           options to the call to set_std.
610         * options.c (gfc_init_options, gfc_handle_option): Set the
611           new options.
613 2007-01-17  Paul Thomas  <pault@gcc.gnu.org>
615         PR fortran/30476
616         * module.c (load_generic_interfaces): Make the marking of the
617         symbol as ambiguous conditional on the module names being
618         different.
619         (write_generic): Ensure that the generic interface has a
620         non-NULL module field.
622 2007-01-16  Roger Sayle  <roger@eyesopen.com>
624         PR fortran/30404
625         * trans-stmt.c (forall_info): Remove pmask field.
626         (gfc_trans_forall_loop): Remove NVAR argument, instead assume that
627         NVAR covers all the interation variables in the current forall_info.
628         Add an extra OUTER parameter, which specified the loop header in
629         which to place mask index initializations.
630         (gfc_trans_nested_forall_loop): Remove NEST_FLAG argument.
631         Change the semantics of MASK_FLAG to only control the mask in the
632         innermost loop.
633         (compute_overall_iter_number): Optimize the trivial case of a
634         top-level loop having a constant number of iterations.  Update
635         call to gfc_trans_nested_forall_loop.  Calculate the number of
636         times the inner loop will be executed, not to size of the 
637         iteration space.
638         (allocate_temp_for_forall_nest_1): Reuse SIZE as BYTESIZE when
639         sizeof(type) == 1.  Tidy up.
640         (gfc_trans_assign_need_temp): Remove NEST_FLAG argument from calls
641         to gfc_trans_nested_forall_loop.
642         (gfc_trans_pointer_assign_need_temp): Likewise.
643         (gfc_trans_forall_1): Remove unused BYTESIZE, TMPVAR, SIZEVAR and
644         LENVAR local variables.  Split mask allocation into a separate
645         hunk/pass from mask population.  Use allocate_temp_for_forall_nest
646         to allocate the FORALL mask with the correct size.  Update calls
647         to gfc_trans_nested_forall_loop.
648         (gfc_evaluate_where_mask): Update call to
649         gfc_trans_nested_forall_loop.
650         (gfc_trans_where_2): Likewise.
652 2007-01-15  Paul Thomas  <pault@gcc.gnu.org>
654         PR fortran/28172
655         * trans-stmt.c (gfc_trans_call): If it does not have one, get
656         a backend_decl for an alternate return.
658         PR fortran/29389
659         * resolve.c (pure_function): Statement functions are pure. Note
660         that this will have to recurse to comply fully with F95.
662         PR fortran/29712
663         * resolve.c (resolve_function): Only a reference to the final
664         dimension of an assumed size array is an error in an inquiry
665         function.
667         PR fortran/30283
668         * resolve.c (resolve_function): Make sure that the function
669         expression has a type.
671 2007-01-14  Paul Thomas  <pault@gcc.gnu.org>
673         PR fortran/30410
674         * trans-decl.c (gfc_sym_mangled_function_id): Module, external
675         symbols must not have the module name prepended.
677 2007-01-11  Thomas Koenig  <Thomas.Koenig@online.de>
679         PR libfortran/30415
680         * iresolve.c (gfc_resolve_maxloc): If the rank
681         of the return array is nonzero and we process an
682         integer array smaller than default kind, coerce
683         the array to default integer.
684         * iresolve.c (gfc_resolve_minloc): Likewise.
686 2007-01-11  Brooks Moses  <brooks.moses@codesourcery.com>
688         * simplify.c: Update copyright to 2007.
689         * scanner.c: Same.
691 2007-01-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
693         PR fortran/30430
694         * scanner.c (gfc_release_include_path): Free gfc_option.module_dir
695         only once!
697 2007-01-09  Brooks Moses  <brooks.moses@codesourcery.com>
699         * simplify.c (gfc_simplify_ibclr): Fix POS comparison.
700         (gfc_simplify_ibset): Same.
702 2007-01-09  Brooks Moses  <brooks.moses@codesourcery.com>
704         PR 30381
705         PR 30420
706         * simplify.c (convert_mpz_to_unsigned): New function.
707         (convert_mpz_to_signed): New function, largely based on
708         twos_complement().
709         (twos_complement): Removed.
710         (gfc_simplify_ibclr): Add conversions to and from an
711         unsigned representation before bit-twiddling.
712         (gfc_simplify_ibset): Same.
713         (gfc_simplify_ishftc): Add checks for overly large
714         constant arguments, only check the third argument if
715         it's present, carry over high bits into the result as
716         appropriate, and perform the final conversion back to
717         a signed representation using the correct sign bit.
718         (gfc_simplify_not): Removed unnecessary masking.
720 2007-01-09  Paul Thomas  <pault@gcc.gnu.org>
722         PR fortran/30408
723         * resolve.c (resolve_code): Use the code->expr character length
724         directly to set length of llen.
726 2007-01-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
728         PR fortran/30408
729         * lang.opt: Add Wcharacter_truncation option.
730         * options.c (gfc_init_options): Initialize
731         gfc_option.warn_character_truncation to zero.
732         (gfc_handle_option): Add case for OPT_Wcharacter_truncation.
734 2007-01-08  Steven G. Kargl  <kargl@gcc.gnu.org>
736         * interface.c, intrinsic.c, gfortranspec.c, io.c, f95-lang.c,
737         iresolve.c, match.c: Update Copyright years.  Whitespace.
739 2007-01-08  Richard Guenther  <rguenther@suse.de>
741         * trans-io.c (transfer_array_desc): Use build_int_cst instead
742         of build_int_cstu.
744 2007-01-08  Roger Sayle  <roger@eyesopen.com>
746         * trans-array.c (constant_array_constructor_p): New function to
747         determine whether an array constructor consists only of constant
748         elements, and if so return it's size.
749         (gfc_build_constant_array_constructor): Construct a statically
750         initialized gfortran array for a given EXPR_ARRAY.
751         (gfc_trans_constant_array_constructor): Efficiently scalarize
752         a constant array constructor.
753         (gfc_trans_array_constructor): Tidy up use of CONST_STRING.
754         Special case scalarization of constant array constructors, all of
755         whose elements are specified, using constant_array_constructor_p 
756         and gfc_trans_constant_array_constructor.
757         (gfc_conv_scalarized_array_ref): Check whetger info->offset is zero
758         before adding it to index, to avoid creating a NON_LVALUE_EXPR.
760 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
762         gfortran.texi: Fix typos.
764 2007-01-07  Steven G. Kargl  <kargl@gcc.gnu.org>
766         * decl.c, dump-parse-tree.c, error.c, data.c, expr.c, dependency.c,
767         convert.c: Update Copyright dates.  Fix whitespace.
769 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
771         * data.c (gfc_assign_data_value): Fix whitespace.
773 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
775         * trans-array.c (gfc_trans_create_temp_array, gfc_array_init_size):
776         Commentary typo fix.
778 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
780         PR fortran/27698
781         * match.c (gfc_match_name): Print diagnostics for invalid
782         character in names.
784 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
786         * array.c: Fix whitespace in comment table.
788 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
790         * array.c, bbt.c, check.c: Update copyright years.  Whitespace.
792 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
794         * arith.c: Update copyright years.  Whitespace.
796 2007-01-05  Roger Sayle  <roger@eyesopen.com>
798         * trans-expr.c (gfc_trans_assignment_1): New subroutine to scalarize
799         array assignments split out from gfc_trans_assignment.
800         (gfc_trans_array_copy): New function to implement array to array
801         copies via calls to __builtin_memcpy.
802         (copyable_array_p): New helper function to identify an array of
803         simple/POD types, that may be copied/assigned using memcpy.
804         (gfc_trans_assignment): Use gfc_trans_array_copy to handle simple
805         whole array assignments considered suitable by copyable_array_p.
806         Invoke gfc_trans_assignment_1 to perform the fallback scalarization.
808 2007-01-05  Roger Sayle  <roger@eyesopen.com>
810         * trans-array.c (gfc_trans_array_constructor_value): Make the
811         static const "data" array as TREE_READONLY.
812         * trans-stmt.c (gfc_trans_character_select): Likewise.
814 2007-01-05  Roger Sayle  <roger@eyesopen.com>
816         * trans-array.c (gfc_conv_loop_setup): Test whether the loop
817         stride is one, to avoid fold_build2 introducing a useless
818         NON_LVALUE_EXPR node.
820 2007-01-05  Tobias Burnus  <burnus@net-b.de>
822         * symbol.c (check_conflict): Fix error message.
824 2007-01-05  Paul Thomas  <pault@gcc.gnu.org>
826         PR fortran/23232
827         * decl.c (gfc_in_match_data, gfc_set_in_match_data): New
828         functions to signal that a DATA statement is being matched.
829         (gfc_match_data): Call gfc_set_in_match_data on entry and on
830         exit.
831         * gfortran.h : Add prototypes for above.
832         * expr.c (check_init_expr): Avoid check on parameter or
833         variable if gfc_in_match_data is true.
834         (gfc_match_init_expr): Do not call error on non-reduction of
835         expression if gfc_in_match_data is true.
837         PR fortran/27996
838         PR fortran/27998
839         * decl.c (gfc_set_constant_character_len): Add boolean arg to
840         flag array constructor resolution.  Warn if string is being
841         truncated.  Standard dependent error if string is padded. Set
842         new arg to false for all three calls to
843         gfc_set_constant_character_len.
844         * match.h : Add boolean arg to prototype for
845         gfc_set_constant_character_len.
846         * gfortran.h : Add warn_character_truncation to gfc_options.
847         * options.c (set_Wall): Set warn_character_truncation if -Wall
848         is set.
849         * resolve.c (resolve_code): Warn if rhs string in character
850         assignment has to be truncated.
851         * array.c (gfc_resolve_character_array_constructor): Set new
852         argument to true for call to gfc_set_constant_character_len.
854 2007-01-05  Tobias Burnus  <burnus@net-b.de>
856         PR fortran/29624
857         * interface.c (compare_parameter_intent): New function.
858           (check_intents): Support pointer intents.
859         * symbol.c (check_conflict): Support pointer intents,
860           better conflict_std message.
861         * expr.c (gfc_check_assign,gfc_check_pointer_assign):
862           Support pointer intents.
863         * resolve.c (resolve_deallocate_expr,resolve_allocate_expr):
864           Support pointer intents.
866 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
868         PR 30371
869         * check.c (gfc_check_kill_sub): Add checks for non-scalar
870         arguments.
872 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
874         * intrinsic.texi: Minor cleanup, reflowing overlong
875         paragraphs, and correcting whitespace.
877 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
879         * intrinsic.texi (LBOUND): Add documentation.
880         (LGE): Add documentation.
881         (LGT): Add documentation.
882         (LINK): Add documentation.
883         (LLE): Add documentation.
884         (LLT): Add documentation.
885         (LNBLNK): Add documentation.
886         (UBOUND): Add documentation.
887         (UNLINK): Add documentation.
889 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
891         * intrinsic.texi (IAND): Clarify argument specifications.
892         (IBCLR): Add documentation.
893         (IBITS): Add documentation.
894         (IBSET): Add documentation.
895         (IEOR): Add documentation.
896         (IERRNO): Add documentation.
897         (INDEX): Add documentation.
898         (IOR): Add documentation.
899         (ISHFT): Add documentation.
900         (ISHFTC): Add documentation.
901         (KILL): Add documentation.
902         (LEN_TRIM): Add documentation.
904 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
906         PR 30235
907         * interface.c (compare_actual_formal): check for
908         alternate returns when iterating over non-present
909         arguments.
911 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
913         * invoke.texi: Update manpage copyright to include 2007.
915 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
917         * gfortran.texi: Update copyright to include 2007.
918         * intrinsic.texi: Update copyright to include 2007.
919         * invoke.texi: Update copyright to include 2007.
921 2007-01-02  Tobias Burnus  <burnus@net-b.de>
922             Jakub Jelinek  <jakub@redhat.com>
924         PR fortran/30276
925         * scanner.c (open_included_file): Revert patch.
926           (gfc_open_included_file): Support absolute pathnames.
927           (gfc_open_intrinsic_module): Support absolute pathnames.
929 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
931         * gfortran.texi (GNU Fortran and GCC): Rewrite
933 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
935         * gfortran.texi (Introduction): Lower "Part I:
936         Introduction" to a chapter, renumber Parts II and III to
937         Parts I and II.
938         * intrinsic.texi (Introduction): Rename to "Introduction
939         to Intrinsics" to avoid conflict with the new chapter.
941 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
943         * intrinsic.texi (Introduction): Rewrite first paragraph.
945 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
947         * invoke.texi (OpenMP): Added index entry.
948         * gfortran.texi (title page): Removed erroneous '*'.
950 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
952         * gfortran.texi (GFORTRAN_DEFAULT_RECL): Added units
953         to description.
954         (Extensions): Miscellaneous minor rewriting and copyediting.
955         (BOZ-literal constants): Renamed from Hexadecimal constants.
956         (Hollerith constants support): Added explanation and 
957         suggestions for standard-conforming modern equivalents.
959 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
961         * intrinsic.texi: Improvements to index entries; change
962         @findex entries to @cindex entries.
963         * invoke.texi: Standardize and improve index entries.
964         * gfortran.texi: Fix @code in one index entry.
966 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
968         * invoke.texi: Change @code-type macros to appropriate
969         variants (@command, @option, etc.)
970         * gfortran.texi: Same.
972 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
974         * intrinsic.texi: Various minor cleanups.
976 2007-01-02  Steven G. Kargl  <kargls@comcast.net>
978         * trans-intrinsic.c (gfc_conv_intrinsic_ibits): Fix call to
979         build_int_cst.
981 2007-01-02  Tobias Burnus  <burnus@net-b.de>
983         PR fortran/30276
984         * scanner.c (open_included_file): Support full-path filenames.
986 2007-01-02  Paul Thomas  <pault@gcc.gnu.org>
988         PR fortran/20896
989         * interface.c (check_sym_interfaces): Remove call to
990         resolve_global_procedure.
991         gfortran.h : Remove prototype for resolve_global_procedure.
992         resolve.c (resolve_global_procedure): Add static attribute
993         to function declaration.
995 2007-01-01  Steven G. Kargl  <kargls@comcast.net>
997         * ChangeLog: Copy to ...
998         * ChangeLog-2006: here.