OSDN Git Service

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