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