OSDN Git Service

2007-09-13 Tobias Burnus <burnus@net-b.de>
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
1 2007-09-13  Tobias Burnus  <burnus@net-b.de>
2
3         PR fortran/33412
4         * symbol.c (check_conflict): Add conflict of ELEMENTAL with Bind(C).
5
6 2007-09-12  Tobias Burnus  <burnus@net-b.de>
7
8         PR fortran/33297
9         * check.c (scalar_check): Move up in the file.
10         (kind_check): Call scalar_check.
11         (dim_check): If optional, do not call nonoptional_check; use
12         bool for optional.
13         (gfc_check_all_any,gfc_check_count,gfc_check_cshift,gfc_check_eoshift,
14         gfc_check_lbound,gfc_check_minloc_maxloc,check_reduction,
15         gfc_check_spread,gfc_check_ubound): Use true/false instead of 0/1
16         for dim_check; honor changed meaning of optional.
17         (gfc_check_int): Replace checks by kind_check.
18         (gfc_check_size): Replace checks by dim_check.
19
20 2007-09-12  Tobias Burnus  <burnus@net-b.de>
21
22         PR fortran/33284
23         PR fortran/33310
24         * symbol.c (check_conflict): Add conflict between INTRINSIC and ENTRY
25         and between BIND(C) and PARAMETER.
26
27 2007-09-12  Tobias Burnus  <burnus@net-b.de>
28
29         * trans-expr.c (gfc_conv_initializer): Fix expr == NULL check.
30
31 2007-09-12  Jan Hubicka  <jh@suse.cz>
32
33         * f95-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
34
35 2007-09-12  Christopher D. Rickett  <crickett@lanl.gov>
36
37         PR fortran/33395
38         * trans-expr.c (gfc_conv_initializer): Remove unnecessary test for
39         intmod_sym_id and use derived symbol to set new kind of C_NULL_PTR
40         and C_NULL_FUNPTR expressions.
41
42 2007-09-11  Christopher D. Rickett  <crickett@lanl.gov>
43
44         PR fortran/33040
45         * trans-expr.c (gfc_trans_structure_assign): Convert component
46         C_NULL_PTR and C_NULL_FUNPTR component initializers to (void *).
47         * trans-types.c (gfc_get_derived_type): Create a backend_decl for
48         the c_address field of C_PTR and C_FUNPTR and ensure initializer
49         is of proper type/kind for (void *).
50
51 2007-09-11  Jan Hubicka <jh@suse.cz>
52
53         * f95-lang.c (gfc_expand_function): Kill.
54         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
55
56 2007-09-08  Tobias Burnus  <burnus@net-b.de>
57
58         PR fortran/31547
59         * gfortran.texi: Document when CPP is called.
60
61         * intrinsic.texi (IOR): Fix typos.
62
63 2007-09-10  Paul Thomas  <pault@gcc.gnu.org>
64
65         PR fortran/33370
66         * trans-expr.c (copyable_array_p):  Add tests that expression
67         is a variable, that it has no subreferences and that it is a
68         full array.
69         (gfc_trans_assignment): Change conditions to suit modifications
70         to copyable_array_p.
71
72 2007-09-06  Tom Tromey  <tromey@redhat.com>
73
74         * scanner.c (get_file): Update.
75         (load_file): Update.
76         (gfc_next_char_literal): Use gfc_linebuf_linenum.
77         * f95-lang.c (gfc_init): Update.
78         * gfortran.h (gfc_linebuf_linenum): New macro.
79
80 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
81
82         * trans-decl.c (build_entry_thunks): Use set_cfun.
83         (gfc_generate_function_code): Likewise.
84
85 2007-09-05  Paul Thomas  <pault@gcc.gnu.org>
86
87         PR fortran/31564
88         * primary.c (gfc_match_rvalue): Make expressions that refer
89         to derived type parameters that have array references into
90         variable expressions.  Remove references to use association
91         from the symbol.
92
93         PR fortran/33241
94         * decl.c (add_init_expr_to_sym): Provide assumed character
95         length parameters with the length of the initialization
96         expression, if a constant, or that of the first element of
97         an array.
98
99 2007-09-04  Janus Weil  <jaydub66@gmail.com>
100             Paul Thomas  <pault@gcc.gnu.org>
101
102         * decl.c (match_procedure_decl,match_procedure_in_interface,
103         gfc_match_procedure): Handle PROCEDURE statements.
104         * gfortran.h (struct gfc_symbol): New member "gfc_symbol *interface".
105         (enum gfc_statement): New element "ST_PROCEDURE".
106         (strcut symbol_attribute): New member "unsigned procedure".
107         * interface.c (check_interface0): Extended error checking.
108         * match.h: Add gfc_match_procedure prototype.
109         * parse.c (decode_statement,next_statement,gfc_ascii_statement,
110         parse_derived,parse_interface): Implement PROCEDURE statements.
111         * resolve.c (resolve_symbol): Ditto.
112         * symbol.c (check_conflict): Ditto.
113         (gfc_add_proc): New function for setting the procedure attribute.
114         (copy_formal_args): New function for copying formal argument lists.
115
116 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
117
118         * Make-lang.in (gfortranspec.o): Remove SHLIB_MULTILIB.
119
120 2007-09-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
121
122         * gfortranspec.c (lang_specific_driver): Use CONST_CAST2.
123         * options.c (gfc_post_options): Supply a TYPE for CONST_CAST.
124         * parse.c (parse_omp_structured_block): Likewise,
125         * st.c (gfc_free_statement): Likewise,
126
127 2007-09-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
128
129         PR fortran/31675
130         * libgfortran.h: New file.
131         * iso-fortran-env.def: Use macros in the new header instead of
132         hardcoded integer constants.
133         * Make-lang.in (F95_PARSER_OBJS, GFORTRAN_TRANS_DEPS): Add
134         fortran/libgfortran.h.
135         * gfortran.h (GFC_STD_*, GFC_FPE_*, options_convert,
136         ioerror_codes): Remove.
137         * trans.c (ERROR_ALLOCATION): Remove.
138         (gfc_call_malloc, gfc_allocate_with_status,
139         gfc_allocate_array_with_status): Use LIBERROR_ALLOCATION.
140         * trans-types.h (GFC_DTYPE_*): Remove.
141         * trans-decl.c (gfc_generate_function_code): Use
142         GFC_CONVERT_NATIVE instead of CONVERT_NATIVE.
143         * trans-io.c (set_parameter_value, set_parameter_ref): Use
144         LIBERROR_* macros instead of IOERROR_ macros.
145         * trans-intrinsic.c (gfc_conv_intrinsic_function): Use
146         LIBERROR_END and LIBERROR_EOR instead of hardcoded constants.
147         * options.c (gfc_init_options): Use GFC_CONVERT_NATIVE instead of
148         CONVERT_NATIVE.
149         (gfc_handle_option): Use GFC_CONVERT_* macros instead of CONVERT_*.
150
151 2007-09-02  Steven G. Kargl  <kargl@gcc.gnu.org>
152
153         * invoke.texi: Fix the -frange-checking option entry.
154
155 2007-09-02  Roger Sayle  <roger@eyesopen.com>
156
157         * decl.c (match_string_p): New helper function to explicitly match
158         a string of characters.
159         (match_attr_spec): Remove no longer needed DECL_COLON from decl_types.
160         Delete decls array and peek_char.  Rewrite decl attribute parser to
161         avoid calling gfc_match_strings.
162         * match.c (gfc_match_strings): Delete unused function.
163         * match.h (gfc_match_strings): Delete prototype.
164
165 2007-09-02  Tobias Schlüuter  <tobi@gcc.gnu.org>
166
167         * dump-parse-tree.c (show_char_const): New function.
168         (gfc_show_expr): Use it.
169         * expr.c (find_substring_ref): Rework to not keep characters
170         dangling beyond end of string.
171
172 2007-09-02  H.J. Lu  <hongjiu.lu@intel.com>
173
174         PR fortran/33276
175         * array.c (expand_iterator): Initialize frame.prev.
176
177 2007-08-31  Tobias Burnus  <burnus@net-b.de>
178
179         PR fortran/33232
180         * io.c (match_io): Also diagnose extra comma for READ.
181
182 2007-08-31  Joseph Myers  <joseph@codesourcery.com>
183
184         * intrinsic.texi (LGAMMA): Remove empty @cindex line.
185
186 2007-08-31  Paul Thomas  <pault@gcc.gnu.org>
187
188         PR fortran/31879
189         PR fortran/31197
190         PR fortran/31258
191         PR fortran/32703
192         * gfortran.h : Add prototype for gfc_resolve_substring_charlen.
193         * resolve.c (gfc_resolve_substring_charlen): New function.
194         (resolve_ref): Call gfc_resolve_substring_charlen.
195         (gfc_resolve_character_operator): New function.
196         (gfc_resolve_expr): Call the new functions in cases where the
197         character length is missing.
198         * iresolve.c (cshift, eoshift, merge, pack, reshape, spread,
199         transpose, unpack): Call gfc_resolve_substring_charlen for
200         source expressions that are character and have a reference.
201         * trans.h (gfc_trans_init_string_length) Change name to
202         gfc_conv_string_length; modify references in trans-expr.c,
203         trans-array.c and trans-decl.c.
204         * trans-expr.c (gfc_trans_string_length): Handle case of no
205         backend_decl.
206         (gfc_conv_aliased_arg): Remove code for treating substrings
207         and replace with call to gfc_trans_string_length.
208         * trans-array.c (gfc_conv_expr_descriptor): Remove code for
209         treating strings and call gfc_trans_string_length instead.
210
211 2007-08-30  Tobias Burnus  <burnus@net-b.de>
212
213         PR fortran/33228
214         * interface.c (check_interface0): Improve error for external procs.
215         (check_sym_interfaces): Fix checking of module procedures.
216
217 2007-08-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
218
219         PR fortran/32989
220         * iresolve.c (gfc_resolve_getarg): Handle non-default integer
221         kinds.
222         * check.c (gfc_check_getarg): New function
223         * intrinsic.h: Add prototype for gfc_check_getarg.
224         * intrinsic.c (add_subroutines): Add reference to gfc_check_getarg.
225         * intrinsic.texi (GETARG): Adjust documentation.
226
227 2007-08-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
228             Tobias Burnus  <burnus@gcc.gnu.org>
229
230         PR fortran/33105
231         * intrinsic.c (add_functions): Add IS_IOSTAT_END and
232         IS_IOSTAT_EOR intrinsics.
233         * gfortran.h (gfc_isym_id): Add GFC_ISYM_IS_IOSTAT_END and
234         GFC_ISYM_IS_IOSTAT_EOR.
235         * trans-intrinsic.c (gfc_conv_has_intvalue): New function.
236         (gfc_conv_intrinsic_function): Call gfc_conv_has_intvalue for
237         GFC_ISYM_IS_IOSTAT_END and GFC_ISYM_IS_IOSTAT_EOR.
238         * intrinsic.texi: Add IS_IOSTAT_END and IS_IOSTAT_EOR.
239
240 2007-08-28  Christopher D. Rickett  <crickett@lanl.gov>
241
242         PR fortran/33215
243         * decl.c (build_sym): Pass number of identifiers on line to
244         set_binding_label.
245         (set_binding_label): Verify that only one identifier given if
246         NAME= specified, even if the given binding label has zero length.
247         (gfc_match_bind_c): Remove declaration for has_name_equals because
248         it hides the static global one that is needed.
249
250 2007-08-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
251
252         * trans-array.c (gfc_grow_array): Use gfc_call_realloc.
253         (gfc_array_allocate): Use gfc_allocate_with_status and
254         gfc_allocate_array_with_status.
255         (gfc_array_deallocate): Use gfc_deallocate_with_status.
256         (gfc_trans_dealloc_allocated): Use gfc_deallocate_with_status.
257         * trans-stmt.c (gfc_trans_allocate): Use gfc_allocate_with_status.
258         (gfc_trans_deallocate): Use gfc_deallocate_with_status.
259         * trans.c (gfc_allocate_with_status, gfc_allocate_array_with_status,
260         gfc_deallocate_with_status, gfc_call_realloc): New functions.
261         * trans.h (gfc_allocate_with_status, gfc_allocate_array_with_status,
262         gfc_deallocate_with_status, gfc_call_realloc): New prototypes.
263         (gfor_fndecl_internal_realloc, gfor_fndecl_allocate,
264         gfor_fndecl_allocate_array, gfor_fndecl_deallocate): Remove.
265         * f95-lang.c (gfc_init_builtin_functions): Create decl for
266         BUILT_IN_REALLOC.
267         * trans-decl.c (gfor_fndecl_internal_realloc,
268         gfor_fndecl_allocate, gfor_fndecl_allocate_array,
269         gfor_fndecl_deallocate): Remove function decls.
270         (gfc_build_builtin_function_decls): Likewise.
271
272 2007-08-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
273
274         PR fortran/33055
275         Revert previous patch.
276
277 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
278
279         PR fortran/22244
280         * Make-lang.in (fortran/trans-types.o): Depend on $(FLAGS_H).
281         * trans-types.c: Include flags.h.
282         (gfc_get_nodesc_array_type): Add TYPE_DECL TYPE_NAME with
283         correct bounds and dimensions for packed arrays.
284
285 2007-08-27  Tobias Burnus  <burnus@net-b.de>
286
287         * simplify.c (gfc_simplify_lgamma): Fix mpfr_lgamma call.
288
289 2007-08-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
290
291         PR fortran/33055
292         * trans-io.c (create_dummy_iostat): New function to create a unique
293         dummy variable expression to use with IOSTAT.
294         (gfc_trans_inquire): Use the new function to pass unit number error info
295         to run-time library if a regular IOSTAT variable was not given.
296
297 2007-08-26  H.J. Lu  <hongjiu.lu@intel.com>
298
299         * gfortran.h (gfc_isym_id): Add GFC_ISYM_GAMMA and
300         GFC_ISYM_LGAMMA.
301
302 2007-08-26  Asher Langton  <langton2@llnl.gov>
303             Tobias Burnus  <burnus@net-b.de>
304
305         * gfortran.h (gfc_option_t): Add flag_recursive.
306         * lang.opt: Add -frecursive option and update -fopenmp.
307         * invoke.texi (-frecursive): Document new option.
308         (-fopenmp,-fno-automatic,-fmax-stack-var-size): Update.
309         * options.c (gfc_init_options, gfc_post_options,
310         gfc_handle_option): Add -frecursive and modify -fopenmp.
311         (gfc_post_options): Add warning for conflicting flags.
312
313 2007-08-26  Tobias Burnus  <burnus@net-b.de>
314
315         PR fortran/31298
316         * module.c (mio_symbol_ref,mio_interface_rest):  Return pointer_info.
317         (load_operator_interfaces): Support multible loading of an operator.
318
319 2007-08-26  Tobias Burnus  <burnus@net-b.de>
320
321         PR fortran/32985
322         * match.c (gfc_match_common): Remove SEQUENCE diagnostics.
323         * resolve.c (resolve_common_blocks): Add SEQUENCE diagnostics;
324         fix walking through the tree.
325
326 2007-08-26  Tobias Burnus  <burnus@net-b.de>
327
328         PR fortran/32980
329         * intrinsic.h (gfc_simplify_gamma,gfc_simplify_lgamma,
330         gfc_resolve_gamma,gfc_resolve_lgamma): New function declations.
331         * mathbuiltins.def: Define GAMMA and LGAMMA.
332         * intrinsic.c (add_functions): Add GAMMA, DGAMMA, LGAMMA, ALGAMA
333         and DLGAMA.
334         * simplify.c (gfc_simplify_gamma,gfc_simplify_lgamma): New functions.
335         * iresolve.c (gfc_resolve_gamma,gfc_resolve_lgamma): New functions.
336         * intrinsic.texi: Add documentation for GAMMA and LGAMMA.
337
338 2007-08-26  Tobias Burnus  <burnus@net-b.de>
339
340         PR fortran/33188
341         * parse.c (parse_derived): Support empty derived type
342         definitions for Fortran 2003.
343
344 2007-08-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
345
346         * trans-openmp.c (gfc_omp_privatize_by_reference): Constify.
347         * trans.h (gfc_omp_privatize_by_reference): Likewise.
348
349 2007-08-24  Tobias Burnus  <burnus@net-b.de>
350
351         PR fortran/33178
352         * intrinsic.c (gfc_intrinsic_func_interface): Fix initialization
353         expression check.
354
355 2007-08-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
356
357         PR fortran/32972
358         * iresolve.c:  Don't convert array masks.
359
360 2007-08-24  Tobias Burnus  <burnus@net-b.de>
361
362         PR fortran/33139
363         * trans-array.c (gfc_conv_expr_descriptor): Copy bounds for
364         whole-array pointer assignments.
365
366 2007-08-23  Jakub Jelinek  <jakub@redhat.com>
367
368         * decl.c (variable_decl): Don't share charlen structs if
369         length == NULL.
370         * trans-decl.c (create_function_arglist): Assert
371         f->sym->ts.cl->backend_decl is NULL instead of unsharing
372         charlen struct here.
373
374 2007-08-23  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
375
376         PR fortran/33095
377         * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Remove
378         runtime error checking.
379
380 2007-08-22  Roger Sayle  <roger@eyesopen.com>
381             Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
382
383         * match.c (intrinsic_operators): Delete.
384         (gfc_match_intrinsic_op): Rewrite matcher to avoid calling
385         gfc_match_strings.
386
387 2007-08-22  Christopher D. Rickett  <crickett@lanl.gov>
388
389         PR fortran/33020
390         * resolve.c (gfc_iso_c_sub_interface): Remove setting of type and
391         kind for optional SHAPE parameter of C_F_POINTER.
392
393 2007-08-22  Janus Weil  <jaydub66@gmail.com>
394
395         * decl.c (match_attr_spec): Pass on errors from gfc_match_bind_c.
396         (gfc_match_bind_c): Bugfix in check for NAME= with abstract interfaces.
397         (gfc_match_mopdproc): Bugfix to reject module procedures in
398         abstract interfaces.
399
400 2007-08-22  Kai Tietz  <kai.tietz@onevision.com>
401
402         * f95-lang.c: (gfc_init_decl_processing): Choose sizetype by using
403         Pmode.
404
405 2007-08-21  Paul Brook  <paul@codesourcery.com>
406             Nathan Sidwell  <nathan@codesourcery.com>
407             Mark Mitchell  <mark@codesourcery.com>
408             Joseph Myers  <joseph@codesourcery.com>
409
410         * gfortranspec.c (lang_specific_driver): Use pkgversion_string.
411         * Make-lang.in (gfortran.pod): Define BUGURL.
412         * invoke.texi: Use BUGURL for bug-reporting instructions.
413
414 2007-08-19  Roger Sayle  <roger@eyesopen.com>
415
416         * match.c (intrinsic_operators): Make static.
417         (gfc_op2string): New function for converting a gfc_intrinsic_op to
418         to a "const char*", replacing the macro of the same name.
419         * gfortran.h (intrinsic_operators): Delete prototype.
420         (gfc_op2string): Replace macro with function prototype.
421
422 2007-08-18  Tobias Burnus  <burnus@net-b.de>
423
424         * gfortran.h (gfc_is_intrinsic_typename): Add declaration.
425         * symbol.c (gfc_is_intrinsic_typename): New function.
426         * parse.c (decode_statement): Check for space in ABSTRACT INTERFACE.
427         (parse_interface): Use gfc_is_intrinsic_typename.
428         * decl.c (gfc_match_derived_decl): Ditto.
429         * module.c (gfc_match_use): Use gcc_unreachable() for
430         INTERFACE_ABSTRACT in switch().
431
432 2007-08-18  Roger Sayle  <roger@eyesopen.com>
433
434         * primary.c (match_logical_constant_string): New function to match
435         a ".true." or a ".false.".
436         (match_logical_constant): Use it instead of gfc_match_strings.
437
438 2007-08-18  Paul Thomas  <pault@gcc.gnu.org>
439             Janus Weil  <jaydub66@gmail.com>
440
441         * interface.c (gfc_match_interface,gfc_match_abstract_interface,
442         gfc_match_end_interface,gfc_add_interface): Add abstract interface.
443         * dump-parse-tree.c (gfc_show_attr): Ditto.
444         * gfortran.h (interface_type,symbol_attribute): Ditto.
445         * module.c (gfc_match_use,ab_attribute,attr_bits,
446         mio_symbol_attribute): Ditto.
447         * resolve.c (resolve_function): Ditto.
448         * match.h: Ditto.
449         * parse.c (decode_statement): Ditto.
450         (parse_interface): Ditto, check for C1203 (name of abstract interface
451         cannot be the same as an intrinsic type).
452         * decl.c (gfc_match_bind_c): Check for NAME= with abstract interfaces.
453         (access_attr_decl): Handle Abstract interfaces.
454
455 2007-08-18  Paul Thomas  <pault@gcc.gnu.org>
456
457         PR fortran/32881
458         * expr.c (gfc_check_pointer_assign): If the rhs is the
459         initialization expression for the rhs, there is no error.
460
461 2007-08-18  Paul Thomas  <pault@gcc.gnu.org>
462
463         PR fortran/32875
464         * trans-array.c (get_array_ctor_strlen): Set the character
465         length of a zero length array to zero.
466
467 2007-08-16  Tobias Burnus  <burnus@net-b.de>
468
469         PR fortran/33072
470         * module.c (gfc_match_use): Mark user operators as such.
471         (find_use_name_n): Distinguish between operators and other symbols.
472         (find_use_name,number_use_names,mio_namelist,
473          load_operator_interfaces,load_generic_interfaces,read_module,
474          write_generic): Update find_use_name_n calls.
475
476 2007-08-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
477
478         PR fortran/29459
479         * trans.c (gfc_create_var_np): Do not emit warnings for
480         anonymous variables.
481
482 2007-08-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
483
484         PR fortran/33066
485         * decl.c (gfc_get_type_attr_spec): Fix whitespace.
486         (gfc_match_derived_decl): Fix logic.
487
488 2007-08-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
489
490         PR fortran/33073
491         * trans-intrinsic.c (build_fixbound_expr): Convert to result type
492         in all cases.
493
494 2007-08-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
495
496         PR fortran/32594
497         * trans-expr.c (gfc_conv_substring_expr): Only call
498         gfc_conv_substring if expr->ref is not NULL.
499         * expr.c (gfc_is_constant_expr): If e->ref is NULL, the substring
500         expression might be a constant.
501         (gfc_simplify_expr): Handle missing start and end, as well as
502         missing ref.
503
504 2007-08-13  Paul Thomas  <pault@gcc.gnu.org>
505
506         PR fortran/32926
507         * match.c (gfc_match_call): Do not create a new symtree in the
508         case where the existing symbol is external and not referenced.
509
510 2007-08-13  Paul Thomas  <pault@gcc.gnu.org>
511
512         PR fortran/32827
513         * decl.c (variable_decl): Check for an imported symbol
514         by looking for its symtree and testing for the imported
515         attribute.
516         (gfc_match_import): Remove change of symbol's namespace
517         and set the attribute imported instead.
518         * symbol.c (gfc_get_sym_tree): It is not an error if a
519         symbol is imported.
520         * gfortran.h : Add the 'imported' to symbol_attribute.
521
522 2007-08-13  Paul Thomas  <pault@gcc.gnu.org>
523
524         PR fortran/32962
525         * trans-array.c (gfc_conv_array_transpose): Set the offset
526         of the destination to zero if the loop is zero based.
527
528 2007-08-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
529
530         PR fortran/29600
531         * intrinsic.c (add_functions): Add optional KIND argument to ACHAR.
532         * iresolve.c (gfc_resolve_achar): Handle the KIND argument.
533         * check.c (gfc_check_achar): Check for the optional KIND argument.
534         * simplify.c (gfc_simplify_achar): Use KIND argument.
535         * intrinsic.h (gfc_check_achar, gfc_simplify_achar,
536         gfc_resolve_achar): Adjust prototypes.
537
538 2007-08-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
539
540         PR fortran/30964
541         PR fortran/33054
542         * trans-expr.c (gfc_conv_function_call): When no formal argument
543         list is available, we still substitute missing optional arguments.
544         * check.c (gfc_check_random_seed): Correct the check on the
545         number of arguments to RANDOM_SEED.
546         * intrinsic.c (add_subroutines): Add a resolution function to
547         RANDOM_SEED.
548         * iresolve.c (gfc_resolve_random_seed): New function.
549         * intrinsic.h (gfc_resolve_random_seed): New prototype.
550
551 2007-08-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
552
553         PR fortran/32860
554         * error.c (error_uinteger): New function.
555         (error_integer): Call error_uinteger.
556         (error_print): Handle %u, %lu, %li and %ld format specifiers.
557         * interface.c (compare_actual_formal): Use the new %lu specifier.
558
559 2007-08-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
560
561         PR fortran/31629
562         * lang.opt (-fmodule-private): New option.
563         * gfortran.h (gfc_option_t): Add flag_module_private member.
564         * invoke.texi (-fmodule-private): Document the new option.
565         * module.c (gfc_check_access): Allow the -fmodule-private option
566         to modify the default behaviour.
567         * options.c (gfc_init_options): Initialize flag_module_private.
568         (gfc_handle_option): Handle -fmodule-private.
569
570 2007-08-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
571
572         PR fortran/29600
573         * intrinsic.c (add_functions): Add KIND arguments to COUNT,
574         IACHAR, ICHAR, INDEX, LBOUND, LEN, LEN_TRIM, SCAN, SIZE, UBOUND
575         and VERIFY.
576         * iresolve.c (gfc_resolve_count): Add kind argument.
577         (gfc_resolve_iachar): New function.
578         (gfc_resolve_ichar): Add kind argument.
579         (gfc_resolve_index_func): Likewise.
580         (gfc_resolve_lbound): Likewise.
581         (gfc_resolve_len): Likewise.
582         (gfc_resolve_len_trim): Likewise.
583         (gfc_resolve_scan): Likewise.
584         (gfc_resolve_size): New function.
585         (gfc_resolve_ubound): Add kind argument.
586         (gfc_resolve_verify): Likewise.
587         * trans-decl.c (gfc_get_extern_function_decl): Allow specific
588         intrinsics to have 4 arguments.
589         * check.c (gfc_check_count): Add kind argument.
590         (gfc_check_ichar_iachar): Likewise.
591         (gfc_check_index): Likewise.
592         (gfc_check_lbound): Likewise.
593         (gfc_check_len_lentrim): New function.
594         (gfc_check_scan): Add kind argument.
595         (gfc_check_size): Likewise.
596         (gfc_check_ubound): Likewise.
597         (gfc_check_verify): Likewise.
598         * intrinsic.texi: Update documentation for COUNT, IACHAR, ICHAR,
599         INDEX, LBOUND, LEN, LEN_TRIM, SCAN, SIZE, UBOUND and VERIFY.
600         * simplify.c (get_kind): Whitespace fix.
601         (int_expr_with_kind): New function.
602         (gfc_simplify_iachar): Add kind argument.
603         (gfc_simplify_iachar): Likewise.
604         (gfc_simplify_ichar): Likewise.
605         (gfc_simplify_index): Likewise.
606         (simplify_bound_dim): Likewise.
607         (simplify_bound): Likewise.
608         (gfc_simplify_lbound): Likewise.
609         (gfc_simplify_len): Likewise.
610         (gfc_simplify_len_trim): Likewise.
611         (gfc_simplify_scan): Likewise.
612         (gfc_simplify_shape): Pass NULL as kind argument to gfc_simplify_size.
613         (gfc_simplify_size): Add kind argument.
614         (gfc_simplify_ubound): Likewise.
615         (gfc_simplify_verify): Likewise.
616         * intrinsic.h: Update prototypes and add new ones.
617         * trans-intrinsic.c (gfc_conv_intrinsic_index): Rename into
618         gfc_conv_intrinsic_index_scan_verify.
619         (gfc_conv_intrinsic_scan, gfc_conv_intrinsic_verify): Remove.
620         (gfc_conv_intrinsic_function): Call
621         gfc_conv_intrinsic_index_scan_verify to translate the INDEX,
622         SCAN and VERIFY intrinsics.
623
624 2007-08-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
625
626         PR fortran/31189
627         * invoke.texi (-fbacktrace): Document the new behaviour.
628
629 2007-08-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
630
631         PR fortran/32937
632         * trans-array.c (gfc_conv_expr_descriptor): Use
633         gfc_conv_const_charlen to generate backend_decl of right type.
634         * trans-expr.c (gfc_conv_expr_op): Use correct return type.
635         (gfc_build_compare_string): Use int type instead of default
636         integer kind for single character comparison.
637         (gfc_conv_aliased_arg): Give backend_decl the right type.
638         * trans-decl.c (gfc_build_intrinsic_function_decls): Make
639         compare_string return an int.
640
641 2007-08-11  Ian Lance Taylor  <iant@google.com>
642
643         * f95-lang.c (gfc_get_alias_set): Change return type to
644         alias_set_type.
645
646 2007-08-10  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
647
648         PR fortran/31270
649         * trans.c (gfc_trans_runtime_check): Reorder arguments and
650         add extra variable arguments. Hand them to the library function.
651         * trans.h (gfc_trans_runtime_check): Update prototype.
652         * trans-array.c (gfc_trans_array_bound_check): Issue more
653         detailled error messages.
654         (gfc_conv_array_ref): Likewise.
655         (gfc_conv_ss_startstride): Likewise.
656         (gfc_trans_dummy_array_bias): Reorder arguments to
657         gfc_trans_runtime_check.
658         * trans-expr.c (gfc_conv_substring): Issue more detailled
659         error messages.
660         (gfc_conv_function_call): Reorder arguments to gfc_trans_runtime_check.
661         * trans-stmt.c (gfc_trans_goto): Likewise.
662         * trans-io.c (set_string): Reorder arguments to
663         gfc_trans_runtime_check and issue a more detailled error message.
664         * trans-decl.c (gfc_build_builtin_function_decls): Make
665         runtime_error and runtime_error_at handle a variable number of
666         arguments.
667         * trans-intrinsic.c (gfc_conv_intrinsic_bound): Reorder arguments
668         to gfc_trans_runtime_check.
669         (gfc_conv_intrinsic_minmax): Likewise.
670         (gfc_conv_intrinsic_repeat): Issue more detailled error messages.
671
672 2007-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
673
674         * gfortranspec.c (lang_specific_driver): Use CONST_CAST.
675         * options.c (gfc_post_options): Likewise.
676         * parse.c (parse_omp_structured_block): Likewise.
677         * st.c (gfc_free_statement): Likewise.
678
679 2007-08-10  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
680
681         PR fortran/32933
682         * trans-decl.c (gfc_build_builtin_function_decls): Change
683         prototype for associated.
684         * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Convert the
685         result of __builtin_isnan into a boolean.
686         (gfc_conv_intrinsic_strcmp): Cleanup.
687         (gfc_conv_associated): Convert the result of the associated
688         function into a boolean.
689
690 2007-08-09  Tobias Burnus  <burnus@net-b.de>
691
692         PR fortran/32987
693         * io.c (format_token): Add FMT_ERROR.
694         (next_char_not_space): Print error/warning when
695         '\t' are used in format specifications.
696         (format_lex): Propagate error.
697         (check_format): Ditto.
698
699 2007-08-09  Tobias Burnus  <burnus@net-b.de>
700
701         PR fortran/33001
702         * arith.c (arith_error): Point in the error message
703         to -fno-range-check.
704
705 2007-08-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
706
707         PR fortran/32902
708         * intrinsic.texi (SIZEOF): Add mention to C_SIZE_T.
709
710 2007-08-06  Christopher D. Rickett  <crickett@lanl.gov>
711
712         PR fortran/32732
713         * trans-expr.c (gfc_conv_scalar_char_value): Convert the tree and
714         actual arg expressions for scalar characters passed by-value to
715         bind(c) routines.
716         (gfc_conv_function_call): Call gfc_conv_scalar_char_value.
717         * trans.h: Add prototype for gfc_conv_scalar_char_value.
718         * trans-decl.c (generate_local_decl): Convert by-value character
719         dummy args of bind(c) procedures using
720         gfc_conv_scalar_char_value.
721
722 2007-08-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
723
724         PR fortran/30947
725         * iresolve.c (gfc_resolve_alarm_sub): Suffix the subroutine name
726         with the kind of the STATUS argument.
727
728 2007-08-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
729
730         PR fortran/30948
731         * intrinsic.c (add_functions): Fix name of argument to CHDIR.
732
733 2007-08-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
734
735         PR fortran/30933
736         * iresolve.c (gfc_resolve_exit): Convert argument to default
737         integer kind.
738
739 2007-08-06  Daniel Franke  <franke.daniel@gmail.com>
740
741         * resolve.c (derived_pointer): Removed, replaced callers by access 
742         to appropiate attribute bit.
743         (derived_inaccessable): Shortcut recursion depth.
744         (resolve_fl_namelist): Fixed checks for private components in namelists.
745
746 2007-08-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
747
748         PR fortran/29828
749         * trans.h (gfor_fndecl_string_minmax): New prototype.
750         * trans-decl.c (gfor_fndecl_string_minmax): New variable.
751         (gfc_build_intrinsic_function_decls): Create gfor_fndecl_string_minmax.
752         * check.c (gfc_check_min_max): Allow for character arguments.
753         * trans-intrinsic.c (gfc_conv_intrinsic_minmax_char): New function.
754         (gfc_conv_intrinsic_function): Add special case for MIN and MAX
755         intrinsics with character arguments.
756         * simplify.c (simplify_min_max): Add simplification for character
757         arguments.
758
759 2007-08-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
760
761         PR fortran/31612
762         * invoke.texi: Adjust documentation for option -fsyntax-only.
763
764 2007-08-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
765             Tobias Burnus  <burnus@gcc.gnu.org>
766
767         PR fortran/32979
768         * intrinsic.h (gfc_check_isnan): Add prototype.
769         * gfortran.h (gfc_isym_id): Add GFC_ISYM_ISNAN.
770         * intrinsic.c (add_functions): Add ISNAN intrinsic.
771         * check.c (gfc_check_isnan): New function.
772         * trans-intrinsic.c (gfc_conv_intrinsic_isnan): New function.
773         (gfc_conv_intrinsic_function): Call gfc_conv_intrinsic_isnan
774         to translate ISNAN.
775         * intrinsic.texi: Document ISNAN.
776
777 2007-08-04  Paul Thomas  <pault@gcc.gnu.org>
778
779         PR fortran/31214
780         * symbol.c (get_unique_symtree): Moved from module.c.
781         * module.c (get_unique_symtree): Moved to symbol.c.
782         * decl.c (get_proc_name): Transfer the typespec from the local
783         symbol to the module symbol, in the case that an entry is also
784         a module procedure.  Ensure the local symbol is cleaned up by
785         pointing to it with a unique symtree.
786
787         * dump_parse_tree (gfc_show_code_node): Add EXEC_ASSIGN_CALL.
788
789 2008-08-04  Steven G. Kargl  <kargl@gcc.gnu.org>
790
791         PR fortran/32969
792         * iresolve.c (gfc_resolve_rrspacing): Convert argument(s) to
793         expected KIND.
794         (gfc_resolve_scale): Ditto.
795         (gfc_resolve_set_exponent): Ditto.
796         (gfc_resolve_spacing): Ditto.
797  
798         PR fortran/32968
799         * trans-intrinsic.c (gfc_conv_intrinsic_si_kind,
800         gfc_conv_intrinsic_sr_kind): Convert the argument(s) to the
801         expected KIND, and fold the result to the expected KIND.
802
803 2007-08-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
804
805         PR fortran/31202
806         * f95-lang.c (gfc_init_builtin_functions): Defin builtins for 
807         lround{f,,l} and llround{f,,l}.
808         * trans-intrinsic.c (build_fix_expr): Generate calls to the
809         {l,}round{f,,l} functions.
810
811 2007-08-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
812
813         PR libfortran/32954
814         * intrinsic.c (resolve_mask_arg):  New function.
815         (gfc_resolve_maxloc):  Use resolve_mask_arg for mask resolution.
816         (gfc_resolve_maxval):  Likewise.
817         (gfc_resolve_minloc):  Likewise.
818         (gfc_resolve_minval):  Likewise.
819         (gfc_resolve_pack):  Likewise.
820         (gfc_resolve_product):  Likewise.
821         (gfc_resolve_sum):  Likewise.
822         (gfc_resolve_unpack):  Likewise.
823
824 2007-08-01  Tobias Burnus  <burnus@net-b.de>
825
826         PR fortran/32936
827         * match.c (gfc_match_allocate): Better check that STAT is
828         a variable.
829
830         * check.c (gfc_check_allocated): Reorder checks to improve
831         error message.
832
833 2007-08-01  Nick Clifton  <nickc@redhat.com>
834
835         * arith.c: Change copyright header to refer to version 3 of the
836         GNU General Public License and to point readers at the COPYING3
837         file and the FSF's license web page.
838         * openmp.c, interface.c, intrinsic.c, trans-array.c, trans-expr.c,
839         symbol.c, iso-fortran-env.def, intrinsic.h, decl.c, trans-array.h,
840         matchexp.c, dump-parse-tree.c, trans-common.c, array.c,
841         Make-lang.in, trans-openmp.c, gfortran.h, error.c,
842         iso-c-binding.def, lang.opt, data.c, trans-const.c, trans-stmt.c,
843         expr.c, trans-const.h, trans-stmt.h, module.c, trans.c, scanner.c,
844         trans-types.c, trans.h, gfortranspec.c, trans-types.h,
845         lang-specs.h, io.c, bbt.c, resolve.c, f95-lang.c, st.c,
846         iresolve.c, match.c, trans-decl.c, trans-io.c, target-memory.c,
847         match.h, target-memory.h, parse.c, arith.h, check.c, dependency.c,
848         parse.h, types.def, convert.c, dependency.h, primary.c,
849         trans-intrinsic.c, options.c, misc.c, simplify.c: Likewise.
850
851 2007-08-01  Daniel Franke  <franke.daniel@gmail.com>
852
853         * trans-decl.c (generate_local_decl): Emit warning on unused parameter
854         on "-Wall -Wextra" or "-Wunused-parameter" but not on "-Wall", changed
855         messages that start with lower case to upper case.
856         * invoke.texi (-Wparameter-unused): Document differences between gcc
857         and gfortran regarding this option.
858
859 2007-08-01  Daniel Franke  <franke.daniel@gmail.com>
860
861         PR fortran/32945
862         * expr.c (check_specification_function): Skip check if no symtree 
863         is available.
864
865 2007-08-01  Paul Thomas  <pault@gcc.gnu.org>
866
867         PR fortran/31609
868         * resolve.c (resolve_entries): Entries declared to be module
869         procedures must point to the function namespace.
870
871 2007-07-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
872
873         PR fortran/32938
874         * trans-stmt.c (gfc_trans_return): Convert to correct type.
875
876 2007-07-31  Steven G. Kargl  <kargl@gcc.gnu.org>
877
878         PR fortran/32942
879         * trans-intrinsic.c (gfc_conv_intrinsic_exponent): Convert to correct
880         type.
881
882 2007-07-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
883
884         * invoke.texi: Document -fsign-zero flag.
885
886 2007-07-29  Paul Thomas  <pault@gcc.gnu.org>
887
888         PR fortran/31211
889         * trans-expr.c (gfc_conv_expr_reference): Add block for case of
890         scalar pointer functions so that NULL result is correctly
891         handled.
892
893         PR fortran/32682
894         * trans-array.c (gfc_trans_array_constructor): On detecting a
895         multi-dimensional parameter array, set the loop limits.
896
897 2007-07-29  Daniel Franke  <franke.daniel@gmail.com>
898
899         PR fortran/32906
900         * resolve.c (resolve_fl_parameter): Check for constant shape arrays,
901         adjusted error message.
902
903 2007-07-29  Daniel Franke  <franke.daniel@gmail.com>
904
905         * invoke.texi: Removed -w from option summary.
906
907 2007-07-29  Daniel Franke  <franke.daniel@gmail.com>
908
909         PR fortran/32879
910         * intrinsic.texi (IRAND, RAND, RANDOM_NUMBER): Document algorithm
911         used for random number generator.
912
913 2007-07-28  Kazu Hirata  <kazu@codesourcery.com>
914
915         * gfortran.h, interface.c, resolve.c, symbol.c: Fix comment
916         typos.
917         * intrinsic.texi, invoke.texi: Fix typos.
918
919 2007-07-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
920
921         PR fortran/31609
922         * resolve.c (generic_sym): Check for a same symbol and if so, return to
923         avoid infinite recursion.
924
925 2007-07-28  Daniel Franke  <franke.daniel@gmail.com>
926
927         PR fortran/31818
928         PR fortran/32876
929         PR fortran/32905
930         * gfortran.h (symbol_attribute): Added bits for pointer_comp, 
931         private_comp.
932         * parse.c (parse_derived): Set pointer_comp/private_comp bits if 
933         the derived type ultimately contains pointer components or private 
934         components.
935         * module.c (ab_attribute): New values AB_POINTER_COMP, AB_PRIVATE_COMP.
936         (attr_bits): Added names for new ab_attributes.
937         (mio_symbol_attribute): Save/restore new attribute bits in modules.
938         * match.c (gfc_match_namelist): Removed check for namelist objects
939         of assumed shape.
940         * resolve.c (resolve_fl_namelist): Added check for pointer or
941         private components in nested types. Added check for namelist objects
942         of assumed shape.
943
944 2007-07-28  Paul Thomas  <pault@gcc.gnu.org>
945
946         PR fortran/32880
947         * trans-expr.c (gfc_trans_scalar_assign): Revert to fixed order
948         for lse and rse pre expressions, for derived types with
949         allocatable components.  Instead, assign the lhs to a temporary
950         and deallocate after the assignment.
951
952 2007-07-28  Janne Blomqvist  <jb@gcc.gnu.org>
953
954         PR fortran/32909
955         * trans-stmt.c (gfc_trans_character_select): Replace occurrences
956         of gfc_c_int_type_node with integer_type_node.
957         * trans-decl.c (gfc_build_intrinsic_function_decls): Likewise.
958         (gfc_build_builtin_function_decls): Likewise.
959         (gfc_generate_function_code): Likewise.
960         * trans-io.c (gfc_build_io_library_fndecls): Likewise.
961
962 2007-07-27  Janne Blomqvist  <jb@gcc.gnu.org>
963
964         * trans-decl.c (gfc_build_builtin_function_decls): Use existing
965         gfc_array_index_type rather than creating another typenode for
966         gfc_index_integer_kind.
967
968 2007-07-27  Janne Blomqvist  <jb@gcc.gnu.org>
969
970         * trans-io.c (gfc_build_io_library_fndecls): Change to use
971         gfc_array_index_type for array descriptor triplets instead of
972         gfc_int4_type_node.
973
974 2007-07-26  Steven G. Kargl  <kargl@gcc.gnu.org>
975
976         PR fortran/32899
977         * resolve.c (resolve_operator): Add INTRINSIC_EQ_OS comparison.
978
979 2007-07-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
980             Daniel Franke  <franke.daniel@gmail.com>
981
982         PR fortran/32760
983         * primary.c (match_variable): Do not call gfc_add_flavor if symbol has
984         attribute of ACCESS_PUBLIC or ACCESS_PRIVATE already marked.
985
986 2007-07-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
987
988         PR fortran/32035
989         * trans-stmt.c (gfc_trans_character_select): Replace the
990         mechanism with labels by a SWITCH_EXPR.
991         * trans-decl.c (gfc_build_builtin_function_decls): Change
992         return type for select_string.
993
994 2007-07-27  Paul Thomas  <pault@gcc.gnu.org>
995
996         PR fortran/32903
997         * trans-decl.c (gfc_trans_deferred_vars): Set intent(out)
998         derived types as referenced, if they have the the default
999         initializer set.
1000
1001 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1002
1003         * gfortran.h (generate_isocbinding_symbol): Constify.
1004         * symbol.c (gen_special_c_interop_ptr, gen_cptr_param,
1005         generate_isocbinding_symbol): Likewise.
1006
1007 2007-07-24  Paul Thomas  <pault@gcc.gnu.org>
1008
1009         PR fortran/31205
1010         PR fortran/32842
1011         * trans-expr.c (gfc_conv_function_call): Remove the default
1012         initialization of intent(out) derived types.
1013         * symbol.c (gfc_lval_expr_from_sym): New function.
1014         * matchexp.c (gfc_get_parentheses): Return argument, if it is
1015         character and posseses a ref.
1016         * gfortran.h : Add prototype for gfc_lval_expr_from_sym.
1017         * resolve.c (has_default_initializer): Move higher up in file.
1018         (resolve_code): On detecting an interface assignment, check
1019         if the rhs and the lhs are the same symbol.  If this is so,
1020         enclose the rhs in parenetheses to generate a temporary and
1021         prevent any possible aliasing.
1022         (apply_default_init): Remove code making the lval and call
1023         gfc_lval_expr_from_sym instead.
1024         (resolve_operator): Give a parentheses expression a type-
1025         spec if it has no type.
1026         * trans-decl.c (gfc_trans_deferred_vars): Apply the a default
1027         initializer, if any, to an intent(out) derived type, using
1028         gfc_lval_expr_from_sym and gfc_trans_assignment.  Check if
1029         the dummy is present.
1030
1031 2007-07-24  Daniel Franke  <franke.daniel@gmail.com>
1032
1033         PR fortran/32867
1034         * expr.c (check_init_expr): Simplify matched functions.
1035
1036 2007-07-24  Daniel Franke  <franke.daniel@gmail.com>
1037
1038         PR fortran/32778
1039         * intrinsic.c (add_sym): Do not exclude any symbols, even if not part
1040         of the selected standard.
1041         (make generic): Likewise.
1042         (make alias): Likewise, set standard the alias belongs to.
1043         (add_subroutines): Call make_noreturn unconditionally.
1044         (check_intrinsic_standard): Change return value to try.
1045         (gfc_intrinsic_func_interface): Check return value of above function.
1046         (gfc_intrinsic_sub_interface): Likewise.
1047
1048 2007-07-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
1049
1050         PR fortran/30814
1051         * trans-decl.c (generate_function_code):  Add argument
1052         for flag_bounds_check to the array for set_options.
1053         * invoke.texi (-fbounds-check): Document new libarary run-time
1054         behaviour.
1055
1056 2007-07-23  Daniel Franke  <franke.daniel@gmail.com>
1057
1058         PR fortran/25104
1059         PR fortran/31639
1060         * expr.c (check_transformational): Reject valid transformational
1061         intrinsics to avoid ICE.
1062         (check_inquiry): Report error for assumed character lengths for
1063         all supported standards.
1064         (check_init_expr): Whitespace fix.
1065
1066 2007-07-23  Christopher D. Rickett  <crickett@lanl.gov>
1067
1068         PR fortran/32797
1069         PR fortran/32800
1070         * decl.c (verify_bind_c_sym): Use the result symbol for functions
1071         with a result clause.  Warn if implicitly typed.  Verify the type
1072         and rank of the SHAPE argument, if given.
1073         * resolve.c (gfc_iso_c_sub_interface): Use gfc_procedure_use to
1074         check the actual args against the formal, sorting them if
1075         necessary.
1076         * symbol.c (gen_shape_param): Initialize type of SHAPE param to
1077         BT_VOID.
1078
1079 2007-07-23  Christopher D. Rickett  <crickett@lanl.gov>
1080
1081         PR fortran/32732
1082         * trans-decl.c (generate_local_decl): Convert the TREE_TYPE for by
1083         value character dummy args of BIND(C) procedures.
1084         * trans-expr.c (gfc_conv_variable): Do not build address
1085         expression for BT_CHARACTER dummy args.
1086
1087 2007-07-23  Christopher D. Rickett  <crickett@lanl.gov>
1088             Tobias Burnus  <burnus@net-b.de>
1089
1090         PR fortran/32600
1091         * trans-expr.c (gfc_conv_function_call): Handle c_funloc.
1092         * trans-types.c: Add pfunc_type_node.
1093         (gfc_init_types,gfc_typenode_for_spec): Use it.
1094         * resolve.c (gfc_iso_c_func_interface): Fix whitespace and
1095         improve error message.
1096
1097 2007-07-22  Daniel Franke  <franke.daniel@gmail.com>
1098
1099         PR fortran/32710
1100         * parse.c (gfc_fixup_sibling_symbols): No replacement of symbols if
1101         the current is a namelist.
1102
1103 2007-07-22  Daniel Franke  <franke.daniel@gmail.com>
1104
1105         PR fortran/29962
1106         PR fortran/31253
1107         PR fortran/31265
1108         PR fortran/31639
1109         * gfortran.h (gfc_intrinsic_sym): Changed members elemental, pure,
1110         generic, specific, actual_ok, noreturn into bits of a bitfield, 
1111         added bits for inquiry, transformational, conversion.
1112         * check.c (non_init_transformational): Removed, removed all callers.
1113         * intrinsic.c (enum class): New.
1114         (add_sym*): Replaced argument elemetal by enum class. Changed all
1115         callers.
1116         (add_functions): Assign appropriate classes to intrinsic functions.
1117         (add_subroutines): Assign appropriate classes to intrinsic subroutines.
1118         (add_conv): Set conversion attribute.
1119         (gfc_init_expr_extensions): Removed, removed all callers.
1120         (gfc_intrinsic_func_interface): Reimplemented check for non-standard
1121         initializatione expressions.
1122         * expr.c (check_specification_function): New.
1123         (gfc_is_constant_expr): Added check for specification functions.
1124         (check_init_expr_arguments): New.
1125         (check_inquiry): Changed return value to MATCH, added checks for
1126         inquiry functions defined by F2003.
1127         (check_transformational): New.
1128         (check_null): New.
1129         (check_elemental): New.
1130         (check_conversion): New.
1131         (check_init_expr): Call new check functions, add more specific error
1132         messages.
1133
1134 2007-07-21  Christopher D. Rickett  <crickett@lanl.gov>
1135
1136         PR fortran/32627
1137         * resolve.c (set_name_and_label): Set kind number for character
1138         version of c_f_pointer.
1139         (gfc_iso_c_sub_interface): Set the kind of the SHAPE formal arg to
1140         that of the actual SHAPE arg.
1141         * symbol.c (gen_shape_param): Initialize kind for SHAPE arg.
1142
1143 2007-07-21  Christopher D. Rickett  <crickett@lanl.gov>
1144
1145         PR fortran/32801
1146         * symbol.c (generate_isocbinding_symbol): Remove unnecessary
1147         conditional.
1148
1149         PR fortran/32804
1150         * resolve.c (gfc_iso_c_func_interface): Reject assumed-shape and
1151         deferred-shape arrays as args to C_LOC.  Fix bug in testing
1152         character args to C_LOC.
1153
1154 2007-07-21  Lee Millward  <lee.millward@gmail.com>
1155
1156         PR fortran/32823
1157         * trans-intrinsic.c (gfc_conv_intrinsic_int): Evaluate all
1158         arguments passed, not just the first one. Adjust code to 
1159         refer to "args[0]" instead of "arg" as a result.
1160         
1161 2007-07-19  Christopher D. Rickett  <crickett@lanl.gov>
1162
1163         PR fortran/32600
1164         * trans-expr.c (gfc_conv_function_call): Inline C_LOC.
1165
1166 2007-07-18  Christopher D. Rickett  <crickett@lanl.gov>
1167
1168         PR fortran/32801
1169         * symbol.c (generate_isocbinding_symbol): Fix bug where
1170         ISOCBINDING_FUNPTR was generated for C_LOC instead of the needed
1171         ISOCBINDING_PTR.
1172
1173 2007-07-17  Janus Weil  <jaydub66@gmail.com> 
1174
1175         PR fortran/32535
1176         * resolve.c (resolve_fl_namelist): Check for namelist private 
1177         components in contained subprograms.
1178
1179 2007-07-17  Paul Thomas  <pault@gcc.gnu.org>
1180
1181         PR fortran/31320
1182         PR fortran/32665
1183         * trans-expr.c (gfc_trans_subcomponent_assign): Ensure that
1184         renormalization unity base is done independently of existing
1185         lbound value.
1186         (gfc_trans_scalar_assign): If rhs is not a variable, put
1187         lse->pre after rse->pre to ensure that de-allocation of lhs
1188         occurs after evaluation of rhs.
1189
1190 2007-07-16  Lee Millward  <lee.millward@gmail.com>
1191
1192         PR fortran/32222
1193         PR fortran/32238
1194         PR fortran/32242        
1195         * trans-intrinsic.c (gfc_conv_intrinsic_function_args): Adjust
1196         to operate on a stack allocated array for the intrinsic arguments
1197         instead of creating a TREE_LIST. Add two new parameters for the
1198         array and the number of elements. Update all callers to allocate
1199         an array of the correct length to pass in. Update comment.
1200         (gfc_intrinsic_argument_list_length): New function.
1201         (gfc_conv_intrinsic_conversion): Call it.
1202         (gfc_conv_intrinsic_mnimax): Likewise.
1203         (gfc_conv_intrinsic_merge): Likewise.
1204         (gfc_conv_intrinsic_lib_function): Call it. Use new CALL_EXPR
1205         constructors.
1206         (gfc_conv_intrinsic_cmplx): Likewise.
1207         (gfc_conv_intrinsic_ctime): Likewise.
1208         (gfc_covn_intrinsic_fdate): Likewise.
1209         (gfc_conv_intrinsic_ttynam): Likewise.
1210         (gfc_conv_intrinsic_ishftc): Likewise.
1211         (gfc_conv_intrinsic_index): Likewise.
1212         (gfc_conv_intrinsic_scan): Likewise.
1213         (gfc_conv_intrinsic_verify): Likewise.
1214         (gfc_conv_intrinsic_trim): Likewise.
1215         (gfc_conv_intrinsic_aint): Use new CALL_EXPR constructors.
1216         (gfc_conv_intrinsic_exponent): Likewise.
1217         (gfc_conv_intrinsic_bound): Likewise.
1218         (gfc_conv_intrinsic_abs): Likewise.
1219         (gfc_conv_intrinsic_mod): Likewise.
1220         (gfc_conv_intrinsic_sign): Likewise.
1221         (gfc_conv_intrinsic_len): Likewise.
1222         (gfc_conv_intrinsic_adjust): Likewise.
1223         (gfc_conv_intrinsic_si_kind): Likewise. 
1224         
1225 2007-07-16  Janne Blomqvist  <jb@gcc.gnu.org>
1226
1227         PR fortran/32748
1228         * trans-decl.c (gfc_build_builtin_function_decls): Remove
1229         DECL_IS_MALLOC attribute from internal_realloc, thus reverting
1230         part of my 2007-07-03 patch.
1231
1232 2007-07-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1233             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1234
1235         PR fortran/32611
1236         * gfortran.h (gfc_option_t): Add flag_sign_zero field.
1237         * lang.opt (-fsign-zero): New option.
1238         * trans.h: Rename gfor_fndecl_set_std into gfor_fndecl_set_options.
1239         * trans-decl.c (gfc_build_builtin_function_decls): Build the function
1240         declaration to pass an array containing the options to be used by the
1241         runtime library. (gfc_generate_function_code): Build an array that
1242         contains option values to be passed to the runtime library and the call
1243         to the function. 
1244         * options.c (gfc_init_options): Initialize the flag_sign_zero field.
1245         (gfc_handle_option): Handle the -fsign-zero option.
1246
1247 2007-07-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1248
1249         PR fortran/32036
1250         * trans-array.c (gfc_conv_array_ref): Only evaluate index once.
1251
1252 2007-07-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1253
1254         PR fortran/32357
1255         * iresolve.c (gfc_resolve_mvbits): Convert FROMPOS, LEN and TOPOS
1256         to C int.
1257
1258 2007-07-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
1259
1260         PR libfortran/32731
1261         * iresolve.c(gfc_resolve_pack):  A scalar mask has
1262         to be kind=4, an array mask with kind<4 is converted
1263         to gfc_default_logical_kind automatically.
1264         (gfc_resolve_unpack):  Convert mask to gfc_default_lotical_kind
1265         if it has a kind<4.
1266
1267 2007-07-14  Paul Thomas  <pault@gcc.gnu.org>
1268
1269         PR fortran/32724
1270         * parse.c (parse_spec): Emit error on unexpected statement
1271         function.
1272
1273 2007-07-13  Daniel Franke  <franke.daniel@gmail.com>
1274
1275         * invoke.texi: Unified upper- and lower-case in menus.
1276         (-w, -W): Removed, documented by gcc.
1277         * intrinsic.texi: Unified Class-section entries, added
1278         subroutine/function warning where appropiate.
1279
1280 2007-07-12  Daniel Franke  <franke.daniel@gmail.com>
1281
1282         PR fortran/31639
1283         * decl.c (gfc_match_suffix): Removed surplus general error that hides
1284         a more specific message.
1285         * resolve.c (resolve_fl_variable): Reject illegal initializiers only
1286         if not already done.
1287         (resolve_fl_procedure): Added check for initializers of functions.
1288
1289 2007-07-12  Daniel Franke  <franke.daniel@gmail.com>
1290
1291         PR fortran/32704
1292         * invoke.texi (-static-libgfortran): Document new option.
1293
1294 2007-07-12  Paul Thomas  <pault@gcc.gnu.org>
1295
1296         PR fortran/32634
1297         PR fortran/32727
1298         * module.c (write_generic): Restore patch of 2007-07-10 and use
1299         symbol name if there are no use names. 
1300
1301 2007-07-12  Christopher D. Rickett  <crickett@lanl.gov>
1302
1303         PR fortran/32599
1304         * decl.c (verify_c_interop_param): Require character string dummy
1305         args to BIND(C) procedures to have length 1.
1306         * resolve.c (resolve_fl_procedure): Modify parameter checking for
1307         BIND(C) procedures.
1308
1309         PR fortran/32601
1310         * resolve.c (gfc_iso_c_func_interface): Verify that a valid
1311         expression is given as an argument to C_LOC and C_ASSOCIATED.
1312         * trans-io.c (transfer_expr): Add argument for code block.  Add
1313         standards check to determine if an error message should be
1314         reported for printing C_PTR or C_FUNPTR.
1315         (transfer_array_component): Update arguments to transfer_expr.
1316         (gfc_trans_transfer): Ditto.
1317
1318         * symbol.c (gen_cptr_param): Fix whitespace.
1319
1320 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1321
1322         PR fortran/32550
1323         * trans.h (GFC_POINTER_TYPE_P): Define.
1324         * trans-types.c (gfc_sym_type): Set it for types on attr->sym.pointer.
1325         * trans-openmp.c (gfc_omp_privatize_by_reference): Return false
1326         if GFC_POINTER_TYPE_P is set on the type.
1327
1328 2007-07-12  Richard Guenther  <rguenther@suse.de>
1329
1330         * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Convert
1331         arguments to gfc_charlen_type_node.
1332         * trans-io.c (gfc_convert_array_to_string): Convert type
1333         size to gfc_array_index_type.
1334
1335 2007-07-12  Daniel Franke  <franke.daniel@gmail.com>
1336
1337         PR fortran/32634
1338         PR fortran/32727
1339         * module.c: Reverted Paul's patch from 2007-07-10.
1340
1341 2007-07-11  Richard Guenther  <rguenther@suse.de>
1342
1343         * trans-array.c (gfc_conv_array_parameter): Use correct
1344         types for comparison.
1345         * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Use
1346         correct types for POINTER_PLUS_EXPR.
1347         * trans-stmt.c (gfc_trans_forall_loop): Use correct type
1348         for integer one constant.
1349
1350 2007-07-10  Paul Thomas  <pault@gcc.gnu.org>
1351
1352         PR fortran/32157
1353         * resolve.c (is_external_proc): New function.  Adds test that
1354         the symbol is not an intrinsic procedure.
1355         * (resolve_function, resolve_call): Replace logical statements
1356         with call to is_external_proc.
1357
1358         PR fortran/32689
1359         * simplify.c (gfc_simplify_transfer): If mold has rank, the
1360         result is an array.
1361
1362         PR fortran/32634
1363         * module.c (write_generic): Write the local name of the
1364         interface. 
1365
1366 2007-07-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1367
1368         PR fortran/29459
1369         * trans-array.c (gfc_trans_array_constructor): Mark offset field
1370         with TREE_NO_WARNING.
1371         * trans-decl.c (gfc_build_qualified_array): Mark lbound, ubound,
1372         stride and size variables with TREE_NO_WARNING.
1373
1374 2007-07-09  Steven G. Kargl  <kargl@gcc.gnu.org>
1375
1376         * trans-decl.c (set_tree_decl_type_code): Remove function.
1377         (generate_local_decl): Remove reference to set_tree_decl_type_code.
1378
1379 2007-07-09  Daniel Franke  <franke.daniel@gmail.com>
1380
1381         PR fortran/31129
1382         * trans-decl.c (generate_local_decl) Emit a warning if an unused
1383         parameter is found.
1384
1385 2007-07-08  Daniel Franke  <franke.daniel@gmail.com>
1386
1387         PR fortran/29876
1388         * module.c (gfc_match_use): Do not set an non-existant 
1389         intrinsic operator if a user-defined operator is found.
1390
1391 2007-07-08  Daniel Franke  <franke.daniel@gmail.com>
1392
1393         PR fortran/24784
1394         PR fortran/28004
1395         * trans-decl.c (generate_local_decl): Adjusted warning on unused 
1396         dummy arguments, tell middle-end not to emit additional warnings.
1397
1398 2007-07-08  Daniel Franke  <franke.daniel@gmail.com>
1399             Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
1400
1401         PR fortran/17711
1402         * gfortran.h (gfc_intrinsic_op): Added INTRINSIC_EQ_OS,
1403         INTRINSIC_NE_OS, INTRINSIC_GT_OS, INTRINSIC_GE_OS, 
1404         INTRINSIC_LT_OS and INTRINSIC_LE_OS.
1405         * arith.c (eval_intrinsic, eval_type_intrinsic0): Likewise.
1406         * arith.h (gfc_eq, gfc_ne, gfc_gt, gfc_ge, gfc_lt, gfc_le):
1407         Added gfc_intrinsic_op as third argument type.
1408         * dump-parse-tree.c (gfc_show_expr): Account for new enum values.
1409         * expr.c (simplify_intrinsic_op, check_intrinsic_op): Likewise.
1410         * interface.c (check_operator_interface): Likewise.
1411         (gfc_check_interfaces): Added cross-checks for FORTRAN 77 and 
1412         Fortran 90 style operators using new enum values.
1413         (gfc_extend_expr): Likewise.
1414         (gfc_add_interface): Likewise.
1415         * match.c (intrinsic_operators): Distinguish FORTRAN 77 style
1416         operators from Fortran 90 style operators using new enum values.
1417         * matchexp.c (match_level_4): Account for new enum values.
1418         * module.c (mio_expr): Likewise.
1419         * resolve.c (resolve_operator): Deal with new enum values, fix
1420         inconsistent error messages.
1421         * trans-expr.c (gfc_conv_expr_op): Account for new enum values.
1422
1423 2007-07-08  Tobias Burnus  <burnus@net-b.de>
1424
1425         PR fortran/32669
1426         * interface.c (get_expr_storage_size): Properly obtain lower bound.
1427         (compare_actual_formal): Add space before parenthesis.
1428
1429 2007-07-08  Daniel Franke  <franke.daniel@gmail.com>
1430
1431         PR fortran/25094
1432         * resolve.c (resolve_fl_procedure): Added check for PRIVATE types 
1433         in PUBLIC interfaces.
1434
1435 2007-07-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1436
1437         PR fortran/32644
1438         * decl.c (match_attr_spec): Don't return MATCH_ERROR if comma found and
1439         gfc_match_bind_c does not return MATCH_YES.
1440
1441 2007-07-07  Kazu Hirata  <kazu@codesourcery.com>
1442
1443         * decl.c, gfortran.h, interface.c, module.c, resolve.c,
1444         trans-array.c, trans-decl.c: Fix comment typos.  Follow
1445         spelling conventions.
1446         * intrinsic.texi: Fix typos.  Follow spelling conventions.
1447
1448 2007-05-06  Daniel Franke  <franke.daniel@gmail.com>
1449
1450         PR fortran/32633
1451         * symbol.c (save_status): New.
1452         * gfortran.h (save_status): Added external declaration.
1453         (check_conflict): Check for conflicting explicite SAVE statements
1454         only.
1455         (gen_special_c_interop_ptr): Use SAVE_EXPLICIT constant.
1456         * module.c (ab_attribute, attr_bits): Removed enumerator value 
1457         AB_SAVE for save attribute.
1458         (mio_symbol_attribute): Import/export the full SAVE status, 
1459         removed usage of AB_SAVE.
1460         * dump-parse-tree.c (gfc_show_attr): Dump full SAVE status.
1461         * decl.c (add_init_expr_to_sym): Set SAVE_IMPLICIT only if not
1462         already explicit.
1463
1464 2007-07-05  Daniel Franke  <franke.daniel@gmail.com>
1465             Tobias Burnus  <burnus@net-b.de>
1466
1467         PR fortran/32359
1468         * gfortran.h (symbol_attribute): Change save attribute into an enum.
1469         * decl.c (add_init_expr_to_sym): Set it to SAVE_IMPLICIT.
1470         * symbol.c (gfc_add_save): Check for SAVE_EXPLICIT.
1471         * resolve.c (resolve_fl_variable): Check for SAVE_EXPLICIT.
1472         (resolve_symbol): Allow OMP threadprivate with
1473         initialization SAVEd and save_all variable.
1474         * trans-decl.c (gfc_finish_var_decl): Remove obsolete sym->value check.
1475
1476 2007-07-05  Paul Thomas  <pault@gcc.gnu.org>
1477
1478         PR fortran/32526
1479         * match.c (gfc_match_call): Check, in all cases, that a symbol
1480         is neither generic nor a subroutine before trying to add it as
1481         a subroutine.
1482
1483         PR fortran/32613
1484         * match.c (gfc_match_do): Reset the implied_index attribute.
1485
1486 2007-07-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1487
1488         PR fortran/31198
1489         * trans-intrinsic.c (trans-intrinsic.c): Handle optional
1490         arguments correctly for MIN and MAX intrinsics.
1491
1492 2007-07-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1493
1494         PR fortran/32545
1495         * io.c (check_format): Always call gfc_error for errors.
1496         (check_format_string): Change type of this function to try and
1497         return the result of check_format.
1498         (check_io_constraints): Return MATCH_ERROR if check_format_string
1499         returns FAILURE.
1500
1501 2007-07-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1502
1503         PR fortran/32612
1504         * decl.c (get_proc_name): Include attr->mod_proc in check for error.
1505
1506 2007-07-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1507
1508         PR fortran/32432
1509         * gfortran.h: Change type of gfc_assign_data_value from void to try.
1510         * data.c (gfc_assign_data_value): Return FAILURE if error found.
1511         * resolve.c (check_data_variable): If gfc_assign_data_value returns
1512         failure, break out of loop and return failure.
1513
1514 2007-07-03  Christopher D. Rickett  <crickett@lanl.gov>
1515
1516         PR fortran/32579
1517         * symbol.c (gen_cptr_param): Generate C_PTR and C_FUNPTR if necessary.
1518         (build_formal_args): Pass intrinsic module symbol id to
1519         gen_cptr_param.
1520
1521 2007-07-03  Tobias Burnus  <burnus@net-b.de>
1522
1523         PR fortran/25062
1524         * resolve.c (resolve_common_blocks): New check function.
1525         (resolve_types): Use it.
1526
1527 2007-07-03  Tobias Burnus  <burnus@net-b.de>
1528
1529         PR fortran/30940
1530         * interface.c (get_sym_storage_size): New function.
1531         (get_sym_storage_size): New function.
1532         (compare_actual_formal): Enhance sequence association
1533         support and improve checking.
1534
1535 2007-07-03  Janne Blomqvist  <jb@gcc.gnu.org>
1536
1537         * trans-decl.c (gfc_build_builtin_function_decls): Mark
1538         internal_realloc as a malloc function.
1539
1540 2007-07-03  Tobias Burnus  <burnus@net-b.de>
1541
1542         PR fortran/20888
1543         * resolve.c (resolve_operator): Check for NULL as operand.
1544
1545 2007-07-02  Tobias Burnus  <burnus@net-b.de>
1546
1547         * gfortran.texi (Fortran 2003): Add ISO Bind C.
1548         * intrinsic.texi (C_ASSOCIATED,C_F_POINTER,C_F_PROCPOINTER,
1549         C_FUNLOC,C_LOC): Document new ISO Bind C intrinsics.
1550
1551 2007-07-01  Christopher D. Rickett  <crickett@lanl.gov>
1552
1553         * interface.c (gfc_compare_derived_types): Special case for comparing
1554         derived types across namespaces.
1555         (gfc_compare_types): Deal with BT_VOID.
1556         (compare_parameter): Use BT_VOID to accept ISO C Binding pointers.
1557         * trans-expr.c (gfc_conv_function_call): Remove setting parm_kind
1558         to SCALAR
1559         (gfc_conv_initializer): Deal with ISO C Binding NULL_PTR and 
1560         NULL_FUNPTR.
1561         (gfc_conv_expr): Convert expressions for ISO C Binding derived types.
1562         * symbol.c (gfc_set_default_type): BIND(C) variables should not be
1563         Implicitly declared.
1564         (check_conflict): Add BIND(C) and check for conflicts.
1565         (gfc_add_explicit_interface): Whitespace.       
1566         (gfc_add_is_bind_c): New function.  
1567         (gfc_copy_attr): Use it.
1568         (gfc_new_symbol): Initialize ISO C Binding objects.
1569         (get_iso_c_binding_dt):  New function.
1570         (verify_bind_c_derived_type): Ditto.
1571         (gen_special_c_interop_ptr): Ditto.
1572         (add_formal_arg): Ditto.
1573         (gen_cptr_param): Ditto.
1574         (gen_fptr_param): Ditto.
1575         (gen_shape_param): Ditto.
1576         (add_proc_interface): Ditto.
1577         (build_formal_args): Ditto.
1578         (generate_isocbinding_symbol):  Ditto.
1579         (get_iso_c_sym):  Ditto.
1580         * decl.c (num_idents_on_line, has_name_equals): New variables.
1581         (verify_c_interop_param): New function.
1582         (build_sym): Finish binding labels and deal with COMMON blocks.
1583         (add_init_expr_to_sym): Check if the initialized expression is
1584         an iso_c_binding named constants
1585         (variable_decl): Set ISO C Binding type_spec components.
1586         (gfc_match_kind_spec): Check match for C interoperable kind.
1587         (match_char_spec): Fix comment. Chnage gfc_match_small_int
1588         to gfc_match_small_int_expr.  Check for C interoperable kind.
1589         (match_type_spec): Clear the current binding label.
1590         (match_attr_spec): Add DECL_IS_BIND_C.  If BIND(C) is found, use it
1591         to set attributes.
1592         (set_binding_label): New function.
1593         (set_com_block_bind_c): Ditto.
1594         (verify_c_interop): Ditto.
1595         (verify_com_block_vars_c_interop): Ditto.
1596         (verify_bind_c_sym): Ditto.
1597         (set_verify_bind_c_sym): Ditto.
1598         (set_verify_bind_c_com_block): Ditto.
1599         (get_bind_c_idents): Ditto.
1600         (gfc_match_bind_c_stmt): Ditto.
1601         (gfc_match_data_decl): Use num_idents_on_line.
1602         (match_result): Deal with right paren in BIND(C).
1603         (gfc_match_suffix): New function.
1604         (gfc_match_function_decl): Use it.  Code is re-arranged to deal with
1605         ISO C Binding result clauses.
1606         (gfc_match_subroutine):  Deal with BIND(C).
1607         (gfc_match_bind_c): New function.
1608         (gfc_get_type_attr_spec): New function.  Code is re-arranged in and
1609         taken from gfc_match_derived_decl.
1610         (gfc_match_derived_decl): Add check for BIND(C).
1611         * trans-common.c: Forward declare gfc_get_common.
1612         (gfc_sym_mangled_common_id): Change arg from 'const char *name' to
1613         'gfc_common_head *com'.  Check for ISO C Binding of the common block.
1614         (build_common_decl): 'com->name' to 'com in SET_DECL_ASSEMBLER_NAME.
1615         * gfortran.h: Add GFC_MAX_BINDING_LABEL_LEN
1616         (bt): Add BT_VOID
1617         (sym_flavor): Add FL_VOID.
1618         (iso_fortran_env_symbol, iso_c_binding_symbol, intmod_id): New enum
1619         (CInteropKind_t): New struct.
1620         (c_interop_kinds_table): Use it.  Declare an array of structs.
1621         (symbol_attribute): Add is_bind_c, is_c_interop, and is_iso_c
1622         bitfields.
1623         (gfc_typespec): Add is_c_interop; is_iso_c, and f90_type members.
1624         (gfc_symbol): Add from_intmod, intmod_sym_id, binding_label, and
1625         common_block members.
1626         (gfc_common_head): Add binding_label and is_bind_c members.
1627         (gfc_gsymbol): Add sym_name, mod_name, and binding_label members.
1628         Add prototypes for get_c_kind, gfc_validate_c_kind, 
1629         gfc_check_any_c_kind, gfc_add_is_bind_c, gfc_add_value,
1630         verify_c_interop, verify_c_interop_param, verify_bind_c_sym,
1631         verify_bind_c_derived_type, verify_com_block_vars_c_interop,
1632         generate_isocbinding_symbol, get_iso_c_sym, gfc_iso_c_sub_interface
1633         * iso-c-binding.def: New file. This file contains the definitions
1634         of the types provided by the Fortran 2003 ISO_C_BINDING intrinsic
1635         module.
1636         * trans-const.c (gfc_conv_constant_to_tree): Deal with C_NULL_PTR
1637          or C_NULL_FUNPTR expressions.
1638         * expr.c (gfc_copy_expr): Add BT_VOID case.  For BT_CHARACTER, the
1639         ISO C Binding requires a minimum string length of 1 for '\0'.  
1640         * module.c (intmod_sym): New struct.
1641         (pointer_info): Add binding_label member.
1642         (write_atom): Set len to 0 for NULL pointers. Check for NULL p and *p.
1643         (ab_attribute): Add AB_IS_BIND_C, AB_IS_C_INTEROP and AB_IS_ISO_C.
1644         (attr_bits): Add "IS_BIND_C", "IS_C_INTEROP", and "IS_ISO_C".
1645         (mio_symbol_attribute): Deal with ISO C Binding attributes.
1646         (bt_types): Add "VOID".
1647         (mio_typespec): Deal with ISO C Binding components.
1648         (mio_namespace_ref): Add intmod variable. 
1649         (mio_symbol): Check for symbols from an intrinsic module.
1650         (load_commons): Check for BIND(C) common block.
1651         (read_module): Read binding_label and use it.
1652         (write_common): Add label.  Write BIND(C) info.
1653         (write_blank_common): Blank commons are not BIND(C).  Explicitly
1654         set is_bind_c=0.
1655         (write_symbol): Deal with binding_label.
1656         (sort_iso_c_rename_list): New function.
1657         (import_iso_c_binding_module): Ditto.
1658         (create_int_parameter): Add to args.
1659         (use_iso_fortran_env_module): Adjust to deal with iso_c_binding
1660         intrinsic module.
1661         * trans-types.c (c_interop_kinds_table): new array of structs. 
1662         (gfc_validate_c_kind): New function.
1663         (gfc_check_any_c_kind): Ditto.
1664         (get_real_kind_from_node): Ditto.
1665         (get_int_kind_from_node): Ditto.
1666         (get_int_kind_from_width): Ditto.
1667         (get_int_kind_from_minimal_width): Ditto.
1668         (init_c_interop_kinds): Ditto.
1669         (gfc_init_kinds): call init_c_interop_kinds.
1670         (gfc_typenode_for_spec): Adjust for BT_VOID and ISO C Binding pointers.
1671         Adjust handling of BT_DERIVED.
1672         (gfc_sym_type): Whitespace.
1673         (gfc_get_derived_type):  Account for iso_c_binding derived types
1674         * resolve.c (is_scalar_expr_ptr): New function.
1675         (gfc_iso_c_func_interface): Ditto.
1676         (resolve_function): Use gfc_iso_c_func_interface. 
1677         (set_name_and_label): New function.
1678         (gfc_iso_c_sub_interface): Ditto.
1679         (resolve_specific_s0): Use gfc_iso_c_sub_interface.
1680         (resolve_bind_c_comms): New function.
1681         (resolve_bind_c_derived_types): Ditto.
1682         (gfc_verify_binding_labels): Ditto.
1683         (resolve_fl_procedure): Check for ISO C interoperability.
1684         (resolve_symbol): Check C interoperability.
1685         (resolve_types): Walk the namespace.  Check COMMON blocks.
1686         * trans-decl.c (gfc_sym_mangled_identifier):  Prevent the mangling
1687         of identifiers that have an assigned binding label.
1688         (gfc_sym_mangled_function_id): Use the binding label rather than
1689         the mangled name.
1690         (gfc_finish_var_decl): Put variables that are BIND(C) into a common
1691         segment of the object file, because this is what C would do.
1692         (gfc_create_module_variable): Conver to proper types
1693         (set_tree_decl_type_code): New function.
1694         (generate_local_decl): Check dummy variables and derived types for
1695         ISO C Binding attributes.
1696         * match.c (gfc_match_small_int_expr): New function.
1697         (gfc_match_name_C): Ditto.
1698         (match_common_name): Deal with ISO C Binding in COMMON blocks
1699         * trans-io.c (transfer_expr):  Deal with C_NULL_PTR or C_NULL_FUNPTR
1700         expressions
1701         * match.h: Add prototypes for gfc_match_small_int_expr,
1702         gfc_match_name_C, match_common_name, set_com_block_bind_c,
1703         set_binding_label, set_verify_bind_c_sym,
1704         set_verify_bind_c_com_block, get_bind_c_idents,
1705         gfc_match_bind_c_stmt, gfc_match_suffix, gfc_match_bind_c,
1706         gfc_get_type_attr_spec
1707         * parse.c (decode_statement): Use gfc_match_bind_c_stmt
1708         (parse_derived): Init *derived_sym = NULL, and gfc_current_block
1709         later for valiadation.
1710         * primary.c (got_delim): Set ISO C Binding components of ts.
1711         (match_logical_constant): Ditto.
1712         (match_complex_constant): Ditto.
1713         (match_complex_constant): Ditto.
1714         (gfc_match_rvalue): Check for existence of at least one arg for
1715         C_LOC, C_FUNLOC, and C_ASSOCIATED.
1716         * misc.c (gfc_clear_ts): Clear ISO C Bindoing components in ts.
1717         (get_c_kind): New function.
1718
1719 2007-07-01  Janne Blomqvist  <jb@gcc.gnu.org>
1720
1721         PR fortran/32239
1722         * trans-expr.c (gfc_conv_power_op): Use builtin_powi for
1723         real**int4 powers.
1724         * f95-lang.c (gfc_init_builtin_functions): Add builtin_powi to the
1725         builtins table.
1726
1727 2007-07-01  Janne Blomqvist  <jb@gcc.gnu.org>
1728
1729         * trans.h: Remove decls for 64-bit allocation functions.
1730         * trans-array.c (gfc_grow_array): Always pick the standard realloc
1731         function decl.
1732         (gfc_array_allocate): Likewise.
1733         * trans-decl.c: Remove trees for 64-bit allocation functions.
1734         (gfc_build_builtin_function_decls): Don't build fndecls for 64-bit
1735         allocations functions, use index_int_type for normal allocation
1736         functions.
1737
1738 2007-06-30  Daniel Franke  <franke.daniel@gmail.com>
1739
1740         PR fortran/20373
1741         * intrinsic.c (add_functions): Additional function types.
1742         (gfc_convert_type_warn): Remove intrinsic-flag from
1743         conversion functions.
1744         * resolve.c (resolve_symbol): Added type checks to 
1745         explicitly defined intrinsics.
1746
1747 2007-06-30  Tobias Burnus  <burnus@net-b.de>
1748
1749         PR fortran/32555
1750         * io.c (check_format): Allow zero to precede the
1751         P edit descriptor.
1752
1753 2007-06-30  Paul Thomas  <pault@gcc.gnu.org>
1754
1755         PR fortran/32472
1756         * simplify.c (gfc_simplify_repeat): Add handling of character
1757         literal for first argument.
1758
1759 2007-06-29  Daniel Franke  <franke.daniel@gmail.com>
1760
1761         * resolve.c (resolve_operator): Added check whether a user
1762         defined operator is available.
1763
1764 2007-06-29  Daniel Franke <franke.daniel@gmail.com>
1765
1766         * openmp.c (resolve_omp_clauses): Adjust error message to
1767         better reflect the actual requirement.
1768
1769 2007-06-29  Tobias Burnus  <burnus@net-b.de>
1770
1771         PR fortran/32483
1772         * io.c (format_lex): Fix FMT_ZERO.
1773         (check_format,check_format_string,gfc_match_format,
1774         check_io_constraints) Additional checking for READ.
1775
1776 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1777
1778         PR other/31400
1779         * lang.opt (static-libgfortran): New option.
1780         * gfortranspec.c (ADD_ARG_LIBGFORTRAN): New macro.
1781         (Option): Add OPTION_static and OPTION_static_libgfortran.
1782         (lookup_option): Handle the new -static-libgfortran option.
1783         (lang_specific_driver): Check whether -static is passed.
1784         Handle the new -static-libgfortran option.
1785         * options.c (gfc_handle_option): If -static-libgfortran is
1786         passed and isn't supported on this configuration, error out.
1787
1788 2007-06-27  Daniel Franke  <franke.daniel@gmail.com>
1789
1790         PR fortran/32467
1791         * openmp.c (resolve_omp_clauses): Emit error on allocatable
1792         components in COPYIN, COPYPRIVATE, FIRSTPRIVATE and LASTPRIVATE
1793         clauses.
1794
1795 2007-06-25  Paul Thomas  <pault@gcc.gnu.org>
1796
1797         PR fortran/32464
1798         * resolve.c (check_host_association): Return if the old symbol
1799         is use associated.  Introduce retval to reduce the number of
1800         evaluations of the first-order return value.
1801
1802         PR fortran/31494
1803         * match.c (gfc_match_call): If a host associated symbol is not
1804         a subroutine, build a new symtree/symbol in the current name
1805         space.
1806
1807 2007-06-24  Tobias Burnus  <burnus@net-de>
1808
1809         PR fortran/32460
1810         * interface.c (gfc_compare_derived_types): Add access check.
1811         * symbol.c (gfc_find_component): Ditto.
1812         (gfc_set_component_attr,gfc_get_component_attr) Copy access state.
1813         * dump-parse-tree.c (gfc_show_components): Dump access state.
1814         * gfortran.h (struct gfc_component): Add gfc_access.
1815         * module.c (mio_component): Add access state.
1816         * (gfc_match_structure_constructor): Check for private access state.
1817
1818 2007-06-24  Paul Thomas  <pault@gcc.gnu.org>
1819
1820         PR fortran/32298
1821         PR fortran/31726
1822         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Calculate
1823         the offset between the loop counter and the position as
1824         defined. Add the offset within the loop so that the mask acts
1825         correctly.  Do not advance the location on the basis that it
1826         is zero.
1827
1828 2007-06-22  Daniel Franke  <franke.daniel@gmail.com>
1829
1830         PR fortran/31473
1831         * symbol.c (gfc_copy_attr): Emit errors for duplicate 
1832         EXTERNAL/INTRINSIC statements.
1833
1834 2007-06-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1835
1836         PR fortran/32360
1837         * expr.c (gfc_check_assign): If the rvalue expression type is NULL_EXPR,
1838         check to see if the lvalue has attribute pointer and data.  
1839
1840 2007-06-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1841
1842         PR fortran/31162
1843         * resolve.c (gfc_resolve_iterator_expr): Add check for REAL using
1844         gfc_notify_standard. (gfc_resolve_iterator): Remove check.
1845         (resolve_branch): Change "Obsolete" to "Deleted feature".
1846         * io.c (resolve_tag): Ditto.
1847         * match.c (gfc_match_pause, gfc_match_assign, gfc_match_goto): Ditto.
1848
1849 2007-06-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1850
1851         PR fortran/32361
1852         * match.c (gfc_match_common): If the symbol value expression type is
1853         NULL_EXPR, don't error if previously initialized.
1854
1855 2007-06-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1856
1857         PR fortran/25061
1858         * decl.c (get_proc_name) Check symbol for generic interface
1859         and issue an error.
1860
1861 2007-06-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1862         Richard Guenther  <rguenther@suse.de>
1863
1864         PR fortran/32140
1865         * trans.c (gfc_build_addr_expr): Use the correct types.
1866
1867 2007-06-19  Paul Thomas  <pault@gcc.gnu.org>
1868
1869         PR fortran/20863
1870         PR fortran/20882
1871         * resolve.c (resolve_code): Use gfc_impure_variable as a
1872         condition for rejecting derived types with pointers, in pure
1873         procedures.
1874         (gfc_impure_variable): Add test for dummy arguments of pure
1875         procedures; any for functions and INTENT_IN for subroutines.
1876
1877         PR fortran/32236
1878         * data.c (gfc_assign_data_value): Change the ICE on an array
1879         reference initializer not being an array into an error and
1880         clear init to prevent a repetition of the error.
1881
1882 2007-06-17  Janne Blomqvist  <jb@gcc.gnu.org>
1883
1884         * gfortran.texi: Add documentation for GFORTRAN_UNBUFFERED_n
1885         environment variables. Fix documentation for
1886         GFORTRAN_UNBUFFERED_ALL environment variable.
1887
1888 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1889
1890         * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Use
1891         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointer addition.
1892         * trans-expr.c (gfc_trans_string_copy): Create
1893         POINTER_PLUS_EXPR instead of a PLUS_EXPR
1894         for pointer types.
1895
1896 2007-06-14  Paul Thomas  <pault@gcc.gnu.org>
1897
1898         PR fortran/32302
1899         * trans-common.c (build_common_decl): If resizing of common
1900         decl is needed, update the TREE_TYPE.
1901
1902 2007-06-13  Tobias Burnus  <burnus@net-b.de>
1903
1904         PR fortran/32323
1905         * interface.c (has_vector_section): New.
1906         (compare_actual_formal): Check for array sections with vector subscript.
1907
1908 2007-06-12  Dirk Mueller  <dmueller@suse.de>
1909
1910         * trans-stmt.c (gfc_trans_call): fix gcc_assert to
1911         a comparison, not an assignment.
1912
1913 2007-06-12  Paul Thomas  <pault@gcc.gnu.org>
1914
1915         * trans-common.c (create_common): Initialize 'field_init'.
1916
1917 2007-06-12  Paul Thomas  <pault@gcc.gnu.org>
1918
1919         PR fortran/29786
1920         PR fortran/30875
1921         * trans-common.c (get_init_field): New function.
1922         (create_common): Call get_init_field for overlapping
1923         initializers in equivalence blocks.
1924         * resolve.c (resolve_equivalence_derived, resolve_equivalence):
1925         Remove constraints on initializers in equivalence blocks.
1926         * target-memory.c (expr_to_char, gfc_merge_initializers):
1927         New functions.
1928         (encode_derived): Add the bit offset to the byte offset to get
1929         the total offset to the field.
1930         * target-memory.h : Add prototype for gfc_merge_initializers.
1931
1932 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
1933
1934         * trans-types.c (gfc_signed_type): Remove.
1935         * trans-types.h (gfc_signed_type): Remove.
1936         * f95-lang.c (LANG_HOOKS_SIGNED_TYPE): Remove.
1937
1938 2007-06-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1939
1940         * trans-intrinsic.c: Revert Lee's 2007-06-04 patch.
1941
1942 2007-06-07  Steven G. Kargl  <kargl@gcc.gnu.org>
1943             Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1944
1945         PR fortran/32223
1946         * match.c (gfc_match_special_char): New function.  Match special char.
1947         Add handling '\0'.
1948         * match.h: Add prototype.
1949         * io.c (next_char): Use it.
1950         * primary.c (next_string_char): Ditto.
1951
1952 2007-06-06  Steven G. Kargl  <kargl@gcc.gnu.org>
1953
1954         * decl.c: Miscellaneous whitespace fixes.
1955         * expr.c: Likewise.
1956         * gfortran.h: Likewise.
1957         * interface.c : Likewise.
1958         * io.c: Likewise.
1959         * match.c: Likewise.
1960         * match.h: Likewise.
1961         * module.c: Likewise.
1962         * parse.c: Likewise.
1963         * resolve.c: Likewise.
1964         * symbol.c: Likewise.
1965         * trans-array.c: Likewise.
1966         * trans-common.c: Likewise.
1967         * trans-decl.c: Likewise.
1968         * trans-intrinsic.c: Likewise.
1969         * trans-io.c: Likewise.
1970         * trans-stmt.c: Likewise.
1971         * trans-types.c: Likewise.
1972
1973 2007-06-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1974
1975         PR fortran/18923
1976         * parse.c (decode_statement): Don't call gfc_undo_symbols on MATCH_ERROR
1977         for ST_FUNCTION since it is called in reject_statement.
1978         (parse_contained): If error, loop back after reject_statement and try
1979         again.  Free the namespace if an error occured.
1980
1981 2007-06-04 Lee Millward <lee.millward@codesourcery.com>
1982
1983         * trans-intrinsic.c (gfc_conv_intrinsic_function_args): Adjust
1984         to operate on a stack allocated array for the intrinsic arguments
1985         instead of creating a TREE_LIST. Add two new parameters for the
1986         array and the number of elements. Update all callers to allocate
1987         an array of the correct length to pass in. Update comment.
1988         (gfc_intrinsic_argument_list_length): New function.
1989         (gfc_conv_intrinsic_mnimax): Call it.
1990         (gfc_conv_intrinsic_merge): Likewise.
1991         (gfc_conv_intrinsic_lib_function): Call it. Use new CALL_EXPR
1992         constructors.
1993         (gfc_conv_intrinsic_cmplx): Likewise.
1994         (gfc_conv_intrinsic_ctime): Likewise.
1995         (gfc_covn_intrinsic_fdate): Likewise.
1996         (gfc_conv_intrinsic_ttynam): Likewise.
1997         (gfc_conv_intrinsic_ishftc): Likewise.
1998         (gfc_conv_intrinsic_index): Likewise.
1999         (gfc_conv_intrinsic_scan): Likewise.
2000         (gfc_conv_intrinsic_verify): Likewise.
2001         (gfc_conv_intrinsic_trim): Likewise.
2002         (gfc_conv_intrinsic_aint): Use new CALL_EXPR constructors.
2003         (gfc_conv_intrinsic_exponent): Likewise.
2004         (gfc_conv_intrinsic_bound): Likewise.
2005         (gfc_conv_intrinsic_abs): Likewise.
2006         (gfc_conv_intrinsic_mod): Likewise.
2007         (gfc_conv_intrinsic_sign): Likewise.
2008         (gfc_conv_intrinsic_len): Likewise.
2009         (gfc_conv_intrinsic_adjust): Likewise.
2010         (gfc_conv_intrinsic_si_kind): Likewise.
2011
2012 2007-06-04  Steve Ellcey  <sje@cup.hp.com>
2013
2014         * trans-array.c (gfc_conv_array_parameter): Initialize tmp.
2015
2016 2007-05-31  Richard Guenther  <rguenther@suse.de>
2017
2018         * trans-expr.c (gfc_conv_expr_op): Use zero constant
2019         that matches the lse type.
2020         (gfc_trans_string_copy): Use sizetype zero constant.
2021         * intrinsic.c (add_functions): The sizeof intrinsic has
2022         index type result.
2023         * trans-types.c (gfc_get_dtype): Convert size to index
2024         type before shifting.
2025         * trans-array.c (gfc_trans_array_constructor_value): Use
2026         index type for offset computation.
2027         * trans-intrinsic.c (gfc_conv_associated): Use correct type
2028         for zero constant.
2029
2030 2007-05-31  Paul Thomas  <pault@gcc.gnu.org>
2031
2032         PR fortran/32156
2033         * trans-array.c (gfc_trans_array_constructor): Treat the case
2034         where the ss expression charlen is missing.
2035
2036 22007-05-31  Paul Thomas  <pault@gcc.gnu.org>
2037
2038         PR fortran/32103
2039         * module.c (mio_symtree_ref): If an equivalence group member
2040         is not used, give it a hidden symbol and set the pointer_info.
2041         (load_equiv): Only free the equivalence if none of the members
2042         are used.
2043
2044 2007-05-29  Daniel Franke  <franke.daniel@gmail.com>
2045
2046         * gfortran.h: Renamed 'enum gfc_generic_isym_id' to 'enum gfc_isym_id',
2047         added missing GFC_ISYM_* enumerators, ordered alphabetically.
2048         (struct gfc_intrinsic_sym): Renamed 'generic_id' to 'id'.
2049         (gfc_find_subroutine): New prototype.
2050         * intrinsic.c (add_sym, add_sym_*): Added argument 'id' and changed all callers.
2051         (find_subroutine): Renamed to 'gfc_find_subroutine', removed static.  
2052         * dependency.c: Changed usage of isym->generic_id to isym->id.  
2053         * openmp.c: Likewise.  
2054         * resolve.c: Likewise.  
2055         * trans-array.c: Likewise.  
2056         * trans-expr.c: Likewise.  
2057         * trans-intrinsic.c: Likewise.  
2058         * trans-openmp.c: Likewise.
2059
2060 2007-05-28  Tobias Schlüter  <tobi@gcc.gnu.org>
2061
2062         * gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_SIZEOF.
2063         * intrinsic.c (add_functions): Add stuff for SIZEOF intrinsic.
2064         * intrinsic.h (gfc_check_sizeof): Add prototype of ...
2065         * check.c (gfc_check_sizeof): .. new function.
2066         * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): New function.
2067         (gfc_conv_intrinsic_strcmp): Whitespace fix.
2068         (gfc_conv_intrinsic_array_transfer): Remove double initialization,
2069         use fold_build. where appropriate.
2070         (gfc_conv_intrinsic_function): Add case for SIZEOF.
2071         * intrinsic.texi: Add documentation for SIZEOF.
2072
2073 2007-05-28  Brooks Moses  <brooks.moses@codesourcery.com>
2074
2075         * trans-array.c (gfc_conv_expr_descriptor): Edit comment.
2076
2077 2007-05-28  Brooks Moses  <brooks.moses@codesourcery.com>
2078
2079         PR fortran/31972
2080         * target-memory.c (gfc_target_expr_size): Add handling
2081         for size of BT_HOLLERITH variables.
2082         * check.c (gfc_check_transfer): Reject BT_HOLLERITH
2083         variables in MOLD argument of TRANSFER.
2084
2085 2007-05-28  Brooks Moses  <brooks.moses@codesourcery.com>
2086
2087         * gfortran.h (gfc_expr): Remove from_H, add "representation"
2088         struct.
2089         * primary.c (match_hollerith_constant): Store the representation
2090         of the Hollerith in representation, not in value.character.
2091         * arith.c: Add dependency on target-memory.h.
2092         (eval_intrinsic): Remove check for from_H.
2093         (hollerith2representation): New function.
2094         (gfc_hollerith2int): Determine value of the new constant.
2095         (gfc_hollerith2real): Likewise.
2096         (gfc_hollerith2complex): Likewise.
2097         (gfc_hollerith2logical): Likewise.
2098         (gfc_hollerith2character): Point both representation.string and
2099         value.character.string at the value string.
2100         * data.c (create_character_initializer): For BT_HOLLERITH
2101         rvalues, get the value from the representation rather than
2102         value.character.
2103         * expr.c (free_expr0): Update handling of BT_HOLLERITH values
2104         and values with representation.string.
2105         (gfc_copy_expr): Likewise.
2106         * intrinsic.c (do_simplify): Remove special treatement of
2107         variables resulting from Hollerith constants.
2108         * dump-parse-trees.c (gfc_show_expr): Update handling of
2109         Holleriths.
2110         * trans-const.c (gfc_conv_constant_to_tree): Replace from_H
2111         check with check for representation.string; get Hollerith
2112         representation from representation.string, not value.character.
2113         * trans-expr.c (is_zero_initializer_p): Replace from_H check
2114         with check for representation.string.
2115         * trans-stmt.c (gfc_trans_integer_select): Use
2116         gfc_conv_mpz_to_tree for case values, so as to avoid picking up
2117         the memory representation if the case is given by a transfer
2118         expression.
2119         * target-memory.c (gfc_target_encode_expr): Use the known memory
2120         representation rather than the value, if it exists.
2121         (gfc_target_interpret_expr): Store the memory representation of
2122         the interpreted expression as well as its value.
2123         (interpret_integer): Move to gfc_interpret_integer, make
2124         non-static.
2125         (interpret_float): Move to gfc_interpret_float, make non-static.
2126         (interpret_complex): Move to gfc_interpret_complex, make
2127         non-static.
2128         (interpret_logical): Move to gfc_interpret_logical, make
2129         non-static.
2130         (interpret_character): Move to gfc_interpret_character, make
2131         non-static.
2132         (interpret_derived): Move to gfc_interpret_derived, make
2133         non-static.
2134         * target-memory.h: Add prototypes for newly-exported
2135         gfc_interpret_* functions.
2136
2137 2007-05-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2138
2139         PR fortran/31812
2140         * parse.c (next_statement): Warn for truncated lines if source is free
2141         form.
2142
2143 2007-05-27 Paul Thomas  <pault@gcc.gnu.org>
2144            Tobias Burnus  <burnus@net-b.de>
2145
2146         PR fortran/32088
2147         * symbol.c (gfc_check_function_type): Copy dimensions of
2148           result variable.
2149         * resolve.c (resolve_contained_fntype): Improve symbol output in
2150           the error message.
2151
2152 2007-05-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2153
2154         PR fortran/31813
2155         * io.c (check_format): Add warning for H specifier in format.
2156         
2157 2007-05-26  Tobias Burnus  <burnus@net-b.de>
2158
2159         * gfortran.texi: Document the GFORTRAN_ERROR_DUMPCORE and
2160         GFORTRAN_ERROR_BACKTRACE environment variables.
2161
2162 2007-05-26  Paul Thomas  <pault@gcc.gnu.org>
2163
2164         PR fortran/31219
2165         * trans.h : Add no_function_call bitfield to gfc_se structure.
2166         Add stmtblock_t argument to prototype of get_array_ctor_strlen.
2167         * trans-array.c (get_array_ctor_all_strlen): New function.
2168         (get_array_ctor_strlen): Add new stmtblock_t argument and call
2169         new function for character elements that are not constants,
2170         arrays or variables.
2171         (gfc_conv_array_parameter): Call get_array_ctor_strlen to get
2172         good string length.
2173         * trans-intrinsic (gfc_conv_intrinsic_len): Add new argument
2174         to call of get_array_ctor_strlen.
2175
2176 2007-05-25  Kazu Hirata  <kazu@codesourcery.com>
2177
2178         * intrinsic.texi: Fix typos.
2179
2180 2007-05-25  Paul Thomas  <pault@gcc.gnu.org>
2181
2182         PR fortran/32047
2183         * trans-expr.c (gfc_apply_interface_mapping_to_expr): Change
2184         order in logic under EXPR_FUNCTION to handle functions with
2185         no arguments.
2186
2187 2007-05-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2188
2189         PR fortran/31716
2190         * array.c (spec_dimen_size): Test for correct BT_INTEGER type. 
2191
2192 2007-05-23  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2193
2194         PR fortran/32046
2195         * trans-expr.c (gfc_trans_zero_assign): Convert the result of
2196         TYPE_SIZE_UNIT into a signed type.
2197         (gfc_trans_array_copy):  Likewise.
2198         (gfc_trans_array_constructor_copy): Likewise.
2199         * trans-array.c (gfc_trans_create_temp_array): Likewise.
2200         (gfc_grow_array): Likewise.
2201         (gfc_array_init_size): Likewise.
2202         (gfc_duplicate_allocatable): Likewise.
2203         * trans-stmt.c (allocate_temp_for_forall_nest_1): Likewise.
2204
2205 2007-05-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2206
2207         PR fortran/18923
2208         * resolve.c (resolve_function): Don't call resolve_global_procedure if
2209         there is no name. Delete duplicated statement in ELSE clause.
2210
2211 2007-05-22 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2212
2213         PR fortran/31627
2214         * trans-array.c (gfc_trans_array_bound_check): Take extra argument to
2215         indicate whether we should check the upper bound in that dimension.
2216         (gfc_conv_array_index_offset): Check only the lower bound of the
2217         last dimension for assumed-size arrays.
2218         (gfc_conv_array_ref): Likewise.
2219         (gfc_conv_ss_startstride): Likewise.
2220
2221 2007-05-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2222             Daniel Franke  <franke.daniel@gmail.com>
2223
2224         PR fortran/32002
2225         * resolve.c (resolve_actual_arglist): Resolve actual argument after
2226         being identified as variable.
2227
2228 2007-05-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2229
2230         PR fortran/32027
2231         * trans-stmt.c (gfc_trans_do): Fix the value of loop variable
2232         when the loop ends.
2233
2234 2007-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2235
2236         * trans-stmt.c (gfc_trans_do): Fix a typo in comment.
2237
2238 2007-05-21  Paul Thomas  <pault@gcc.gnu.org>
2239
2240         PR fortran/31867
2241         PR fortran/31994
2242         * trans-array.c (gfc_conv_expr_descriptor): Obtain the stored
2243         offset for non-descriptor, source arrays and correct for stride
2244         not equal to one before writing to field of output descriptor.
2245
2246 2007-05-20  Daniel Franke  <franke.daniel@gmail.com>
2247
2248         PR fortran/32001
2249         * check.c (check_rest): Improved argument conformance check and 
2250         fixed error message generation.
2251
2252 2007-05-19  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2253
2254         PR fortran/30820
2255         * Make-lang.in: Remove use of -Wno-error for expr.o, resolve.o,
2256         simplify.o and trans-common.o.
2257
2258 2007-05-19  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2259
2260         PR fortran/31974
2261         * trans-array.c (gfc_trans_auto_array_allocation): Avoid
2262         multiplication of mismatched types.
2263
2264 2007-05-18  Daniel Franke  <franke.daniel@gmail.com>
2265
2266         PR fortran/24633
2267         * symbol.c (gfc_add_flavor): Add the NAME to error message if
2268         available.
2269
2270 2007-05-15  Daniel Franke  <franke.daniel@gmail.com>
2271
2272         PR fortran/31919
2273         PR fortran/31929
2274         PR fortran/31930
2275         * intrinsic.c (check_specific): Check elemental intrinsics for
2276         rank and shape.
2277         (add_functions): Fixed dummy argument names of BESJN and BESYN.
2278         Fixed elemental status of MCLOCK and MCLOCK8.
2279         * check.c (check_rest): Added check for array conformance.
2280         (gfc_check_merge): Removed check for array conformance.
2281         (gfc_check_besn): Removed check for scalarity.
2282         * intrinsic.texi (CSHIFT, EOSHIFT): Fixed typos.
2283         (BESJN, BESYN): Clarified documentation.
2284
2285 2007-05-17  Tobias Burnus  <burnus@net-b.de>
2286
2287         * gfortran.texi (GFORTRAN_CONVERT_UNIT): Improve documentation.
2288
2289 2007-05-16  Brooks Moses  <brooks.moses@codesourcery.com>
2290
2291         PR fortran/18769
2292         PR fortran/30881
2293         PR fortran/31194
2294         PR fortran/31216
2295         PR fortran/31427
2296         * target-memory.c: New file.
2297         * target-memory.h: New file.
2298         * simplify.c: Add #include "target-memory.h".
2299         (gfc_simplify_transfer): Implement constant-
2300         folding for TRANSFER intrinsic.
2301         * Make-lang.in: Add dependencies on new target-memory.* files.
2302
2303 2007-05-15  Paul Brook  <paul@codesourcery.com>
2304
2305         * trans-types.c (gfc_type_for_size): Handle signed TImode.
2306
2307 2007-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2308
2309         PR fortran/30723
2310         * trans.h (gfor_fndecl_internal_malloc, gfor_fndecl_internal_malloc64,
2311         gfor_fndecl_internal_free): Remove prototypes.
2312         (gfor_fndecl_os_error, gfc_call_free, gfc_call_malloc): Add prototypes.
2313         * trans.c (gfc_call_malloc, gfc_call_free): New functions.
2314         * f95-lang.c (gfc_init_builtin_functions): Add __builtin_free
2315         and __builtin_malloc builtins.
2316         * trans-decl.c (gfor_fndecl_internal_malloc,
2317         gfor_fndecl_internal_malloc64, gfor_fndecl_internal_free): Remove.
2318         (gfor_fndecl_os_error): Add.
2319         (gfc_build_builtin_function_decls): Don't create internal_malloc,
2320         internal_malloc64 and internal_free library function declaration.
2321         Create os_error library call function declaration.
2322         * trans-array.c (gfc_trans_allocate_array_storage,
2323         gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
2324         gfc_conv_array_parameter, gfc_duplicate_allocatable): Use
2325         gfc_call_malloc and gfc_call_free instead of building calls to
2326         internal_malloc and internal_free.
2327         * trans-expr.c (gfc_conv_string_tmp): Likewise.
2328         * trans-stmt.c (gfc_do_allocate, gfc_trans_assign_need_temp,
2329         gfc_trans_pointer_assign_need_temp, gfc_trans_forall_1,
2330         gfc_trans_where_2: Likewise.
2331         * trans-intrinsic.c (gfc_conv_intrinsic_ctime,
2332         gfc_conv_intrinsic_fdate, gfc_conv_intrinsic_ttynam,
2333         gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_trim): Likewise.
2334
2335 2007-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2336
2337         PR fortran/31725
2338         * trans-expr.c (gfc_conv_substring): Evaluate substring bounds
2339         only once.
2340
2341 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
2342
2343         * f95-lang.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
2344         * trans-intrinsic.c (gfc_conv_intrinsic_ishft): Use unsigned_type_for
2345         instead of gfc_unsigned_type.
2346         * trans-stmt.c (gfc_trans_do): Use unsigned_type_for instead of
2347         gfc_unsigned_type.
2348         * trans-types.c (gfc_unsigned_type): Remove.
2349         * trans-types.h (gfc_unsigned_type): Remove.
2350
2351 2007-05-12  Paul Thomas  <pault@gcc.gnu.org>
2352
2353         PR fortran/30746
2354         * resolve.c (check_host_association): New function that detects
2355         incorrect host association and corrects it.
2356         (gfc_resolve_expr): Call the new function for variables and
2357         functions.
2358         * match.h : Remove prototype for gfc_match_rvalue.
2359         * gfortran.h : Add prototype for gfc_match_rvalue.
2360
2361 2007-05-11 Paul Thomas <pault@gcc.gnu.org>
2362
2363         PR fortran/30876
2364         * trans-expr.c (gfc_conv_function_call): Reduce indirection for
2365         direct assignments of recursive array valued functions.
2366         * primary.c (gfc_match_rvalue): Correct error for recursive
2367         function calls such that directly recursive calls of scalar
2368         function without an explicit result are disallowed.
2369
2370 2007-05-11 Paul Thomas <pault@gcc.gnu.org>
2371
2372         PR fortran/30878
2373         * resolve.c (resolve_fl_namelist): It is not an error if the
2374         namelist element is the result variable of the enclosing
2375         function.  Search for the symbol in current and all parent
2376         namespaces for a potential conflict.
2377         * symbol.c (check_conflict): Remove the conflict between
2378         'in_namelist' and 'FL_PROCEDURE' because the symbol info
2379         is not available to exclude function result variables.
2380         * trans-io.c (nml_get_addr_expr): Use the fake result decl
2381         if the symbol is an implicit result variable.
2382
2383 2007-05-11  Paul Thomas  <pault@gcc.gnu.org>
2384
2385         PR fortran/31474
2386         * decl.c (get_proc_name): If an entry has already been declared
2387         as a module procedure, pick up the symbol and the symtree and
2388         use them for the entry.
2389
2390 2007-05-08  Paul Thomas  <pault@gcc.gnu.org>
2391
2392         PR fortran/31630
2393         * resolve.c (resolve_symbol): Remove the flagging mechanism from the
2394         formal namespace resolution and instead check that the formal
2395         namespace is not the current namespace.
2396
2397 2007-05-08  Paul Thomas  <pault@gcc.gnu.org>
2398
2399         PR fortran/31692
2400         * trans-array.c (gfc_conv_array_parameter): Convert full array
2401         references to the result of the procedure enclusing the call.
2402
2403 2007-05-08  Paul Thomas  <pault@gcc.gnu.org>
2404
2405         PR fortran/29397
2406         PR fortran/29400
2407         * decl.c (add_init_expr_to_sym): Expand a scalar initializer
2408         for a parameter array into an array expression with the right
2409         shape.
2410         * array.c (spec_dimen_size): Remove static attribute.
2411         * gfortran.h : Prototype for spec_dimen_size.
2412
2413 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2414
2415         PR fortran/31399
2416         * trans-stmt.c (gfc_trans_do): Handle large loop counts.
2417
2418 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2419
2420         PR fortran/31764
2421         * simplify.c (gfc_simplify_new_line): NEW_LINE can be simplified
2422         even for non constant arguments.
2423
2424 2007-05-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2425             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2426
2427         PR fortran/31201
2428         * gfortran.h: Add runtime error codes from libgfortran.h. Define
2429         MAX_UNIT_NUMBER.
2430         * trans.c (gfc_trans_runtime_check): Update the format of runtime error
2431         messages to match library runtime errors.  Use call to new library
2432         function runtime_error_at().
2433         * trans.h: Add prototype for new function gfc_trans_io_runtime_check.
2434         Add declaration for library functions runtime_error_at and
2435         generate_error.
2436         * trans_io.c (gfc_trans_io_runtime_check): New function.
2437         (set_parameter_value): Add error checking for UNIT numbers.
2438         (set_parameter_ref): Initialize the users variable to zero. 
2439         (gfc_trans_open): Move setting of unit number to after setting of common
2440         flags so that runtime error trapping can be detected.
2441         (gfc_trans_close): Likewise. (build_filepos): Likewise.
2442         (gfc_trans_inquire): Likewise. (build_dt): Likewise.
2443         * trans-decl.c: Add declarations for runtime_error_at and
2444         generate_error. (gfc_build_builtin_function_decls): Build function
2445         declarations for runtime_error_at and generate_error.
2446
2447 2007-05-06  Paul Thomas  <pault@gcc.gnu.org>
2448
2449         PR fortran/31540
2450         * resolve.c (resolve_fl_procedure): Resolve constant character
2451         lengths.
2452
2453 2007-05-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2454
2455         PR fortran/31251
2456         * decl.c (match_char_spec): Add check for invalid character lengths.
2457
2458 2007-05-04  Brooks Moses  <brooks.moses@codesourcery.com>
2459
2460         * intrinsic.texi (CMPLX): Document result kind.
2461         (COMPLEX): Add documentation.
2462
2463 2007-05-04  Daniel Franke  <franke.daniel@gmail.com>
2464
2465         PR fortran/31760
2466         * intrinsic.c (add_functions): Replaced calls to gfc_check_g77_math1
2467         by gfc_check_fn_r to avoid checks for scalarity.
2468         * check.c (gfc_check_besn): Removed check for scalarity.
2469         (gfc_check_g77_math1): Removed.
2470         * intrinsic.h (gfc_check_g77_math1): Removed.
2471
2472 2007-05-04  Daniel Franke  <franke.daniel@gmail.com>
2473
2474         * check.c (gfc_check_fseek_sub): Fixed typo.
2475
2476 2007-05-04  Daniel Franke  <franke.daniel@gmail.com>
2477
2478         PR fortran/22359
2479         * intrinsic.c (add_subroutines): Added FSEEK.
2480         * intrinsic.h (gfc_resolve_fseek_sub, gfc_check_fseek_sub): New.
2481         * iresolve.c (gfc_resolve_fseek_sub): New.
2482         * check.c (gfc_check_fseek_sub): New.
2483         * intrinsic.texi (FSEEK): Updated.
2484
2485 2007-05-04  Tobias Burnus  <burnus@net-b.de>
2486
2487         PR fortran/31803
2488         * expr.c (gfc_check_pointer_assign): Check for NULL pointer.
2489
2490 2007-05-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2491
2492         PR fortran/31251
2493         * simplify.c (gfc_simplify_len): Only simplify integer lengths.
2494
2495 2007-05-04  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2496
2497         PR fortran/31781
2498         * simplify.c (gfc_simplify_repeat): Don't put function call with
2499         side effect in a gcc_assert().
2500
2501 2007-05-04  Tobias Burnus  <burnus@net-b.de>
2502
2503         PR fortran/25071
2504         * interface.c (compare_actual_formal): Check character length.
2505
2506 2007-05-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
2507
2508         PR fortran/31732
2509         * dependency.c (gfc_full_array_ref_p):  If the reference is
2510         to a single element, check that the array has a single
2511         element and that the correct element is referenced.
2512
2513 2007-05-01  Daniel Franke  <franke.daniel@gmail.com>
2514
2515         * intrinsic.c (add_functions): Fixed ELEMENTAL specifications.
2516         (add_subroutines): Replaced magic numbers in function calls by
2517         ELEMENTAL and NOT_ELEMENTAL respectively.
2518         * intrinsic.texi (MVBITS): Changed class to elemental subroutine.
2519         (RANDOM_NUMBER): Changed class to subroutine.
2520         (HUGE, TINY): Changed class to inquiry function.
2521
2522 2007-04-30  Brooks Moses  <brooks.moses@codesourcery.com>
2523
2524         * trans-const.c (gfc_conv_mpz_to_tree): Use mpz_get_double_int.
2525         (gfc_conv_tree_to_mpz): New function.
2526         (gfc_conv_mpfr_to_tree): Use real_from_mpfr.
2527         (gfc_conv_tree_to_mpfr): New function.
2528         * trans-const.h: (gfc_conv_tree_to_mpz): New prototype.
2529         (gfc_conv_tree_to_mpfr): New prototype.
2530
2531 2007-04-30  Daniel Franke  <franke.daniel@gmail.com>
2532
2533         * intrinsic.texi (IERRNO): Changed class to non-elemental function.
2534         (LOG10): Removed COMPLEX as accepted argument type.
2535         (NEW_LINE): Changed class from elemental to inquiry function.
2536         (SIGN): Removed requirement of scalar arguments.
2537         (SNGL): Changed class to elemental function.
2538
2539 2007-04-29  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2540
2541         PR fortran/31591
2542         * simplify.c (simplify_bound_dim): New function.
2543         (simplify_bound): Use the above. Perform simplification of LBOUND
2544         and UBOUND when DIM argument is not present.
2545
2546 2007-04-29  Daniel Franke  <franke.daniel@gmail.com>
2547
2548         * gfortran.texi: Cleaned up keyword index.
2549         * invoke.texi: Likewise.
2550         * intrinsic.texi: Likewise.
2551                         
2552 2007-04-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2553
2554         PR fortran/31645
2555         * scanner.c (load_file): Discard the byte order mark if one is
2556         found on the first non-preprocessor line of a file.
2557
2558 2007-04-29  Paul Thomas  <pault@gcc.gnu.org>
2559
2560         PR fortran/31711
2561         * trans-array.c (gfc_conv_resolve_dependencies): Create a temp
2562         whenever a dependency is found.
2563
2564 2007-04-28  Tobias Schlüter  <tobi@gcc.gnu.org>
2565
2566         * options.c (gfc_handle_option): Ensure requested free form line
2567         length is not too small.
2568
2569 2007-04-27  Brooks Moses  <brooks.moses@codesourcery.com>
2570
2571         * intrinsic.texi (Transfer): Improve documentation.
2572
2573 2007-04-27  Brooks Moses  <brooks.moses@codesourcery.com>
2574
2575         * gfortran.texi (Option Index): Add @samp as needed.
2576
2577 2007-04-27  Daniel Franke  <franke.daniel@gmail.com>
2578
2579         * gfortran.texi: Added node and menu entry for an option index.
2580         * invoke.texi: Moved command line option related entries of the concept 
2581         index to the option index.
2582
2583 2007-04-27  Daniel Franke  <franke.daniel@gmail.com>
2584
2585         * intrinsic.texi (AND, FPUT, FPUTC, MODULO, OR, SET_EXPONENT,
2586         XOR): Fixed examples.
2587
2588 2007-04-27  Daniel Franke  <franke.daniel@gmail.com>
2589
2590         * intrinsic.texi (PRODUCT, RESHAPE, SPACING, SPREAD, SUM, 
2591         SYSTEM_CLOCK, TRANSFER, UNPACK): New.
2592         (DATE_AND_TIME, CPU_TIME, RRSPACING): Added cross references.
2593
2594 2007-04-26  Daniel Franke  <franke.daniel@gmail.com>
2595
2596         * intrinsic.texi (NULL, PACK, PRESENT, REPEAT, SCAN, SHAPE, 
2597         SIZE, TRANSPOSE, TRIM, VERIFY): New.
2598         (ADJUSTL, ADJUSTR, INDEX): Added cross references.
2599         (INT, INT2, INT8, LONG): Enabled section header.
2600
2601 2007-04-25  Janne Blomqvist  <jb@gcc.gnu.org>
2602
2603         * module.c (module_char): Replace fgetc() with
2604         getc(). 
2605         (write_char): Replace fputc() with putc().
2606         * scanner.c (load_line): Replace fgetc() with getc().
2607         (gfc_read_orig_filename): Likewise.
2608
2609 2007-04-25  Tobias Burnus  <burnus@net-b.de>
2610
2611         PR fortran/31668
2612         * error.c (error_print): Fix %% support.
2613         * intrinsic.c (sort_actual): Improve error message.
2614         * resolve.c (resolve_actual_arglist): Allow %VAL for
2615         interfaces defined in the module declaration part.
2616
2617 2007-04-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2618
2619         PR libfortran/31299
2620         * intrinsic.texi (GETLOG): Update documentation to reflect
2621         library changes.
2622
2623 2007-04-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2624
2625         PR fortran/31587
2626         * module.c (write_char): Add character to the MD5 buffer.
2627         (read_md5_from_module_file): New function.
2628         (gfc_dump_module): Compute MD5 for new module file. Call
2629         read_md5_from_module_file. Only overwrite old module file
2630         if the new MD5 is different.
2631
2632 2007-04-23  Paul Thomas  <pault@gcc.gnu.org>
2633
2634         PR fortran/31630
2635         * resolve.c (resolve_symbol): Allow resolution of formal
2636         namespaces nested within formal namespaces coming from modules.
2637
2638         PR fortran/31620
2639         * trans-expr.c (gfc_trans_assignment): Make the call to
2640         gfc_trans_zero_assign conditional on the lhs array ref being
2641         the only reference.
2642
2643 2007-04-23  Tobias Burnus  <burnus@net-b.de>
2644
2645         * primary.c (match_integer_constant): Mention -fno-range-check
2646         in the error message.
2647
2648 2007-04-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2649
2650         PR fortran/31495
2651         * scanner.c (load_line):  Remove check for comment after ampersand and
2652         adjust tracking of ampersand.
2653
2654 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2655
2656         * f95-lang.c (lang_tree_node): Use GENERIC_NEXT
2657         instead of checking GIMPLE_STMT_P in chain_next.
2658
2659 2007-04-17  Tobias Schlüter  <tobi@gcc.gnu.org>
2660
2661         * trans-types.h (gfc_packed): New enum.
2662         (gfc_get_nodesc_array_type): Change prototype to use new enum.
2663         * trans-types.c (gfc_get_nodesc_array): Use gfc_packed for
2664         argument packed.  Adapt all references to values accordingly.
2665         (gfc_sym_type): Use enum values in call to gfc_get_nodesc_array.
2666         (gfc_get_derived_type): Likewise.
2667         * trans-array.c (gfc_build_constant_array_constructor): Likewise.
2668         * trans-expr.c (gfc_get_interface_mapping_charlen): Changed packed
2669         argument to type gfc_packed.
2670         (gfc_add_interface_mapping): Use enum values in call to
2671         gfc_get_interface_mapping.
2672         * trans-decl.c (gfc_build_dummy_array_decl): Adapt to use enum
2673         values when determining packing.
2674
2675         * trans-decl.c (gfc_finish_decl): Remove unused second argument
2676         'init'.  Simplify code accordingly.  Remove calls to
2677         gfc_fatal_error in favor of gcc_assert.
2678         (create_function_arglist): Remove second argument from calls to
2679         gfc_finish-decl.
2680         (gfc_trans_dummy_character): Likewise.
2681
2682         * arith.h: Update copyright years.
2683         * dependency.h: Likewise.
2684         * gfortran.h: Likewise.
2685         * lang-specs.h: Likewise.
2686         * parse.h: Likewise.
2687         * symbol.c: Likewise.
2688         * trans.h: Likewise.
2689         * trans.c: Likewise.
2690         * trans-array.c: Likewise.
2691         * trans-common.c: Likewise.
2692         * trans-const.h: Likewise.
2693         * trans-const.c: Likewise.
2694         * trans-decl.c: Likewise.
2695         * trans-expr.c: Likewise.
2696         * trans-io.c: Likewise.
2697         * trans-openmp.c: Likewise.
2698         * trans-types.h: Likewise.
2699         * types.def: Likewise.
2700
2701 2007-04-17  Tobias Schlüter  <tobi@gcc.gnu.org>
2702
2703         PR fortran/31144
2704         * decl.c (gfc_sym_mangled_identifier): Use capital letters in name
2705         mangling.
2706         (gfc_sym_mangled_function_id): Likewise.
2707
2708 2007-04-15  Paul Thomas  <pault@gcc.gnu.org>
2709
2710         PR fortran/31204
2711         * primary.c (check_for_implicit_index): New function to check
2712         that a host associated variable is not an undeclared implied
2713         do loop index.
2714         (gfc_match_rvalue, match_variable): Use it and reset the
2715         implied_index attribute.
2716         * gfortran.h : Add the implied_index field to symbol_attribute.
2717         * match.c (gfc_match_iterator): Mark the iterator variable
2718         with the new attribute.
2719         * decl.c (build_sym): Reset the new attribute.
2720
2721 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
2722
2723         * gfc-internals.texi: Fix typos.
2724         * simplify.c: Fix a comment typo.
2725
2726 2007-04-14  Bernhard Fischer  <aldot@gcc.gnu.org>
2727
2728         * primary.c: Commentary typo fix; Add question about redundant (?)
2729         set.
2730
2731 2007-04-14  Paul Thomas  <pault@gcc.gnu.org>
2732
2733         PR fortran/29507
2734         PR fortran/31404
2735         * expr.c (scalarize_intrinsic_call): New function to
2736         scalarize elemental intrinsic functions in initialization
2737         expressions.
2738         (check_init_expr): Detect elemental intrinsic functions
2739         in initalization expressions and call previous.
2740
2741 2007-04-13  Tobias Burnus  <burnus@net-b.de>
2742
2743         PR fortran/31559
2744         * primary.c (match_variable): External functions
2745         are no variables.
2746
2747 2007-04-13  Paul Thomas  <pault@gcc.gnu.org>
2748
2749         PR fortran/31550
2750         * trans-types.c (copy_dt_decls_ifequal): Do not get pointer
2751         derived type components.
2752
2753 2007-04-13  Tobias Schlüter  <tobi@gcc.gnu.org>
2754
2755         PR fortran/18937
2756         * resolve.c: Include obstack.h and bitmap.h.  New variable
2757         labels_obstack.
2758         (code_stack): Add tail and reachable_labels fields.
2759         (reachable_labels): New function.
2760         (resolve_branch): Rework to use new fields in code_stack.
2761         (resolve_code): Call reachable_labels.
2762         (resolve_codes): Allocate and free labels_obstack.
2763
2764 2007-04-12  Tobias Schlüter  <tobi@gcc.gnu.org>
2765
2766         PR fortran/31250
2767         * decl.c (match_char_spec): Move check for negative CHARACTER
2768         length ...
2769         * resolve.c (resolve_charlen): ... here.
2770         (resolve_types): Resolve CHARACTER lengths earlier.
2771
2772 2007-04-12  Daniel Franke  <franke.daniel@gmail.com>
2773
2774         PR fortran/31234
2775         * intrinsic.texi (RANDOM_SEED, RANDOM_NUMBER): New.
2776
2777 2007-04-12  Tobias Schlüter  <tobi@gcc.gnu.org>
2778
2779         PR fortran/31266
2780         * primary.c (gfc_variable_attr): Don't copy string length if it
2781         doesn't make sense.
2782         * resolve.c (resolve_code): Clarify error message.
2783
2784         PR fortran/31471
2785         * decl.c (gfc_match_end): Also check for construct name in END
2786         FORALL and END WERE statements.
2787         * match.c (match_case_eos): Use uppercase for statement name in
2788         error message.
2789         (match_elsewhere): Construct name may appear iff construct has a
2790         name.
2791
2792         * trans-types.c: Update copyright years.  Reformat long comment
2793         explaining array descriptor format.  Remove obsolete mention of
2794         TYPE_SET.
2795
2796         * arith.c (gfc_arith_uplus): Rename to ...
2797         (gfc_arith_identity): ... this.
2798         (gfc_parentheses): New function.
2799         (gfc_uplus): Adapt to renamed function.
2800         * arith.h (gfc_parentheses): Add prototype.
2801         * expr.c (gfc_copy_expr): Deal with INTRINSIC_PARENTHESES.
2802         (simplifiy_intrinsic_op): Treat INTRINSIC_UPLUS separately from
2803         INTRINSIC_PARENTHESES.
2804
2805 2007-04-12  Tobias Burnus  <burnus@net-b.de>
2806
2807         PR fortran/31472
2808         * decl.c (match_attr_spec): Allow PRIVATE/PUBLIC
2809         attribute in type definitions.
2810         (gfc_match_private): Allow PRIVATE statement only
2811         in specification part of modules.
2812         (gfc_match_public): Ditto for PUBLIC.
2813         (gfc_match_derived_decl): Allow PRIVATE/PUBLIC attribute only in
2814         specificification part of modules.
2815
2816 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
2817
2818         PR fortran/31257
2819         * intrinsic.c (add_functions): Add ref. to gfc_resolve_achar.
2820         * intrinsic.h : Add prototype for gfc_resolve_achar.
2821         * iresolve.c (gfc_resolve_achar): New function.
2822
2823 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
2824
2825         PR fortran/30880
2826         * resolve.c (resolve_fl_variable): Set flag to 2 for automatic
2827         arrays.  Make condition for automatic array error explicit.
2828         If a dummy, no error on an INTENT(OUT) derived type.
2829
2830 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
2831
2832         PR fortran/30872
2833         * expr.c (find_array_element): Correct arithmetic for rank > 1.
2834
2835 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
2836
2837         PR fortran/31222
2838         * check.c (numeric_check): If an expresson has not got a type,
2839         see if it is a symbol for which a default type applies.
2840
2841 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
2842
2843         PR fortran/31214
2844         * trans-decl.c (gfc_get_symbol_decl): Allow unreferenced use
2845         associated symbols.
2846
2847 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
2848
2849         PR fortran/31293
2850         * symbol.c (gfc_check_function_type): New function.
2851         * gfortran.h : Add prototype for previous.
2852         * parse.c (parse_progunit): Call it after parsing specification
2853         statements.
2854
2855 2007-04-05  Paul Thomas  <pault@gcc.gnu.org>
2856
2857         PR fortran/31483
2858         * trans-expr.c (gfc_conv_function_call): Give a dummy
2859         procedure the correct type if it has alternate returns.
2860
2861 2007-04-05  Paul Thomas  <pault@gcc.gnu.org>
2862
2863         PR fortran/31292
2864         * decl.c (gfc_match_modproc): Go up to the top of the namespace
2865         tree to find the module namespace for gfc_get_symbol.
2866
2867 2007-04-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2868
2869         PR fortran/31304
2870         * fortran/gfortran.h (gfc_charlen_int_kind): New prototype.
2871         * fortran/trans-types.c (gfc_charlen_int_kind): New variable.
2872         (gfc_init_types): Define gfc_charlen_int_kind. 
2873         * fortran/trans.h (gfor_fndecl_string_repeat): Remove prototype.
2874         * fortran/trans-decl.c (gfor_fndecl_string_repeat): Delete.
2875         (gfc_build_intrinsic_function_decls): Don't set
2876         gfor_fndecl_string_repeat.
2877         * fortran/trans-intrinsic.c (gfc_conv_intrinsic_repeat): Rewrite
2878         so that we don't have to call a library function.
2879         * fortran/simplify.c (gfc_simplify_repeat): Perform the necessary
2880         checks on the NCOPIES argument, and work with arbitrary size
2881         arguments.
2882
2883 2007-03-31  Tobias Burnus  <burnus@net-b.de>
2884
2885         * intrinsic.c (add_functions): Fix name of dummy argument
2886           for new_line and exit intrinsic.
2887
2888 2007-03-31  Paul Thomas  <pault@gcc.gnu.org>
2889
2890         PR fortran/31160
2891         * gfortran.texi: Add a section for the %VAL, %REF and %LOC
2892         extensions.
2893
2894 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
2895
2896         * trans-types.c (gfc_signed_or_unsigned_type): Remove.
2897         (gfc_unsigned_type): Use get_signed_or_unsigned_type instead of
2898         gfc_signed_or_unsigned_type.
2899         (gfc_signed_type): Ditto.
2900         * trans-types.h (gfc_signed_or_unsigned_type): Remove.
2901         * f95-lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
2902
2903 2007-03-30  Tobias Schlüter  <tobi@gcc.gnu.org>
2904
2905         * symbol.c (gfc_find_gsymbol): Simplify, don't unconditionally
2906         descend into all branches.
2907
2908 2007-03-29  Tobias Schlüter  <tobi@gcc.gnu.org>
2909
2910         * intrinsic.c (conv_name): Let gfc_get_string handle the format.
2911         (find_conv): Compare pointers instead of calling strcmp.
2912         (find_sym): Likewise, but ensure that the compared pointer is in
2913         the global string table.
2914
2915 2007-03-28  Tobias Schlüter  <tobi@gcc.gnu.org>
2916
2917         * gfc-internals.texi: Fix output filename.  Merge type index into
2918         concept index.  Start documentation of gfc_code structure.
2919
2920 2007-03-26  Brooks Moses  <brooks.moses@codesourcery.com>
2921
2922         * gfc-internals.texi: New file,
2923         * Make-lang.in: Add rules to convert it to dvi, pdf, and info.
2924
2925 2007-03-26  Brooks Moses  <brooks.moses@codesourcery.com>
2926  
2927         * error.c (show_locus): Remove always-false test.
2928
2929 2007-03-26  Brooks Moses  <brooks.moses@codesourcery.com>
2930
2931         * lang.opt: Minor edits to descriptions.
2932
2933 2007-03-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2934
2935         PR fortran/30877
2936         * fortran/interface.c (check_operator_interface): Implement
2937         the standard checks on user operators extending intrinsic operators.
2938         * fortran/resolve.c (resolve_operator): If the ranks of operators
2939         don't match, don't error out but try the user-defined ones first.
2940
2941 2007-03-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2942
2943         PR fortran/30655
2944         * expr.c (check_dimension): Fix logic of comparisons.
2945
2946 2007-03-24  Paul Thomas  <pault@gcc.gnu.org>
2947
2948         PR fortran/31215
2949         * trans-expr.c (gfc_apply_interface_mapping_to_expr): Return
2950         int result that is non-zero if the expression is the function
2951         result.  Only the characteristics of the result expression
2952         can be used in a procedure interface, so simplify LEN in situ
2953         using its character length.
2954
2955         PR fortran/31209
2956         PR fortran/31200
2957         * trans-expr.c (gfc_conv_function_call): Do not use
2958         gfc_conv_expr_reference for actual pointer function with formal
2959         target because a temporary is created that does not transfer
2960         the reference correctly.  Do not indirect formal pointer
2961         functions since it is the function reference that is needed.
2962
2963 2007-03-24  Brooks Moses  <brooks.moses@codesourcery.com>
2964
2965         * gfortran.h: Edit comments on GFC_STD_*.
2966
2967 2007-03-23  Brooks Moses  <brooks.moses@codesourcery.com>
2968
2969         * invoke.texi: Misc. small typo fixes.
2970         (-Wcharacter-truncation): Add.
2971         (-Wnonstd-intrinsics): Correct spelling.
2972         (-std=): Edit.
2973         (-fintrinsic-modules-path): Add.
2974
2975 2007-03-23  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2976
2977         PR fortran/30834
2978         * arith.c (complex_pow): Rewrite to handle large power.
2979         (gfc_arith_power): Handle large power in the real and integer
2980         cases.
2981
2982 2007-03-22  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2983
2984         PR fortran/31262
2985         * trans-const.c (gfc_conv_mpz_to_tree): Allow integer constants
2986         larger than twice the width of a HOST_WIDE_INT.
2987
2988 2006-03-22  Paul Thomas  <pault@gcc.gnu.org>
2989
2990         PR fortran/31193
2991         * trans-intrinsic.c (gfc_size_in_bytes): Remove function.
2992         (gfc_conv_intrinsic_array_transfer): Remove calls to previous.
2993         Explicitly extract TREE_TYPEs for source and mold.  Use these
2994         to calculate length of source and mold, except for characters,
2995         where the se string_length is used.  For mold, the TREE_TYPE is
2996         recalculated using gfc_get_character_type_len so that the
2997         result is correctly cast for character literals and substrings.
2998         Do not use gfc_typenode_for_spec for the final cast.
2999
3000 2007-03-22  Tobias Schlüter  <tobi@gcc.gnu.org>
3001
3002         PR fortran/20897
3003         * decl.c (gfc_match_derived_decl): Reliably reject
3004         'doubleprecision' and 'doublecomplex' as type names.
3005
3006 2007-03-19  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3007
3008         PR fortran/31203
3009         * trans-expr.c (gfc_trans_init_string_length): Length should
3010         never be negative.
3011         (gfc_conv_function_call): Likewise.
3012
3013 2007-03-18  Paul Thomas  <pault@gcc.gnu.org>
3014
3015         PR fortran/30531
3016         PR fortran/31086
3017         * symbo.c : Add gfc_derived_types.
3018         (gfc_free_dt_list): Free derived type list gfc_derived_types.
3019         (gfc_free_namespace): Remove call to gfc_free_dt_list.
3020         (gfc_symbol_done_2): Call  gfc_free_dt_list.
3021         * gfortran.h : Declare gfc_derived_types to be external. Remove
3022         derived types field from gfc_namespace.
3023         * resolve.c (resolve_fl_derived): Refer to gfc_derived types
3024         rather than namespace derived_types.
3025         (resolve_fntype): Remove special treatment for module
3026         derived type functions.
3027         * trans-types.c (gfc_get_derived_type): Remove search for like
3028         derived types.  Finish by copying back end declaration to like
3029         derived types in the derived type list gfc_derived_types.
3030
3031         2007-03-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3032
3033         PR fortran/31120
3034         * trans-expr.c (gfc_conv_powi): Make n argument unsigned hwi.
3035         (gfc_conv_cst_int_power): Handle integer exponent with care,
3036         since it might be too large for us.
3037
3038 2007-03-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3039
3040         PR fortran/31184
3041         * invoke.texi: Fix typo.
3042
3043 2007-03-16  Tobias Burnus  <burnus@net-b.de>
3044
3045         * trans-decl.c (gfc_generate_function_code): Use all arguments of
3046           set_std.
3047
3048 2007-03-15  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3049
3050         * gfortran.h (gfc_option_t): Add flag_backtrace field.
3051         * lang.opt: Add -fbacktrace option.
3052         * invoke.texi: Document the new option.
3053         * trans-decl.c (gfc_build_builtin_function_decls): Add new
3054         option to the call to set_std.
3055         * options.c (gfc_init_options, gfc_handle_option): Handle the
3056         new option.
3057
3058 2007-03-15  Tobias Burnus  <burnus@gcc.gnu.org>
3059             Paul Thomas  <pault@gcc.gnu.org>
3060
3061         PR fortran/30922
3062         * decl.c (gfc_match_import): If the parent of the current name-
3063         space is null, try looking for an imported symbol in the parent
3064         of the proc_name interface.
3065         * resolve.c (resolve_fl_variable): Do not check for blocking of
3066         host association by a same symbol, if the symbol is in an
3067         interface body.
3068
3069 2007-03-15  Paul Thomas  <pault@gcc.gnu.org>
3070
3071         PR fortran/30879
3072         * decl.c (match_data_constant): Before going on to try to match
3073         a name, try to match a structure component.
3074
3075
3076         PR fortran/30870
3077         * resolve.c (resolve_actual_arglist): Do not reject a generic
3078         actual argument if it has a same name specific interface.
3079
3080         PR fortran/31163
3081         * trans-array.c (parse_interface): Do not nullify allocatable
3082         components if the symbol has the saved attribute.
3083
3084 2007-03-14  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3085
3086         * trans-array.c (gfc_trans_auto_array_allocation): Replace
3087         fold(convert()) by fold_convert().
3088         (gfc_duplicate_allocatable): Likewise.
3089         * trans-intrinsic.c (gfc_conv_intrinsic_dot_product): Use
3090         build_int_cst instead of converting an integer_zero_node
3091         to the final type.
3092
3093 2007-03-14  Jakub Jelinek  <jakub@redhat.com>
3094
3095         * module.c (mio_typespec): Don't look at ts->cl if not BT_CHARACTER.
3096
3097 2007-03-13  Brooks Moses  <brooks.moses@codesourcery.com>
3098
3099         PR fortran/30933
3100         PR fortran/30948
3101         PR fortran/30953
3102         * intrinsics.texi (CHDIR): Fix argument names, note
3103         that STATUS must be a default integer.
3104         (CTIME): Fix argument names, note that RESULT must
3105         be a default integer.
3106         (EXIT): Note that STATUS must be a default integer.
3107
3108 2007-03-13  Brooks Moses  <brooks.moses@codesourcery.com>
3109
3110         PR fortran/28068
3111         * intrinsic.texi: General whitespace cleanup, remove
3112         comment about missing intrinsics.
3113         (menu): Add lines for new entries listed below.
3114         (ACOSH): Mention specific function DACOSH, correct
3115         description phrasing.
3116         (ASINH): Mention specific function DASINH, correct
3117         description phrasing.
3118         (ATANH): Mention specific function DATANH, correct
3119         description phrasing.
3120         (COS): Add index entry for CCOS.
3121         (CPU_TIME): Correct "REAL" to "REAL(*)".
3122         (EXP): Add index entry for CEXP.
3123         (INT): Correct argument name to "A".
3124         (INT2): New entry.
3125         (INT8): New entry.
3126         (LONG): New entry.
3127         (MAX): Add index entries for specific variants.
3128         (MCLOCK): New entry.
3129         (MCLOCK8): New entry.
3130         (SECNDS): Adjust to a more standard form.
3131         (SECOND): New entry.
3132         (TIME): Add cross-reference to MCLOCK.
3133         (TIME8): Add cross-reference to MCLOCK8.
3134
3135 2007-03-11  Paul Thomas  <pault@gcc.gnu.org>
3136
3137         PR fortran/30883
3138         * parse.c (parse_interface): Use the default types from the
3139         formal namespace if a function or its result do not have a type
3140         after parsing the specification statements.
3141
3142 2007-03-08  Brooks Moses  <brooks.moses@codesourcery.com>
3143
3144         * intrinsic.texi: (ICHAR) Improve internal I/O note.
3145         (ACHAR): Reference it.
3146         (CHAR): Reference it.
3147         (IACHAR): Reference it.
3148
3149 2007-03-08  Brooks Moses  <brooks.moses@codesourcery.com>
3150
3151         * intrinsic.texi: (LINK) Document function form.
3152         (RENAME): Likewise.
3153         (SYMLNK): Likewise.
3154         (SYSTEM): Likewise.
3155         (UNLINK): Likewise.
3156
3157 2007-03-08  Brooks Moses  <brooks.moses@codesourcery.com>
3158
3159         * intrinsic.texi: minor typo fixes, removed prologue.
3160         (FSEEK): moved to correct place in alphabetical order.
3161
3162 2007-03-08  Daniel Franke  <franke.daniel@gmail.com>
3163
3164         PR fortran/30947
3165         * check.c (gfc_check_alarm_sub): Added check for default integer 
3166         kind of status argument.
3167         * iresolve.c (gfc_resolve_alarm_sub): Removed conversion of 
3168         status argument.
3169         * intrinsic.texi (ALARM): Extended documentation.
3170
3171 2007-03-08  Daniel Franke  <franke.daniel@gmail.com>
3172
3173         * intrinsic.texi (GERROR, ISATTY, TTYNAM): New.
3174         (ABORT, FLUSH, FNUM, IRAND, MALLOC, SIGNAL, SRAND): Fixed typo.
3175         * intrinsic.c (add_subroutines): Adjusted dummy argument names 
3176         of GERROR and TTYNAM.
3177
3178 2007-07-08  Tobias Burnus  <burnus@net-b.de>
3179
3180         * module.c (gfc_match_use): Support renaming of operators
3181         in USE statements.
3182         * gfortran.texi (Fortran 2003 Status): Document support of
3183         renaming of operators.
3184
3185 2007-07-08  Tobias Burnus  <burnus@net-b.de>
3186
3187         PR fortran/30973
3188         * module.c (read_module): Always import module name as symbol.
3189         (gfc_match_use): Disallow module name in the only clause of
3190         a use statement.
3191
3192 2007-03-08  Paul Thomas  <pault@gcc.gnu.org>
3193
3194         PR fortran/31011
3195         * expr.c (find_array_section): Correct arithmetic for section
3196         size.
3197
3198 2007-03-07  Brooks Moses  <brooks.moses@codesourcery.com>
3199
3200         * iresolve.c (gfc_resolve_ishftc): Correct s_kind value.
3201
3202 2007-03-06  Daniel Franke  <franke.daniel@gmail.com>
3203
3204         PR documentation/30950
3205         * intrinsic.texi (AND, CPU_TIME): Fix dummy argument names.
3206         (FREE): Fix call syntax.
3207
3208 2007-03-06  Brooks Moses  <brooks.moses@codesourcery.com>
3209
3210         * intrinsic.texi: Limit column widths to a total of .85.
3211
3212 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
3213
3214         * gfortran.texi (GFortran and G77): Rewrite completely.
3215
3216 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
3217
3218         * match.c (gfc_match_name): Expanded comment.
3219
3220 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
3221
3222         * gfortran.texi (Old-style kind specifications): Document
3223         special handling of old-style kind specifiers for COMPLEX.
3224         * decl.c (gfc_match_old_kind_spec): Document kind/bytesize
3225         assumptions for COMPLEX in comment.
3226
3227 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
3228
3229         PR 31050
3230         * gfortranspec.c (lang_specific_driver): Update program
3231         name and copyright date.
3232
3233 2007-03-03  Paul Thomas  <pault@gcc.gnu.org>
3234
3235         PR fortran/30882
3236         * check.c (dim_rank_check): The shape of subsections of
3237         assumed-size arrays is known.
3238
3239 2007-03-02  Paul Thomas  <pault@gcc.gnu.org>
3240             Tobias Burnus  <burnus@net-b.de>
3241
3242         PR fortran/30873
3243         * decl.c (gfc_match_entry): Remove erroneous entry result check.
3244
3245 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
3246
3247         * Make-lang.in: Add install-pdf target as copied from
3248         automake v1.10 rules.
3249
3250 2007-03-01  Tobias Burnus  <burnus@net-b.de>
3251
3252         PR fortran/30865
3253         * trans-intrinsic.c (gfc_conv_intrinsic_size): Compare pointers.
3254
3255 2007-02-28  Tobias Burnus  <burnus@net-b.de>
3256             Paul Thomas  <pault@gcc.gnu.org>
3257
3258         PR fortran/30888
3259         PR fortran/30887
3260         * resolve.c (resolve_actual_arglist): Allow by-value
3261         arguments and non-default-kind for %VAL().
3262         * trans-expr.c (conv_arglist_function): Allow
3263         non-default-kind for %VAL().
3264
3265 2007-02-28  Tobias Burnus  <burnus@net-b.de>
3266
3267         PR fortran/30968
3268         * primary.c (next_string_char): Correct reading a character
3269         after the delimiter.
3270         (match_string_constant): Print warning message only once.
3271
3272 2007-02-27  Richard Guenther  <rguenther@suse.de>
3273
3274         * trans-array.c (structure_alloc_comps): Use correct type
3275         for null pointer constant.
3276
3277 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
3278
3279         * gfortran.texi: Standardize title page, remove version number
3280         from copyright page.
3281
3282 2007-02-26  Thomas Koenig  <Thomas.Koenig@online.de>
3283             Paul Thomas  <pault@gcc.gnu.org>
3284
3285         PR fortran/30865
3286         * trans-intrinsic.c (gfc_conv_intrinsic_size):
3287         If dim is an optional argument, check for its
3288         presence and call size0 or size1, respectively.
3289
3290 2007-02-23  Paul Thomas <pault@gcc.gnu.org>
3291
3292         PR fortran/30660
3293         * resolve.c (has_default_initializer): New function.
3294         (resolve_fl_variable): Call has_default_initializer to determine if
3295         the derived type has a default initializer to its ultimate
3296         components.
3297
3298
3299 2007-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3300
3301         * options.c (set_default_std_flags): New function to consolidate
3302         setting the flags.
3303         (gfc_init_options): Use new function.
3304         (gfc_handle_option): Use new function.
3305
3306 2007-02-22  Brooks Moses  <brooks.moses@codesourcery.com>
3307
3308         * gfortran.texi (Old-style kind specifications): Document
3309         special handling of old-style kind specifiers for COMPLEX.
3310         * decl.c (gfc_match_old_kind_spec): Documented kind/bytesize
3311         assumptions in comment.
3312
3313 2007-02-21  Bernhard Fischer  <aldot@gcc.gnu.org>
3314
3315         * parse.c (next_free): Gooble spaces after OpenMP sentinel.
3316
3317 2007-02-20  Thomas Koenig  <Thomas.Koenig@online.de>
3318
3319         PR fortran/30869
3320         * match.c (gfc_match_iterator): Remove conflict between
3321         loop variable and pointer.
3322
3323 2007-02-20  Tobias Burnus  <burnus@net-b.de>
3324
3325         PR fortran/30522
3326         * symbol.c (gfc_add_volatile): Allow to set VOLATILE
3327           attribute for host-associated variables.
3328         * gfortran.h (symbol_attribute): Save namespace
3329           where VOLATILE has been set.
3330         * trans-decl.c (gfc_finish_var_decl): Move variable
3331           declaration to the top.
3332
3333 2007-02-20  Tobias Burnus  <burnus@net-b.de>
3334
3335         PR fortran/30783
3336         * resolve.c (resolve_symbol): Add character dummy VALUE check.
3337
3338 2007-02-19  Thomas Koenig  <Thomas.Koenig@online.de>
3339
3340         PR libfortran/30533
3341         * fortran/iresolve.c (gfc_resolve_maxloc): Remove coercion of
3342         argument to default integer.
3343         (gfc_resolve_minloc): Likewise.
3344
3345 2007-02-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3346
3347         PR fortran/30681
3348         * options.c (gfc_init_options): Relax warning level for obsolescent.
3349         * match.c (match_arithmetic_if): Change to obsolescent from deleted.
3350         (gfc_match_if): Same.
3351
3352 2007-02-18  Roger Sayle  <roger@eyesopen.com>
3353
3354         * trans-array.c (gfc_build_constant_array_constructor): When the
3355         shape of the constructor is known, use that to construct the
3356         gfc_array_spec.
3357         (gfc_trans_constant_array_constructor): Initialize the "info"
3358         information for all of the dimensions of the array constructor.
3359         (constant_array_constructor_loop_size): New function.
3360         (gfc_trans_array_constructor): Use it to determine whether a
3361         loop is suitable for "constant array constructor" optimization.
3362
3363         * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Use fold_build2
3364         instead of build2, to avoid conditions like "(a != b) != 0".
3365
3366 2007-02-18  Roger Sayle  <roger@eyesopen.com>
3367             Paul Thomas <pault@gcc.gnu.org>
3368
3369         PR fortran/30400
3370         * match.c (match_forall_iterator): Use gfc_match_expr instead
3371         of gfc_match_variable to match the iterator variable.  Return
3372         MATCH_NO if not a variable.  Remove the reset of the symbol's
3373         flavor in cleanup.
3374
3375 2007-02-16  Tobias Burnus  <burnus@net-b.de>
3376
3377         PR fortran/30793
3378         * trans-decl.c (gfc_generate_function_code): Do not initialize
3379         pointers to derived components.
3380
3381 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
3382             Brooks Moses  <brooks.moses@codesourcery.com>
3383             Lee Millward  <lee.millward@codesourcery.com>
3384
3385         * trans-expr.c (gfc_conv_power_op): Use build_call_expr.
3386         (gfc_conv_string_tmp): Likewise.
3387         (gfc_conv_concat_op): Likewise.
3388         (gfc_build_compare_string): Likewise.
3389         (gfc_conv_function_call): Use build_call_list instead of build3.
3390
3391         * trans-array.c (gfc_trans_allocate_array_storage): Use
3392         build_call_expr.
3393         (gfc_grow_array): Likewise.
3394         (gfc_trans_array_ctor_element): Likewise.
3395         (gfc_trans_array_constructor_value): Likewise.
3396         (gfc_array_allocate): Likewise.
3397         (gfc_array_deallocate): Likewise.
3398         (gfc_trans_auto_array_allocation): Likewise.
3399         (gfc_trans_dummy_array_bias): Likewise.
3400         (gfc_conv_array_parameter): Likewise.
3401         (gfc_trans_dealloc_allocated): Likewise.
3402         (gfc_duplicate_allocatable): Likewise.
3403
3404         * trans-openmp.c (gfc_trans_omp_barrier): Use build_call_expr.
3405         (gfc_trans_omp_flush): Likewise.
3406
3407         * trans-stmt.c (gfc_conv_elementel_dependencies): Use build_call_expr.
3408         (gfc_trans_pause): Likewise.
3409         (gfc_trans_stop): Likewise.
3410         (gfc_trans_character_select): Likewise.
3411         (gfc_do_allocate): Likewise.
3412         (gfc_trans_assign_need_temp): Likewise.
3413         (gfc_trans_pointer_assign_need_temp): Likewise.
3414         (gfc_trans_forall_1): Likewise.
3415         (gfc_trans_where_2): Likewise.
3416         (gfc_trans_allocate): Likewise.
3417         (gfc_trans_deallocate): Likewise.
3418
3419         * trans.c (gfc_trans_runtime_check): Use build_call_expr.
3420
3421         * trans-io.c (gfc_trans_open): Use build_call_expr.
3422         (gfc_trans_close): Likewise.
3423         (build_filepos): Likewise.
3424         (gfc_trans_inquire): Likewise.
3425         (NML_FIRST_ARG): Delete.
3426         (NML_ADD_ARG): Delete.
3427         (transfer_namelist_element): Use build_call_expr.
3428         (build_dt): Likewise.
3429         (gfc_trans_dt_end): Likewise.
3430         (transfer_expr): Likewise.
3431         (transfer_array-desc): Likewise.
3432
3433         * trans-decl.c (gfc_generate_function_code): Use build_call_expr.
3434         (gfc_generate_constructors): Likewise.
3435
3436         * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Use build_call_expr.
3437         (gfc_conv_intrinsic_fdate): Likewise.
3438         (gfc_conv_intrinsic_ttynam): Likewise.
3439         (gfc_conv_intrinsic_array_transfer): Likewise.
3440         (gfc_conv_associated): Likewise.
3441         (gfc_conv_intrinsic_si_kind): Likewise.
3442         (gfc_conv_intrinsic_trim): Likewise.
3443         (gfc_conv_intrinsic_repeat: Likewise.
3444         (gfc_conv_intrinsic_iargc): Likewise.
3445
3446 2007-02-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3447
3448         PR fortran/30779
3449         * scanner.c (gfc_next_char_literal): Add check for end of file after
3450         call to advance_line.
3451
3452 2007-02-14  Steven G. Kargl  <kargl@gcc.gnu.org>
3453
3454         PR fortran/30799
3455         * primary.c (match_logical_constant): Return MATCH_ERROR on invalid
3456         kind.
3457
3458 2007-02-14  Steven G. Kargl  <kargl@gcc.gnu.org>
3459
3460         * misc.c (gfc_typename): Fix potential buffer overflow.
3461
3462 2007-02-13  Paul Thomas  <pault@gcc.gnu.org>
3463
3464         PR fortran/30554
3465         * module.c (read_module): Set pointer_info to referenced if the
3466         symbol has no namespace.
3467
3468 2007-02-12  Nick Clifton  <nickc@redhat.com>
3469
3470         * lang.opt: Add Warning attribute to warning options.
3471
3472 2007-02-11  Daniel Franke  <franke.daniel@gmail.com>
3473
3474         * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
3475         (SLEEP): Added section and documentation.
3476
3477 2007-02-11  Tobias Schlüter  <tobi@gcc.gnu.org>
3478
3479         PR fortran/30478
3480         * decl.c (add_init_expr_to_sym): Remove ENUM specific code.
3481         (variable_decl): Likewise.  Rewrap comment.
3482         (match_attr_spec): Remove ENUM specific code.
3483         (gfc_match_enum): Fix typo in error message.
3484         (enumerator_decl): New function.
3485         (gfc_match_enumerator_def): Use enumerator_decl instead of
3486         variable_decl.  Adapt code accordingly.
3487
3488 2007-02-11  Paul Thomas  <pault@gcc.gnu.org>
3489
3490         PR fortran/30554
3491         * module.c (find_symtree_for_symbol): New function to return
3492         a symtree that is not a "unique symtree" given a symbol.
3493         (read_module): Do not automatically set pointer_info to
3494         referenced because this inhibits the generation of a unique
3495         symtree.  Recycle the existing symtree if possible by calling
3496         find_symtree_for_symbol.
3497
3498         PR fortran/30319
3499         * decl.c (add_init_expr_to_sym): Make new charlen for an array
3500         constructor initializer.
3501
3502 2007-02-10  Richard Henderson  <rth@redhat.com>, Jakub Jelinek  <jakub@redhat.com>
3503
3504         * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
3505         and __emutls_register_common.
3506         * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
3507         * trans-common.c (build_common_decl): Don't check have_tls.
3508         * trans-decl.c (gfc_finish_var_decl): Likewise.
3509         * types.def (BT_WORD, BT_FN_PTR_PTR): New.
3510         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
3511
3512 2007-02-09  Tobias Burnus  <burnus@net-b.de>
3513
3514         PR fortran/30512
3515         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc,
3516           gfc_conv_intrinsic_minmaxval): Use HUGE-1 for most negative integer.
3517
3518 2007-02-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3519
3520         PR fortran/30720
3521         * trans-array.c (gfc_trans_create_temp_array): Remove use of the
3522         function argument. Always generate code for negative extent.
3523         Simplify said code.
3524         * trans-array.h (gfc_trans_create_temp_array): Change prototype.
3525         * trans-expr.c (gfc_conv_function_call): Remove use of last argument
3526         of gfc_trans_create_temp_array.
3527         * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Likewise.
3528         * trans-stmt.c (gfc_conv_elemental_dependencies): Likewise.
3529
3530 2007-02-08  Roger Sayle  <roger@eyesopen.com>
3531
3532         * trans-stmt.c (gfc_trans_forall_1): Optimize the cases where the
3533         mask expression is a compile-time constant (".true." or ".false.").
3534
3535 2007-02-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3536
3537         PR fortran/30611
3538         * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Evaluate
3539         arguments only once. Generate check that NCOPIES argument is not
3540         negative.
3541
3542 2007-02-04  Steven G. Kargl <kargl@gcc.gnu.org>
3543
3544         PR fortran/30605
3545         * fortran/invoke.texi: Update documentation.
3546         * fortran/options.c (gfc_post_options): Deal with tabs with -std=f2003
3547         and -pedantic.
3548
3549 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
3550
3551         * trans-array.c: Fix a comment typo.
3552
3553 2007-02-03  Paul Thomas  <pault@gcc.gnu.org>
3554
3555         PR fortran/30514
3556         * array.c (match_array_element_spec): If the length of an array is
3557         negative, adjust the upper limit to make it zero length.
3558
3559         PR fortran/30660
3560         * resolve.c (pure_function, resolve_function): Initialize name to
3561         null to clear up build warnings.
3562         (resolve_fl_variable): Look at components explicitly to check for
3563         default initializer, rather than using gfc_default_initializer.
3564
3565 2007-02-02  Steven G. Kargl <kargl@gcc.gnu.org>
3566
3567         PR fortran/30683
3568         * resolve.c (resolve_generic_f): Check for non-NULL sym.
3569
3570 2007-02-02  Roger Sayle  <roger@eyesopen.com>
3571
3572         * trans.c (gfc_build_array_ref): Use STRIP_TYPE_NOPS to eliminate
3573         NON_LVALUE_EXPR nodes and useless type conversions.
3574
3575 2007-02-02  Paul Thomas  <pault@gcc.gnu.org>
3576
3577         PR fortran/30284
3578         PR fortran/30626
3579         * trans-expr.c (gfc_conv_aliased_arg): Remove static attribute
3580         from function and make sure that substring lengths are
3581         translated.
3582         (is_aliased_array): Remove static attribute.
3583         * trans.c : Add prototypes for gfc_conv_aliased_arg and
3584         is_aliased_array.
3585         * trans-io.c (set_internal_unit): Add the post block to the
3586         arguments of the function.  Use is_aliased_array to check if
3587         temporary is needed; if so call gfc_conv_aliased_arg.
3588         (build_dt): Pass the post block to set_internal_unit and
3589         add to the block after all io activiy is done.
3590
3591 2007-02-01  Roger Sayle  <roger@eyesopen.com>
3592
3593         * trans-array.c (gfc_conv_expr_descriptor): We don't need to use
3594         a temporary array to pass a constant non-character array constructor.
3595         Generalize the descriptor generation code to handle scalarizer
3596         "info" without an array reference.
3597
3598 2007-02-01  Roger Sayle  <roger@eyesopen.com>
3599
3600         * dependency.c (gfc_check_dependency) <EXPR_ARRAY>: Implement
3601         dependency checking for array constructors.
3602
3603 2007-02-01  Roger Sayle  <roger@eyesopen.com>
3604
3605         * trans-stmt.c (compute_overall_iter_number): Document function
3606         arguments.  Generalize "unconditional forall nest with constant
3607         bounds" optimization to eliminate unconditional inner loops with
3608         constant bounds.
3609
3610 2007-01-31  Tobias Burnus  <burnus@net-b.de>
3611
3612         PR fortran/30520
3613         * interface.c (compare_actual_formal): Check conformance between
3614           actual and VOLATILE dummy arguments.
3615         * symbol.c (gfc_add_volatile): Allow setting of VOLATILE
3616           multiple times in different scopes.
3617         * decl.c (gfc_match_volatile): Search symbol in host association.
3618
3619 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
3620
3621         * simplify.c, trans-array.c: Fix comment typos.
3622
3623 2007-01-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3624
3625         * invoke.texi (Code Gen Options): Fix abbreviation typo.
3626         * intrinsic.texi (ACCESS, LSHIFT, RSHIFT): Fix typos.
3627
3628 2007-01-30  Steve Ellcey  <sje@cup.hp.com>
3629
3630         PR fortran/30432
3631         * trans-types.c (gfc_get_function_type): Do not add void_type_node
3632         to empty arg list.
3633         * trans-decl.c (create_function_arglist): Change assert.
3634
3635 2007-01-29  Paul Thomas  <pault@gcc.gnu.org>
3636
3637         PR fortran/30554
3638         * module.c (read_module): If a symbol is excluded by an ONLY
3639         clause, check to see if there is a symtree already loaded. If
3640         so, attach the symtree to the pointer_info.
3641
3642 2007-01-28  Thomas Koenig  <Thomas.Koenig@online.de>
3643
3644         PR libfortran/30389
3645         * gfortran.h: Remove gfc_simplify_init_1.
3646         * arith.h: Remove third argument from gfc_compare_string.
3647         * arith.c (gfc_compare_expression): Remove third argument
3648         from call to gfc_compare_string.
3649         (gfc_compare_string): Remove third argument xcoll_table.
3650         Remove use of xcoll_table.
3651         * misc.c (gfc_init_1): Remove call to gfc_simplify_init_1.
3652         * simplify.c (ascii_table): Remove.
3653         (xascii_table): Likewise.
3654         (gfc_simplify_achar): ICE if extract_int fails.  Remove use of
3655         ascii_table.  Warn if -Wsurprising and value < 0 or > 127.
3656         (gfc_simplify_char): ICE if extract_int fails. Error if
3657         value < 0 or value > 255.
3658         (gfc_simplify_iachar): Remove use of xascii_table.
3659         Char values outside of 0..255 are an ICE.
3660         (gfc_simplify_lge): Remove use of xascii_table.
3661         (gfc_simplify_lgt): Likewise.
3662         (gfc_simplify_lle): Likewise.
3663         (gfc_simplify_llt): Likewise.
3664         (invert_table): Remove.
3665         (gfc_simplify_init_1): Remove.
3666
3667 2007-01-27  Roger Sayle  <roger@eyesopen.com>
3668
3669         * trans-stmt.c (forall_info): Replace the next_nest and outer
3670         fields that previously implemented a doubly-linked list with a
3671         single prev_nest field (singly-linked list).
3672         (gfc_trans_nested_forall_loop): The nested_forall_info argument
3673         now denotes the innermost FORALL in the loop nest.
3674         (compute_overall_iter_number): Use prev_nest instead of next_nest.
3675         (gfc_trans_forall_1): Link/cons the new "info" to the head of the
3676         nested_forall_info linked list.  Free the current "info" when done.
3677
3678 2007-01-27  Paul Thomas  <pault@gcc.gnu.org>
3679
3680         PR fortran/30407
3681         * trans-expr.c (gfc_conv_operator_assign): New function.
3682         * trans.h : Add prototype for gfc_conv_operator_assign.
3683         * trans-stmt.c (gfc_trans_where_assign): Add a gfc_symbol for
3684         a potential operator assignment subroutine.  If it is non-NULL
3685         call gfc_conv_operator_assign instead of the first assignment.
3686         ( gfc_trans_where_2): In the case of an operator assignment,
3687         extract the argument expressions from the code for the
3688         subroutine call and pass the symbol to gfc_trans_where_assign.
3689         resolve.c (resolve_where, gfc_resolve_where_code_in_forall,
3690         gfc_resolve_forall_body): Resolve the subroutine call for
3691         operator assignments.
3692
3693 2007-01-26  Steven Bosscher  <stevenb.gcc@gmail.com>
3694             Steven G. Kargl <kargl@gcc.gnu.org>
3695
3696         PR fortran/30278
3697         * fortran/io.c (next_char): Deal with backslash escaped characters.
3698         Issue warnings in non -std=gnu cases.
3699         * fortran/primary.c (next_string_char): Issue warnings in non
3700
3701 2007-01-26  Tobias Burnus  <burnus@net-b.de>
3702
3703         * lang-specs.h: Add support for .f03 and .F03 extensions.
3704         * gfortran.texi: Document .f03 extension.
3705         * options.c (form_from_filename): Recognize .f03.
3706
3707 2007-01-25  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3708
3709         PR fortran/30437
3710         * lang.opt (Wall): Remove RejectNegative.
3711         * options.c (gfc_handle_option): Wall can be disabled.
3712         (set_Wall): Add a parameter for disabling Wall.
3713         
3714 2007-01-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3715
3716         PR fortran/30532
3717         * scanner.c (load_line): Remove check fot ctrl-z and don't gobble.
3718         
3719 2007-01-23  Paul Thomas  <pault@gcc.gnu.org>
3720
3721         PR fortran/30481
3722         * match.c (gfc_match_namelist): Add check for assumed size character
3723         in namelist and provide error if found.
3724
3725 2007-01-21  Brooks Moses  <brooks.moses@codesourcery.com>
3726
3727         * intrinsic.texi (ACHAR): Added cross-references.
3728         (CHAR): Put cross-references in alphabetical order.
3729         (IACHAR): Added cross-references.
3730         (ICHAR): Added cross-references.
3731
3732 2007-01-20  Brooks Moses  <brooks.moses@codesourcery.com>
3733
3734         * intrinsic.texi: Edited all "Syntax" examples to a consistent form.
3735         (MAXVAL): Corrected description of result characteristics.
3736         (MINVAL): Same.
3737         (UMASK): Added documentation.
3738
3739 2007-01-20  Steven G. Kargl  <kargl@gcc.gnu.org>
3740
3741         * openmp.c, matchexp.c, module.c, scanner.c, resolve.c, st.c,
3742         parse.c, primary.c, options.c, misc.c, simplify.c: Next installment
3743         in the massive whitespace patch.
3744
3745 2007-01-20  Roger Sayle  <roger@eyesopen.com>
3746
3747         * module.c (mio_array_ref): The dimen_type fields of an array ref
3748         are an enumerated type and can't be read/written directly with a
3749         call to mio_integer.  Instead loop over and cast each element.
3750
3751 2007-01-20  Roger Sayle  <roger@eyesopen.com>
3752
3753         * dependency.c (gfc_full_array_ref_p): Check that ref->next is NULL,
3754         i.e. that the ARRAY_REF doesn't mention components.
3755         * trans-array.c (gfc_constant_array_constructor_p): Export external
3756         function renamed from constant_array_constructor_p.
3757         (gfc_build_constant_array_constructor): Export.
3758         (gfc_trans_array_constructor): Update call to the renamed function
3759         constant_array_constructor_p.
3760         * trans-array.h (gfc_constant_array_constructor_p): Prototype here.
3761         (gfc_build_constant_array_constructor): Likewise.
3762         * trans-expr.c (gfc_build_memcpy_call): New helper function split
3763         out from gfc_trans_array_copy.
3764         (gfc_trans_array_copy): Use gfc_build_memcpy_call.
3765         (gfc_trans_array_constructor_copy): New function to optimize
3766         assigning an entire array from a constant array constructor.
3767         (gfc_trans_assignment): Call gfc_trans_array_constructor_copy
3768         when appropriate.
3769
3770 2007-01-20  Roger Sayle  <roger@eyesopen.com>
3771
3772         * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
3773         implementation for the SIGN intrinsic with integral operands.
3774         (gfc_conv_intrinsic_minmax): Fix whitespace.
3775
3776 2007-01-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3777
3778         * gfortran.h (gfc_options_t): Add flag_allow_leading_underscore.
3779         * lang.opt: Add -fallow-leading-underscore.
3780         * match.c (gfc_match_name): Allow leading underscore in symbol
3781         name if -fallow-leading-underscore is used.
3782         * symbol.c (gfc_get_default_type): Add special case for symbol
3783         names beginning with an underscore.
3784         * trans-decl.c (gfc_get_extern_function_decl,
3785         gfc_build_intrinsic_function_decls): Add _gfortran prefix to
3786         library symbols selected_int_kind, selected_real_kind and 
3787         all specifics.
3788         * options.c (gfc_init_options, gfc_handle_option): Handle the
3789         new -fallow-leading-underscore option.
3790
3791 2007-01-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3792
3793         PR fortran/30446
3794         * options.c (gfc_handle_module_path_options): Path used in -J
3795         option is now added to the module search path.
3796
3797 2007-01-20  Richard Guenther  <rguenther@suse.de>
3798
3799         PR fortran/30223
3800         * f95-lang.c (gfc_init_builtin_functions): Provide cbrt and
3801         cexpi builtins if we have TARGET_C99_FUNCTIONS.  Provide
3802         sincos builtins if the target has sincos.
3803
3804 2007-01-19  Brooks Moses  <brooks.moses@codesourcery.com>
3805
3806         * intrinsic.texi (MATMUL): Corrected a typo.
3807         (MAX): Separated @var arguments.
3808         (MIN): Separated @var arguments.
3809
3810 2007-01-19  Brooks Moses  <brooks.moses@codesourcery.com>
3811
3812         * intrinsic.texi: general whitespace cleanup.
3813         (menu): Added TIME8, removed UNMASK.
3814         (AINT): Clarified argument requirement.
3815         (ANINT): Clarified argument requirement.
3816         (CEILING): Clarified argument requirement.
3817         (CHAR): Clarified argument requirement.
3818         (CMPLX): Clarified argument requirement.
3819         (DCMPLX): Clarified argument requirement.
3820         (FGET): Line rewrapping.
3821         (FLOOR): Clarified argument requirement.
3822         (GMTIME): Added documentation.
3823         (IAND): Added cross-reference.
3824         (IBCLR): Added cross-reference.
3825         (IBSET): Added cross-reference.
3826         (IEOR): Added cross-reference.
3827         (INT): Collapsed examples, clarified argument requirement.
3828         (IOR): Added cross-references.
3829         (LEN_TRIM): Corrected result kind.
3830         (LINK): Added cross-reference.
3831         (LLT): Removed "documentation pending".
3832         (LOGICAL): Added documentation.
3833         (LSHIFT): Added documentation.
3834         (LTIME): Added documentation.
3835         (MATMUL): Added documentation.
3836         (MAX): Added documentation.
3837         (MAXLOC): Added documentation.
3838         (MAXVAL): Added documentation.
3839         (MERGE): Added documentation.
3840         (MIN): Added documentation.
3841         (MINLOC): Added documentation.
3842         (MINVAL): Added documentation.
3843         (MVBITS): Moved to correct place, added documentation.
3844         (NOT): Added documentation.
3845         (PERROR): Added documentation.
3846         (RAN): Moved to correct place, added documentation.
3847         (REAL): Clarified argument requirement.
3848         (RENAME): Added documentation.
3849         (RSHIFT): Clarified argument requirement.
3850         (SIGN): Corrected table specification.
3851         (SYMLNK): Added documentation.
3852         (SYSTEM): Added documentation.
3853         (TIME): Added documentation.
3854         (TIME8): Added section and documentation.
3855         (UNMASK): Removed erroneous section.
3856
3857 2007-01-18  H.J. Lu  <hongjiu.lu@intel.com>
3858
3859         * trans-stmt.c (compute_overall_iter_number): Fix a typo.
3860
3861 2007-01-18  Roger Sayle  <roger@eyesopen.com>
3862
3863         * trans-expr.c (copyable_array_p): Consider user derived types without
3864         allocatable components to be copyable.
3865
3866 2007-01-18  Roger Sayle  <roger@eyesopen.com>
3867
3868         * trans-stmt.c (compute_overall_iter_number): Enhance to precompute
3869         the number of interations in unconditional FORALL nests with constant
3870         bounds.
3871
3872 2007-01-18  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3873             Tobias Burnus  <burnus@net-b.de>
3874
3875         PR libfortran/29649
3876         * gfortran.h (gfc_option_t): Add flag_dump_core.
3877         * lang.opt: Add -fdump-core option.
3878         * invoke.texi: Document the new options.
3879         * trans-decl.c (gfc_build_builtin_function_decls): Add new
3880           options to the call to set_std.
3881         * options.c (gfc_init_options, gfc_handle_option): Set the
3882           new options.
3883
3884 2007-01-17  Paul Thomas  <pault@gcc.gnu.org>
3885
3886         PR fortran/30476
3887         * module.c (load_generic_interfaces): Make the marking of the
3888         symbol as ambiguous conditional on the module names being
3889         different.
3890         (write_generic): Ensure that the generic interface has a
3891         non-NULL module field.
3892
3893 2007-01-16  Roger Sayle  <roger@eyesopen.com>
3894
3895         PR fortran/30404
3896         * trans-stmt.c (forall_info): Remove pmask field.
3897         (gfc_trans_forall_loop): Remove NVAR argument, instead assume that
3898         NVAR covers all the interation variables in the current forall_info.
3899         Add an extra OUTER parameter, which specified the loop header in
3900         which to place mask index initializations.
3901         (gfc_trans_nested_forall_loop): Remove NEST_FLAG argument.
3902         Change the semantics of MASK_FLAG to only control the mask in the
3903         innermost loop.
3904         (compute_overall_iter_number): Optimize the trivial case of a
3905         top-level loop having a constant number of iterations.  Update
3906         call to gfc_trans_nested_forall_loop.  Calculate the number of
3907         times the inner loop will be executed, not to size of the 
3908         iteration space.
3909         (allocate_temp_for_forall_nest_1): Reuse SIZE as BYTESIZE when
3910         sizeof(type) == 1.  Tidy up.
3911         (gfc_trans_assign_need_temp): Remove NEST_FLAG argument from calls
3912         to gfc_trans_nested_forall_loop.
3913         (gfc_trans_pointer_assign_need_temp): Likewise.
3914         (gfc_trans_forall_1): Remove unused BYTESIZE, TMPVAR, SIZEVAR and
3915         LENVAR local variables.  Split mask allocation into a separate
3916         hunk/pass from mask population.  Use allocate_temp_for_forall_nest
3917         to allocate the FORALL mask with the correct size.  Update calls
3918         to gfc_trans_nested_forall_loop.
3919         (gfc_evaluate_where_mask): Update call to
3920         gfc_trans_nested_forall_loop.
3921         (gfc_trans_where_2): Likewise.
3922
3923 2007-01-15  Paul Thomas  <pault@gcc.gnu.org>
3924
3925         PR fortran/28172
3926         * trans-stmt.c (gfc_trans_call): If it does not have one, get
3927         a backend_decl for an alternate return.
3928
3929         PR fortran/29389
3930         * resolve.c (pure_function): Statement functions are pure. Note
3931         that this will have to recurse to comply fully with F95.
3932
3933         PR fortran/29712
3934         * resolve.c (resolve_function): Only a reference to the final
3935         dimension of an assumed size array is an error in an inquiry
3936         function.
3937
3938         PR fortran/30283
3939         * resolve.c (resolve_function): Make sure that the function
3940         expression has a type.
3941
3942 2007-01-14  Paul Thomas  <pault@gcc.gnu.org>
3943
3944         PR fortran/30410
3945         * trans-decl.c (gfc_sym_mangled_function_id): Module, external
3946         symbols must not have the module name prepended.
3947
3948 2007-01-11  Thomas Koenig  <Thomas.Koenig@online.de>
3949
3950         PR libfortran/30415
3951         * iresolve.c (gfc_resolve_maxloc): If the rank
3952         of the return array is nonzero and we process an
3953         integer array smaller than default kind, coerce
3954         the array to default integer.
3955         * iresolve.c (gfc_resolve_minloc): Likewise.
3956
3957 2007-01-11  Brooks Moses  <brooks.moses@codesourcery.com>
3958
3959         * simplify.c: Update copyright to 2007.
3960         * scanner.c: Same.
3961
3962 2007-01-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3963
3964         PR fortran/30430
3965         * scanner.c (gfc_release_include_path): Free gfc_option.module_dir
3966         only once!
3967
3968 2007-01-09  Brooks Moses  <brooks.moses@codesourcery.com>
3969
3970         * simplify.c (gfc_simplify_ibclr): Fix POS comparison.
3971         (gfc_simplify_ibset): Same.
3972
3973 2007-01-09  Brooks Moses  <brooks.moses@codesourcery.com>
3974
3975         PR 30381
3976         PR 30420
3977         * simplify.c (convert_mpz_to_unsigned): New function.
3978         (convert_mpz_to_signed): New function, largely based on
3979         twos_complement().
3980         (twos_complement): Removed.
3981         (gfc_simplify_ibclr): Add conversions to and from an
3982         unsigned representation before bit-twiddling.
3983         (gfc_simplify_ibset): Same.
3984         (gfc_simplify_ishftc): Add checks for overly large
3985         constant arguments, only check the third argument if
3986         it's present, carry over high bits into the result as
3987         appropriate, and perform the final conversion back to
3988         a signed representation using the correct sign bit.
3989         (gfc_simplify_not): Removed unnecessary masking.
3990
3991 2007-01-09  Paul Thomas  <pault@gcc.gnu.org>
3992
3993         PR fortran/30408
3994         * resolve.c (resolve_code): Use the code->expr character length
3995         directly to set length of llen.
3996
3997 2007-01-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3998
3999         PR fortran/30408
4000         * lang.opt: Add Wcharacter_truncation option.
4001         * options.c (gfc_init_options): Initialize
4002         gfc_option.warn_character_truncation to zero.
4003         (gfc_handle_option): Add case for OPT_Wcharacter_truncation.
4004
4005 2007-01-08  Steven G. Kargl  <kargl@gcc.gnu.org>
4006
4007         * interface.c, intrinsic.c, gfortranspec.c, io.c, f95-lang.c,
4008         iresolve.c, match.c: Update Copyright years.  Whitespace.
4009
4010 2007-01-08  Richard Guenther  <rguenther@suse.de>
4011
4012         * trans-io.c (transfer_array_desc): Use build_int_cst instead
4013         of build_int_cstu.
4014
4015 2007-01-08  Roger Sayle  <roger@eyesopen.com>
4016
4017         * trans-array.c (constant_array_constructor_p): New function to
4018         determine whether an array constructor consists only of constant
4019         elements, and if so return it's size.
4020         (gfc_build_constant_array_constructor): Construct a statically
4021         initialized gfortran array for a given EXPR_ARRAY.
4022         (gfc_trans_constant_array_constructor): Efficiently scalarize
4023         a constant array constructor.
4024         (gfc_trans_array_constructor): Tidy up use of CONST_STRING.
4025         Special case scalarization of constant array constructors, all of
4026         whose elements are specified, using constant_array_constructor_p 
4027         and gfc_trans_constant_array_constructor.
4028         (gfc_conv_scalarized_array_ref): Check whetger info->offset is zero
4029         before adding it to index, to avoid creating a NON_LVALUE_EXPR.
4030
4031 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
4032
4033         gfortran.texi: Fix typos.
4034
4035 2007-01-07  Steven G. Kargl  <kargl@gcc.gnu.org>
4036
4037         * decl.c, dump-parse-tree.c, error.c, data.c, expr.c, dependency.c,
4038         convert.c: Update Copyright dates.  Fix whitespace.
4039
4040 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
4041
4042         * data.c (gfc_assign_data_value): Fix whitespace.
4043
4044 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
4045
4046         * trans-array.c (gfc_trans_create_temp_array, gfc_array_init_size):
4047         Commentary typo fix.
4048
4049 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
4050
4051         PR fortran/27698
4052         * match.c (gfc_match_name): Print diagnostics for invalid
4053         character in names.
4054
4055 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
4056
4057         * array.c: Fix whitespace in comment table.
4058
4059 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
4060
4061         * array.c, bbt.c, check.c: Update copyright years.  Whitespace.
4062
4063 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
4064
4065         * arith.c: Update copyright years.  Whitespace.
4066
4067 2007-01-05  Roger Sayle  <roger@eyesopen.com>
4068
4069         * trans-expr.c (gfc_trans_assignment_1): New subroutine to scalarize
4070         array assignments split out from gfc_trans_assignment.
4071         (gfc_trans_array_copy): New function to implement array to array
4072         copies via calls to __builtin_memcpy.
4073         (copyable_array_p): New helper function to identify an array of
4074         simple/POD types, that may be copied/assigned using memcpy.
4075         (gfc_trans_assignment): Use gfc_trans_array_copy to handle simple
4076         whole array assignments considered suitable by copyable_array_p.
4077         Invoke gfc_trans_assignment_1 to perform the fallback scalarization.
4078
4079 2007-01-05  Roger Sayle  <roger@eyesopen.com>
4080
4081         * trans-array.c (gfc_trans_array_constructor_value): Make the
4082         static const "data" array as TREE_READONLY.
4083         * trans-stmt.c (gfc_trans_character_select): Likewise.
4084
4085 2007-01-05  Roger Sayle  <roger@eyesopen.com>
4086
4087         * trans-array.c (gfc_conv_loop_setup): Test whether the loop
4088         stride is one, to avoid fold_build2 introducing a useless
4089         NON_LVALUE_EXPR node.
4090
4091 2007-01-05  Tobias Burnus  <burnus@net-b.de>
4092
4093         * symbol.c (check_conflict): Fix error message.
4094
4095 2007-01-05  Paul Thomas  <pault@gcc.gnu.org>
4096
4097         PR fortran/23232
4098         * decl.c (gfc_in_match_data, gfc_set_in_match_data): New
4099         functions to signal that a DATA statement is being matched.
4100         (gfc_match_data): Call gfc_set_in_match_data on entry and on
4101         exit.
4102         * gfortran.h : Add prototypes for above.
4103         * expr.c (check_init_expr): Avoid check on parameter or
4104         variable if gfc_in_match_data is true.
4105         (gfc_match_init_expr): Do not call error on non-reduction of
4106         expression if gfc_in_match_data is true.
4107
4108         PR fortran/27996
4109         PR fortran/27998
4110         * decl.c (gfc_set_constant_character_len): Add boolean arg to
4111         flag array constructor resolution.  Warn if string is being
4112         truncated.  Standard dependent error if string is padded. Set
4113         new arg to false for all three calls to
4114         gfc_set_constant_character_len.
4115         * match.h : Add boolean arg to prototype for
4116         gfc_set_constant_character_len.
4117         * gfortran.h : Add warn_character_truncation to gfc_options.
4118         * options.c (set_Wall): Set warn_character_truncation if -Wall
4119         is set.
4120         * resolve.c (resolve_code): Warn if rhs string in character
4121         assignment has to be truncated.
4122         * array.c (gfc_resolve_character_array_constructor): Set new
4123         argument to true for call to gfc_set_constant_character_len.
4124
4125 2007-01-05  Tobias Burnus  <burnus@net-b.de>
4126
4127         PR fortran/29624
4128         * interface.c (compare_parameter_intent): New function.
4129           (check_intents): Support pointer intents.
4130         * symbol.c (check_conflict): Support pointer intents,
4131           better conflict_std message.
4132         * expr.c (gfc_check_assign,gfc_check_pointer_assign):
4133           Support pointer intents.
4134         * resolve.c (resolve_deallocate_expr,resolve_allocate_expr):
4135           Support pointer intents.
4136
4137 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
4138
4139         PR 30371
4140         * check.c (gfc_check_kill_sub): Add checks for non-scalar
4141         arguments.
4142
4143 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
4144
4145         * intrinsic.texi: Minor cleanup, reflowing overlong
4146         paragraphs, and correcting whitespace.
4147
4148 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
4149
4150         * intrinsic.texi (LBOUND): Add documentation.
4151         (LGE): Add documentation.
4152         (LGT): Add documentation.
4153         (LINK): Add documentation.
4154         (LLE): Add documentation.
4155         (LLT): Add documentation.
4156         (LNBLNK): Add documentation.
4157         (UBOUND): Add documentation.
4158         (UNLINK): Add documentation.
4159
4160 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
4161
4162         * intrinsic.texi (IAND): Clarify argument specifications.
4163         (IBCLR): Add documentation.
4164         (IBITS): Add documentation.
4165         (IBSET): Add documentation.
4166         (IEOR): Add documentation.
4167         (IERRNO): Add documentation.
4168         (INDEX): Add documentation.
4169         (IOR): Add documentation.
4170         (ISHFT): Add documentation.
4171         (ISHFTC): Add documentation.
4172         (KILL): Add documentation.
4173         (LEN_TRIM): Add documentation.
4174
4175 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
4176
4177         PR 30235
4178         * interface.c (compare_actual_formal): check for
4179         alternate returns when iterating over non-present
4180         arguments.
4181
4182 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
4183
4184         * invoke.texi: Update manpage copyright to include 2007.
4185
4186 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
4187
4188         * gfortran.texi: Update copyright to include 2007.
4189         * intrinsic.texi: Update copyright to include 2007.
4190         * invoke.texi: Update copyright to include 2007.
4191
4192 2007-01-02  Tobias Burnus  <burnus@net-b.de>
4193             Jakub Jelinek  <jakub@redhat.com>
4194
4195         PR fortran/30276
4196         * scanner.c (open_included_file): Revert patch.
4197           (gfc_open_included_file): Support absolute pathnames.
4198           (gfc_open_intrinsic_module): Support absolute pathnames.
4199
4200 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
4201
4202         * gfortran.texi (GNU Fortran and GCC): Rewrite
4203
4204 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
4205
4206         * gfortran.texi (Introduction): Lower "Part I:
4207         Introduction" to a chapter, renumber Parts II and III to
4208         Parts I and II.
4209         * intrinsic.texi (Introduction): Rename to "Introduction
4210         to Intrinsics" to avoid conflict with the new chapter.
4211
4212 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
4213
4214         * intrinsic.texi (Introduction): Rewrite first paragraph.
4215
4216 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
4217
4218         * invoke.texi (OpenMP): Added index entry.
4219         * gfortran.texi (title page): Removed erroneous '*'.
4220
4221 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
4222
4223         * gfortran.texi (GFORTRAN_DEFAULT_RECL): Added units
4224         to description.
4225         (Extensions): Miscellaneous minor rewriting and copyediting.
4226         (BOZ-literal constants): Renamed from Hexadecimal constants.
4227         (Hollerith constants support): Added explanation and 
4228         suggestions for standard-conforming modern equivalents.
4229
4230 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
4231
4232         * intrinsic.texi: Improvements to index entries; change
4233         @findex entries to @cindex entries.
4234         * invoke.texi: Standardize and improve index entries.
4235         * gfortran.texi: Fix @code in one index entry.
4236
4237 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
4238
4239         * invoke.texi: Change @code-type macros to appropriate
4240         variants (@command, @option, etc.)
4241         * gfortran.texi: Same.
4242
4243 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
4244
4245         * intrinsic.texi: Various minor cleanups.
4246
4247 2007-01-02  Steven G. Kargl  <kargls@comcast.net>
4248
4249         * trans-intrinsic.c (gfc_conv_intrinsic_ibits): Fix call to
4250         build_int_cst.
4251
4252 2007-01-02  Tobias Burnus  <burnus@net-b.de>
4253
4254         PR fortran/30276
4255         * scanner.c (open_included_file): Support full-path filenames.
4256
4257 2007-01-02  Paul Thomas  <pault@gcc.gnu.org>
4258
4259         PR fortran/20896
4260         * interface.c (check_sym_interfaces): Remove call to
4261         resolve_global_procedure.
4262         gfortran.h : Remove prototype for resolve_global_procedure.
4263         resolve.c (resolve_global_procedure): Add static attribute
4264         to function declaration.
4265
4266 2007-01-01  Steven G. Kargl  <kargls@comcast.net>
4267
4268         * ChangeLog: Copy to ...
4269         * ChangeLog-2006: here.