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