OSDN Git Service

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