OSDN Git Service

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