OSDN Git Service

2007-05-04 Daniel Franke <franke.daniel@gmail.com>
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
1 2007-05-04  Daniel Franke  <franke.daniel@gmail.com>
2
3         * check.c (gfc_check_fseek_sub): Fixed typo.
4
5 2007-05-04  Daniel Franke  <franke.daniel@gmail.com>
6
7         PR fortran/22539
8         * intrinsic.c (add_subroutines): Added FSEEK.
9         * intrinsic.h (gfc_resolve_fseek_sub, gfc_check_fseek_sub): New.
10         * iresolve.c (gfc_resolve_fseek_sub): New.
11         * check.c (gfc_check_fseek_sub): New.
12         * intrinsic.texi (FSEEK): Updated.
13
14 2007-05-04  Tobias Burnus  <burnus@net-b.de>
15
16         PR fortran/31803
17         * expr.c (gfc_check_pointer_assign): Check for NULL pointer.
18
19 2007-05-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
20
21         PR fortran/31251
22         * simplify.c (gfc_simplify_len): Only simplify integer lengths.
23
24 2007-05-04  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
25
26         PR fortran/31781
27         * simplify.c (gfc_simplify_repeat): Don't put function call with
28         side effect in a gcc_assert().
29
30 2007-05-04  Tobias Burnus  <burnus@net-b.de>
31
32         PR fortran/25071
33         * interface.c (compare_actual_formal): Check character length.
34
35 2007-05-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
36
37         PR fortran/31732
38         * dependency.c (gfc_full_array_ref_p):  If the reference is
39         to a single element, check that the array has a single
40         element and that the correct element is referenced.
41
42 2007-05-01  Daniel Franke  <franke.daniel@gmail.com>
43
44         * intrinsic.c (add_functions): Fixed ELEMENTAL specifications.
45         (add_subroutines): Replaced magic numbers in function calls by
46         ELEMENTAL and NOT_ELEMENTAL respectively.
47         * intrinsic.texi (MVBITS): Changed class to elemental subroutine.
48         (RANDOM_NUMBER): Changed class to subroutine.
49         (HUGE, TINY): Changed class to inquiry function.
50
51 2007-04-30  Brooks Moses  <brooks.moses@codesourcery.com>
52
53         * trans-const.c (gfc_conv_mpz_to_tree): Use mpz_get_double_int.
54         (gfc_conv_tree_to_mpz): New function.
55         (gfc_conv_mpfr_to_tree): Use real_from_mpfr.
56         (gfc_conv_tree_to_mpfr): New function.
57         * trans-const.h: (gfc_conv_tree_to_mpz): New prototype.
58         (gfc_conv_tree_to_mpfr): New prototype.
59
60 2007-04-30  Daniel Franke  <franke.daniel@gmail.com>
61
62         * intrinsic.texi (IERRNO): Changed class to non-elemental function.
63         (LOG10): Removed COMPLEX as accepted argument type.
64         (NEW_LINE): Changed class from elemental to inquiry function.
65         (SIGN): Removed requirement of scalar arguments.
66         (SNGL): Changed class to elemental function.
67
68 2007-04-29  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
69
70         PR fortran/31591
71         * simplify.c (simplify_bound_dim): New function.
72         (simplify_bound): Use the above. Perform simplification of LBOUND
73         and UBOUND when DIM argument is not present.
74
75 2007-04-29  Daniel Franke  <franke.daniel@gmail.com>
76
77         * gfortran.texi: Cleaned up keyword index.
78         * invoke.texi: Likewise.
79         * intrinsic.texi: Likewise.
80                         
81 2007-04-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
82
83         PR fortran/31645
84         * scanner.c (load_file): Discard the byte order mark if one is
85         found on the first non-preprocessor line of a file.
86
87 2007-04-29  Paul Thomas  <pault@gcc.gnu.org>
88
89         PR fortran/31711
90         * trans-array.c (gfc_conv_resolve_dependencies): Create a temp
91         whenever a dependency is found.
92
93 2007-04-28  Tobias Schlüter  <tobi@gcc.gnu.org>
94
95         * options.c (gfc_handle_option): Ensure requested free form line
96         length is not too small.
97
98 2007-04-27  Brooks Moses  <brooks.moses@codesourcery.com>
99
100         * intrinsic.texi (Transfer): Improve documentation.
101
102 2007-04-27  Brooks Moses  <brooks.moses@codesourcery.com>
103
104         * gfortran.texi (Option Index): Add @samp as needed.
105
106 2007-04-27  Daniel Franke  <franke.daniel@gmail.com>
107
108         * gfortran.texi: Added node and menu entry for an option index.
109         * invoke.texi: Moved command line option related entries of the concept 
110         index to the option index.
111
112 2007-04-27  Daniel Franke  <franke.daniel@gmail.com>
113
114         * intrinsic.texi (AND, FPUT, FPUTC, MODULO, OR, SET_EXPONENT,
115         XOR): Fixed examples.
116
117 2007-04-27  Daniel Franke  <franke.daniel@gmail.com>
118
119         * intrinsic.texi (PRODUCT, RESHAPE, SPACING, SPREAD, SUM, 
120         SYSTEM_CLOCK, TRANSFER, UNPACK): New.
121         (DATE_AND_TIME, CPU_TIME, RRSPACING): Added cross references.
122
123 2007-04-26  Daniel Franke  <franke.daniel@gmail.com>
124
125         * intrinsic.texi (NULL, PACK, PRESENT, REPEAT, SCAN, SHAPE, 
126         SIZE, TRANSPOSE, TRIM, VERIFY): New.
127         (ADJUSTL, ADJUSTR, INDEX): Added cross references.
128         (INT, INT2, INT8, LONG): Enabled section header.
129
130 2007-04-25  Janne Blomqvist  <jb@gcc.gnu.org>
131
132         * module.c (module_char): Replace fgetc() with
133         getc(). 
134         (write_char): Replace fputc() with putc().
135         * scanner.c (load_line): Replace fgetc() with getc().
136         (gfc_read_orig_filename): Likewise.
137
138 2007-04-25  Tobias Burnus  <burnus@net-b.de>
139
140         PR fortran/31668
141         * error.c (error_print): Fix %% support.
142         * intrinsic.c (sort_actual): Improve error message.
143         * resolve.c (resolve_actual_arglist): Allow %VAL for
144         interfaces defined in the module declaration part.
145
146 2007-04-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
147
148         PR libfortran/31299
149         * intrinsic.texi (GETLOG): Update documentation to reflect
150         library changes.
151
152 2007-04-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
153
154         PR fortran/31587
155         * module.c (write_char): Add character to the MD5 buffer.
156         (read_md5_from_module_file): New function.
157         (gfc_dump_module): Compute MD5 for new module file. Call
158         read_md5_from_module_file. Only overwrite old module file
159         if the new MD5 is different.
160
161 2007-04-23  Paul Thomas  <pault@gcc.gnu.org>
162
163         PR fortran/31630
164         * resolve.c (resolve_symbol): Allow resolution of formal
165         namespaces nested within formal namespaces coming from modules.
166
167         PR fortran/31620
168         * trans-expr.c (gfc_trans_assignment): Make the call to
169         gfc_trans_zero_assign conditional on the lhs array ref being
170         the only reference.
171
172 2007-04-23  Tobias Burnus  <burnus@net-b.de>
173
174         * primary.c (match_integer_constant): Mention -fno-range-check
175         in the error message.
176
177 2007-04-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
178
179         PR fortran/31495
180         * scanner.c (load_line):  Remove check for comment after ampersand and
181         adjust tracking of ampersand.
182
183 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
184
185         * f95-lang.c (lang_tree_node): Use GENERIC_NEXT
186         instead of checking GIMPLE_STMT_P in chain_next.
187
188 2007-04-17  Tobias Schlüter  <tobi@gcc.gnu.org>
189
190         * trans-types.h (gfc_packed): New enum.
191         (gfc_get_nodesc_array_type): Change prototype to use new enum.
192         * trans-types.c (gfc_get_nodesc_array): Use gfc_packed for
193         argument packed.  Adapt all references to values accordingly.
194         (gfc_sym_type): Use enum values in call to gfc_get_nodesc_array.
195         (gfc_get_derived_type): Likewise.
196         * trans-array.c (gfc_build_constant_array_constructor): Likewise.
197         * trans-expr.c (gfc_get_interface_mapping_charlen): Changed packed
198         argument to type gfc_packed.
199         (gfc_add_interface_mapping): Use enum values in call to
200         gfc_get_interface_mapping.
201         * trans-decl.c (gfc_build_dummy_array_decl): Adapt to use enum
202         values when determining packing.
203
204         * trans-decl.c (gfc_finish_decl): Remove unused second argument
205         'init'.  Simplify code accordingly.  Remove calls to
206         gfc_fatal_error in favor of gcc_assert.
207         (create_function_arglist): Remove second argument from calls to
208         gfc_finish-decl.
209         (gfc_trans_dummy_character): Likewise.
210
211         * arith.h: Update copyright years.
212         * dependency.h: Likewise.
213         * gfortran.h: Likewise.
214         * lang-specs.h: Likewise.
215         * parse.h: Likewise.
216         * symbol.c: Likewise.
217         * trans.h: Likewise.
218         * trans.c: Likewise.
219         * trans-array.c: Likewise.
220         * trans-common.c: Likewise.
221         * trans-const.h: Likewise.
222         * trans-const.c: Likewise.
223         * trans-decl.c: Likewise.
224         * trans-expr.c: Likewise.
225         * trans-io.c: Likewise.
226         * trans-openmp.c: Likewise.
227         * trans-types.h: Likewise.
228         * types.def: Likewise.
229
230 2007-04-17  Tobias Schlüter  <tobi@gcc.gnu.org>
231
232         PR fortran/31144
233         * decl.c (gfc_sym_mangled_identifier): Use capital letters in name
234         mangling.
235         (gfc_sym_mangled_function_id): Likewise.
236
237 2007-04-15  Paul Thomas  <pault@gcc.gnu.org>
238
239         PR fortran/31204
240         * primary.c (check_for_implicit_index): New function to check
241         that a host associated variable is not an undeclared implied
242         do loop index.
243         (gfc_match_rvalue, match_variable): Use it and reset the
244         implied_index attribute.
245         * gfortran.h : Add the implied_index field to symbol_attribute.
246         * match.c (gfc_match_iterator): Mark the iterator variable
247         with the new attribute.
248         * decl.c (build_sym): Reset the new attribute.
249
250 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
251
252         * gfc-internals.texi: Fix typos.
253         * simplify.c: Fix a comment typo.
254
255 2007-04-14  Bernhard Fischer  <aldot@gcc.gnu.org>
256
257         * primary.c: Commentary typo fix; Add question about redundant (?)
258         set.
259
260 2007-04-14  Paul Thomas  <pault@gcc.gnu.org>
261
262         PR fortran/29507
263         PR fortran/31404
264         * expr.c (scalarize_intrinsic_call): New function to
265         scalarize elemental intrinsic functions in initialization
266         expressions.
267         (check_init_expr): Detect elemental intrinsic functions
268         in initalization expressions and call previous.
269
270 2007-04-13  Tobias Burnus  <burnus@net-b.de>
271
272         PR fortran/31559
273         * primary.c (match_variable): External functions
274         are no variables.
275
276 2007-04-13  Paul Thomas  <pault@gcc.gnu.org>
277
278         PR fortran/31550
279         * trans-types.c (copy_dt_decls_ifequal): Do not get pointer
280         derived type components.
281
282 2007-04-13  Tobias Schlüter  <tobi@gcc.gnu.org>
283
284         PR fortran/18937
285         * resolve.c: Include obstack.h and bitmap.h.  New variable
286         labels_obstack.
287         (code_stack): Add tail and reachable_labels fields.
288         (reachable_labels): New function.
289         (resolve_branch): Rework to use new fields in code_stack.
290         (resolve_code): Call reachable_labels.
291         (resolve_codes): Allocate and free labels_obstack.
292
293 2007-04-12  Tobias Schlüter  <tobi@gcc.gnu.org>
294
295         PR fortran/31250
296         * decl.c (match_char_spec): Move check for negative CHARACTER
297         length ...
298         * resolve.c (resolve_charlen): ... here.
299         (resolve_types): Resolve CHARACTER lengths earlier.
300
301 2007-04-12  Daniel Franke  <franke.daniel@gmail.com>
302
303         PR fortran/31234
304         * intrinsic.texi (RANDOM_SEED, RANDOM_NUMBER): New.
305
306 2007-04-12  Tobias Schlüter  <tobi@gcc.gnu.org>
307
308         PR fortran/31266
309         * primary.c (gfc_variable_attr): Don't copy string length if it
310         doesn't make sense.
311         * resolve.c (resolve_code): Clarify error message.
312
313         PR fortran/31471
314         * decl.c (gfc_match_end): Also check for construct name in END
315         FORALL and END WERE statements.
316         * match.c (match_case_eos): Use uppercase for statement name in
317         error message.
318         (match_elsewhere): Construct name may appear iff construct has a
319         name.
320
321         * trans-types.c: Update copyright years.  Reformat long comment
322         explaining array descriptor format.  Remove obsolete mention of
323         TYPE_SET.
324
325         * arith.c (gfc_arith_uplus): Rename to ...
326         (gfc_arith_identity): ... this.
327         (gfc_parentheses): New function.
328         (gfc_uplus): Adapt to renamed function.
329         * arith.h (gfc_parentheses): Add prototype.
330         * expr.c (gfc_copy_expr): Deal with INTRINSIC_PARENTHESES.
331         (simplifiy_intrinsic_op): Treat INTRINSIC_UPLUS separately from
332         INTRINSIC_PARENTHESES.
333
334 2007-04-12  Tobias Burnus  <burnus@net-b.de>
335
336         PR fortran/31472
337         * decl.c (match_attr_spec): Allow PRIVATE/PUBLIC
338         attribute in type definitions.
339         (gfc_match_private): Allow PRIVATE statement only
340         in specification part of modules.
341         (gfc_match_public): Ditto for PUBLIC.
342         (gfc_match_derived_decl): Allow PRIVATE/PUBLIC attribute only in
343         specificification part of modules.
344
345 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
346
347         PR fortran/31257
348         * intrinsic.c (add_functions): Add ref. to gfc_resolve_achar.
349         * intrinsic.h : Add prototype for gfc_resolve_achar.
350         * iresolve.c (gfc_resolve_achar): New function.
351
352 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
353
354         PR fortran/30880
355         * resolve.c (resolve_fl_variable): Set flag to 2 for automatic
356         arrays.  Make condition for automatic array error explicit.
357         If a dummy, no error on an INTENT(OUT) derived type.
358
359 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
360
361         PR fortran/30872
362         * expr.c (find_array_element): Correct arithmetic for rank > 1.
363
364 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
365
366         PR fortran/31222
367         * check.c (numeric_check): If an expresson has not got a type,
368         see if it is a symbol for which a default type applies.
369
370 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
371
372         PR fortran/31214
373         * trans-decl.c (gfc_get_symbol_decl): Allow unreferenced use
374         associated symbols.
375
376 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
377
378         PR fortran/31293
379         * symbol.c (gfc_check_function_type): New function.
380         * gfortran.h : Add prototype for previous.
381         * parse.c (parse_progunit): Call it after parsing specification
382         statements.
383
384 2007-04-05  Paul Thomas  <pault@gcc.gnu.org>
385
386         PR fortran/31483
387         * trans-expr.c (gfc_conv_function_call): Give a dummy
388         procedure the correct type if it has alternate returns.
389
390 2007-04-05  Paul Thomas  <pault@gcc.gnu.org>
391
392         PR fortran/31292
393         * decl.c (gfc_match_modproc): Go up to the top of the namespace
394         tree to find the module namespace for gfc_get_symbol.
395
396 2007-04-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
397
398         PR fortran/31304
399         * fortran/gfortran.h (gfc_charlen_int_kind): New prototype.
400         * fortran/trans-types.c (gfc_charlen_int_kind): New variable.
401         (gfc_init_types): Define gfc_charlen_int_kind. 
402         * fortran/trans.h (gfor_fndecl_string_repeat): Remove prototype.
403         * fortran/trans-decl.c (gfor_fndecl_string_repeat): Delete.
404         (gfc_build_intrinsic_function_decls): Don't set
405         gfor_fndecl_string_repeat.
406         * fortran/trans-intrinsic.c (gfc_conv_intrinsic_repeat): Rewrite
407         so that we don't have to call a library function.
408         * fortran/simplify.c (gfc_simplify_repeat): Perform the necessary
409         checks on the NCOPIES argument, and work with arbitrary size
410         arguments.
411
412 2007-03-31  Tobias Burnus  <burnus@net-b.de>
413
414         * intrinsic.c (add_functions): Fix name of dummy argument
415           for new_line and exit intrinsic.
416
417 2007-03-31  Paul Thomas  <pault@gcc.gnu.org>
418
419         PR fortran/31160
420         * gfortran.texi: Add a section for the %VAL, %REF and %LOC
421         extensions.
422
423 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
424
425         * trans-types.c (gfc_signed_or_unsigned_type): Remove.
426         (gfc_unsigned_type): Use get_signed_or_unsigned_type instead of
427         gfc_signed_or_unsigned_type.
428         (gfc_signed_type): Ditto.
429         * trans-types.h (gfc_signed_or_unsigned_type): Remove.
430         * f95-lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
431
432 2007-03-30  Tobias Schlüter  <tobi@gcc.gnu.org>
433
434         * symbol.c (gfc_find_gsymbol): Simplify, don't unconditionally
435         descend into all branches.
436
437 2007-03-29  Tobias Schlüter  <tobi@gcc.gnu.org>
438
439         * intrinsic.c (conv_name): Let gfc_get_string handle the format.
440         (find_conv): Compare pointers instead of calling strcmp.
441         (find_sym): Likewise, but ensure that the compared pointer is in
442         the global string table.
443
444 2007-03-28  Tobias Schlüter  <tobi@gcc.gnu.org>
445
446         * gfc-internals.texi: Fix output filename.  Merge type index into
447         concept index.  Start documentation of gfc_code structure.
448
449 2007-03-26  Brooks Moses  <brooks.moses@codesourcery.com>
450
451         * gfc-internals.texi: New file,
452         * Make-lang.in: Add rules to convert it to dvi, pdf, and info.
453
454 2007-03-26  Brooks Moses  <brooks.moses@codesourcery.com>
455  
456         * error.c (show_locus): Remove always-false test.
457
458 2007-03-26  Brooks Moses  <brooks.moses@codesourcery.com>
459
460         * lang.opt: Minor edits to descriptions.
461
462 2007-03-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
463
464         PR fortran/30877
465         * fortran/interface.c (check_operator_interface): Implement
466         the standard checks on user operators extending intrinsic operators.
467         * fortran/resolve.c (resolve_operator): If the ranks of operators
468         don't match, don't error out but try the user-defined ones first.
469
470 2007-03-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
471
472         PR fortran/30655
473         * expr.c (check_dimension): Fix logic of comparisons.
474
475 2007-03-24  Paul Thomas  <pault@gcc.gnu.org>
476
477         PR fortran/31215
478         * trans-expr.c (gfc_apply_interface_mapping_to_expr): Return
479         int result that is non-zero if the expression is the function
480         result.  Only the characteristics of the result expression
481         can be used in a procedure interface, so simplify LEN in situ
482         using its character length.
483
484         PR fortran/31209
485         PR fortran/31200
486         * trans-expr.c (gfc_conv_function_call): Do not use
487         gfc_conv_expr_reference for actual pointer function with formal
488         target because a temporary is created that does not transfer
489         the reference correctly.  Do not indirect formal pointer
490         functions since it is the function reference that is needed.
491
492 2007-03-24  Brooks Moses  <brooks.moses@codesourcery.com>
493
494         * gfortran.h: Edit comments on GFC_STD_*.
495
496 2007-03-23  Brooks Moses  <brooks.moses@codesourcery.com>
497
498         * invoke.texi: Misc. small typo fixes.
499         (-Wcharacter-truncation): Add.
500         (-Wnonstd-intrinsics): Correct spelling.
501         (-std=): Edit.
502         (-fintrinsic-modules-path): Add.
503
504 2007-03-23  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
505
506         PR fortran/30834
507         * arith.c (complex_pow): Rewrite to handle large power.
508         (gfc_arith_power): Handle large power in the real and integer
509         cases.
510
511 2007-03-22  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
512
513         PR fortran/31262
514         * trans-const.c (gfc_conv_mpz_to_tree): Allow integer constants
515         larger than twice the width of a HOST_WIDE_INT.
516
517 2006-03-22  Paul Thomas  <pault@gcc.gnu.org>
518
519         PR fortran/31193
520         * trans-intrinsic.c (gfc_size_in_bytes): Remove function.
521         (gfc_conv_intrinsic_array_transfer): Remove calls to previous.
522         Explicitly extract TREE_TYPEs for source and mold.  Use these
523         to calculate length of source and mold, except for characters,
524         where the se string_length is used.  For mold, the TREE_TYPE is
525         recalculated using gfc_get_character_type_len so that the
526         result is correctly cast for character literals and substrings.
527         Do not use gfc_typenode_for_spec for the final cast.
528
529 2007-03-22  Tobias Schlüter  <tobi@gcc.gnu.org>
530
531         PR fortran/20897
532         * decl.c (gfc_match_derived_decl): Reliably reject
533         'doubleprecision' and 'doublecomplex' as type names.
534
535 2007-03-19  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
536
537         PR fortran/31203
538         * trans-expr.c (gfc_trans_init_string_length): Length should
539         never be negative.
540         (gfc_conv_function_call): Likewise.
541
542 2007-03-18  Paul Thomas  <pault@gcc.gnu.org>
543
544         PR fortran/30531
545         PR fortran/31086
546         * symbo.c : Add gfc_derived_types.
547         (gfc_free_dt_list): Free derived type list gfc_derived_types.
548         (gfc_free_namespace): Remove call to gfc_free_dt_list.
549         (gfc_symbol_done_2): Call  gfc_free_dt_list.
550         * gfortran.h : Declare gfc_derived_types to be external. Remove
551         derived types field from gfc_namespace.
552         * resolve.c (resolve_fl_derived): Refer to gfc_derived types
553         rather than namespace derived_types.
554         (resolve_fntype): Remove special treatment for module
555         derived type functions.
556         * trans-types.c (gfc_get_derived_type): Remove search for like
557         derived types.  Finish by copying back end declaration to like
558         derived types in the derived type list gfc_derived_types.
559
560         2007-03-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
561
562         PR fortran/31120
563         * trans-expr.c (gfc_conv_powi): Make n argument unsigned hwi.
564         (gfc_conv_cst_int_power): Handle integer exponent with care,
565         since it might be too large for us.
566
567 2007-03-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
568
569         PR fortran/31184
570         * invoke.texi: Fix typo.
571
572 2007-03-16  Tobias Burnus  <burnus@net-b.de>
573
574         * trans-decl.c (gfc_generate_function_code): Use all arguments of
575           set_std.
576
577 2007-03-15  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
578
579         * gfortran.h (gfc_option_t): Add flag_backtrace field.
580         * lang.opt: Add -fbacktrace option.
581         * invoke.texi: Document the new option.
582         * trans-decl.c (gfc_build_builtin_function_decls): Add new
583         option to the call to set_std.
584         * options.c (gfc_init_options, gfc_handle_option): Handle the
585         new option.
586
587 2007-03-15  Tobias Burnus  <burnus@gcc.gnu.org>
588             Paul Thomas  <pault@gcc.gnu.org>
589
590         PR fortran/30922
591         * decl.c (gfc_match_import): If the parent of the current name-
592         space is null, try looking for an imported symbol in the parent
593         of the proc_name interface.
594         * resolve.c (resolve_fl_variable): Do not check for blocking of
595         host association by a same symbol, if the symbol is in an
596         interface body.
597
598 2007-03-15  Paul Thomas  <pault@gcc.gnu.org>
599
600         PR fortran/30879
601         * decl.c (match_data_constant): Before going on to try to match
602         a name, try to match a structure component.
603
604
605         PR fortran/30870
606         * resolve.c (resolve_actual_arglist): Do not reject a generic
607         actual argument if it has a same name specific interface.
608
609         PR fortran/31163
610         * trans-array.c (parse_interface): Do not nullify allocatable
611         components if the symbol has the saved attribute.
612
613 2007-03-14  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
614
615         * trans-array.c (gfc_trans_auto_array_allocation): Replace
616         fold(convert()) by fold_convert().
617         (gfc_duplicate_allocatable): Likewise.
618         * trans-intrinsic.c (gfc_conv_intrinsic_dot_product): Use
619         build_int_cst instead of converting an integer_zero_node
620         to the final type.
621
622 2007-03-14  Jakub Jelinek  <jakub@redhat.com>
623
624         * module.c (mio_typespec): Don't look at ts->cl if not BT_CHARACTER.
625
626 2007-03-13  Brooks Moses  <brooks.moses@codesourcery.com>
627
628         PR fortran/30933
629         PR fortran/30948
630         PR fortran/30953
631         * intrinsics.texi (CHDIR): Fix argument names, note
632         that STATUS must be a default integer.
633         (CTIME): Fix argument names, note that RESULT must
634         be a default integer.
635         (EXIT): Note that STATUS must be a default integer.
636
637 2007-03-13  Brooks Moses  <brooks.moses@codesourcery.com>
638
639         PR fortran/28068
640         * intrinsic.texi: General whitespace cleanup, remove
641         comment about missing intrinsics.
642         (menu): Add lines for new entries listed below.
643         (ACOSH): Mention specific function DACOSH, correct
644         description phrasing.
645         (ASINH): Mention specific function DASINH, correct
646         description phrasing.
647         (ATANH): Mention specific function DATANH, correct
648         description phrasing.
649         (COS): Add index entry for CCOS.
650         (CPU_TIME): Correct "REAL" to "REAL(*)".
651         (EXP): Add index entry for CEXP.
652         (INT): Correct argument name to "A".
653         (INT2): New entry.
654         (INT8): New entry.
655         (LONG): New entry.
656         (MAX): Add index entries for specific variants.
657         (MCLOCK): New entry.
658         (MCLOCK8): New entry.
659         (SECNDS): Adjust to a more standard form.
660         (SECOND): New entry.
661         (TIME): Add cross-reference to MCLOCK.
662         (TIME8): Add cross-reference to MCLOCK8.
663
664 2007-03-11  Paul Thomas  <pault@gcc.gnu.org>
665
666         PR fortran/30883
667         * parse.c (parse_interface): Use the default types from the
668         formal namespace if a function or its result do not have a type
669         after parsing the specification statements.
670
671 2007-03-08  Brooks Moses  <brooks.moses@codesourcery.com>
672
673         * intrinsic.texi: (ICHAR) Improve internal I/O note.
674         (ACHAR): Reference it.
675         (CHAR): Reference it.
676         (IACHAR): Reference it.
677
678 2007-03-08  Brooks Moses  <brooks.moses@codesourcery.com>
679
680         * intrinsic.texi: (LINK) Document function form.
681         (RENAME): Likewise.
682         (SYMLNK): Likewise.
683         (SYSTEM): Likewise.
684         (UNLINK): Likewise.
685
686 2007-03-08  Brooks Moses  <brooks.moses@codesourcery.com>
687
688         * intrinsic.texi: minor typo fixes, removed prologue.
689         (FSEEK): moved to correct place in alphabetical order.
690
691 2007-03-08  Daniel Franke  <franke.daniel@gmail.com>
692
693         PR fortran/30947
694         * check.c (gfc_check_alarm_sub): Added check for default integer 
695         kind of status argument.
696         * iresolve.c (gfc_resolve_alarm_sub): Removed conversion of 
697         status argument.
698         * intrinsic.texi (ALARM): Extended documentation.
699
700 2007-03-08  Daniel Franke  <franke.daniel@gmail.com>
701
702         * intrinsic.texi (GERROR, ISATTY, TTYNAM): New.
703         (ABORT, FLUSH, FNUM, IRAND, MALLOC, SIGNAL, SRAND): Fixed typo.
704         * intrinsic.c (add_subroutines): Adjusted dummy argument names 
705         of GERROR and TTYNAM.
706
707 2007-07-08  Tobias Burnus  <burnus@net-b.de>
708
709         * module.c (gfc_match_use): Support renaming of operators
710         in USE statements.
711         * gfortran.texi (Fortran 2003 Status): Document support of
712         renaming of operators.
713
714 2007-07-08  Tobias Burnus  <burnus@net-b.de>
715
716         PR fortran/30973
717         * module.c (read_module): Always import module name as symbol.
718         (gfc_match_use): Disallow module name in the only clause of
719         a use statement.
720
721 2007-03-08  Paul Thomas  <pault@gcc.gnu.org>
722
723         PR fortran/31011
724         * expr.c (find_array_section): Correct arithmetic for section
725         size.
726
727 2007-03-07  Brooks Moses  <brooks.moses@codesourcery.com>
728
729         * iresolve.c (gfc_resolve_ishftc): Correct s_kind value.
730
731 2007-03-06  Daniel Franke  <franke.daniel@gmail.com>
732
733         PR documentation/30950
734         * intrinsic.texi (AND, CPU_TIME): Fix dummy argument names.
735         (FREE): Fix call syntax.
736
737 2007-03-06  Brooks Moses  <brooks.moses@codesourcery.com>
738
739         * intrinsic.texi: Limit column widths to a total of .85.
740
741 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
742
743         * gfortran.texi (GFortran and G77): Rewrite completely.
744
745 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
746
747         * match.c (gfc_match_name): Expanded comment.
748
749 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
750
751         * gfortran.texi (Old-style kind specifications): Document
752         special handling of old-style kind specifiers for COMPLEX.
753         * decl.c (gfc_match_old_kind_spec): Document kind/bytesize
754         assumptions for COMPLEX in comment.
755
756 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
757
758         PR 31050
759         * gfortranspec.c (lang_specific_driver): Update program
760         name and copyright date.
761
762 2007-03-03  Paul Thomas  <pault@gcc.gnu.org>
763
764         PR fortran/30882
765         * check.c (dim_rank_check): The shape of subsections of
766         assumed-size arrays is known.
767
768 2007-03-02  Paul Thomas  <pault@gcc.gnu.org>
769             Tobias Burnus  <burnus@net-b.de>
770
771         PR fortran/30873
772         * decl.c (gfc_match_entry): Remove erroneous entry result check.
773
774 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
775
776         * Make-lang.in: Add install-pdf target as copied from
777         automake v1.10 rules.
778
779 2007-03-01  Tobias Burnus  <burnus@net-b.de>
780
781         PR fortran/30865
782         * trans-intrinsic.c (gfc_conv_intrinsic_size): Compare pointers.
783
784 2007-02-28  Tobias Burnus  <burnus@net-b.de>
785             Paul Thomas  <pault@gcc.gnu.org>
786
787         PR fortran/30888
788         PR fortran/30887
789         * resolve.c (resolve_actual_arglist): Allow by-value
790         arguments and non-default-kind for %VAL().
791         * trans-expr.c (conv_arglist_function): Allow
792         non-default-kind for %VAL().
793
794 2007-02-28  Tobias Burnus  <burnus@net-b.de>
795
796         PR fortran/30968
797         * primary.c (next_string_char): Correct reading a character
798         after the delimiter.
799         (match_string_constant): Print warning message only once.
800
801 2007-02-27  Richard Guenther  <rguenther@suse.de>
802
803         * trans-array.c (structure_alloc_comps): Use correct type
804         for null pointer constant.
805
806 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
807
808         * gfortran.texi: Standardize title page, remove version number
809         from copyright page.
810
811 2007-02-26  Thomas Koenig  <Thomas.Koenig@online.de>
812             Paul Thomas  <pault@gcc.gnu.org>
813
814         PR fortran/30865
815         * trans-intrinsic.c (gfc_conv_intrinsic_size):
816         If dim is an optional argument, check for its
817         presence and call size0 or size1, respectively.
818
819 2007-02-23  Paul Thomas <pault@gcc.gnu.org>
820
821         PR fortran/30660
822         * resolve.c (has_default_initializer): New function.
823         (resolve_fl_variable): Call has_default_initializer to determine if
824         the derived type has a default initializer to its ultimate
825         components.
826
827
828 2007-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
829
830         * options.c (set_default_std_flags): New function to consolidate
831         setting the flags.
832         (gfc_init_options): Use new function.
833         (gfc_handle_option): Use new function.
834
835 2007-02-22  Brooks Moses  <brooks.moses@codesourcery.com>
836
837         * gfortran.texi (Old-style kind specifications): Document
838         special handling of old-style kind specifiers for COMPLEX.
839         * decl.c (gfc_match_old_kind_spec): Documented kind/bytesize
840         assumptions in comment.
841
842 2007-02-21  Bernhard Fischer  <aldot@gcc.gnu.org>
843
844         * parse.c (next_free): Gooble spaces after OpenMP sentinel.
845
846 2007-02-20  Thomas Koenig  <Thomas.Koenig@online.de>
847
848         PR fortran/30869
849         * match.c (gfc_match_iterator): Remove conflict between
850         loop variable and pointer.
851
852 2007-02-20  Tobias Burnus  <burnus@net-b.de>
853
854         PR fortran/30522
855         * symbol.c (gfc_add_volatile): Allow to set VOLATILE
856           attribute for host-associated variables.
857         * gfortran.h (symbol_attribute): Save namespace
858           where VOLATILE has been set.
859         * trans-decl.c (gfc_finish_var_decl): Move variable
860           declaration to the top.
861
862 2007-02-20  Tobias Burnus  <burnus@net-b.de>
863
864         PR fortran/30783
865         * resolve.c (resolve_symbol): Add character dummy VALUE check.
866
867 2007-02-19  Thomas Koenig  <Thomas.Koenig@online.de>
868
869         PR libfortran/30533
870         * fortran/iresolve.c (gfc_resolve_maxloc): Remove coercion of
871         argument to default integer.
872         (gfc_resolve_minloc): Likewise.
873
874 2007-02-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
875
876         PR fortran/30681
877         * options.c (gfc_init_options): Relax warning level for obsolescent.
878         * match.c (match_arithmetic_if): Change to obsolescent from deleted.
879         (gfc_match_if): Same.
880
881 2007-02-18  Roger Sayle  <roger@eyesopen.com>
882
883         * trans-array.c (gfc_build_constant_array_constructor): When the
884         shape of the constructor is known, use that to construct the
885         gfc_array_spec.
886         (gfc_trans_constant_array_constructor): Initialize the "info"
887         information for all of the dimensions of the array constructor.
888         (constant_array_constructor_loop_size): New function.
889         (gfc_trans_array_constructor): Use it to determine whether a
890         loop is suitable for "constant array constructor" optimization.
891
892         * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Use fold_build2
893         instead of build2, to avoid conditions like "(a != b) != 0".
894
895 2007-02-18  Roger Sayle  <roger@eyesopen.com>
896             Paul Thomas <pault@gcc.gnu.org>
897
898         PR fortran/30400
899         * match.c (match_forall_iterator): Use gfc_match_expr instead
900         of gfc_match_variable to match the iterator variable.  Return
901         MATCH_NO if not a variable.  Remove the reset of the symbol's
902         flavor in cleanup.
903
904 2007-02-16  Tobias Burnus  <burnus@net-b.de>
905
906         PR fortran/30793
907         * trans-decl.c (gfc_generate_function_code): Do not initialize
908         pointers to derived components.
909
910 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
911             Brooks Moses  <brooks.moses@codesourcery.com>
912             Lee Millward  <lee.millward@codesourcery.com>
913
914         * trans-expr.c (gfc_conv_power_op): Use build_call_expr.
915         (gfc_conv_string_tmp): Likewise.
916         (gfc_conv_concat_op): Likewise.
917         (gfc_build_compare_string): Likewise.
918         (gfc_conv_function_call): Use build_call_list instead of build3.
919
920         * trans-array.c (gfc_trans_allocate_array_storage): Use
921         build_call_expr.
922         (gfc_grow_array): Likewise.
923         (gfc_trans_array_ctor_element): Likewise.
924         (gfc_trans_array_constructor_value): Likewise.
925         (gfc_array_allocate): Likewise.
926         (gfc_array_deallocate): Likewise.
927         (gfc_trans_auto_array_allocation): Likewise.
928         (gfc_trans_dummy_array_bias): Likewise.
929         (gfc_conv_array_parameter): Likewise.
930         (gfc_trans_dealloc_allocated): Likewise.
931         (gfc_duplicate_allocatable): Likewise.
932
933         * trans-openmp.c (gfc_trans_omp_barrier): Use build_call_expr.
934         (gfc_trans_omp_flush): Likewise.
935
936         * trans-stmt.c (gfc_conv_elementel_dependencies): Use build_call_expr.
937         (gfc_trans_pause): Likewise.
938         (gfc_trans_stop): Likewise.
939         (gfc_trans_character_select): Likewise.
940         (gfc_do_allocate): Likewise.
941         (gfc_trans_assign_need_temp): Likewise.
942         (gfc_trans_pointer_assign_need_temp): Likewise.
943         (gfc_trans_forall_1): Likewise.
944         (gfc_trans_where_2): Likewise.
945         (gfc_trans_allocate): Likewise.
946         (gfc_trans_deallocate): Likewise.
947
948         * trans.c (gfc_trans_runtime_check): Use build_call_expr.
949
950         * trans-io.c (gfc_trans_open): Use build_call_expr.
951         (gfc_trans_close): Likewise.
952         (build_filepos): Likewise.
953         (gfc_trans_inquire): Likewise.
954         (NML_FIRST_ARG): Delete.
955         (NML_ADD_ARG): Delete.
956         (transfer_namelist_element): Use build_call_expr.
957         (build_dt): Likewise.
958         (gfc_trans_dt_end): Likewise.
959         (transfer_expr): Likewise.
960         (transfer_array-desc): Likewise.
961
962         * trans-decl.c (gfc_generate_function_code): Use build_call_expr.
963         (gfc_generate_constructors): Likewise.
964
965         * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Use build_call_expr.
966         (gfc_conv_intrinsic_fdate): Likewise.
967         (gfc_conv_intrinsic_ttynam): Likewise.
968         (gfc_conv_intrinsic_array_transfer): Likewise.
969         (gfc_conv_associated): Likewise.
970         (gfc_conv_intrinsic_si_kind): Likewise.
971         (gfc_conv_intrinsic_trim): Likewise.
972         (gfc_conv_intrinsic_repeat: Likewise.
973         (gfc_conv_intrinsic_iargc): Likewise.
974
975 2007-02-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
976
977         PR fortran/30779
978         * scanner.c (gfc_next_char_literal): Add check for end of file after
979         call to advance_line.
980
981 2007-02-14  Steven G. Kargl  <kargl@gcc.gnu.org>
982
983         PR fortran/30799
984         * primary.c (match_logical_constant): Return MATCH_ERROR on invalid
985         kind.
986
987 2007-02-14  Steven G. Kargl  <kargl@gcc.gnu.org>
988
989         * misc.c (gfc_typename): Fix potential buffer overflow.
990
991 2007-02-13  Paul Thomas  <pault@gcc.gnu.org>
992
993         PR fortran/30554
994         * module.c (read_module): Set pointer_info to referenced if the
995         symbol has no namespace.
996
997 2007-02-12  Nick Clifton  <nickc@redhat.com>
998
999         * lang.opt: Add Warning attribute to warning options.
1000
1001 2007-02-11  Daniel Franke  <franke.daniel@gmail.com>
1002
1003         * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
1004         (SLEEP): Added section and documentation.
1005
1006 2007-02-11  Tobias Schlüter  <tobi@gcc.gnu.org>
1007
1008         PR fortran/30478
1009         * decl.c (add_init_expr_to_sym): Remove ENUM specific code.
1010         (variable_decl): Likewise.  Rewrap comment.
1011         (match_attr_spec): Remove ENUM specific code.
1012         (gfc_match_enum): Fix typo in error message.
1013         (enumerator_decl): New function.
1014         (gfc_match_enumerator_def): Use enumerator_decl instead of
1015         variable_decl.  Adapt code accordingly.
1016
1017 2007-02-11  Paul Thomas  <pault@gcc.gnu.org>
1018
1019         PR fortran/30554
1020         * module.c (find_symtree_for_symbol): New function to return
1021         a symtree that is not a "unique symtree" given a symbol.
1022         (read_module): Do not automatically set pointer_info to
1023         referenced because this inhibits the generation of a unique
1024         symtree.  Recycle the existing symtree if possible by calling
1025         find_symtree_for_symbol.
1026
1027         PR fortran/30319
1028         * decl.c (add_init_expr_to_sym): Make new charlen for an array
1029         constructor initializer.
1030
1031 2007-02-10  Richard Henderson  <rth@redhat.com>, Jakub Jelinek  <jakub@redhat.com>
1032
1033         * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
1034         and __emutls_register_common.
1035         * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
1036         * trans-common.c (build_common_decl): Don't check have_tls.
1037         * trans-decl.c (gfc_finish_var_decl): Likewise.
1038         * types.def (BT_WORD, BT_FN_PTR_PTR): New.
1039         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
1040
1041 2007-02-09  Tobias Burnus  <burnus@net-b.de>
1042
1043         PR fortran/30512
1044         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc,
1045           gfc_conv_intrinsic_minmaxval): Use HUGE-1 for most negative integer.
1046
1047 2007-02-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1048
1049         PR fortran/30720
1050         * trans-array.c (gfc_trans_create_temp_array): Remove use of the
1051         function argument. Always generate code for negative extent.
1052         Simplify said code.
1053         * trans-array.h (gfc_trans_create_temp_array): Change prototype.
1054         * trans-expr.c (gfc_conv_function_call): Remove use of last argument
1055         of gfc_trans_create_temp_array.
1056         * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Likewise.
1057         * trans-stmt.c (gfc_conv_elemental_dependencies): Likewise.
1058
1059 2007-02-08  Roger Sayle  <roger@eyesopen.com>
1060
1061         * trans-stmt.c (gfc_trans_forall_1): Optimize the cases where the
1062         mask expression is a compile-time constant (".true." or ".false.").
1063
1064 2007-02-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1065
1066         PR fortran/30611
1067         * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Evaluate
1068         arguments only once. Generate check that NCOPIES argument is not
1069         negative.
1070
1071 2007-02-04  Steven G. Kargl <kargl@gcc.gnu.org>
1072
1073         PR fortran/30605
1074         * fortran/invoke.texi: Update documentation.
1075         * fortran/options.c (gfc_post_options): Deal with tabs with -std=f2003
1076         and -pedantic.
1077
1078 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
1079
1080         * trans-array.c: Fix a comment typo.
1081
1082 2007-02-03  Paul Thomas  <pault@gcc.gnu.org>
1083
1084         PR fortran/30514
1085         * array.c (match_array_element_spec): If the length of an array is
1086         negative, adjust the upper limit to make it zero length.
1087
1088         PR fortran/30660
1089         * resolve.c (pure_function, resolve_function): Initialize name to
1090         null to clear up build warnings.
1091         (resolve_fl_variable): Look at components explicitly to check for
1092         default initializer, rather than using gfc_default_initializer.
1093
1094 2007-02-02  Steven G. Kargl <kargl@gcc.gnu.org>
1095
1096         PR fortran/30683
1097         * resolve.c (resolve_generic_f): Check for non-NULL sym.
1098
1099 2007-02-02  Roger Sayle  <roger@eyesopen.com>
1100
1101         * trans.c (gfc_build_array_ref): Use STRIP_TYPE_NOPS to eliminate
1102         NON_LVALUE_EXPR nodes and useless type conversions.
1103
1104 2007-02-02  Paul Thomas  <pault@gcc.gnu.org>
1105
1106         PR fortran/30284
1107         PR fortran/30626
1108         * trans-expr.c (gfc_conv_aliased_arg): Remove static attribute
1109         from function and make sure that substring lengths are
1110         translated.
1111         (is_aliased_array): Remove static attribute.
1112         * trans.c : Add prototypes for gfc_conv_aliased_arg and
1113         is_aliased_array.
1114         * trans-io.c (set_internal_unit): Add the post block to the
1115         arguments of the function.  Use is_aliased_array to check if
1116         temporary is needed; if so call gfc_conv_aliased_arg.
1117         (build_dt): Pass the post block to set_internal_unit and
1118         add to the block after all io activiy is done.
1119
1120 2007-02-01  Roger Sayle  <roger@eyesopen.com>
1121
1122         * trans-array.c (gfc_conv_expr_descriptor): We don't need to use
1123         a temporary array to pass a constant non-character array constructor.
1124         Generalize the descriptor generation code to handle scalarizer
1125         "info" without an array reference.
1126
1127 2007-02-01  Roger Sayle  <roger@eyesopen.com>
1128
1129         * dependency.c (gfc_check_dependency) <EXPR_ARRAY>: Implement
1130         dependency checking for array constructors.
1131
1132 2007-02-01  Roger Sayle  <roger@eyesopen.com>
1133
1134         * trans-stmt.c (compute_overall_iter_number): Document function
1135         arguments.  Generalize "unconditional forall nest with constant
1136         bounds" optimization to eliminate unconditional inner loops with
1137         constant bounds.
1138
1139 2007-01-31  Tobias Burnus  <burnus@net-b.de>
1140
1141         PR fortran/30520
1142         * interface.c (compare_actual_formal): Check conformance between
1143           actual and VOLATILE dummy arguments.
1144         * symbol.c (gfc_add_volatile): Allow setting of VOLATILE
1145           multiple times in different scopes.
1146         * decl.c (gfc_match_volatile): Search symbol in host association.
1147
1148 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
1149
1150         * simplify.c, trans-array.c: Fix comment typos.
1151
1152 2007-01-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1153
1154         * invoke.texi (Code Gen Options): Fix abbreviation typo.
1155         * intrinsic.texi (ACCESS, LSHIFT, RSHIFT): Fix typos.
1156
1157 2007-01-30  Steve Ellcey  <sje@cup.hp.com>
1158
1159         PR fortran/30432
1160         * trans-types.c (gfc_get_function_type): Do not add void_type_node
1161         to empty arg list.
1162         * trans-decl.c (create_function_arglist): Change assert.
1163
1164 2007-01-29  Paul Thomas  <pault@gcc.gnu.org>
1165
1166         PR fortran/30554
1167         * module.c (read_module): If a symbol is excluded by an ONLY
1168         clause, check to see if there is a symtree already loaded. If
1169         so, attach the symtree to the pointer_info.
1170
1171 2007-01-28  Thomas Koenig  <Thomas.Koenig@online.de>
1172
1173         PR libfortran/30389
1174         * gfortran.h: Remove gfc_simplify_init_1.
1175         * arith.h: Remove third argument from gfc_compare_string.
1176         * arith.c (gfc_compare_expression): Remove third argument
1177         from call to gfc_compare_string.
1178         (gfc_compare_string): Remove third argument xcoll_table.
1179         Remove use of xcoll_table.
1180         * misc.c (gfc_init_1): Remove call to gfc_simplify_init_1.
1181         * simplify.c (ascii_table): Remove.
1182         (xascii_table): Likewise.
1183         (gfc_simplify_achar): ICE if extract_int fails.  Remove use of
1184         ascii_table.  Warn if -Wsurprising and value < 0 or > 127.
1185         (gfc_simplify_char): ICE if extract_int fails. Error if
1186         value < 0 or value > 255.
1187         (gfc_simplify_iachar): Remove use of xascii_table.
1188         Char values outside of 0..255 are an ICE.
1189         (gfc_simplify_lge): Remove use of xascii_table.
1190         (gfc_simplify_lgt): Likewise.
1191         (gfc_simplify_lle): Likewise.
1192         (gfc_simplify_llt): Likewise.
1193         (invert_table): Remove.
1194         (gfc_simplify_init_1): Remove.
1195
1196 2007-01-27  Roger Sayle  <roger@eyesopen.com>
1197
1198         * trans-stmt.c (forall_info): Replace the next_nest and outer
1199         fields that previously implemented a doubly-linked list with a
1200         single prev_nest field (singly-linked list).
1201         (gfc_trans_nested_forall_loop): The nested_forall_info argument
1202         now denotes the innermost FORALL in the loop nest.
1203         (compute_overall_iter_number): Use prev_nest instead of next_nest.
1204         (gfc_trans_forall_1): Link/cons the new "info" to the head of the
1205         nested_forall_info linked list.  Free the current "info" when done.
1206
1207 2007-01-27  Paul Thomas  <pault@gcc.gnu.org>
1208
1209         PR fortran/30407
1210         * trans-expr.c (gfc_conv_operator_assign): New function.
1211         * trans.h : Add prototype for gfc_conv_operator_assign.
1212         * trans-stmt.c (gfc_trans_where_assign): Add a gfc_symbol for
1213         a potential operator assignment subroutine.  If it is non-NULL
1214         call gfc_conv_operator_assign instead of the first assignment.
1215         ( gfc_trans_where_2): In the case of an operator assignment,
1216         extract the argument expressions from the code for the
1217         subroutine call and pass the symbol to gfc_trans_where_assign.
1218         resolve.c (resolve_where, gfc_resolve_where_code_in_forall,
1219         gfc_resolve_forall_body): Resolve the subroutine call for
1220         operator assignments.
1221
1222 2007-01-26  Steven Bosscher  <stevenb.gcc@gmail.com>
1223             Steven G. Kargl <kargl@gcc.gnu.org>
1224
1225         PR fortran/30278
1226         * fortran/io.c (next_char): Deal with backslash escaped characters.
1227         Issue warnings in non -std=gnu cases.
1228         * fortran/primary.c (next_string_char): Issue warnings in non
1229
1230 2007-01-26  Tobias Burnus  <burnus@net-b.de>
1231
1232         * lang-specs.h: Add support for .f03 and .F03 extensions.
1233         * gfortran.texi: Document .f03 extension.
1234         * options.c (form_from_filename): Recognize .f03.
1235
1236 2007-01-25  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1237
1238         PR fortran/30437
1239         * lang.opt (Wall): Remove RejectNegative.
1240         * options.c (gfc_handle_option): Wall can be disabled.
1241         (set_Wall): Add a parameter for disabling Wall.
1242         
1243 2007-01-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1244
1245         PR fortran/30532
1246         * scanner.c (load_line): Remove check fot ctrl-z and don't gobble.
1247         
1248 2007-01-23  Paul Thomas  <pault@gcc.gnu.org>
1249
1250         PR fortran/30481
1251         * match.c (gfc_match_namelist): Add check for assumed size character
1252         in namelist and provide error if found.
1253
1254 2007-01-21  Brooks Moses  <brooks.moses@codesourcery.com>
1255
1256         * intrinsic.texi (ACHAR): Added cross-references.
1257         (CHAR): Put cross-references in alphabetical order.
1258         (IACHAR): Added cross-references.
1259         (ICHAR): Added cross-references.
1260
1261 2007-01-20  Brooks Moses  <brooks.moses@codesourcery.com>
1262
1263         * intrinsic.texi: Edited all "Syntax" examples to a consistent form.
1264         (MAXVAL): Corrected description of result characteristics.
1265         (MINVAL): Same.
1266         (UMASK): Added documentation.
1267
1268 2007-01-20  Steven G. Kargl  <kargl@gcc.gnu.org>
1269
1270         * openmp.c, matchexp.c, module.c, scanner.c, resolve.c, st.c,
1271         parse.c, primary.c, options.c, misc.c, simplify.c: Next installment
1272         in the massive whitespace patch.
1273
1274 2007-01-20  Roger Sayle  <roger@eyesopen.com>
1275
1276         * module.c (mio_array_ref): The dimen_type fields of an array ref
1277         are an enumerated type and can't be read/written directly with a
1278         call to mio_integer.  Instead loop over and cast each element.
1279
1280 2007-01-20  Roger Sayle  <roger@eyesopen.com>
1281
1282         * dependency.c (gfc_full_array_ref_p): Check that ref->next is NULL,
1283         i.e. that the ARRAY_REF doesn't mention components.
1284         * trans-array.c (gfc_constant_array_constructor_p): Export external
1285         function renamed from constant_array_constructor_p.
1286         (gfc_build_constant_array_constructor): Export.
1287         (gfc_trans_array_constructor): Update call to the renamed function
1288         constant_array_constructor_p.
1289         * trans-array.h (gfc_constant_array_constructor_p): Prototype here.
1290         (gfc_build_constant_array_constructor): Likewise.
1291         * trans-expr.c (gfc_build_memcpy_call): New helper function split
1292         out from gfc_trans_array_copy.
1293         (gfc_trans_array_copy): Use gfc_build_memcpy_call.
1294         (gfc_trans_array_constructor_copy): New function to optimize
1295         assigning an entire array from a constant array constructor.
1296         (gfc_trans_assignment): Call gfc_trans_array_constructor_copy
1297         when appropriate.
1298
1299 2007-01-20  Roger Sayle  <roger@eyesopen.com>
1300
1301         * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
1302         implementation for the SIGN intrinsic with integral operands.
1303         (gfc_conv_intrinsic_minmax): Fix whitespace.
1304
1305 2007-01-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1306
1307         * gfortran.h (gfc_options_t): Add flag_allow_leading_underscore.
1308         * lang.opt: Add -fallow-leading-underscore.
1309         * match.c (gfc_match_name): Allow leading underscore in symbol
1310         name if -fallow-leading-underscore is used.
1311         * symbol.c (gfc_get_default_type): Add special case for symbol
1312         names beginning with an underscore.
1313         * trans-decl.c (gfc_get_extern_function_decl,
1314         gfc_build_intrinsic_function_decls): Add _gfortran prefix to
1315         library symbols selected_int_kind, selected_real_kind and 
1316         all specifics.
1317         * options.c (gfc_init_options, gfc_handle_option): Handle the
1318         new -fallow-leading-underscore option.
1319
1320 2007-01-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1321
1322         PR fortran/30446
1323         * options.c (gfc_handle_module_path_options): Path used in -J
1324         option is now added to the module search path.
1325
1326 2007-01-20  Richard Guenther  <rguenther@suse.de>
1327
1328         PR fortran/30223
1329         * f95-lang.c (gfc_init_builtin_functions): Provide cbrt and
1330         cexpi builtins if we have TARGET_C99_FUNCTIONS.  Provide
1331         sincos builtins if the target has sincos.
1332
1333 2007-01-19  Brooks Moses  <brooks.moses@codesourcery.com>
1334
1335         * intrinsic.texi (MATMUL): Corrected a typo.
1336         (MAX): Separated @var arguments.
1337         (MIN): Separated @var arguments.
1338
1339 2007-01-19  Brooks Moses  <brooks.moses@codesourcery.com>
1340
1341         * intrinsic.texi: general whitespace cleanup.
1342         (menu): Added TIME8, removed UNMASK.
1343         (AINT): Clarified argument requirement.
1344         (ANINT): Clarified argument requirement.
1345         (CEILING): Clarified argument requirement.
1346         (CHAR): Clarified argument requirement.
1347         (CMPLX): Clarified argument requirement.
1348         (DCMPLX): Clarified argument requirement.
1349         (FGET): Line rewrapping.
1350         (FLOOR): Clarified argument requirement.
1351         (GMTIME): Added documentation.
1352         (IAND): Added cross-reference.
1353         (IBCLR): Added cross-reference.
1354         (IBSET): Added cross-reference.
1355         (IEOR): Added cross-reference.
1356         (INT): Collapsed examples, clarified argument requirement.
1357         (IOR): Added cross-references.
1358         (LEN_TRIM): Corrected result kind.
1359         (LINK): Added cross-reference.
1360         (LLT): Removed "documentation pending".
1361         (LOGICAL): Added documentation.
1362         (LSHIFT): Added documentation.
1363         (LTIME): Added documentation.
1364         (MATMUL): Added documentation.
1365         (MAX): Added documentation.
1366         (MAXLOC): Added documentation.
1367         (MAXVAL): Added documentation.
1368         (MERGE): Added documentation.
1369         (MIN): Added documentation.
1370         (MINLOC): Added documentation.
1371         (MINVAL): Added documentation.
1372         (MVBITS): Moved to correct place, added documentation.
1373         (NOT): Added documentation.
1374         (PERROR): Added documentation.
1375         (RAN): Moved to correct place, added documentation.
1376         (REAL): Clarified argument requirement.
1377         (RENAME): Added documentation.
1378         (RSHIFT): Clarified argument requirement.
1379         (SIGN): Corrected table specification.
1380         (SYMLNK): Added documentation.
1381         (SYSTEM): Added documentation.
1382         (TIME): Added documentation.
1383         (TIME8): Added section and documentation.
1384         (UNMASK): Removed erroneous section.
1385
1386 2007-01-18  H.J. Lu  <hongjiu.lu@intel.com>
1387
1388         * trans-stmt.c (compute_overall_iter_number): Fix a typo.
1389
1390 2007-01-18  Roger Sayle  <roger@eyesopen.com>
1391
1392         * trans-expr.c (copyable_array_p): Consider user derived types without
1393         allocatable components to be copyable.
1394
1395 2007-01-18  Roger Sayle  <roger@eyesopen.com>
1396
1397         * trans-stmt.c (compute_overall_iter_number): Enhance to precompute
1398         the number of interations in unconditional FORALL nests with constant
1399         bounds.
1400
1401 2007-01-18  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1402             Tobias Burnus  <burnus@net-b.de>
1403
1404         PR libfortran/29649
1405         * gfortran.h (gfc_option_t): Add flag_dump_core.
1406         * lang.opt: Add -fdump-core option.
1407         * invoke.texi: Document the new options.
1408         * trans-decl.c (gfc_build_builtin_function_decls): Add new
1409           options to the call to set_std.
1410         * options.c (gfc_init_options, gfc_handle_option): Set the
1411           new options.
1412
1413 2007-01-17  Paul Thomas  <pault@gcc.gnu.org>
1414
1415         PR fortran/30476
1416         * module.c (load_generic_interfaces): Make the marking of the
1417         symbol as ambiguous conditional on the module names being
1418         different.
1419         (write_generic): Ensure that the generic interface has a
1420         non-NULL module field.
1421
1422 2007-01-16  Roger Sayle  <roger@eyesopen.com>
1423
1424         PR fortran/30404
1425         * trans-stmt.c (forall_info): Remove pmask field.
1426         (gfc_trans_forall_loop): Remove NVAR argument, instead assume that
1427         NVAR covers all the interation variables in the current forall_info.
1428         Add an extra OUTER parameter, which specified the loop header in
1429         which to place mask index initializations.
1430         (gfc_trans_nested_forall_loop): Remove NEST_FLAG argument.
1431         Change the semantics of MASK_FLAG to only control the mask in the
1432         innermost loop.
1433         (compute_overall_iter_number): Optimize the trivial case of a
1434         top-level loop having a constant number of iterations.  Update
1435         call to gfc_trans_nested_forall_loop.  Calculate the number of
1436         times the inner loop will be executed, not to size of the 
1437         iteration space.
1438         (allocate_temp_for_forall_nest_1): Reuse SIZE as BYTESIZE when
1439         sizeof(type) == 1.  Tidy up.
1440         (gfc_trans_assign_need_temp): Remove NEST_FLAG argument from calls
1441         to gfc_trans_nested_forall_loop.
1442         (gfc_trans_pointer_assign_need_temp): Likewise.
1443         (gfc_trans_forall_1): Remove unused BYTESIZE, TMPVAR, SIZEVAR and
1444         LENVAR local variables.  Split mask allocation into a separate
1445         hunk/pass from mask population.  Use allocate_temp_for_forall_nest
1446         to allocate the FORALL mask with the correct size.  Update calls
1447         to gfc_trans_nested_forall_loop.
1448         (gfc_evaluate_where_mask): Update call to
1449         gfc_trans_nested_forall_loop.
1450         (gfc_trans_where_2): Likewise.
1451
1452 2007-01-15  Paul Thomas  <pault@gcc.gnu.org>
1453
1454         PR fortran/28172
1455         * trans-stmt.c (gfc_trans_call): If it does not have one, get
1456         a backend_decl for an alternate return.
1457
1458         PR fortran/29389
1459         * resolve.c (pure_function): Statement functions are pure. Note
1460         that this will have to recurse to comply fully with F95.
1461
1462         PR fortran/29712
1463         * resolve.c (resolve_function): Only a reference to the final
1464         dimension of an assumed size array is an error in an inquiry
1465         function.
1466
1467         PR fortran/30283
1468         * resolve.c (resolve_function): Make sure that the function
1469         expression has a type.
1470
1471 2007-01-14  Paul Thomas  <pault@gcc.gnu.org>
1472
1473         PR fortran/30410
1474         * trans-decl.c (gfc_sym_mangled_function_id): Module, external
1475         symbols must not have the module name prepended.
1476
1477 2007-01-11  Thomas Koenig  <Thomas.Koenig@online.de>
1478
1479         PR libfortran/30415
1480         * iresolve.c (gfc_resolve_maxloc): If the rank
1481         of the return array is nonzero and we process an
1482         integer array smaller than default kind, coerce
1483         the array to default integer.
1484         * iresolve.c (gfc_resolve_minloc): Likewise.
1485
1486 2007-01-11  Brooks Moses  <brooks.moses@codesourcery.com>
1487
1488         * simplify.c: Update copyright to 2007.
1489         * scanner.c: Same.
1490
1491 2007-01-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1492
1493         PR fortran/30430
1494         * scanner.c (gfc_release_include_path): Free gfc_option.module_dir
1495         only once!
1496
1497 2007-01-09  Brooks Moses  <brooks.moses@codesourcery.com>
1498
1499         * simplify.c (gfc_simplify_ibclr): Fix POS comparison.
1500         (gfc_simplify_ibset): Same.
1501
1502 2007-01-09  Brooks Moses  <brooks.moses@codesourcery.com>
1503
1504         PR 30381
1505         PR 30420
1506         * simplify.c (convert_mpz_to_unsigned): New function.
1507         (convert_mpz_to_signed): New function, largely based on
1508         twos_complement().
1509         (twos_complement): Removed.
1510         (gfc_simplify_ibclr): Add conversions to and from an
1511         unsigned representation before bit-twiddling.
1512         (gfc_simplify_ibset): Same.
1513         (gfc_simplify_ishftc): Add checks for overly large
1514         constant arguments, only check the third argument if
1515         it's present, carry over high bits into the result as
1516         appropriate, and perform the final conversion back to
1517         a signed representation using the correct sign bit.
1518         (gfc_simplify_not): Removed unnecessary masking.
1519
1520 2007-01-09  Paul Thomas  <pault@gcc.gnu.org>
1521
1522         PR fortran/30408
1523         * resolve.c (resolve_code): Use the code->expr character length
1524         directly to set length of llen.
1525
1526 2007-01-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1527
1528         PR fortran/30408
1529         * lang.opt: Add Wcharacter_truncation option.
1530         * options.c (gfc_init_options): Initialize
1531         gfc_option.warn_character_truncation to zero.
1532         (gfc_handle_option): Add case for OPT_Wcharacter_truncation.
1533
1534 2007-01-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1535
1536         * interface.c, intrinsic.c, gfortranspec.c, io.c, f95-lang.c,
1537         iresolve.c, match.c: Update Copyright years.  Whitespace.
1538
1539 2007-01-08  Richard Guenther  <rguenther@suse.de>
1540
1541         * trans-io.c (transfer_array_desc): Use build_int_cst instead
1542         of build_int_cstu.
1543
1544 2007-01-08  Roger Sayle  <roger@eyesopen.com>
1545
1546         * trans-array.c (constant_array_constructor_p): New function to
1547         determine whether an array constructor consists only of constant
1548         elements, and if so return it's size.
1549         (gfc_build_constant_array_constructor): Construct a statically
1550         initialized gfortran array for a given EXPR_ARRAY.
1551         (gfc_trans_constant_array_constructor): Efficiently scalarize
1552         a constant array constructor.
1553         (gfc_trans_array_constructor): Tidy up use of CONST_STRING.
1554         Special case scalarization of constant array constructors, all of
1555         whose elements are specified, using constant_array_constructor_p 
1556         and gfc_trans_constant_array_constructor.
1557         (gfc_conv_scalarized_array_ref): Check whetger info->offset is zero
1558         before adding it to index, to avoid creating a NON_LVALUE_EXPR.
1559
1560 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
1561
1562         gfortran.texi: Fix typos.
1563
1564 2007-01-07  Steven G. Kargl  <kargl@gcc.gnu.org>
1565
1566         * decl.c, dump-parse-tree.c, error.c, data.c, expr.c, dependency.c,
1567         convert.c: Update Copyright dates.  Fix whitespace.
1568
1569 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
1570
1571         * data.c (gfc_assign_data_value): Fix whitespace.
1572
1573 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
1574
1575         * trans-array.c (gfc_trans_create_temp_array, gfc_array_init_size):
1576         Commentary typo fix.
1577
1578 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
1579
1580         PR fortran/27698
1581         * match.c (gfc_match_name): Print diagnostics for invalid
1582         character in names.
1583
1584 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
1585
1586         * array.c: Fix whitespace in comment table.
1587
1588 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
1589
1590         * array.c, bbt.c, check.c: Update copyright years.  Whitespace.
1591
1592 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
1593
1594         * arith.c: Update copyright years.  Whitespace.
1595
1596 2007-01-05  Roger Sayle  <roger@eyesopen.com>
1597
1598         * trans-expr.c (gfc_trans_assignment_1): New subroutine to scalarize
1599         array assignments split out from gfc_trans_assignment.
1600         (gfc_trans_array_copy): New function to implement array to array
1601         copies via calls to __builtin_memcpy.
1602         (copyable_array_p): New helper function to identify an array of
1603         simple/POD types, that may be copied/assigned using memcpy.
1604         (gfc_trans_assignment): Use gfc_trans_array_copy to handle simple
1605         whole array assignments considered suitable by copyable_array_p.
1606         Invoke gfc_trans_assignment_1 to perform the fallback scalarization.
1607
1608 2007-01-05  Roger Sayle  <roger@eyesopen.com>
1609
1610         * trans-array.c (gfc_trans_array_constructor_value): Make the
1611         static const "data" array as TREE_READONLY.
1612         * trans-stmt.c (gfc_trans_character_select): Likewise.
1613
1614 2007-01-05  Roger Sayle  <roger@eyesopen.com>
1615
1616         * trans-array.c (gfc_conv_loop_setup): Test whether the loop
1617         stride is one, to avoid fold_build2 introducing a useless
1618         NON_LVALUE_EXPR node.
1619
1620 2007-01-05  Tobias Burnus  <burnus@net-b.de>
1621
1622         * symbol.c (check_conflict): Fix error message.
1623
1624 2007-01-05  Paul Thomas  <pault@gcc.gnu.org>
1625
1626         PR fortran/23232
1627         * decl.c (gfc_in_match_data, gfc_set_in_match_data): New
1628         functions to signal that a DATA statement is being matched.
1629         (gfc_match_data): Call gfc_set_in_match_data on entry and on
1630         exit.
1631         * gfortran.h : Add prototypes for above.
1632         * expr.c (check_init_expr): Avoid check on parameter or
1633         variable if gfc_in_match_data is true.
1634         (gfc_match_init_expr): Do not call error on non-reduction of
1635         expression if gfc_in_match_data is true.
1636
1637         PR fortran/27996
1638         PR fortran/27998
1639         * decl.c (gfc_set_constant_character_len): Add boolean arg to
1640         flag array constructor resolution.  Warn if string is being
1641         truncated.  Standard dependent error if string is padded. Set
1642         new arg to false for all three calls to
1643         gfc_set_constant_character_len.
1644         * match.h : Add boolean arg to prototype for
1645         gfc_set_constant_character_len.
1646         * gfortran.h : Add warn_character_truncation to gfc_options.
1647         * options.c (set_Wall): Set warn_character_truncation if -Wall
1648         is set.
1649         * resolve.c (resolve_code): Warn if rhs string in character
1650         assignment has to be truncated.
1651         * array.c (gfc_resolve_character_array_constructor): Set new
1652         argument to true for call to gfc_set_constant_character_len.
1653
1654 2007-01-05  Tobias Burnus  <burnus@net-b.de>
1655
1656         PR fortran/29624
1657         * interface.c (compare_parameter_intent): New function.
1658           (check_intents): Support pointer intents.
1659         * symbol.c (check_conflict): Support pointer intents,
1660           better conflict_std message.
1661         * expr.c (gfc_check_assign,gfc_check_pointer_assign):
1662           Support pointer intents.
1663         * resolve.c (resolve_deallocate_expr,resolve_allocate_expr):
1664           Support pointer intents.
1665
1666 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
1667
1668         PR 30371
1669         * check.c (gfc_check_kill_sub): Add checks for non-scalar
1670         arguments.
1671
1672 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
1673
1674         * intrinsic.texi: Minor cleanup, reflowing overlong
1675         paragraphs, and correcting whitespace.
1676
1677 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
1678
1679         * intrinsic.texi (LBOUND): Add documentation.
1680         (LGE): Add documentation.
1681         (LGT): Add documentation.
1682         (LINK): Add documentation.
1683         (LLE): Add documentation.
1684         (LLT): Add documentation.
1685         (LNBLNK): Add documentation.
1686         (UBOUND): Add documentation.
1687         (UNLINK): Add documentation.
1688
1689 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
1690
1691         * intrinsic.texi (IAND): Clarify argument specifications.
1692         (IBCLR): Add documentation.
1693         (IBITS): Add documentation.
1694         (IBSET): Add documentation.
1695         (IEOR): Add documentation.
1696         (IERRNO): Add documentation.
1697         (INDEX): Add documentation.
1698         (IOR): Add documentation.
1699         (ISHFT): Add documentation.
1700         (ISHFTC): Add documentation.
1701         (KILL): Add documentation.
1702         (LEN_TRIM): Add documentation.
1703
1704 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
1705
1706         PR 30235
1707         * interface.c (compare_actual_formal): check for
1708         alternate returns when iterating over non-present
1709         arguments.
1710
1711 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
1712
1713         * invoke.texi: Update manpage copyright to include 2007.
1714
1715 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
1716
1717         * gfortran.texi: Update copyright to include 2007.
1718         * intrinsic.texi: Update copyright to include 2007.
1719         * invoke.texi: Update copyright to include 2007.
1720
1721 2007-01-02  Tobias Burnus  <burnus@net-b.de>
1722             Jakub Jelinek  <jakub@redhat.com>
1723
1724         PR fortran/30276
1725         * scanner.c (open_included_file): Revert patch.
1726           (gfc_open_included_file): Support absolute pathnames.
1727           (gfc_open_intrinsic_module): Support absolute pathnames.
1728
1729 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
1730
1731         * gfortran.texi (GNU Fortran and GCC): Rewrite
1732
1733 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
1734
1735         * gfortran.texi (Introduction): Lower "Part I:
1736         Introduction" to a chapter, renumber Parts II and III to
1737         Parts I and II.
1738         * intrinsic.texi (Introduction): Rename to "Introduction
1739         to Intrinsics" to avoid conflict with the new chapter.
1740
1741 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
1742
1743         * intrinsic.texi (Introduction): Rewrite first paragraph.
1744
1745 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
1746
1747         * invoke.texi (OpenMP): Added index entry.
1748         * gfortran.texi (title page): Removed erroneous '*'.
1749
1750 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
1751
1752         * gfortran.texi (GFORTRAN_DEFAULT_RECL): Added units
1753         to description.
1754         (Extensions): Miscellaneous minor rewriting and copyediting.
1755         (BOZ-literal constants): Renamed from Hexadecimal constants.
1756         (Hollerith constants support): Added explanation and 
1757         suggestions for standard-conforming modern equivalents.
1758
1759 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
1760
1761         * intrinsic.texi: Improvements to index entries; change
1762         @findex entries to @cindex entries.
1763         * invoke.texi: Standardize and improve index entries.
1764         * gfortran.texi: Fix @code in one index entry.
1765
1766 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
1767
1768         * invoke.texi: Change @code-type macros to appropriate
1769         variants (@command, @option, etc.)
1770         * gfortran.texi: Same.
1771
1772 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
1773
1774         * intrinsic.texi: Various minor cleanups.
1775
1776 2007-01-02  Steven G. Kargl  <kargls@comcast.net>
1777
1778         * trans-intrinsic.c (gfc_conv_intrinsic_ibits): Fix call to
1779         build_int_cst.
1780
1781 2007-01-02  Tobias Burnus  <burnus@net-b.de>
1782
1783         PR fortran/30276
1784         * scanner.c (open_included_file): Support full-path filenames.
1785
1786 2007-01-02  Paul Thomas  <pault@gcc.gnu.org>
1787
1788         PR fortran/20896
1789         * interface.c (check_sym_interfaces): Remove call to
1790         resolve_global_procedure.
1791         gfortran.h : Remove prototype for resolve_global_procedure.
1792         resolve.c (resolve_global_procedure): Add static attribute
1793         to function declaration.
1794
1795 2007-01-01  Steven G. Kargl  <kargls@comcast.net>
1796
1797         * ChangeLog: Copy to ...
1798         * ChangeLog-2006: here.