OSDN Git Service

PR tree-optimization/37662
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
1 2008-09-30  Janus Weil  <janus@gcc.gnu.org>
2
3         PR fortran/36592
4         * symbol.c (check_conflict): If a symbol in a COMMON block is a
5         procedure, it must be a procedure pointer.
6         (gfc_add_in_common): Symbols in COMMON blocks may be variables or
7         procedure pointers.
8         * trans-types.c (gfc_sym_type): Make procedure pointers in COMMON
9         blocks work.
10
11 2008-09-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org
12
13         PR fortran/37498
14         * trans-io.c (build_dt): Revert previous patch..
15         * ioparm.def: Delete IOPARM_dt_f2003.
16
17 2008-09-25  Tobias Burnus  <burnus@net-b.de>
18
19         PR fortran/37504
20         * expr.c (gfc_check_pointer_assign): Allow assignment of
21         protected pointers.
22         * match.c (gfc_match_assignment,gfc_match_pointer_assignment):
23         Remove unreachable code.
24
25 2008-09-24  Tobias Burnus  <burnus@net-b.de>
26
27         * options.c (set_default_std_flags,gfc_init_options):
28         Add comment: keep in sync with libgfortran.
29
30 2008-09-24  Tobias Burnus  <burnus@net-b.de>
31
32         PR fortran/37626
33         * trans-array.c (gfc_trans_deferred_array): Don't auto-deallocate
34         result variables.
35
36 2008-09-23  Daniel Kraft  <d@domob.eu>
37
38         PR fortran/37588
39         * gfortran.h (gfc_compare_actual_formal): Removed, made private.
40         (gfc_arglist_matches_symbol): New method.
41         * interface.c (compare_actual_formal): Made static.
42         (gfc_procedure_use): Use new name of compare_actual_formal.
43         (gfc_arglist_matches_symbol): New method.
44         (gfc_search_interface): Moved code partially to new
45         gfc_arglist_matches_symbol.
46         * resolve.c (resolve_typebound_generic_call): Resolve actual arglist
47         before checking against formal and use new gfc_arglist_matches_symbol
48         for checking.
49         (resolve_compcall): Set type-spec of generated expression.
50
51 2008-09-23  Tobias Burnus  <burnus@net-b.de>
52
53         PR fortran/37580
54         * expr.c (gfc_check_pointer_assign): Add checks for pointer
55         remapping.
56
57 2008-09-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org
58
59         PR fortran/37498
60         * trans-io.c (gfc_build_io_library_fndecls): Bump pad size.
61         (build_dt): Set mask bit for IOPARM_dt_f2003.
62         * ioparm.def: Add IOPARM_dt_f2003.
63
64 2008-09-22  Janus Weil  <janus@gcc.gnu.org>
65
66         PR fortran/37486
67         * gfortran.h (gfc_option_t): New members flag_align_commons and
68         warn_align_commons. 
69         * lang.opt: New options falign-commons and Walign-commons.
70         * invoke.texi: Documentation for new options.
71         * options.c (gfc_init_options): Initialize new options.
72         (gfc_handle_options): Handle new options.
73         * trans-common.c (translate_common): Implement new options.
74         (gfc_trans_common): Set correct locus.
75
76 2008-09-21  Paul Thomas  <pault@gcc.gnu.org>
77
78         PR fortran/37583
79         * decl.c (scalarize_intrinsic_call): Both subroutines and
80         functions can give a true for get_proc_mame's last argument so
81         remove the &&gfc_current_ns->proc_name->attr.function.
82         resolve.c (resolve_actual_arglist): Add check for recursion by
83         reference to procedure as actual argument.
84
85 2008-09-21  Daniel Kraft  <d@domob.eu>
86
87         PR fortran/35846
88         * trans.h (gfc_conv_string_length): New argument `expr'.
89         * trans-expr.c (flatten_array_ctors_without_strlen): New method.
90         (gfc_conv_string_length): New argument `expr' that is used in a new
91         special case handling if cl->length is NULL.
92         (gfc_conv_subref_array_arg): Pass expr to gfc_conv_string_length.
93         * trans-array.c (gfc_conv_expr_descriptor): Ditto.
94         (gfc_trans_auto_array_allocation): Pass NULL as new expr.
95         (gfc_trans_g77_array), (gfc_trans_dummy_array_bias): Ditto.
96         (gfc_trans_deferred_array): Ditto.
97         (gfc_trans_array_constructor): Save and restore old values of globals
98         used for bounds checking.
99         * trans-decl.c (gfc_trans_dummy_character): Ditto.
100         (gfc_trans_auto_character_variable): Ditto.
101
102 2008-09-21  Daniel Kraft  <d@domob.eu>
103
104         * decl.c (match_procedure_in_type): Changed misleading error message
105         for not yet implemented PROCEDURE(interface) syntax.
106
107 2008-09-18  Paul Thomas  <pault@gcc.gnu.org>
108
109        PR fortran/35945
110        * resolve.c (resolve_fl_variable_derived):  Remove derived type
111        comparison for use associated derived types.  Host association
112        of a derived type will not arise if there is a local derived type
113        whose use name is the same.
114
115        PR fortran/36700
116        * match.c (gfc_match_call):  Use the existing symbol even if
117        it is a function.
118
119 2008-09-18  Daniel Kraft  <d@domob.eu>
120
121         PR fortran/37507
122         * trans.h (gfc_trans_runtime_error): New method.
123         (gfc_trans_runtime_error_vararg): New method.
124         (gfc_allocate_array_with_status): New argument `expr' for locus/varname.
125         (gfc_deallocate_array_with_status): Ditto.
126         * trans-array.h (gfc_array_deallocate): Ditto.
127         * trans.c (gfc_trans_runtime_error): New method.
128         (gfc_trans_runtime_error_vararg): New method, moved parts of the code
129         from gfc_trans_runtime_check here.
130         (gfc_trans_runtime_error_check): Moved code partly to new method.
131         (gfc_call_malloc): Fix tab-indentation.
132         (gfc_allocate_array_with_status): New argument `expr' and call
133         gfc_trans_runtime_error for error reporting to include locus.
134         (gfc_deallocate_with_status): Ditto.
135         * trans-stmt.c (gfc_trans_deallocate): Pass expr as new argument.
136         * trans-array.c (gfc_array_allocate): Ditto.
137         (gfc_array_deallocate): New argument `expr', passed on.
138         (gfc_trans_dealloc_allocated): Pass NULL for expr.
139         * trans-openmp.c (gfc_omp_clause_default): Ditto.
140
141 2008-09-18  Paul Thomas  <pault@gcc.gnu.org>
142
143         PR fortran/37274
144         PR fortran/36374
145         * module.c (check_for_ambiguous): New function to test loaded
146         symbol for ambiguity with fixup symbol.
147         (read_module): Call check_for_ambiguous.
148         (write_symtree): Do not write the symtree for symbols coming
149         from an interface body.
150
151         PR fortran/36374
152         * resolve.c (count_specific_procs ): New function to count the
153         number of specific procedures with the same name as the generic
154         and emit appropriate errors for and actual argument reference.
155         (resolve_assumed_size_actual): Add new argument no_formal_args.
156         Correct logic around passing generic procedures as arguments.
157         Call count_specific_procs from two locations.
158         (resolve_function): Evaluate and pass no_formal_args.
159         (resolve call): The same and clean up a bit by using csym more
160         widely.
161
162         PR fortran/36454
163         * symbol.c (gfc_add_access): Access can be updated if use
164         associated and not private.
165
166 2008-09-17  Jakub Jelinek  <jakub@redhat.com>
167
168         PR fortran/37536
169         * trans-stmt.c (gfc_trans_do): Optimize integer type non-simple
170         do loop initialization.
171
172 2008-09-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
173             Tobias Burnus  <burnus@net.b.de>
174
175         PR fortran/35840
176         * io.c (match_vtag): Add tag name to error message.
177         (match_out_tag): Cleanup whitespace.
178         (gfc_resolve_dt): Resolve id and async tags. 
179
180 2008-09-13  Daniel Kraft  <d@domob.eu>
181
182         PR fortran/35770
183         * primary.c (gfc_match_varspec): Added missing type-spec clearing
184         after wrong implicit character typing.
185
186 2008-09-12  Richard Guenther  <rguenther@suse.de>
187
188         * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Use
189         build_fold_addr_expr to properly mark the argument
190         addressable.
191
192 2008-09-11  Daniel Kraft  <d@domob.eu>
193
194         PR fortran/36214
195         * simplify.c (simplify_cmplx): Added linebreak to long line.
196         * target-memory.c (gfc_convert_boz): Fix indentation.
197         (gfc_interpret_float): Set mpfr precision to right value before
198         calling mpfr_init.
199
200 2008-09-10  H.J. Lu  <hongjiu.lu@intel.com>
201
202         * expr.c (find_array_element): Reformat comment.
203
204 2008-09-10  H.J. Lu  <hongjiu.lu@intel.com>
205
206         * expr.c (find_array_element): Reformat.
207
208 2008-09-10  Tobias Burnus  <burnus@net-b.de>
209
210         PR fortran/37420
211         * trans-decl.c (get_proc_pointer_decl): Fix -Wunused-variable.
212
213 2008-09-09  Daniel Kraft  <d@domob.eu>
214
215         PR fortran/37429
216         * resolve.c (expression_rank): Added assertion to guard against
217         EXPR_COMPCALL expressions.
218         (resolve_compcall): Set expression's rank from the target procedure's.
219
220 2008-09-09  Daniel Kraft  <d@domob.eu>
221
222         PR fortran/37411
223         * trans-array.c (gfc_conv_array_parameter): Added assertion that the
224         symbol has an array spec.
225
226 2008-09-08  Daniel Kraft  <d@domob.eu>
227
228         PR fortran/37199
229         * trans-expr.c (gfc_add_interface_mapping): Set new_sym->as.
230         (gfc_map_intrinsic_function): Added checks against NULL bounds in
231         array specs.
232
233 2008-09-08  Tobias Burnus  <burnus@net.b.de>
234
235         PR fortran/37400
236         * symbol.c (gfc_set_default_type): Copy char len.
237
238 2008-09-06  Steven G. Kargl  <kargls@comcast.net>
239
240         PR fortran/36153
241         * fortran/resolve.c (resolve_function): Shortcircuit for SIZE and
242         UBOUND if 2nd argument is KIND.
243
244 2008-09-06  Steven G. Kargl  <kargls@comcast.net>
245
246         PR fortran/33229
247         * resolve.c (resolve_function): An intrinsic subroutine should not be
248         called as a function.
249
250 2008-09-05  Daniel Kraft  <d@domob.eu>
251
252         PR fortran/35837
253         * resolve.c (resolve_types): Restore gfc_current_ns on exit.
254         * symbol.c (gfc_save_all): Removed blank line.
255
256 2008-09-05  Daniel Kraft  <d@domob.eu>
257
258         PR fortran/36746
259         * primary.c (gfc_match_rvalue): Removed logic to handle implicit
260         typing to a derived-type if a component reference is found.
261         (gfc_match_varspec): Moved it here.
262
263 2008-09-04  Richard Guenther  <rguenther@suse.de>
264
265         * trans-array.c (gfc_conv_array_parameter): Use correct types
266         in building COND_EXPRs.
267         * trans-expr.c (gfc_conv_missing_dummy): Likewise.
268         * trans-intrinsics.c (gfc_conv_intrinsic_merge): Likewise.
269
270 2008-09-04  Daniel Kraft  <d@domob.eu>
271
272         * PR fortran/37099
273         * expr.c (simplify_const_ref): Update expression's character length
274         when pulling out a substring reference.
275
276 2008-09-04  Ian Lance Taylor  <iant@google.com>
277
278         * symbol.c (generate_isocbinding_symbol): Compare
279         gfc_notification_std with ERROR rather than FAILURE.
280         * resolve.c (check_assumed_size_reference): Compare array type
281         with AR_FULL rather than DIMEN_ELEMENT.
282         (resolve_actual_arglist): Compare with EXPR_VARIABLE rather than
283         FL_VARIABLE.
284
285 2008-09-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
286
287         PR fortran/37228
288         * io.c (check_format): Allow specifying precision with g0 format.
289
290 2008-09-02  Daniel Kraft  <d@domob.eu>
291
292         * gfortran.h (struct gfc_namespace): New member `implicit_loc'.
293         (gfc_add_abstract): New method.
294         * decl.c (gfc_get_type_attr_spec): Match ABSTRACT attribute.
295         (gfc_match_derived_decl): Copy abstract attribute in derived symbol.
296         * dump-parse-tree.c (show_attr): Show ABSTRACT attribute as `ABSTRACT'
297         only to allow for ABSTRACT types.
298         * parse.c (parse_interface): Use new gfc_add_abstract.
299         * primary.c (gfc_match_structure_constructor): Check that no ABSTRACT
300         type is constructed.
301         * resolve.c (resolve_typespec_used): New method.
302         (resolve_fl_derived): Check type in respect to ABSTRACT attribute and
303         check that no component is of an ABSTRACT type.
304         (resolve_symbol): Check that no symbol is of an ABSTRACT type.
305         (resolve_types): Check IMPLICIT declarations for ABSTRACT types.
306         * symbol.c (gfc_merge_new_implicit): Remember loci of IMPLICIT's.
307         (gfc_add_abstract): New method.
308
309 2008-09-01  Daniel Kraft  <d@domob.eu>
310
311         PR fortran/37193
312         * module.c (read_module): Initialize use_only flag on used symbols.
313
314 2008-09-01  Daniel Kraft  <d@domob.eu>
315
316         * gfc-internals.texi (F2003 OOP), (Type-bound Procedures): New chapter
317         and section to document the internals of type-bound procedures.
318         (gfc_expr): Document EXPR_COMPCALL.
319         * gfortran.h (struct gfc_expr): Remove unused `derived' from compcall.
320         * dump-parse-tree.c (show_compcall): New method.
321         (show_expr): Call it for EXPR_COMPCALL.
322         (show_typebound), (show_f2k_derived): New methods.
323         (show_symbol): Call show_f2k_derived.
324         (show_code_node): Handle EXEC_COMPCALL.
325         * primary.c (gfc_match_varspec): Don't initialize removed `derived' in
326         primary->value.compcall.
327
328 2008-08-31  Richard Guenther  <rguenther@suse.de>
329
330         * trans-expr.c (gfc_trans_string_copy): Use the correct types
331         to compute slen and dlen.
332
333 2008-08-31  Daniel Kraft  <d@domob.eu>
334
335         * gfortran.h (enum gfc_statement): New entry `ST_GENERIC'.
336         (struct gfc_tbp_generic): New type.
337         (struct gfc_typebound_proc): Removed `target' and added union with
338         `specific' and `generic' members; new members `overridden',
339         `subroutine', `function' and `is_generic'.
340         (struct gfc_expr): New members `derived' and `name' in compcall union
341         member and changed type of `tbp' to gfc_typebound_proc.
342         (gfc_compare_interfaces), (gfc_compare_actual_formal): Made public.
343         * match.h (gfc_typebound_default_access): New global.
344         (gfc_match_generic): New method.
345         * decl.c (gfc_match_generic): New method.
346         (match_binding_attributes): New argument `generic' and handle it.
347         (match_procedure_in_type): Mark matched binding as non-generic.
348         * interface.c (gfc_compare_interfaces): Made public.
349         (gfc_compare_actual_formal): Ditto.
350         (check_interface_1), (compare_parameter): Use new public names.
351         (gfc_procedure_use), (gfc_search_interface): Ditto.
352         * match.c (match_typebound_call): Set base-symbol referenced.
353         * module.c (binding_generic): New global array.
354         (current_f2k_derived): New global.
355         (mio_typebound_proc): Handle IO of GENERIC bindings.
356         (mio_f2k_derived): Record current f2k-namespace in current_f2k_derived.
357         * parse.c (decode_statement): Handle GENERIC statement.
358         (gfc_ascii_statement): Ditto.
359         (typebound_default_access), (set_typebound_default_access): Removed.
360         (gfc_typebound_default_access): New global.
361         (parse_derived_contains): New default-access implementation and handle
362         GENERIC statements encountered.
363         * primary.c (gfc_match_varspec): Adapted to new gfc_typebound_proc
364         structure and removed check for SUBROUTINE/FUNCTION from here.
365         * resolve.c (extract_compcall_passed_object): New method.
366         (update_compcall_arglist): Use it.
367         (resolve_typebound_static): Adapted to new gfc_typebound_proc structure.
368         (resolve_typebound_generic_call): New method.
369         (resolve_typebound_call): Check target is a SUBROUTINE and handle calls
370         to GENERIC bindings.
371         (resolve_compcall): Ditto (check for target being FUNCTION).
372         (check_typebound_override): Handle GENERIC bindings.
373         (check_generic_tbp_ambiguity), (resolve_typebound_generic): New methods.
374         (resolve_typebound_procedure): Handle GENERIC bindings and set new
375         attributes subroutine, function and overridden in gfc_typebound_proc.
376         (resolve_fl_derived): Ensure extended type is resolved before the
377         extending one is.
378         * st.c (gfc_free_statement): Fix bug with free'ing EXEC_COMPCALL's.
379         * symbol.c (gfc_find_typebound_proc): Adapt for GENERIC changes.
380
381 2008-08-29  Jan Hubicka  <jh@suse.cz>
382         
383         * parse.c (parse_interface): Silence uninitialized var warning.
384
385 2008-08-29  Jakub Jelinek  <jakub@redhat.com>
386
387         * trans.h (struct lang_type): Add span.
388         (GFC_TYPE_ARRAY_SPAN): Define.
389         * trans-decl.c (gfc_get_symbol_decl): For subref array pointers,
390         copy TREE_STATIC from decl to span instead of setting it
391         unconditionally, set DECL_ARTIFICIAL, fix type of initializer
392         and set GFC_TYPE_ARRAY_SPAN on decl's type.
393         * trans-types.c (gfc_get_array_descr_info): If
394         GFC_TYPE_ARRAY_SPAN is non-NULL, use it as element size.
395
396         * trans-decl.c (check_constant_initializer,
397         gfc_emit_parameter_debug_info): New functions.
398         (gfc_generate_module_vars, gfc_generate_function_code): Emit
399         PARAMETERs and unreferenced variables with initializers into
400         debug info.
401
402         * gfortran.h (gfc_use_list): Add where field.
403         * module.c (use_locus): New static variable.
404         (gfc_match_use): Set it.
405         (gfc_use_module): Copy it to gfc_use_list's where field.
406         * trans-decl.c (gfc_generate_module_vars): Call gfc_trans_use_stmts.
407         (gfc_trans_use_stmts): Set backend locus before calling the debug
408         hook.  Allow non-VAR_DECLs to be created even for non-external
409         module.  Don't emit anything so far for renames from different
410         modules.
411
412         PR fortran/24790
413         * trans-decl.c (create_function_arglist): Set DECL_BY_REFERENCE on
414         PARM_DECLs with pointer or reference type.
415
416         * trans-decl.c (gfc_build_qualified_array): Build non-flat
417         array type for debug info purposes.
418
419         PR fortran/29635
420         PR fortran/23057
421         * f95-lang.c (gfc_init_ts): New function.
422         (LANG_HOOKS_INIT_TS): Define.
423         * gfortran.h (gfc_use_rename): New type, moved from module.c.
424         (gfc_get_use_rename): New macro, moved from module.c.
425         (gfc_use_list): New type.
426         (gfc_get_use_list): New macro.
427         (gfc_namespace): Add use_stmts field.
428         (gfc_free_use_stmts): New prototype.
429         * Make-lang.in (fortran/trans-decl.o): Depend on debug.h.
430         * module.c (gfc_use_rename, gfc_get_use_rename): Moved to
431         gfortran.h.
432         (gfc_use_module): Chain the USE statement info to
433         ns->use_stmts.
434         (gfc_free_use_stmts): New function.
435         * symbol.c (gfc_free_namespace): Call gfc_free_use_stmts.
436         * trans.h (struct module_htab_entry): New type.
437         (gfc_find_module, gfc_module_add_decl): New functions.
438         * trans.c (gfc_generate_module_code): Create NAMESPACE_DECL for
439         the module, adjust DECL_CONTEXTs of module procedures and
440         call gfc_module_add_decl for them.
441         * trans-common.c (build_common_decl): Set DECL_IGNORED_P
442         on the common variable.
443         (create_common): Set DECL_IGNORED_P for use associated vars.
444         * trans-decl.c: Include debug.h.
445         (gfc_get_symbol_decl): Set DECL_IGNORED_P on use_assoc vars from
446         modules.
447         (build_function_decl): Allow current_function_decl's context
448         to be a NAMESPACE_DECL.
449         (module_htab, cur_module): New variables.
450         (module_htab_do_hash, module_htab_eq, module_htab_decls_hash,
451         module_htab_decls_eq, gfc_find_module, gfc_module_add_decl): New
452         functions.
453         (gfc_create_module_variable): Adjust DECL_CONTEXTs of module
454         variables and types and call gfc_module_add_decl for them.
455         (gfc_generate_module_vars): Temporarily set cur_module.
456         (gfc_trans_use_stmts): New function.
457         (gfc_generate_function_code): Call it.
458         (gfc_generate_block_data): Set DECL_IGNORED_P on decl.
459         * trans-types.c (gfc_get_derived_type): Adjust DECL_CONTEXT
460         and TYPE_CONTEXT of module derived types.
461
462 2008-08-28  Daniel Kraft  <d@domob.eu>
463
464         * gfortran.h (enum expr_t): New value `EXPR_COMPCALL'.
465         (gfc_get_typebound_proc): New macro.
466         (struct gfc_expr): New union-member `compcall' for EXPR_COMPCALL.
467         (enum gfc_exec_op): New value `EXEC_COMPCALL'.
468         (gfc_find_typebound_proc): New argument.
469         (gfc_copy_ref), (gfc_match_varspec): Made public.
470         * decl.c (match_procedure_in_type): Use gfc_get_typebound_proc.
471         * expr.c (free_expr0), (gfc_copy_expr): Handle EXPR_COMPCALL.
472         (gfc_copy_ref): Made public and use new name.
473         (simplify_const_ref): Use new name of gfc_copy_ref.
474         (simplify_parameter_variable): Ditto.
475         (gfc_simplify_expr): gcc_unreachable for EXPR_COMPCALL.
476         * match.c (match_typebound_call): New method.
477         (gfc_match_call): Allow for CALL's to typebound procedures.
478         * module.c (binding_passing), (binding_overriding): New variables.
479         (expr_types): Add EXPR_COMPCALL.
480         (mio_expr): gcc_unreachable for EXPR_COMPCALL.
481         (mio_typebound_proc), (mio_typebound_symtree): New methods.
482         (mio_f2k_derived): Handle type-bound procedures.
483         * primary.c (gfc_match_varspec): Made public and parse trailing
484         references to type-bound procedures; new argument `sub_flag'.
485         (gfc_match_rvalue): New name and argument of gfc_match_varspec.
486         (match_variable): Ditto.
487         * resolve.c (update_arglist_pass): New method.
488         (update_compcall_arglist), (resolve_typebound_static): New methods.
489         (resolve_typebound_call), (resolve_compcall): New methods.
490         (gfc_resolve_expr): Handle EXPR_COMPCALL.
491         (resolve_code): Handle EXEC_COMPCALL.
492         (resolve_fl_derived): New argument to gfc_find_typebound_proc.
493         (resolve_typebound_procedure): Ditto and removed not-implemented error.
494         * st.c (gfc_free_statement): Handle EXEC_COMPCALL.
495         * symbol.c (gfc_find_typebound_proc): New argument `noaccess' and
496         implement access-checking.
497         * trans-expr.c (gfc_apply_interface_mapping_to_expr): gcc_unreachable
498         on EXPR_COMPCALL.
499         * trans-intrinsic.c (gfc_conv_intrinsic_bound): Add missing break.
500         * trans-openmp.c (gfc_trans_omp_array_reduction): Add missing
501         intialization of ref->type.
502
503 2008-08-28  Janus Weil  <janus@gcc.gnu.org>
504
505         PR fortran/37253
506         * module.c (ab_attribute,attr_bits,mio_symbol_attribute): Take care of
507         saving attr.procedure and attr.proc_ptr to the module file.
508
509 2008-08-25  Daniel Kraft  <d@domob.eu>
510
511         * gfortran.h (gfc_find_component): Add new arguments.
512         * parse.c (parse_derived_contains): Check if the derived-type containing
513         the CONTAINS section is SEQUENCE/BIND(C).
514         * resolve.c (resolve_typebound_procedure): Check for name collision with
515         components.
516         (resolve_fl_derived): Check for name collision with inherited
517         type-bound procedures.
518         * symbol.c (gfc_find_component): New arguments `noaccess' and `silent'.
519         (gfc_add_component): Adapt for new arguments.
520         * primary.c (match_varspec), (gfc_match_structure_constructor): Ditto.
521
522 2008-08-24  Tobias Burnus  <burnus@net-b.de>
523
524         PR fortran/37201
525         * decl.c (verify_bind_c_sym): Reject array/string returning
526         functions.
527
528 2008-08-24  Tobias Burnus  <burnus@net-b.de>
529
530         PR fortran/37201
531         * trans-expr.c (gfc_conv_function_call): Add string_length
532         for character-returning bind(C) functions.
533
534 2008-08-24  Daniel Kraft  <d@domob.eu>
535
536         * gfortran.h (gfc_typebound_proc):  New struct.
537         (gfc_symtree):  New member typebound.
538         (gfc_find_typebound_proc):  Prototype for new method.
539         (gfc_get_derived_super_type):  Prototype for new method.
540         * parse.h (gfc_compile_state):  New state COMP_DERIVED_CONTAINS.
541         * decl.c (gfc_match_procedure):  Handle PROCEDURE inside derived-type
542         CONTAINS section.
543         (gfc_match_end):  Handle new context COMP_DERIVED_CONTAINS.
544         (gfc_match_private):  Ditto.
545         (match_binding_attributes), (match_procedure_in_type):  New methods.
546         (gfc_match_final_decl):  Rewrote to make use of new
547         COMP_DERIVED_CONTAINS parser state.
548         * parse.c (typebound_default_access):  New global helper variable.
549         (set_typebound_default_access):  New callback method.
550         (parse_derived_contains):  New method.
551         (parse_derived):  Extracted handling of CONTAINS to new parser state
552         and parse_derived_contains.
553         * resolve.c (resolve_bindings_derived), (resolve_bindings_result):  New.
554         (check_typebound_override), (resolve_typebound_procedure):  New methods.
555         (resolve_typebound_procedures):  New method.
556         (resolve_fl_derived):  Call new resolving method for typebound procs.
557         * symbol.c (gfc_new_symtree):  Initialize new member typebound to NULL.
558         (gfc_find_typebound_proc):  New method.
559         (gfc_get_derived_super_type):  New method.
560
561 2008-08-23  Janus Weil  <janus@gcc.gnu.org>
562
563         * gfortran.h (gfc_component): Add field "symbol_attribute attr", remove
564         fields "pointer", "allocatable", "dimension", "access".
565         Remove functions "gfc_set_component_attr" and "gfc_get_component_attr".
566         * interface.c (gfc_compare_derived_types): Ditto.
567         * trans-array.c (gfc_array_allocate,structure_alloc_comps): Ditto.
568         * trans-expr.c (gfc_conv_component_ref,gfc_trans_subcomponent_assign,
569         gfc_conv_structure): Ditto.
570         * symbol.c (gfc_find_component,free_components,gfc_set_component_attr,
571         gfc_get_component_attr,verify_bind_c_derived_type,
572         generate_isocbinding_symbol): Ditto.
573         * decl.c (build_struct): Ditto.
574         * dump-parse-tree.c (show_components): Ditto.
575         * trans-stmt.c (gfc_trans_deallocate): Ditto.
576         * expr.c (gfc_check_assign,gfc_check_pointer_assign,
577         gfc_default_initializer): Ditto.
578         * module.c (mio_component): Ditto.
579         * trans-types.c (copy_dt_decls_ifequal,gfc_get_derived_type): Ditto.
580         * resolve.c (has_default_initializer,resolve_structure_cons,
581         gfc_iso_c_func_interface,find_array_spec,resolve_ref,
582         resolve_deallocate_expr,resolve_allocate_expr,resolve_fl_derived,
583         resolve_equivalence_derived): Ditto.
584         * trans-io.c (transfer_expr): Ditto.
585         * parse.c (parse_derived): Ditto.
586         * dependency.c (gfc_check_dependency): Ditto.
587         * primary.c (gfc_variable_attr): Ditto.
588
589 2008-08-23  Tobias Burnus  <burnus@net-b.de>
590
591         PR fortran/37076
592         * arith.c (gfc_arith_concat): Fix concat of kind=4 strings.
593
594 2008-08-23  Tobias Burnus  <burnus@net-b.de>
595
596         PR fortran/37025
597         * target-memory.c (gfc_interpret_character): Support
598         kind=4 characters.
599
600 2008-08-22  Daniel Kraft  <d@domob.eu>
601
602         PR fortran/30239
603         * symbol.c (gfc_add_type): Warn on -Wsurprising if a function-result
604         type is re-declared but neither -pedantic nor -std=f* is given and so
605         this is no error.
606         * invoke.texi (-Wsurprising): Document this new behaviour.
607
608 2008-08-22  Daniel Kraft  <d@domob.eu>
609
610         * gfortran.h (in_prefix): Removed from this header.
611         * match.h (gfc_matching_prefix): Moved and renamed from `in_prefix'.
612         * decl.c (in_prefix): Removed from here.
613         (gfc_match_prefix): Use new name of `gfc_matching_prefix'.
614         * symbol.c (gfc_check_symbol_typed): Ditto.
615         * expr.c (check_typed_ns): New helper variable.
616         (expr_check_typed_help): New helper method.
617         (gfc_expr_check_typed): Rewrote to use gfc_traverse_expr to do the
618         work, fixing a minor problem.
619         * match.c (gfc_matching_prefix): New variable.
620
621 2008-08-22  Daniel Kraft  <d@domob.eu>
622
623         PR fortran/32095
624         PR fortran/34228
625         * gfortran.h (in_prefix): New global.
626         (gfc_check_symbol_typed), (gfc_check_expr_typed): New methods.
627         * array.c (match_array_element_spec): Check that bounds-expressions
628         don't have symbols not-yet-typed in them.
629         * decl.c (var_element): Check that variable used is already typed.
630         (char_len_param_value): Check that expression does not contain
631         not-yet-typed symbols.
632         (in_prefix): New global.
633         (gfc_match_prefix): Record using `in_prefix' if we're at the moment
634         parsing a prefix or not.
635         * expr.c (gfc_expr_check_typed): New method.
636         * parse.c (verify_st_order): New argument to disable error output.
637         (check_function_result_typed): New helper method.
638         (parse_spec): Check that the function-result declaration, if given in
639         a prefix, contains no not-yet-typed symbols when the IMPLICIT rules are
640         parsed.
641         * symbol.c (gfc_check_symbol_typed): Check that a symbol already has
642         a type associated to it, otherwise use the IMPLICIT rules or signal
643         an error.
644
645 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
646
647         * f95-lang.c: Update all calls to pedwarn.
648
649 2008-08-18  Daniel Franke  <franke.daniel@gmail.com>
650
651         PR fortran/37032
652         * gfortran.texi: Document decision on include file handling in
653         preprocessed files.
654
655 2008-08-16  Tobias Burnus  <burnus@net-b.de>
656
657         PR fortran/36825
658         * libgfortran.h: Reduce GFC_MAX_DIMENSIONS to 7.
659
660 2008-08-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
661
662         PR fortran/35863
663         * io.c (gfc_match_open): Enable UTF-8 in checks.
664         * simplify.c (gfc_simplify_selected_char_kind): Enable iso_10646.
665
666 2008-08-14  Janus Weil  <janus@gcc.gnu.org>
667
668         PR fortran/36705
669         * symbol.c (check_conflict): Move conflict checks for (procedure,save)
670         and (procedure,intent) to resolve_fl_procedure.
671         * resolve.c (resolve_fl_procedure): Ditto.
672
673 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
674
675         PR 36901
676         * f95-lang.c (gfc_mark_addressable): Use "pedwarn (0," instead of
677         'pedwarn0'.
678
679 2008-08-09  Paul Thomas  <pault@gcc.gnu.org>
680
681         PR fortran/37011
682         * symbol.c (gfc_add_extension): New function.
683         * decl.c (gfc_get_type_attr_spec): Call it.
684         (gfc_match_derived_decl): Set symbol extension attribute from
685         attr.extension.
686         * gfortran.h : Add prototype for gfc_add_extension.
687
688 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
689
690         PR 28875
691         * options.c (set_Wall): Replace set_Wunused by warn_unused.
692
693 2008-08-08  Daniel Kraft  <d@domob.eu>
694
695         * gfortran.h (gfc_finalizer):  Replaced member `procedure' by two
696         new members `proc_sym' and `proc_tree' to store the symtree after
697         resolution.
698         (gfc_find_sym_in_symtree):  Made public.
699         * decl.c (gfc_match_final_decl):  Adapted for new member name.
700         * interface.c (gfc_find_sym_in_symtree):  Made public.
701         (gfc_extend_expr), (gfc_extend_assign):  Changed call accordingly.
702         * module.c (mio_finalizer), (mio_f2k_derived), (mio_full_f2k_derived):
703         New methods for module-file IO of f2k_derived.
704         (mio_symbol):  Do IO of f2k_derived namespace.
705         * resolve.c (gfc_resolve_finalizers):  Adapted for new member name and
706         finding the symtree for the symbol here.
707         * symbol.c (gfc_free_finalizer):  Adapted for new members.
708
709 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
710
711         * gfc-internals.texi: Update to GFDL 1.2.  Do not list GPL as
712         Invariant Section.
713         * gfortran.texi: Likewise.
714         * intrinsic.texi: Do not list GPL as Invariant Section.
715         * invoke.texi: Likewise.  Update copyright years.
716
717 2008-07-29  Paul Thomas  <pault@gcc.gnu.org>
718
719         * trans-expr.c (conv_parent_component_references): New function
720         to build missing parent references.
721         (gfc_conv_variable): Call it
722         * symbol.c (gfc_add_component): Check that component name in a
723         derived type extension does not appear in parent.
724         (gfc_find_component): For a derived type extension, check if
725         the component appears in the parent derived type by calling
726         self. Separate errors for private components and private types.
727         * decl.c (match_data_constant): Add extra arg to call to
728         gfc_match_structure_constructor.
729         (check_extended_derived_type): New function to check that a
730         parent derived type exists and that it is OK for exension.
731         (gfc_get_type_attr_spec): Add extra argument 'name' and return
732         it if extends is specified.
733         (gfc_match_derived_decl): Match derived type extension and
734         build a first component of the parent derived type if OK. Add
735         the f2k namespace if not present.
736         * gfortran.h : Add the extension attribute.
737         * module.c : Handle attribute 'extension'.
738         * match.h : Modify prototypes for gfc_get_type_attr_spec and
739         gfc_match_structure_constructor.
740         * primary.c (build_actual_constructor): New function extracted
741         from gfc_match_structure_constructor and modified to call self
742         iteratively to build derived type extensions, when f2k named
743         components are used.
744         (gfc_match_structure_constructor): Do not throw error for too
745         many components if a parent type is being handled. Use
746         gfc_find_component to generate errors for non-existent or
747         private components.  Iteratively call self for derived type
748         extensions so that parent constructor is built.  If extension
749         and components left over, throw error.
750         (gfc_match_rvalue): Add extra arg to call to
751         gfc_match_structure_constructor.
752
753         * trans-array.c (gfc_conv_resolve_dependencies): If lhs and rhs
754         are the same symbol, aliassing does not matter.
755
756 2008-07-29  Jan Hubicka  <jh@suse.cz>
757
758         * options.c (gfc_post_options): Do not set flag_no_inline.
759
760 2008-07-29  Daniel Kraft  <d@domob.eu>
761
762         PR fortran/36403
763         * trans-intrinsic.c (conv_generic_with_optional_char_arg):  New method
764         to append a string-length even if the string argument is missing, e.g.
765         for EOSHIFT.
766         (gfc_conv_intrinsic_function):  Call the new method for EOSHIFT, PACK
767         and RESHAPE.
768
769 2008-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
770
771         * gfortran.h (try): Remove macro.  Replace try with gfc_try
772         throughout.
773         * array.c: Likewise.
774         * check.c: Likewise.
775         * cpp.c: Likewise.
776         * cpp.h: Likewise.
777         * data.c: Likewise.
778         * data.h: Likewise.
779         * decl.c: Likewise.
780         * error.c: Likewise.
781         * expr.c: Likewise.
782         * interface.c: Likewise.
783         * intrinsic.c: Likewise.
784         * intrinsic.h: Likewise.
785         * io.c: Likewise.
786         * match.h: Likewise.
787         * parse.c: Likewise.
788         * parse.h: Likewise.
789         * resolve.c: Likewise.
790         * scanner.c: Likewise.
791         * simplify.c: Likewise.
792         * symbol.c: Likewise.
793         * trans-openmp.c: Likewise.
794         * trans-types.c: Likewise.
795
796 2008-07-28  Tobias Burnus  <burnus@net-b.de>
797
798         * Make-lang.in: Remove -Wno-* from fortran-warn.
799
800 2008-07-28  Richard Guenther  <rguenther@suse.de>
801
802         Merge from gimple-tuples-branch.
803
804         2008-07-18  Aldy Hernandez  <aldyh@redhat.com>
805
806         * trans-expr.c: Include gimple.h instead of tree-gimple.h.
807         * trans-array.c: Same.
808         * trans-openmp.c: Same.
809         * trans-stmt.c: Same.
810         * f95-lang.c: Same.
811         * trans-io.c: Same.
812         * trans-decl.c: Same.
813         * trans-intrinsic.c: Same.
814         * trans.c: Same.  Include tree-iterator.h.
815         * Make-lang.in (trans.o): Depend on tree-iterator.h
816
817         2008-07-14  Aldy Hernandez  <aldyh@redhat.com>
818
819         * trans-array.h (gfc_conv_descriptor_data_set_internal):
820         Rename to gfc_conv_descriptor_data_set.
821         (gfc_conv_descriptor_data_set_tuples): Remove.
822         * trans-array.c (gfc_conv_descriptor_data_get): Rename
823         from gfc_conv_descriptor_data_set_internal.
824         Remove last argument to gfc_add_modify.
825         (gfc_trans_allocate_array_storage): Rename gfc_add_modify_expr to
826         gfc_add_modify.
827         (gfc_trans_create_temp_array): Same.
828         (gfc_conv_array_transpose): Same.
829         (gfc_grow_array): Same.
830         (gfc_put_offset_into_var): Same.
831         (gfc_trans_array_ctor_element): Same.
832         (gfc_trans_array_constructor_subarray): Same.
833         (gfc_trans_array_constructor_value): Same.
834         (gfc_trans_scalarized_loop_end): Same.
835         (gfc_array_init_size): Same.
836         (gfc_array_allocate): Same.
837         (gfc_trans_array_bounds): Same.
838         (gfc_trans_auto_array_allocation): Same.
839         (gfc_trans_g77_array): Same.
840         (gfc_trans_dummy_array_bias): Same.
841         (gfc_conv_expr_descriptor): Same.
842         (structure_alloc_comps): Same.
843         * trans-expr.c: Same.
844         * trans-openmp.c (gfc_omp_clause_default_ctor): Same.
845         Rename gfc_conv_descriptor_data_set_tuples to
846         gfc_conv_descriptor_data_set.
847         (gfc_omp_clause_copy_ctor): Change build_gimple_modify_stmt to
848         build2_v.
849         (gfc_omp_clause_assign_op): Same.
850         (gfc_trans_omp_array_reduction): Rename gfc_add_modify_expr to
851         gfc_add_modify.
852         (gfc_trans_omp_atomic): Same.
853         (gfc_trans_omp_do): Same.  Change GIMPLE_MODIFY_STMT to MODIFY_EXPR.
854         Rename gfc_add_modify_stmt to gfc_add_modify.
855         * trans-stmt.c: Rename gfc_add_modify_expr to
856         gfc_add_modify.
857         * trans.c: Rename gfc_add_modify_expr to
858         gfc_add_modify.
859         (gfc_add_modify): Remove last argument.
860         Rename GIMPLE_MODIFY_STMT to MODIFY_EXPR.
861         * trans.h: Remove gfc_add_modify_expr, gfc_add_modify_stmt.
862         Add prototype for gfc_add_modify.
863         * f95-lang.c (union lang_tree_node): Rename GENERIC_NEXT to TREE_CHAIN.
864         * trans-decl.c: Rename gfc_add_modify_stmt to gfc_add_modify.
865         * trans-io.c: Same.
866         * trans-intrinsic.c: Same.
867
868         2008-02-25  Aldy Hernandez  <aldyh@redhat.com>
869
870         * Make-lang.in (fortran-warn): Add -Wno-format.
871
872         2008-02-19  Diego Novillo  <dnovillo@google.com>
873
874         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00804.html
875
876         * fortran/Make-lang.in (fortran-warn): Remove.
877
878         2007-11-22  Aldy Hernandez  <aldyh@redhat.com>
879
880         * trans-expr.c (gfc_trans_string_copy): Use "void *" when building a
881         memset.
882
883         2007-11-10  Aldy Hernandez  <aldyh@redhat.com>
884
885         * Make-lang.in (fortran-warn): Set to -Wno-format.
886         * trans.c (gfc_trans_code): Update comment to say GENERIC.
887         Call tree_annotate_all_with_locus instead of annotate_all_with_locus.
888
889 2008-07-27  Tobias Burnus  <burnus@net-b.de>
890
891         PR fortran/36132
892         PR fortran/29952
893         PR fortran/36909
894         * trans.c (gfc_trans_runtime_check): Allow run-time warning besides
895         run-time error.
896         * trans.h (gfc_trans_runtime_check): Update declaration.
897         * trans-array.c (gfc_trans_array_ctor_element,gfc_trans_array_bound_check,
898         gfc_conv_array_ref,gfc_conv_ss_startstride,gfc_trans_dummy_array_bias):
899         Updated gfc_trans_runtime_check calls.
900         (gfc_conv_array_parameter): Implement flag_check_array_temporaries,
901         fix packing/unpacking for nonpresent optional actuals to optional
902         formals.
903         * trans-array.h (gfc_conv_array_parameter): Update declaration.
904         * trans-expr.c (gfc_conv_substring,gfc_trans_arrayfunc_assign,
905         gfc_conv_function_call): Updated gfc_trans_runtime_check calls.
906         (gfc_conv_function_call): Update gfc_conv_array_parameter calls.
907         * trans-expr.c (gfc_trans_goto): Updated gfc_trans_runtime_check
908         calls.
909         * trans-io.c (set_string,gfc_conv_intrinsic_repeat): Ditto.
910         (gfc_conv_intrinsic_transfer,gfc_conv_intrinsic_loc): Same for
911         gfc_conv_array_parameter.
912         * trans-intrinsics.c (gfc_conv_intrinsic_bound): Ditto.
913         * trans-decl.c (gfc_build_builtin_function_decls): Add
914         gfor_fndecl_runtime_warning_at.
915         * lang.opt: New option fcheck-array-temporaries.
916         * gfortran.h (gfc_options): New flag_check_array_temporaries.
917         * options.c (gfc_init_options, gfc_handle_option): Handle flag.
918         * invoke.texi: New option fcheck-array-temporaries.
919
920 2008-07-24  Jan Hubicka  <jh@suse.cz>
921
922         * fortran/options.c (gfc_post_options): Remove flag_unline_trees code.
923
924 2008-07-24  Daniel Kraft  <d@domob.eu>
925
926         PR fortran/33141
927         * lang.opt (Wnonstd-intrinsics):  Removed option.
928         (Wintrinsics-std), (Wintrinsic-shadow):  New options.
929         * invoke.texi (Option Summary):  Removed -Wnonstd-intrinsics
930         from the list and added -Wintrinsics-std and -Wintrinsic-shadow.
931         (Error and Warning Options):  Documented the new options and removed
932         the documentation for -Wnonstd-intrinsics.
933         * gfortran.h (gfc_option_t):  New members warn_intrinsic_shadow and
934         warn_intrinsics_std, removed warn_nonstd_intrinsics.
935         (gfc_is_intrinsic):  Renamed from gfc_intrinsic_name.
936         (gfc_warn_intrinsic_shadow), (gfc_check_intrinsic_standard):  New.
937         * decl.c (match_procedure_decl):  Replaced gfc_intrinsic_name by
938         the new name gfc_is_intrinsic.
939         (warn_intrinsic_shadow):  New helper method.
940         (gfc_match_function_decl), (gfc_match_subroutine):  Call the new method
941         warn_intrinsic_shadow to check the just-parsed procedure.
942         * expr.c (check_init_expr):  Call new gfc_is_intrinsic to check whether
943         the function called is really an intrinsic in the selected standard.
944         * intrinsic.c (gfc_is_intrinsic):  Renamed from gfc_intrinsic_name and
945         extended to take into account the selected standard settings when trying
946         to find out whether a symbol is an intrinsic or not.
947         (gfc_check_intrinsic_standard):  Made public and extended.
948         (gfc_intrinsic_func_interface), (gfc_intrinsic_sub_interface):  Removed
949         the calls to check_intrinsic_standard, this check now happens inside
950         gfc_is_intrinsic.
951         (gfc_warn_intrinsic_shadow):  New method defined.
952         * options.c (gfc_init_options):  Initialize new warning flags to false
953         and removed intialization of Wnonstd-intrinsics flag.
954         (gfc_post_options):  Removed logic for Wnonstd-intrinsics flag.
955         (set_Wall):  Set new warning flags and removed Wnonstd-intrinsics flag.
956         (gfc_handle_option):  Handle the new flags and removed handling of the
957         old Wnonstd-intrinsics flag.
958         * primary.c (gfc_match_rvalue):  Replaced call to gfc_intrinsic_name by
959         the new name gfc_is_intrinsic.
960         * resolve.c (resolve_actual_arglist):  Ditto.
961         (resolve_generic_f), (resolve_unknown_f):  Ditto.
962         (is_external_proc):  Ditto.
963         (resolve_generic_s), (resolve_unknown_s):  Ditto.
964         (resolve_symbol):  Ditto and ensure for symbols declared INTRINSIC that
965         they are really available in the selected standard setting.
966
967 2008-07-24  Daniel Kraft  <d@domob.eu>
968
969         * match.c (gfc_match):  Add assertion to catch wrong calls trying to
970         match upper-case characters.
971
972 2008-07-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
973
974         PR fortran/29952
975         * gfortran.h:  Add "warn_array_temp" to gfc_option_t.
976         * lang.opt:  Add -Warray-temporaries.
977         * invoke.texi:  Document -Warray-temporaries
978         * trans-array.h (gfc_trans_create_temp_array):  Add argument of
979         type *locus.
980         (gfc_conv_loop_setup):  Likewise.
981         * trans-array.c (gfc_trans_create_temp_array):  If
982         -Warray-temporaries is given and locus is present, warn about
983         creation of array temporaries.
984         (gfc_trans_array_constructor_subarray):  Add locus to call
985         of gfc_conv_loop_setup.
986         (gfc_trans_array_constructor):  Add where argument.  Pass where
987         argument to call of gfc_trans_create_temp_array.
988         (gfc_add_loop_ss_code):  Add where argument.  Pass where argument
989         to recursive call of gfc_add_loop_ss_code and to call of
990         gfc_trans_array_constructor.
991         (gfc_conv_loop_setup):  Add where argument.  Pass where argument
992         to calls to gfc_add_loop_ss_code and to gfc_trans_create_temp_array.
993         (gfc_conv_expr_descriptor):  Pass location to call of
994         gfc_conv_loop_setup.
995         (gfc_conv_array_parameter):  If -Warray-temporaries is given,
996         warn about creation of temporary arrays.
997         * trans-expr.c (gfc_conv_subref_array_arg):  Add where argument
998         to call to gfc_conv_loop_setup.
999         (gfc_conv_function_call):  Add where argument to call to
1000         gfc_trans_creat_temp_array.
1001         (gfc_trans_subarray_assign):  Likewise.
1002         (gfc_trans_assignment_1):  Add where argument to call to
1003         gfc_conv_loop_setup.
1004         * trans-stmt.c (gfc_conv_elemental_dependencies):  Add where
1005         argument to call to gfc_trans_create_temp_array.
1006         (gfc_trans_call):  Add where argument to call to gfc_conv_loop_setup.
1007         (generate_loop_for_temp_to_lhs):  Likewise.
1008         (generate_loop_for_rhs_to_temp):  Likewise.
1009         (compute_inner_temp_size):  Likewise.
1010         (gfc_trans-pointer_assign_need_temp):  Likewise.
1011         (gfc_evaluate_where_mask):  Likewise.
1012         (gfc_trans_where_assign):  Likewise.
1013         (gfc_trans_where_3):  Likewise.
1014         * trans-io.c (transfer_srray_component):  Add where argument
1015         to function. Add where argument to call to gfc_conv_loop_setup.
1016         (transfer_expr):  Add where argument to call to
1017         transfer_array_component.
1018         (gfc_trans_transfer):  Add where expression to call to
1019         gfc_conv_loop_setup.
1020         * trans-intrinsic.c (gfc_conv_intrinsic_anyall):  Add
1021         where argument to call to gfc_conv_loop_setup.
1022         (gfc_conv_intrinsic_count):  Likewise.
1023         (gfc_conv_intrinsic_arith):  Likewise.
1024         (gfc_conv_intrinsic_dot_product):  Likewise.
1025         (gfc_conv_intrinsic_minmaxloc):  Likewise.
1026         (gfc_conv_intrinsic_minmaxval):  Likewise.
1027         (gfc_conv_intrinsic_array_transfer):  Warn about
1028         creation of temporary array.
1029         Add where argument to call to gfc_trans_create_temp_array.
1030         * options.c (gfc_init_options):  Initialize gfc_option.warn_array_temp.
1031         (gfc_handle_option):  Set gfc_option.warn_array_temp.
1032
1033 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1034
1035         PR 35058
1036         * f95-lang.c (gfc_mark_addressable): All calls to pedwarn changed.
1037
1038 2008-07-22  Daniel Kraft  <d@domob.eu>
1039
1040         PR fortran/29835
1041         * io.c (error_element), (format_locus):  New static globals.
1042         (unexpected_element):  Spelled out this message fully.
1043         (next_char):  Keep track of locus when not MODE_STRING.
1044         (next_char_not_space):  Remember last parsed element in error_element.
1045         (format_lex):  Fix two indentation errors.
1046         (check_format):  Use format_locus and possibly error_element for a
1047         slightly better error message on invalid format.
1048         (check_format_string):  Set format_locus to start of the string
1049         expression used as format.
1050
1051 2008-07-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1052
1053         * expr.c (gfc_check_pointer_assign): Fix typo in string.
1054         * io.c (check_format): Fix typo in string.  Fix comment typos.
1055         * parse.c (gfc_global_used): Likewise.
1056         * resolve.c (resolve_allocate_expr): Likewise.
1057         * symbol.c (gfc_set_default_type): Likewise.
1058         * arith.c: Fix typos in comments.
1059         * array.c: Likewise.
1060         * data.c: Likewise.
1061         * decl.c: Likewise.
1062         * dependency.c: Likewise.
1063         * f95-lang.c: Likewise.
1064         * gfortran.h: Likewise.
1065         * matchexp.c: Likewise.
1066         * module.c: Likewise.
1067         * primary.c: Likewise.
1068         * scanner.c: Likewise.
1069         * trans-array.c: Likewise.
1070         * trans-common.c: Likewise.
1071         * trans-decl.c: Likewise.
1072         * trans-expr.c: Likewise.
1073         * trans-intrinsic.c: Likewise.
1074         * trans-types.c: Likewise.
1075         * trans.c: Likewise.
1076         * trans.h: Likewise.
1077
1078 2008-07-19  Tobias Burnus  <burnus@net-b.de>
1079
1080         PR fortran/36795
1081         * matchexp.c (gfc_get_parentheses): Remove obsolete workaround,
1082         which caused the generation of wrong code.
1083
1084 2008-07-19  Tobias Burnus  <burnus@net-b.de>
1085
1086         PR fortran/36342
1087         * scanner.c (load_file): Add argument to destinguish between
1088         true filename and displayed filename.
1089         (include_line,gfc_new_file): Adapt accordingly.
1090
1091 2008-07-19  Tobias Burnus  <burnus@net-b.de>
1092
1093         * check.c (gfc_check_cshift,gfc_check_eoshift,gfc_check_unpack): Add rank
1094         checks for cshift's shift and eoshift's shift and boundary args.
1095         (gfc_check_unpack): Add rank and shape tests for unpack.
1096
1097 2008-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1098
1099         * gfortran.h (new): Remove macro.
1100         * array.c (gfc_append_constructor, match_array_list,
1101         gfc_match_array_constructor): Likewise.
1102         * bbt.c (insert, gfc_insert_bbt): Likewise.
1103         * decl.c (var_element, top_var_list, top_val_list, gfc_match_data,
1104         get_proc_name): Likewise.
1105         * expr.c (gfc_copy_actual_arglist): Likewise.
1106         * interface.c (compare_actual_formal, check_new_interface,
1107         gfc_add_interface): Likewise.
1108         * intrinsic.c gfc_convert_type_warn, gfc_convert_chartype):
1109         Likewise.
1110         * io.c (match_io_iterator, match_io_list): Likewise.
1111         * match.c (match_forall_header): Likewise.
1112         * matchexp.c (build_node): Likewise.
1113         * module.c (gfc_match_use): Likewise.
1114         * scanner.c (load_file): Likewise.
1115         * st.c (gfc_append_code): Likewise.
1116         * symbol.c (save_symbol_data, gfc_get_sym_tree, gfc_undo_symbols,
1117         gfc_commit_symbols): Likewise.
1118         * trans-common.c (build_field): Likewise.
1119         * trans-decl.c (gfc_finish_var_decl): Likewise.
1120         * trans-expr.c (gfc_free_interface_mapping,
1121         gfc_get_interface_mapping_charlen, gfc_add_interface_mapping,
1122         gfc_finish_interface_mapping,
1123         gfc_apply_interface_mapping_to_expr): Likewise.
1124         * trans.h (gfc_interface_sym_mapping): Likewise.
1125
1126 2008-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1127
1128         * gfortran.h (operator): Remove macro.
1129         (gfc_namespace, gfc_expr): Avoid C++ keywords.
1130         * arith.c (eval_intrinsic, eval_intrinsic_f2, eval_intrinsic_f3):
1131         Likewise.
1132         * decl.c (access_attr_decl): Likewise.
1133         * dependency.c (gfc_dep_compare_expr): Likewise.
1134         * dump-parse-tree.c (show_expr, show_uop, show_namespace):
1135         Likewise.
1136         * expr.c (gfc_copy_expr, gfc_type_convert_binary,
1137         simplify_intrinsic_op, check_intrinsic_op): Likewise.
1138         * interface.c (fold_unary, gfc_match_generic_spec,
1139         gfc_match_interface, gfc_match_end_interface,
1140         check_operator_interface, check_uop_interfaces,
1141         gfc_check_interfaces, gfc_extend_expr, gfc_extend_assign,
1142         gfc_add_interface, gfc_current_interface_head,
1143         gfc_set_current_interface_head): Likewise.
1144         * iresolve.c (gfc_resolve_dot_product, gfc_resolve_matmul):
1145         Likewise.
1146         * matchexp.c (gfc_get_parentheses, build_node): Likewise.
1147         * module.c (gfc_use_rename, gfc_match_use, find_use_name_n,
1148         number_use_names, mio_expr, load_operator_interfaces, read_module,
1149         write_operator, write_module): Likewise.
1150         * openmp.c (resolve_omp_atomic): Likewise.
1151         * resolve.c (resolve_operator, gfc_resolve_character_operator,
1152         gfc_resolve_uops): Likewise.
1153         * symbol.c (free_uop_tree, gfc_free_namespace): Likewise.
1154         * trans-expr.c (gfc_conv_expr_op): Likewise.
1155         * trans-openmp.c (gfc_trans_omp_atomic): Likewise.
1156
1157 2008-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1158
1159         * gfortran.h (protected): Remove macro.
1160         * dump-parse-tree.c (show_attr): Avoid C++ keywords.
1161         * expr.c (gfc_check_pointer_assign): Likewise.
1162         * interface.c (compare_parameter_protected): Likewise.
1163         * intrinsic.c (enum class, add_sym, add_sym_0, add_sym_1,
1164         add_sym_1s, add_sym_1m, add_sym_2, add_sym_2s, add_sym_3,
1165         add_sym_3ml, add_sym_3red, add_sym_3s, add_sym_4, add_sym_4s,
1166         add_sym_5s): Likewise.
1167         * match.c (gfc_match_assignment, gfc_match_pointer_assignment):
1168         Likewise.
1169         * module.c (mio_symbol_attribute): Likewise.
1170         * primary.c (match_variable): Likewise.
1171         * resolve.c (resolve_equivalence): Likewise.
1172         * symbol.c (check_conflict, gfc_add_protected, gfc_copy_attr):
1173         Likewise.
1174         * trans-types.c (gfc_get_array_type_bounds): Likewise.
1175
1176 2008-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1177
1178         * arith.c (eval_type_intrinsic0): Avoid C++ keywords.
1179         * gfortran.h (try, protected, operator, new): Likewise.
1180
1181 2008-07-17  Tobias Burnus  <burnus@net-b.de>
1182
1183         PR fortran/36825
1184         PR fortran/36824
1185         * array.c (gfc_match_array_spec): Fix array-rank check.
1186         * resolve.c (resolve_fl_derived): Fix constentness check
1187         for the array dimensions.
1188
1189 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1190
1191         * Make-lang.in (gfortranspec.o): Fix dependencies.
1192
1193 2008-07-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1194
1195         PR fortran/36725
1196         * io.c: Add error check for g0 edit descriptor followed by '.'.
1197
1198 2008-07-12  Daniel Kraft  <d@domob.eu>
1199
1200         * resolve.c (resolve_fl_derived):  Allow pointer components to empty
1201         derived types fixing a missing part of PR fortran/33221.
1202
1203 2008-07-10  Daniel Kraft  <d@domob.eu>
1204
1205         * gfc-internals.texi (section gfc_expr):  Created documentation about
1206         the gfc_expr internal data structure.
1207
1208 2008-07-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
1209
1210         PR fortran/36670
1211         * iresolve.c (gfc_resolve_product):  Set shape of return
1212         value from array.
1213         (gfc_resolve_sum):  Likewise.
1214
1215 2008-07-07  Jakub Jelinek  <jakub@redhat.com>
1216
1217         PR middle-end/36726
1218         * f95-lang.c (poplevel): Don't ever add subblocks to
1219         global_binding_level.
1220
1221 2008-07-02  Janus Weil  <janus@gcc.gnu.org>
1222             Tobias Burnus  <burnus@net-b.de>
1223             Paul Thomas  <pault@gcc.gnu.org>
1224
1225         PR fortran/32580
1226         * gfortran.h (struct gfc_symbol): New member "proc_pointer".
1227         * check.c (gfc_check_associated,gfc_check_null): Implement
1228         procedure pointers.
1229         * decl.c (match_procedure_decl): Ditto.
1230         * expr.c (gfc_check_pointer_assign,gfc_check_assign_symbol): Ditto.
1231         * interface.c (compare_actual_formal): Ditto.
1232         * match.h: Ditto.
1233         * match.c (gfc_match_pointer_assignment): Ditto.
1234         * parse.c (parse_interface): Ditto.
1235         * primary.c (gfc_match_rvalue,match_variable): Ditto.
1236         * resolve.c (resolve_fl_procedure): Ditto.
1237         * symbol.c (check_conflict,gfc_add_external,gfc_add_pointer,
1238         gfc_copy_attr,gen_fptr_param,build_formal_args): Ditto.
1239         * trans-decl.c (get_proc_pointer_decl,gfc_get_extern_function_decl,
1240         create_function_arglist): Ditto.
1241         * trans-expr.c (gfc_conv_variable,gfc_conv_function_val,
1242         gfc_conv_function_call,gfc_trans_pointer_assignment): Ditto.
1243
1244 2008-07-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
1245
1246         PR fortran/36590
1247         PR fortran/36681
1248         * iresolve.c (resolve_mask_arg):  Don't convert mask to
1249         kind=1 logical if it is of that type already.
1250
1251 2008-06-29  Thomas Koenig  <tkoenig@gcc.gnu.org>
1252
1253         PR fortran/36341
1254         * iresolve.c (gfc_resolve_matmul): Copy shapes
1255         from arguments.
1256
1257 2008-06-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1258
1259         * invoke.texi: Add documentation for runtime behavior of
1260         -fno-range-check.
1261
1262 2008-06-28  Daniel Kraft  <d@domob.eu>
1263
1264         * gfc-internals.texi (section gfc_code):  Extended documentation about
1265         gfc_code in the internal datastructures chapter including details about
1266         how IF, DO and SELECT blocks look like and an example for how the
1267         block-chaining works.
1268
1269 2008-06-25  Paul Thomas  <pault@gcc.gnu.org>
1270
1271         PR fortran/36526
1272         * interface.c (check_intents):  Correct error where the actual
1273         arg was checked for a pointer argument, rather than the formal.
1274
1275 2008-06-24  Paul Thomas  <pault@gcc.gnu.org>
1276
1277         PR fortran/34371
1278         * expr.c (gfc_check_assign):  Change message and locus for
1279         error when conform == 0.
1280
1281 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
1282
1283         PR fortran/36597
1284         * cpp.c (cpp_define_builtins): Change _OPENMP value to 200805.
1285
1286 2008-06-20  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1287             Tobias Burnus  <burnus@net-b.de>
1288
1289         PR fortran/34908
1290         PR fortran/36276
1291         * scanner.c (preprocessor_line): do not call gfc_free for
1292         current_file->filename if it differs from filename.
1293
1294 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1295
1296         * arith.c (hollerith2representation): Fix for -Wc++-compat.
1297         * array.c (gfc_get_constructor): Likewise.
1298         * decl.c (gfc_get_data_variable, gfc_get_data_value, gfc_get_data,
1299         create_enum_history, gfc_match_final_decl): Likewise.
1300         * error.c (error_char): Likewise.
1301         * expr.c (gfc_get_expr, gfc_copy_expr): Likewise.
1302         * gfortran.h (gfc_get_charlen, gfc_get_array_spec,
1303         gfc_get_component, gfc_get_formal_arglist, gfc_get_actual_arglist,
1304         gfc_get_namelist, gfc_get_omp_clauses, gfc_get_interface,
1305         gfc_get_common_head, gfc_get_dt_list, gfc_get_array_ref,
1306         gfc_get_ref, gfc_get_equiv, gfc_get_case, gfc_get_iterator,
1307         gfc_get_alloc, gfc_get_wide_string): Likewise.
1308         * interface.c (count_types_test): Likewise.
1309         * intrinsic.c (add_char_conversions, gfc_intrinsic_init_1):
1310         Likewise.
1311         * io.c (gfc_match_open, gfc_match_close, match_filepos, match_io,
1312         gfc_match_inquire, gfc_match_wait): Likewise.
1313         * match.c (gfc_match, match_forall_iterator): Likewise.
1314         * module.c (gfc_get_pointer_info, gfc_get_use_rename, add_fixup,
1315         add_true_name, parse_string, write_atom, quote_string,
1316         mio_symtree_ref, mio_gmp_real, write_common_0): Likewise.
1317         * options.c (gfc_post_options): Likewise.
1318         * primary.c (match_integer_constant, match_hollerith_constant,
1319         match_boz_constant, match_real_constant,
1320         gfc_get_structure_ctor_component, gfc_match_structure_constructor): Likewise.
1321         * scanner.c (gfc_widechar_to_char, add_path_to_list,
1322         add_file_change, load_line, get_file, preprocessor_line,
1323         load_file, unescape_filename, gfc_read_orig_filename): Likewise.
1324         * simplify.c (gfc_simplify_ibits, gfc_simplify_ishft,
1325         gfc_simplify_ishftc): Likewise.
1326         * symbol.c (gfc_get_st_label, gfc_get_namespace, gfc_new_symtree,
1327         gfc_get_uop, gfc_new_symbol, save_symbol_data, gfc_get_gsymbol):
1328         Likewise.
1329         * target-memory.c (gfc_target_interpret_expr): Likewise.
1330         * trans-const.c (gfc_build_wide_string_const): Likewise.
1331         * trans-expr.c (gfc_add_interface_mapping): Likewise.
1332         * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
1333         gfc_conv_intrinsic_int, gfc_conv_intrinsic_lib_function,
1334         gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_ctime,
1335         gfc_conv_intrinsic_fdate, gfc_conv_intrinsic_ttynam,
1336         gfc_conv_intrinsic_minmax, gfc_conv_intrinsic_minmax_char,
1337         gfc_conv_intrinsic_ishftc, gfc_conv_intrinsic_index_scan_verify,
1338         gfc_conv_intrinsic_merge, gfc_conv_intrinsic_trim): Likewise.
1339         * trans.c (gfc_get_backend_locus): Likewise.
1340         * trans.h (gfc_get_ss): Likewise.
1341
1342 2008-06-18  Daniel Kraft  <d@domob.eu>
1343
1344         PR fortran/36517, fortran/36492
1345         * array.c (gfc_resolve_character_array_constructor):  Call
1346         gfc_set_constant_character_len with changed length-chec argument.
1347         * decl.c (gfc_set_constant_character_len):  Changed array argument to
1348         be a generic length-checking argument that can be used for correct
1349         checking with typespec and in special cases where the should-be length
1350         is different from the target length.
1351         (build_struct):  Call gfc_set_constant_character_len with changed length
1352         checking argument and introduced additional checks for exceptional
1353         conditions on invalid code.
1354         (add_init_expr_to_sym), (do_parm):  Call gfc_set_constant_character_len
1355         with changed argument.
1356         * match.h (gfc_set_constant_character_len):  Changed third argument to
1357         int for the should-be length rather than bool.
1358
1359 2008-06-17  Daniel Kraft  <d@domob.eu>
1360
1361         PR fortran/36112
1362         * array.c (gfc_resolve_character_array_constructor):  Check that all
1363         elements with constant character length have the same one rather than
1364         fixing it if no typespec is given, emit an error if they don't.  Changed
1365         return type to "try" and return FAILURE for the case above.
1366         (gfc_resolve_array_constructor):  Removed unneeded call to
1367         gfc_resolve_character_array_constructor in this function.
1368         * gfortran.h (gfc_resolve_character_array_constructor):  Returns try.
1369         * trans-array.c (get_array_ctor_strlen):  Return length of first element
1370         rather than last element.
1371         * resolve.c (gfc_resolve_expr):  Handle FAILURE return from
1372         gfc_resolve_character_array_constructor.
1373
1374 2008-06-17  Paul Thomas  <pault@gcc.gnu.org>
1375
1376         PR fortran/34396
1377         * resolve.c (add_dt_to_dt_list):  New function.
1378         (resolve_fl_derived): Call new function for pointer components
1379         and when derived type resolved.
1380
1381 2008-06-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1382
1383         PR fortran/36515
1384         * trans-decl.c (gfc_generate_function_code): Add range_check to options
1385         array.
1386
1387 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1388
1389         * gfc-internals.texi: Expand TABs, drop indentation outside examples.
1390         * gfortran.texi: Likewise.
1391         * intrinsic.texi: Likewise.
1392         * invoke.texi: Likewise.
1393
1394 2008-06-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1395
1396         PR fortran/35863
1397         * trans-io.c (gfc_build_io_library_fndecls): Build declaration for
1398         transfer_character_wide which includes passing in the character kind to
1399         support wide character IO. (transfer_expr): If the kind == 4, create the
1400         argument and build the call.
1401         * gfortran.texi: Fix typo.
1402
1403 2008-06-13  Tobias Burnus  <burnus@net-b.de>
1404
1405         PR fortran/36476
1406         * decl.c (do_parm): Handle init expression for len=*.
1407
1408 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1409
1410         PR fortran/36462
1411         * trans-intrinsic.c (gfc_conv_intrinsic_index_scan_verify):
1412         Fix passing of the BACK= argument.
1413
1414 2008-06-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1415
1416         * cpp.c: Add copyright notice.
1417         * cpp.h: Add copyright notice.
1418
1419 2008-06-08  Janus Weil  <janus@gcc.gnu.org>
1420
1421         PR fortran/36459
1422         * decl.c (match_procedure_decl): Correctly recognize if the interface
1423         is an intrinsic procedure.
1424
1425 2008-06-08  Tobias Burnus  <burnus@net-b.de>
1426
1427         PR fortran/35830
1428         * resolve.c (resolve_symbol): Copy more attributes for
1429         PROCEDUREs with interfaces.
1430
1431 2008-06-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1432
1433         PR fortran/36420
1434         PR fortran/36422
1435         * io.c (check_format): Add new error message for zero width.
1436         Use new error message for FMT_A and with READ, FMT_G.  Allow
1437         FMT_G with WRITE except when -std=F95 and -std=F2003.
1438
1439 2008-06-07  Tobias Burnus  <burnus@net-b.de>
1440
1441         PR fortran/36437
1442         * intrinsic.c (add_functions): Implement c_sizeof.
1443         * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): Do not
1444         create unneeded variable in the scalar case.
1445         * intrinsic.texi: Add C_SIZEOF documentation.
1446
1447 2008-06-06  Tobias Burnus  <burnus@net-b.de>
1448
1449         * intrinsic.texi (BESSEL_J1): Fix BES(S)EL_J1 typo.
1450
1451 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1452
1453         * scanner.c (skip_free_comments, skip_fixed_comments): Handle tabs.
1454         * parse.c (next_free): Allow tab after !$omp.
1455         (decode_omp_directive): Handle !$omp task, !$omp taskwait
1456         and !$omp end task.
1457         (case_executable): Add ST_OMP_TASKWAIT.
1458         (case_exec_markers): Add ST_OMP_TASK.
1459         (gfc_ascii_statement): Handle ST_OMP_TASK, ST_OMP_END_TASK and
1460         ST_OMP_TASKWAIT.
1461         (parse_omp_structured_block, parse_executable): Handle ST_OMP_TASK.
1462         * gfortran.h (gfc_find_sym_in_expr): New prototype.
1463         (gfc_statement): Add ST_OMP_TASK, ST_OMP_END_TASK and ST_OMP_TASKWAIT.
1464         (gfc_omp_clauses): Add OMP_SCHED_AUTO to sched_kind,
1465         OMP_DEFAULT_FIRSTPRIVATE to default_sharing.  Add collapse and
1466         untied fields.
1467         (gfc_exec_op): Add EXEC_OMP_TASK and EXEC_OMP_TASKWAIT.
1468         * f95-lang.c (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
1469         LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP, LANG_HOOKS_OMP_CLAUSE_DTOR,
1470         LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
1471         * trans.h (gfc_omp_clause_default_ctor): Add another argument.
1472         (gfc_omp_clause_copy_ctor, gfc_omp_clause_assign_op,
1473         gfc_omp_clause_dtor, gfc_omp_private_outer_ref): New prototypes.
1474         * types.def (BT_ULONGLONG, BT_PTR_ULONGLONG,
1475         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
1476         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
1477         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
1478         BT_FN_VOID_PTR_PTR, BT_PTR_FN_VOID_PTR_PTR,
1479         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
1480         (BT_BOOL): Use integer type with BOOL_TYPE_SIZE rather
1481         than boolean_type_node.
1482         * dump-parse-tree.c (gfc_show_omp_node): Handle EXEC_OMP_TASK,
1483         EXEC_OMP_TASKWAIT, OMP_SCHED_AUTO, OMP_DEFAULT_FIRSTPRIVATE,
1484         untied and collapse clauses.
1485         (gfc_show_code_node): Handle EXEC_OMP_TASK and EXEC_OMP_TASKWAIT.
1486         * trans.c (gfc_trans_code): Handle EXEC_OMP_TASK and
1487         EXEC_OMP_TASKWAIT.
1488         * st.c (gfc_free_statement): Likewise.
1489         * resolve.c (gfc_resolve_blocks, resolve_code): Likewise.
1490         (find_sym_in_expr): Rename to...
1491         (gfc_find_sym_in_expr): ... this.  No longer static.
1492         (resolve_allocate_expr, resolve_ordinary_assign): Adjust caller.
1493         * match.h (gfc_match_omp_task, gfc_match_omp_taskwait): New
1494         prototypes.
1495         * openmp.c (resolve_omp_clauses): Allow allocatable arrays in
1496         firstprivate, lastprivate, reduction, copyprivate and copyin
1497         clauses.
1498         (omp_current_do_code): Made static.
1499         (omp_current_do_collapse): New variable.
1500         (gfc_resolve_omp_do_blocks): Compute omp_current_do_collapse,
1501         clear omp_current_do_code and omp_current_do_collapse on return.
1502         (gfc_resolve_do_iterator): Handle collapsed do loops.
1503         (resolve_omp_do): Likewise, diagnose errorneous collapsed do loops.
1504         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): Define.
1505         (gfc_match_omp_clauses): Handle default (firstprivate),
1506         schedule (auto), untied and collapse (n) clauses.
1507         (OMP_DO_CLAUSES): Add OMP_CLAUSE_COLLAPSE.
1508         (OMP_TASK_CLAUSES): Define.
1509         (gfc_match_omp_task, gfc_match_omp_taskwait): New functions.
1510         * trans-openmp.c (gfc_omp_private_outer_ref): New function.
1511         (gfc_omp_clause_default_ctor): Add outer argument.  For allocatable
1512         arrays allocate them with the bounds of the outer var if outer
1513         var is allocated.
1514         (gfc_omp_clause_copy_ctor, gfc_omp_clause_assign_op,
1515         gfc_omp_clause_dtor): New functions.
1516         (gfc_trans_omp_array_reduction): If decl is allocatable array,
1517         allocate it with outer var's bounds in OMP_CLAUSE_REDUCTION_INIT
1518         and deallocate it in OMP_CLAUSE_REDUCTION_MERGE.
1519         (gfc_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED
1520         for assumed-size arrays.
1521         (gfc_trans_omp_do): Add par_clauses argument.  If dovar is
1522         present in lastprivate clause and do loop isn't simple,
1523         set OMP_CLAUSE_LASTPRIVATE_STMT.  If dovar is present in
1524         parallel's lastprivate clause, change it to shared and add
1525         lastprivate clause to OMP_FOR_CLAUSES.  Handle collapsed do loops.
1526         (gfc_trans_omp_directive): Adjust gfc_trans_omp_do callers.
1527         (gfc_trans_omp_parallel_do): Likewise.  Move collapse clause to
1528         OMP_FOR from OMP_PARALLEL.
1529         (gfc_trans_omp_clauses): Handle OMP_SCHED_AUTO,
1530         OMP_DEFAULT_FIRSTPRIVATE, untied and collapse clauses.
1531         (gfc_trans_omp_task, gfc_trans_omp_taskwait): New functions.
1532         (gfc_trans_omp_directive): Handle EXEC_OMP_TASK and
1533         EXEC_OMP_TASKWAIT.
1534
1535 2008-06-04  Janus Weil  <janus@gcc.gnu.org>
1536
1537         PR fortran/36322
1538         PR fortran/36275
1539         * resolve.c (resolve_symbol): Correctly copy the interface for a
1540         PROCEDURE declaration.
1541
1542 2008-06-02  Janus Weil  <janus@gcc.gnu.org>
1543
1544         PR fortran/36361
1545         * symbol.c (gfc_add_allocatable,gfc_add_dimension,
1546         gfc_add_explicit_interface): Added checks.
1547         * decl.c (attr_decl1): Added missing "var_locus".
1548         * parse.c (parse_interface): Checking for errors.
1549
1550 2008-06-02  Daniel Kraft  <d@domob.eu>
1551
1552         * gfortran.h:  New statement-type ST_FINAL for FINAL declarations.
1553         (struct gfc_symbol):  New member f2k_derived.
1554         (struct gfc_namespace):  New member finalizers, for use in the above
1555         mentioned f2k_derived namespace.
1556         (struct gfc_finalizer):  New type defined for finalizers linked list.
1557         * match.h (gfc_match_final_decl):  New function header.
1558         * decl.c (gfc_match_derived_decl):  Create f2k_derived namespace on
1559         constructed symbol node.
1560         (gfc_match_final_decl):  New function to match a FINAL declaration line.
1561         * parse.c (decode_statement):  match-call for keyword FINAL.
1562         (parse_derived):  Parse CONTAINS section and accept FINAL statements.
1563         * resolve.c (gfc_resolve_finalizers):  New function to resolve (that is
1564         in this case, check) a list of finalizer procedures.
1565         (resolve_fl_derived):  Call gfc_resolve_finalizers here.
1566         * symbol.c (gfc_get_namespace):  Initialize new finalizers to NULL.
1567         (gfc_free_namespace):  Free finalizers list.
1568         (gfc_new_symbol):  Initialize new f2k_derived to NULL.
1569         (gfc_free_symbol):  Free f2k_derived namespace.
1570         (gfc_free_finalizer):  New function to free a single gfc_finalizer node.
1571         (gfc_free_finalizer_list):  New function to free a linked list of
1572         gfc_finalizer nodes.
1573
1574 2008-06-02  Daniel Franke  <franke.daniel@gmail.com>
1575
1576         PR fortran/36375
1577         PR fortran/36377
1578         * cpp.c (gfc_cpp_init): Do not initialize builtins if
1579         processing already preprocessed input.
1580         (gfc_cpp_preprocess): Finalize output with newline.
1581
1582 2008-05-31  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1583
1584         * intrinsic.texi: Revert wrong commit.
1585
1586 2008-05-31  Steven G. Kargl  <kargls@comcast.net>
1587
1588         * arith.c (gfc_arith_init_1): Remove now unused r and c variables.
1589         Cleanup numerical inquiry function initialization.
1590         (gfc_arith_done_1): Replace multiple mpfr_clear() invocations with
1591         a single mpfr_clears().
1592         (gfc_check_real_range): Re-arrange logic to eliminate multiple
1593         unnecessary branching and assignments.
1594         (gfc_arith_times): Use mpfr_clears() in preference to multiple
1595         mpfr_clear().
1596         (gfc_arith_divide): Ditto.
1597         (complex_reciprocal): Eliminate now unused variables a, re, im.
1598         Cleanup the mpfr abuse.  Use mpfr_clears() in preference to
1599         multiple mpfr_clear().
1600         (complex_pow): Fix comment whitespace.  Use mpfr_clears() in
1601         preference to multiple mpfr_clear().
1602         * simplify.c (gfc_simplify_and): Remove blank line.
1603         (gfc_simplify_atan2): Move error checking earlier to eliminate
1604         a now unnecessay gfc_free_expr().
1605         (gfc_simplify_bessel_j0): Remove unnecessary gfc_set_model_kind().
1606         (gfc_simplify_bessel_j1): Ditto.
1607         (gfc_simplify_bessel_jn): Ditto.
1608         (gfc_simplify_bessel_y0): Ditto.
1609         (gfc_simplify_bessel_y1): Ditto.
1610         (gfc_simplify_bessel_yn): Ditto. 
1611         (only_convert_cmplx_boz): Eliminate unnecessary duplicate code, and
1612         combine nested if statement rational expressions.
1613         (gfc_simplify_cos): Use mpfr_clears() in preference to multiple
1614         mpfr_clear().
1615         (gfc_simplify_exp): Ditto.
1616         (gfc_simplify_fraction): Move gfc_set_model_kind() to after the
1617         special case of 0.  Use mpfr_clears() in preference to multiple
1618         mpfr_clear().
1619         (gfc_simplify_gamma): Eliminate unnecessary gfc_set_model_kind().
1620         (gfc_simplify_lgamma): Ditto.
1621         (gfc_simplify_log10): Ditto.
1622         (gfc_simplify_log): Move gfc_set_model_kind () inside switch
1623         statement. Use mpfr_clears() in preference to multiple mpfr_clear().
1624         (gfc_simplify_mod):  Eliminate now unused variables quot, iquot,
1625         and term.  Simplify the mpfr magic.
1626         (gfc_simplify_modulo): Ditto.
1627         (gfc_simplify_nearest): Eliminate unnecessary gfc_set_model_kind().
1628         (gfc_simplify_scale): Use mpfr_clears() in preference to multiple
1629         mpfr_clear().
1630         (gfc_simplify_sin): Ditto
1631         (gfc_simplify_sqrt): Ditto
1632         (gfc_simplify_set_exponent):  Move gfc_set_model_kind() to after the
1633         special case of 0.  Use mpfr_clears() in preference to multiple
1634         mpfr_clear().
1635
1636 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
1637
1638         PR target/36348
1639         * Make-lang.in (F95_OBJS): Added dependency on FORTRAN_TARGET_OBJS.
1640
1641 2008-05-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1642
1643         * scanner.c (load_line): Add first_char argument. Don't call ungetc.
1644         (gfc_read_orig_filename): Adjust call to load_line. Don't call
1645         ungetc.
1646         (load_file): Adjust call to load_line.
1647
1648 2008-05-28  Janus Weil  <janus@gcc.gnu.org>
1649
1650         PR fortran/36325
1651         PR fortran/35830
1652         * interface.c (gfc_procedure_use): Enable argument checking for
1653         external procedures with explicit interface.
1654         * symbol.c (check_conflict): Fix conflict checking for externals.
1655         (copy_formal_args): Fix handling of arrays.
1656         * resolve.c (resolve_specific_f0, resolve_specific_s0): Fix handling
1657         of intrinsics.
1658         * parse.c (parse_interface): Non-abstract INTERFACE statement implies
1659         EXTERNAL attribute.
1660
1661 2008-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1662
1663         PR fortran/36319
1664         * intrinsic.c (gfc_convert_chartype): Don't mark conversion
1665         function as pure.
1666         * trans-array.c (gfc_trans_array_ctor_element): Divide element
1667         size by the size of one character to obtain length.
1668         * iresolve.c (gfc_resolve_cshift): Call the _char4 variant when
1669         appropriate.
1670         (gfc_resolve_eoshift): Likewise.
1671         * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Minor beautification.
1672         (gfc_conv_intrinsic_fdate): Minor beautification.
1673         (gfc_conv_intrinsic_ttynam): Minor beautification.
1674         (gfc_conv_intrinsic_minmax_char): Allow all character kinds.
1675         (size_of_string_in_bytes): New function.
1676         (gfc_conv_intrinsic_size): Call size_of_string_in_bytes for
1677         character expressions.
1678         (gfc_conv_intrinsic_sizeof): Likewise.
1679         (gfc_conv_intrinsic_array_transfer): Likewise.
1680         (gfc_conv_intrinsic_trim): Allow all character kinds. Minor
1681         beautification.
1682         (gfc_conv_intrinsic_repeat): Fix comment typo.
1683         * simplify.c (gfc_convert_char_constant): Take care of conversion
1684         of array constructors.
1685
1686 2008-05-27  Tobias Burnus  <burnus@net-b.de>
1687
1688         PR fortran/36316
1689         * trans-array.c (gfc_set_loop_bounds_from_array_spec):
1690         Add missing fold_convert.
1691
1692 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
1693
1694         * fortran/cpp.c (cpp_define_builtins): Remove usage of TARGET_* macros,
1695         added FIXME instead.
1696
1697 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
1698
1699         PR fortran/18428
1700         * lang.opt (A, C, CC, D, E, H, P, U, cpp, d, fworking-directory,
1701         imultilib, iprefix, iquote, isysroot, isystem, nocpp, nostdinc,
1702         o, undef, v): New options.
1703         * options.c (gfc_init_options): Also initialize preprocessor
1704         options.
1705         (gfc_post_options): Also handle post-initialization of preprocessor
1706         options.
1707         (gfc_handle_option): Check if option is a preprocessor option.
1708         If yes, let gfc_cpp_handle_option() handle the option.
1709         * lang-specs.h: Reorganized to handle new options.
1710         * scanner.c (gfc_new_file): Read temporary file instead of
1711         input source if preprocessing is enabled.
1712         * f95-lang.c (gfc_init): Initialize preprocessor.
1713         (gfc_finish): Clean up preprocessor.
1714         * cpp.c: New.
1715         * cpp.h: New.
1716         * Make-lang.in: Added new objects and dependencies.
1717         * gfortran.texi: Updated section "Preprocessing and
1718         conditional compilation".
1719         * invoke.texi: Added new section "Preprocessing Options",
1720         listed and documented the preprocessing options handled
1721         by gfortran.
1722
1723 2008-05-25  Tobias Burnus  <burnus@net-b.de>
1724
1725         PR fortran/32600
1726         * trans-expr.c (gfc_conv_function_call): Remove library
1727         call for c_f_pointer with scalar Fortran pointers and for
1728         c_f_procpointer.
1729
1730 2008-05-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1731
1732         PR fortran/36257
1733         * iresolve.c (check_charlen_present): Don't force the rank to 1.
1734
1735 2008-05-19  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1736
1737         PR fortran/36265
1738         * trans-expr.c (gfc_conv_string_tmp): Pick the correct type for
1739         the temporary variable.
1740
1741 2008-05-19  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1742
1743         * simplify.c (gfc_simplify_dble, gfc_simplify_real): Initialize
1744         result variable to avoid warnings.
1745
1746 2008-05-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1747
1748         * intrinsic.c (char_conversions, ncharconv): New static variables.
1749         (find_char_conv): New function.
1750         (add_functions): Add simplification functions for ADJUSTL and
1751         ADJUSTR. Don't check the kind of their argument. Add checking for
1752         LGE, LLE, LGT and LLT.
1753         (add_subroutines): Fix argument type for SLEEP. Fix argument name
1754         for SYSTEM.
1755         (add_char_conversions): New function.
1756         (gfc_intrinsic_init_1): Call add_char_conversions.
1757         (gfc_intrinsic_done_1): Free char_conversions.
1758         (check_arglist): Use kind == 0 as a signal that we don't want
1759         the kind value to be checked.
1760         (do_simplify): Also simplify character functions.
1761         (gfc_convert_chartype): New function
1762         * trans-array.c (gfc_trans_array_ctor_element): Don't force the
1763         use of default character type.
1764         (gfc_trans_array_constructor_value): Likewise.
1765         (get_array_ctor_var_strlen): Use integer kind to build an integer
1766         instead of a character kind!
1767         (gfc_build_constant_array_constructor): Don't force the use of
1768         default character type.
1769         (gfc_conv_loop_setup): Likewise.
1770         * trans-expr.c (gfc_conv_string_tmp): Don't force the use of
1771         default character type. Allocate enough memory for wide strings.
1772         (gfc_conv_concat_op): Make sure operand kind are the same.
1773         (string_to_single_character): Remove gfc_ prefix. Reindent.
1774         Don't force the use of default character type.
1775         (gfc_conv_scalar_char_value): Likewise.
1776         (gfc_build_compare_string): Call string_to_single_character.
1777         (fill_with_spaces): New function
1778         (gfc_trans_string_copy): Add kind arguments. Use them to deal
1779         with wide character kinds.
1780         (gfc_conv_statement_function): Whitespace fix. Call
1781         gfc_trans_string_copy with new kind arguments.
1782         (gfc_conv_substring_expr): Call gfc_build_wide_string_const
1783         instead of using gfc_widechar_to_char.
1784         (gfc_conv_string_parameter): Don't force the use of default
1785         character type.
1786         (gfc_trans_scalar_assign): Pass kind args to gfc_trans_string_copy.
1787         * intrinsic.h (gfc_check_lge_lgt_lle_llt, gfc_convert_char_constant,
1788         gfc_resolve_adjustl, gfc_resolve_adjustr): New prototypes.
1789         * decl.c (gfc_set_constant_character_len): Don't assert the
1790         existence of a single character kind.
1791         * trans-array.h (gfc_trans_string_copy): New prototype.
1792         * gfortran.h (gfc_check_character_range, gfc_convert_chartype):
1793         New prototypes.
1794         * error.c (print_wide_char_into_buffer): New function lifting
1795         code from gfc_print_wide_char. Fix order to output '\x??' instead
1796         of 'x\??'.
1797         (gfc_print_wide_char): Call print_wide_char_into_buffer.
1798         (show_locus): Call print_wide_char_into_buffer with buffer local
1799         to this function.
1800         * trans-const.c (gfc_build_wide_string_const): New function.
1801         (gfc_conv_string_init): Deal with wide characters strings
1802         constructors.
1803         (gfc_conv_constant_to_tree): Call gfc_build_wide_string_const.
1804         * trans-stmt.c (gfc_trans_label_assign): Likewise.
1805         (gfc_trans_character_select): Deal with wide strings.
1806         * expr.c (gfc_check_assign): Allow conversion between character
1807         kinds on assignment.
1808         * trans-const.h (gfc_build_wide_string_const): New prototype.
1809         * trans-types.c (gfc_get_character_type_len_for_eltype,
1810         gfc_get_character_type_len): Create too variants of the old
1811         gfc_get_character_type_len, one getting kind argument and the
1812         other one directly taking a type tree.
1813         * trans.h (gfor_fndecl_select_string_char4,
1814         gfor_fndecl_convert_char1_to_char4,
1815         gfor_fndecl_convert_char4_to_char1): New prototypes.
1816         * trans-types.h (gfc_get_character_type_len_for_eltype): New
1817         prototype.
1818         * resolve.c (resolve_operator): Exit early when kind mismatches
1819         are detected, because that makes us issue an error message later.
1820         (validate_case_label_expr): Fix wording of error message.
1821         * iresolve.c (gfc_resolve_adjustl, gfc_resolve_adjustr): New
1822         functions.
1823         (gfc_resolve_pack): Call _char4 variants of library function
1824         when dealing with wide characters.
1825         (gfc_resolve_reshape): Likewise.
1826         (gfc_resolve_spread): Likewise.
1827         (gfc_resolve_transpose): Likewise.
1828         (gfc_resolve_unpack): Likewise.
1829         * target-memory.c (size_character): Take character kind bit size
1830         correctly into account (not that it changes anything for now, but
1831         it's more generic).
1832         (gfc_encode_character): Added gfc_ prefix. Encoding each
1833         character of a string by calling native_encode_expr for the
1834         corresponding unsigned integer.
1835         (gfc_target_encode_expr): Add gfc_ prefix to encode_character.
1836         * trans-decl.c (gfc_build_intrinsic_function_decls): Build
1837         gfor_fndecl_select_string_char4, gfor_fndecl_convert_char1_to_char4
1838         and gfor_fndecl_convert_char4_to_char1.
1839         * target-memory.h (gfc_encode_character): New prototype.
1840         * arith.c (gfc_check_character_range): New function.
1841         (eval_intrinsic): Allow non-default character kinds.
1842         * check.c (gfc_check_access_func): Only allow default
1843         character kind arguments.
1844         (gfc_check_chdir): Likewise.
1845         (gfc_check_chdir_sub): Likewise.
1846         (gfc_check_chmod): Likewise.
1847         (gfc_check_chmod_sub): Likewise.
1848         (gfc_check_lge_lgt_lle_llt): New function.
1849         (gfc_check_link): Likewise.
1850         (gfc_check_link_sub): Likewise.
1851         (gfc_check_symlnk): Likewise.
1852         (gfc_check_symlnk_sub): Likewise.
1853         (gfc_check_rename): Likewise.
1854         (gfc_check_rename_sub): Likewise.
1855         (gfc_check_fgetputc_sub): Likewise.
1856         (gfc_check_fgetput_sub): Likewise.
1857         (gfc_check_stat): Likewise.
1858         (gfc_check_stat_sub): Likewise.
1859         (gfc_check_date_and_time): Likewise.
1860         (gfc_check_ctime_sub): Likewise.
1861         (gfc_check_fdate_sub): Likewise.
1862         (gfc_check_gerror): Likewise.
1863         (gfc_check_getcwd_sub): Likewise.
1864         (gfc_check_getarg): Likewise.
1865         (gfc_check_getlog): Likewise.
1866         (gfc_check_hostnm): Likewise.
1867         (gfc_check_hostnm_sub): Likewise.
1868         (gfc_check_ttynam_sub): Likewise.
1869         (gfc_check_perror): Likewise.
1870         (gfc_check_unlink): Likewise.
1871         (gfc_check_unlink_sub): Likewise.
1872         (gfc_check_system_sub): Likewise.
1873         * primary.c (got_delim): Perform correct character range checking
1874         for all kinds.
1875         * trans-intrinsic.c (gfc_conv_intrinsic_conversion): Generate
1876         calls to library functions convert_char4_to_char1 and
1877         convert_char1_to_char4 for character conversions.
1878         (gfc_conv_intrinsic_char): Allow all character kings.
1879         (gfc_conv_intrinsic_strcmp): Fix whitespace.
1880         (gfc_conv_intrinsic_repeat): Take care of all character kinds.
1881         * intrinsic.texi: For all GNU intrinsics accepting character
1882         arguments, mention that they're restricted to the default kind.
1883         * simplify.c (simplify_achar_char): New function.
1884         (gfc_simplify_achar, gfc_simplify_char): Call simplify_achar_char.
1885         gfc_simplify_ichar): Don't error out for wide characters.
1886         (gfc_convert_char_constant): New function.
1887
1888 2008-05-18  Steven G. Kargl  <kargls@comcast.net>
1889
1890         PR fortran/36251
1891         * symbol.c (check_conflict): Issue errors for abuse of PUBLIC, PRIVATE,
1892         and BIND(C).
1893         * resolve.c (gfc_verify_binding_labels): Fix NULL pointer dereference.
1894
1895 2008-05-17  Tobias Burnus  <burnus@net-b.de>
1896
1897         * intrinsic.texi: Correct description of GET_COMMAND_ARGUMENT
1898         and GET_ENVIRONMENT_VARIABLE; fix keyword= name for GETENV,
1899         GETLOG, GMTIME, HOSTNM, IRAND, ITIME, KILL.
1900         Move LOG_GAMMA after LOG10.
1901
1902 2008-05-17  Tobias Burnus  <burnus@net-b.de>
1903
1904         * intrinsic.c (add_functions): Change FLUSH(C) to FLUSH(UNIT).
1905         * intrinsic.texi: Change INTEGER(*) to INTEGER; fix keyword= name for
1906         ABS, ADJUSTL, AINT, ALLOCATED, ANINT, ASSOCIATED, C_ASSOCIATED,
1907         CEILING, DBLE, DFLOAT, DOT_PRODUCT, DREAL, FLOAT, FLOOR, GET_COMMAND.
1908
1909 2008-05-16  Paul Thomas  <pault@gcc.gnu.org>
1910
1911         PR fortran/35756
1912         PR fortran/35759
1913         * trans-stmt.c (gfc_trans_where): Tighten up the dependency
1914         check for calling gfc_trans_where_3.
1915
1916         PR fortran/35743
1917         * trans-stmt.c (gfc_trans_where_2): Set the mask size to zero
1918         if it is calculated to be negative.
1919
1920         PR fortran/35745
1921         * trans-stmt.c (gfc_trans_where_3, gfc_trans_where_assign): Set
1922         ss->where for scalar right hand sides.
1923         * trans-array.c (gfc_add_loop_ss_code): If ss->where is set do
1924         not evaluate scalars outside the loop.  Clean up whitespace.
1925         * trans.h : Add a bitfield 'where' to gfc_ss.
1926
1927 2008-05-16  Tobias Burnus  <burnus@net-b.de>
1928
1929         * libgfortran.h: Increase GFC_MAX_DIMENSIONS to 15.
1930         * array.c (gfc_match_array_spec): Error with -std=f2003 if rank > 7.
1931
1932 2008-04-16  Daniel Kraft  <d@domob.eu>
1933
1934         PR fortran/27997
1935         * gfortran.h:  Added field "length_from_typespec" to gfc_charlength.
1936         * aray.c (gfc_match_array_constructor):  Added code to parse typespec.
1937         (check_element_type, check_constructor_type, gfc_check_constructor_type):
1938         Extended to support explicit typespec on constructor.
1939         (gfc_resolve_character_array_constructor):  Pad strings correctly for
1940         explicit, constant character length.
1941         * trans-array.c:  New static global variable "typespec_chararray_ctor"
1942         (gfc_trans_array_constructor):  New code to support explicit but dynamic
1943         character lengths.
1944
1945 2008-05-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1946
1947         PR fortran/34325
1948         * decl.c (match_attr_spec): Check for matching pairs of parenthesis.
1949         * expr.c (gfc_specification_expr): Supplement the error message with the
1950         type that was found.
1951         * resolve.c (gfc_resolve_index): Likewise.
1952         * match.c (gfc_match_parens): Clarify error message with "at or before".
1953         (gfc_match_do): Check for matching pairs of parenthesis.
1954
1955 2008-05-16  Tobias Burnus  <burnus@net-b.de
1956
1957         * intrinsic.texi: Write Fortran 77/90/95 instead of F77/90/95;
1958         add missing KIND argument to ACHAR and NINT; and state that
1959         the KIND argument is a F2003 extension for ACHAR, COUNT, IACHAR,
1960         ICHAR, INDEX, LBOUND, LEN, LEN_TRIM, SCAN, SIZE, UBOUND, VERIFY.
1961
1962 2008-05-16  Daniel Kraft  <d@domob.eu>
1963
1964         * primary.c:  New private structure "gfc_structure_ctor_component".
1965         (gfc_free_structure_ctor_component):  New helper function.
1966         (gfc_match_structure_constructor):  Extended largely to support named
1967         arguments and default initialization for structure constructors.
1968
1969 2008-05-15  Steven G. Kargl  <kargls@comcast.net>
1970
1971         * simplify.c (gfc_simplify_dble, gfc_simplify_float,
1972         simplify_bound, gfc_simplify_nearest, gfc_simplify_real): Plug
1973         possible memory leaks.
1974         (gfc_simplify_reshape): Plug possible memory leaks and dereferencing
1975         of NULL pointers.
1976
1977 2008-05-15  Steven G. Kargl  <kargls@comcast.net>
1978
1979         PR fortran/36239
1980         * simplify.c (gfc_simplify_int, gfc_simplify_intconv): Replaced hand
1981         rolled integer conversion with gfc_int2int, gfc_real2int, and
1982         gfc_complex2int.
1983         (gfc_simplify_intconv): Renamed to simplify_intconv.
1984         
1985 2008-05-15  Steven G. Kargl,   <kargl@comcast.net>
1986         * gfortran.dg/and_or_xor.f90: New test
1987
1988         * fortran/simplify.c (gfc_simplify_and, gfc_simplify_or,
1989         gfc_simplify_xor): Don't range check logical results.
1990
1991 2008-05-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1992
1993         * trans-expr.c (gfc_conv_concat_op): Take care of nondefault
1994         character kinds.
1995         (gfc_build_compare_string): Add kind argument and use it.
1996         (gfc_conv_statement_function): Fix indentation.
1997         * gfortran.h (gfc_character_info): New structure.
1998         (gfc_character_kinds): New array.
1999         * trans-types.c (gfc_character_kinds, gfc_character_types,
2000         gfc_pcharacter_types): New array.
2001         (gfc_init_kinds): Fill character kinds array.
2002         (validate_character): Take care of nondefault character kinds.
2003         (gfc_build_uint_type): New function.
2004         (gfc_init_types): Take care of nondefault character kinds.
2005         (gfc_get_char_type, gfc_get_pchar_type): New functions.
2006         (gfc_get_character_type_len): Use gfc_get_char_type.
2007         * trans.h (gfc_build_compare_string): Adjust prototype.
2008         (gfor_fndecl_compare_string_char4, gfor_fndecl_concat_string_char4,
2009         gfor_fndecl_string_len_trim_char4, gfor_fndecl_string_index_char4,
2010         gfor_fndecl_string_scan_char4, gfor_fndecl_string_verify_char4,
2011         gfor_fndecl_string_trim_char4, gfor_fndecl_string_minmax_char4,
2012         gfor_fndecl_adjustl_char4, gfor_fndecl_adjustr_char4): New
2013         prototypes.
2014         * trans-types.h (gfc_get_char_type, gfc_get_pchar_type): New
2015         prototypes.
2016         * trans-decl.c (gfor_fndecl_compare_string_char4,
2017         gfor_fndecl_string_len_trim_char4, gfor_fndecl_string_index_char4,
2018         gfor_fndecl_string_scan_char4, gfor_fndecl_string_verify_char4,
2019         gfor_fndecl_string_trim_char4, gfor_fndecl_string_minmax_char4,
2020         gfor_fndecl_adjustl_char4, gfor_fndecl_adjustr_char4,
2021         gfor_fndecl_concat_string_char4): New function decls.
2022         (gfc_build_intrinsic_function_decls): Define new *_char4 function
2023         decls.
2024         * trans-intrinsic.c (gfc_conv_intrinsic_minmax_char,
2025         gfc_conv_intrinsic_len_trim, gfc_conv_intrinsic_ichar,
2026         gfc_conv_intrinsic_strcmp, gfc_conv_intrinsic_trim,
2027         gfc_conv_intrinsic_function): Deal with nondefault character kinds.
2028
2029 2008-05-15  Sa Liu  <saliu@de.ibm.com>
2030
2031         * iso-c-binding.def: Add standard parameter to macro NAMED_INTCST.
2032         All existing NAMED_INTCST definitions has standard GFC_STD_F2003,
2033         c_int128_t, c_int_least128_t and c_int_fast128_t are added as
2034         GNU extensions.
2035         * iso-fortran-evn.def: Add standard parameter GFC_STD_F2003
2036         to macro NAMED_INTCST.
2037         * symbol.c (std_for_isocbinding_symbol): New helper function to 
2038         return the standard that supports this isocbinding symbol.
2039         (generate_isocbinding_symbol): Do not generate GNU extension symbols
2040         if std=f2003. Add new parameter to NAMED_INTCST.
2041         * module.c (use_iso_fortran_env_module): Add new parameter to
2042         NAMED_INTCST and new field standard to struct intmod_sym.
2043         * gfortran.h: Add new parameter to NAMED_INTCST.
2044         * trans-types.c (init_c_interop_kinds): Add new parameter to 
2045         NAMED_INTCST.
2046         * intrinsic.texi: Documented new types C_INT128_T, C_INT_LEASE128_T
2047         and C_INT_FAST128_T.
2048
2049 2008-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2050
2051         PR fortran/36059
2052         * trans-decl.c (gfc_build_dummy_array_decl): Don't repack
2053         arrays that have the TARGET attribute.
2054
2055 2008-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2056
2057         PR fortran/36186
2058         * simplify.c (only_convert_cmplx_boz): New function.
2059         (gfc_simplify_cmplx, gfc_simplify_complex, gfc_simplify_dcmplx):
2060         Call only_convert_cmplx_boz.
2061
2062 2008-05-14  Paul Thomas  <pault@gcc.gnu.org>
2063
2064         PR fortran/36233
2065         * interface.c (compare_actual_formal): Do not check sizes if the
2066         actual is BT_PROCEDURE.
2067
2068 2008-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2069
2070         PR fortran/35682
2071         * trans-array.c (gfc_conv_ss_startstride): Any negative size is
2072         the same as zero size.
2073         (gfc_conv_loop_setup): Fix size calculation.
2074
2075 2008-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2076
2077         PR fortran/35685
2078         * trans-intrinsic.c (gfc_conv_intrinsic_bound): Correctly
2079         handle zero-size sections.
2080
2081 2008-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2082
2083         PR fortran/36215
2084         * scanner.c (preprocessor_line): Allocate enough memory for a
2085         wide string.
2086
2087 2008-05-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2088
2089         PR fortran/36176
2090         * target-memory.c (gfc_target_expr_size): Correctly treat
2091         substrings.
2092         (gfc_target_encode_expr): Likewise.
2093         (gfc_interpret_complex): Whitespace change.
2094
2095 2008-05-11  Thomas Koenig  <tkoenig@gcc.gnu.org>
2096
2097         PR fortran/35719
2098         * trans.c (gfc_call_malloc): If size equals zero, allocate one
2099         byte; don't return a null pointer.
2100
2101 2008-05-10  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2102
2103         PR fortran/36197
2104         * module.c (quote_string): Fix sprintf format.
2105
2106 2008-05-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2107
2108         PR fortran/36162
2109         * module.c (quote_string, unquote_string,
2110         mio_allocated_wide_string): New functions.
2111         (mio_expr): Call mio_allocated_wide_string where needed.
2112
2113 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
2114
2115          * trans-decl.c (gfc_get_extern_function_decl, build_function_decl):
2116          Rename DECL_IS_PURE to DECL_PURE_P.
2117
2118 2008-05-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2119
2120         * arith.c: (gfc_arith_concat, gfc_compare_string,
2121         gfc_compare_with_Cstring, hollerith2representation,
2122         gfc_hollerith2int, gfc_hollerith2real, gfc_hollerith2complex,
2123         gfc_hollerith2character, gfc_hollerith2logical): Use wide
2124         characters for character constants.
2125         * data.c (create_character_intializer): Likewise.
2126         * decl.c (gfc_set_constant_character_len): Likewise.
2127         * dump-parse-tree.c (show_char_const): Correctly dump wide
2128         character strings.
2129         error.c (print_wide_char): Rename into gfc_print_wide_char.
2130         (show_locus): Adapt to new prototype of gfc_print_wide_char.
2131         expr.c (free_expr0): Representation is now disjunct from
2132         character string value, so we always free it.
2133         (gfc_copy_expr, find_substring_ref, gfc_simplify_expr): Adapt
2134         to wide character strings.
2135         * gfortran.h (gfc_expr): Make value.character.string a wide string.
2136         (gfc_wide_toupper, gfc_wide_strncasecmp, gfc_wide_memset,
2137         gfc_widechar_to_char, gfc_char_to_widechar): New prototypes.
2138         (gfc_get_wide_string): New macro.
2139         (gfc_print_wide_char): New prototype.
2140         * io.c (format_string): Make a wide string.
2141         (next_char, gfc_match_format, compare_to_allowed_values, 
2142         gfc_match_open): Deal with wide strings.
2143         * module.c (mio_expr): Convert between wide strings and ASCII ones.
2144         * primary.c (match_hollerith_constant, match_charkind_name): 
2145         Handle wide strings.
2146         * resolve.c (build_default_init_expr): Likewise.
2147         * scanner.c (gfc_wide_toupper, gfc_wide_memset,
2148         gfc_char_to_widechar): New functions.
2149         (wide_strchr, gfc_widechar_to_char, gfc_wide_strncasecmp):
2150         Changes in prototypes.
2151         (gfc_define_undef_line, load_line, preprocessor_line,
2152         include_line, load_file, gfc_read_orig_filename): Handle wide
2153         strings.
2154         * simplify.c (gfc_simplify_achar, gfc_simplify_adjustl,
2155         gfc_simplify_adjustr, gfc_simplify_char, gfc_simplify_iachar,
2156         gfc_simplify_ichar, simplify_min_max, gfc_simplify_new_line,
2157         gfc_simplify_repeat): Handle wide strings.
2158         (wide_strspn, wide_strcspn): New helper functions.
2159         (gfc_simplify_scan, gfc_simplify_trim, gfc_simplify_verify):
2160         Handle wide strings.
2161         * symbol.c (generate_isocbinding_symbol): Likewise.
2162         * target-memory.c (size_character, gfc_target_expr_size,
2163         encode_character, gfc_target_encode_expr, gfc_interpret_character,
2164         gfc_target_interpret_expr): Handle wide strings.
2165         * trans-const.c (gfc_conv_string_init): Lower wide strings to
2166         narrow ones.
2167         (gfc_conv_constant_to_tree): Likewise.
2168         * trans-expr.c (gfc_conv_substring_expr): Handle wide strings.
2169         * trans-io.c (gfc_new_nml_name_expr): Likewise.
2170         * trans-stmt.c (gfc_trans_label_assign): Likewise.
2171
2172 2008-05-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2173
2174         * simplify.c (gfc_simplify_bessel_j0,gfc_simplify_bessel_j1,
2175         gfc_simplify_bessel_jn,gfc_simplify_bessel_y0,
2176         gfc_simplify_bessel_y1,gfc_simplify_bessel_yn): Mark arguments
2177         with ATTRIBUTE_UNUSED.
2178
2179 2008-05-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2180
2181         * check.c (gfc_check_sizeof): Switch to ATTRIBUTE_UNUSED.
2182         * simplify.c (gfc_simplify_lgamma): Likewise.
2183
2184 2008-05-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2185
2186         * openmp.c (gfc_match_omp_eos): Use gfc_next_ascii_char and
2187         gfc_peek_ascii_char.
2188         * decl.c (gfc_match_kind_spec, gfc_match_type_spec,
2189         gfc_match_implicit_none, match_implicit_range, gfc_match_implicit,
2190         match_string_p, match_attr_spec, gfc_match_suffix,
2191         match_procedure_decl, gfc_match_entry, gfc_match_subroutine):
2192         Likewise.
2193         * gfortran.h (gfc_char_t): New type.
2194         (gfc_linebuf): Make line member a gfc_char_t.
2195         (locus): Make nextc member a gfc_char_t.
2196         (gfc_wide_is_printable, gfc_wide_is_digit, gfc_wide_fits_in_byte,
2197         gfc_wide_tolower, gfc_wide_strlen, gfc_next_ascii_char,
2198         gfc_peek_ascii_char, gfc_check_digit): New prototypes.
2199         * error.c (print_wide_char): New function.
2200         (show_locus): Use print_wide_char and gfc_wide_strlen.
2201         * io.c (next_char): Use gfc_char_t type.
2202         (match_io): Use gfc_peek_ascii_char and gfc_next_ascii_char.
2203         * match.c (gfc_match_parens, gfc_match_eos,
2204         gfc_match_small_literal_int, gfc_match_name, gfc_match_name_C,
2205         gfc_match_intrinsic_op, gfc_match_char,  gfc_match_return,
2206         gfc_match_common): Likewise.
2207         * match.h (gfc_match_special_char): Change prototype.
2208         * parse.c (decode_specification_statement, decode_statement,
2209         decode_omp_directive, next_free, next_fixed): Use
2210         gfc_peek_ascii_char and gfc_next_ascii_char.
2211         * primary.c (gfc_check_digit): Change name.
2212         (match_digits, match_hollerith_constant, match_boz_constant,
2213         match_real_constant, next_string_char, match_charkind_name,
2214         match_string_constant, match_logical_constant_string,
2215         match_complex_constant, match_actual_arg, match_varspec,
2216         gfc_match_rvalue, match_variable): Use gfc_peek_ascii_char and
2217         gfc_next_ascii_char.
2218         * scanner.c (gfc_wide_fits_in_byte, wide_is_ascii,
2219         gfc_wide_is_printable, gfc_wide_tolower, gfc_wide_is_digit,
2220         gfc_wide_is_digit, wide_atoi, gfc_wide_strlen, wide_strcpy,
2221         wide_strchr, widechar_to_char, wide_strncmp, wide_strncasecmp,
2222         gfc_next_ascii_char, gfc_peek_ascii_char):
2223         New functions.
2224         (next_char, gfc_define_undef_line, skip_free_comments,
2225         gfc_next_char_literal, gfc_next_char, gfc_peek_char,
2226         gfc_error_recovery, load_line, preprocessor_line, include_line,
2227         load_file, gfc_read_orig_filename): Use gfc_char_t for source
2228         characters and the {gfc_,}wide_* functions to manipulate wide
2229         strings.
2230
2231 2008-05-06  Tobias Burnus  <burnus@net-b.de>
2232
2233         PR fortran/36117
2234         * intrinsic.c (add_functions): Call gfc_simplify_bessel_*.
2235         * intrinsic.h: Add prototypes for gfc_simplify_bessel_*.
2236         * simplify.c (gfc_simplify_bessel_j0,gfc_simplify_bessel_j1,
2237         gfc_simplify_bessel_jn,gfc_simplify_bessel_y0,
2238         gfc_simplify_bessel_y1,gfc_simplify_bessel_yn): New.
2239
2240 2008-05-03  Janus Weil  <jaydub66@gmail.com>
2241
2242         * misc.c (gfc_clear_ts): Set interface to NULL.
2243
2244 2008-05-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2245
2246         PR fortran/33268
2247         * gfortran.h: Add extra_comma pointer to gfc_dt structure. Add iokind to
2248         gfc_expr value union. Add io_kind enum to here from io.c.
2249         * io.c (gfc_free_dt): Free extra_comma.
2250         (gfc_resolve_dt): If an extra comma was encountered and io_unit is type
2251         BT_CHARACTER, resolve to format_expr and set default unit.  Error if
2252         io_kind is M_WRITE. (match_io):  Match the extra comma and set new
2253         pointer, extra_comma.
2254
2255 2008-05-01  Bud Davis  <bdavis9659@sbcglobal.net>
2256
2257         PR35940/Fortran
2258         * simplify.c (gfc_simplify_index): Check for direction argument 
2259         being a constant.
2260
2261 2008-05-01  Janus Weil  <jaydub66@gmail.com>
2262
2263         * gfortran.h (struct gfc_symbol): Moving "interface" member to
2264         gfc_typespec (plus fixing a small docu error).
2265         * interface.c (gfc_procedure_use): Ditto.
2266         * decl.c (match_procedure_decl): Ditto.
2267         * resolve.c (resolve_specific_f0,
2268         resolve_specific_f0, resolve_symbol): Ditto.
2269
2270 2008-04-30  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2271
2272         * intrinsic.c (add_functions): Add SELECTED_CHAR_KIND intrinsic.
2273         * intrinsic.h (gfc_check_selected_char_kind,
2274         gfc_simplify_selected_char_kind): New prototypes.
2275         * gfortran.h (gfc_isym_id): Add GFC_ISYM_SC_KIND.
2276         * trans.h (gfor_fndecl_sc_kind): New function decl.
2277         * trans-decl.c (gfor_fndecl_sc_kind): Build new decl.
2278         * arith.c (gfc_compare_with_Cstring): New function.
2279         * arith.h (gfc_compare_with_Cstring): New prototype.
2280         * check.c (gfc_check_selected_char_kind): New function.
2281         * primary.c (match_string_constant, match_kind_param): Mark
2282         symbols used as literal constant kind param as referenced.
2283         * trans-intrinsic.c (gfc_conv_intrinsic_sc_kind): New function.
2284         (gfc_conv_intrinsic_function): Call gfc_conv_intrinsic_sc_kind.
2285         * intrinsic.texi (SELECTED_CHAR_KIND): Document new intrinsic.
2286         * simplify.c (gfc_simplify_selected_char_kind): New function.
2287
2288 2008-04-28  Paul Thomas  <pault@gcc.gnu.org>
2289
2290         PR fortran/35997
2291         * module.c (find_symbol): Do not return a result for a symbol
2292         that has been renamed in another module.
2293
2294 2008-04-26  George Helffrich <george@gcc.gnu.org>
2295
2296         PR fortran/35892
2297         PR fortran/35154
2298         * trans-common.c (create_common):  Add decl to function
2299         chain (if inside one) to preserve identifier scope in debug output.
2300
2301 2008-04-25  Jan Hubicka  <jh@suse.cz>
2302
2303         * trans-decl.c (trans_function_start): Update.
2304
2305 2008-04-25  Tobias Burnus  <burnus@net-b.de>
2306             Daniel Franke <franke.daniel@gmail.com>
2307
2308         PR fortran/35156
2309         * gfortranspec.c (lang_specific_driver): Deprecate
2310         -M option; fix ICE when "-M" is last argument and
2311         make "-M<dir>" work.
2312         * options.c (gfc_handle_module_path_options): 
2313         Use -J instead of -M in error messages.
2314         * invoke.texi: Mark -M as depecated.
2315
2316 2008-04-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2317             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2318
2319         PR fortran/35994
2320         * trans-instrinsic.c (gfc_conv_intrinsic_minmaxloc): Correctly adjust
2321         loop counter offset.
2322
2323 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
2324
2325         * trans-expr.c (gfc_conv_structure): Don't set TREE_INVARIANT.
2326         * trans-array.c (gfc_build_null_descriptor): Don't set TREE_INVARIANT.
2327         (gfc_trans_array_constructor_value): Don't set TREE_INVARIANT.
2328         (gfc_build_constant_array_constructor): Don't set TREE_INVARIANT.
2329         (gfc_conv_array_initializer): Don't set TREE_INVARIANT.
2330         * trans-common.c (get_init_field): Don't set TREE_INVARIANT.
2331         (create_common): Don't set TREE_INVARIANT.
2332         * trans-stmt.c (gfc_trans_character_select): Don't set TREE_INVARIANT.
2333         * trans-decl.c (gfc_generate_function_code): Don't set TREE_INVARIANT.
2334
2335 2008-04-21  Steve Ellcey  <sje@cup.hp.com>
2336
2337         * f95-lang.c (gfc_init_decl_processing): use ptr_mode instead of Pmode.
2338
2339 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
2340
2341         PR fortran/35019
2342         * gfortranspec.c (lookup_option): Properly handle separated arguments
2343         in -J option, print missing argument message when necessary.
2344
2345 2008-04-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2346
2347         PR fortran/35882
2348         * scanner.c (skip_fixed_comments): Update continue_line when comment is
2349         detected. (gfc_next_char_literal): Likewise.
2350
2351 2008-04-19  Paul Thomas  <pault@gcc.gnu.org>
2352
2353         PR fortran/35944
2354         PR fortran/35946
2355         PR fortran/35947
2356         * trans_array.c (gfc_trans_array_constructor): Temporarily
2357         realign loop, if loop->from is not zero, before creating
2358         the temporary array and provide an offset.
2359
2360         PR fortran/35959
2361         * trans-decl.c (gfc_init_default_dt): Add gfc_ prefix to name
2362         and allow for NULL body.  Change all references from
2363         init_default_dt to gfc_init_default_dt.
2364         * trans.h : Add prototype for gfc_init_default_dt.
2365         * trans-array.c (gfc_trans_deferred_vars): After nullification
2366         call gfc_init_default_dt for derived types with allocatable
2367         components.
2368
2369 2008-04-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2370
2371         PR fortran/35892
2372         * trans-common.c (create_common): Revert patch causing regression.
2373
2374 2008-04-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2375
2376         PR fortran/35724
2377         * iresolve.c (gfc_resolve_eoshift): Check for NULL symtree in test for
2378         optional argument attribute.
2379         
2380 2008-04-16  Paul Thomas  <pault@gcc.gnu.org>
2381
2382         PR fortran/35932
2383         * trans-intrinsic.c (gfc_conv_intrinsic_char): Even though KIND
2384         is not used, the argument must be converted.
2385
2386 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
2387
2388         PR target/35662
2389         * f95-lang.c (gfc_init_builtin_functions): Make sure
2390         BUILT_IN_SINCOS{,F,L} types aren't varargs.
2391
2392 2008-04-15  Paul Thomas  <pault@gcc.gnu.org>
2393
2394         PR fortran/35864
2395         * expr.c (scalarize_intrinsic_call): Reorder identification of
2396         array argument so that if one is not found a segfault does not
2397         occur.  Return FAILURE if all scalar arguments.
2398
2399 2008-04-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2400             Tobias Burnus  <burnus@net-b.de>
2401
2402         PR fortran/35882
2403         * options.c (gfc_init_options): Set the default maximum continuation
2404         lines to 255 for both free and fixed form source for warnings.
2405         (gfc_handle_option): Set -std=f95 fixed form max continuations to 19 and
2406         the -std=f95 free form max continuations to 39 for warnings.
2407         * scanner.c (gfc_next_char_literal): Adjust the current_line number only
2408         if it is less than the current locus.
2409
2410 2008-04-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2411
2412         PR fortran/25829 28655
2413         * io.c (io_tag): Add new tags for decimal, encoding, asynchronous,
2414         round, sign, and id. (match_open_element): Match new tags.
2415         (gfc_resolve_open): Resolve new tags. (gfc_match_open): Enable encoding
2416         for DEFAULT only. Update error messages. (match_dt_element): Fix match
2417         tag for asynchronous. Update error messages. (gfc_free_inquire): Free
2418         new expressions. (match_inquire_element): Match new tags.
2419         (gfc_match_inquire): Add constraint for ID and PENDING.
2420         (gfc_resolve_inquire): Resolve new tags.
2421         * trans-io.c (gfc_trans_inquire): Clean up whitespace and fix setting of
2422         mask for ID parameter.
2423         * ioparm.def: Fix order of parameters for pending, round, and sign.
2424         NOTE: These must line up with the definitions in libgfortran/io/io.h. or
2425         things don't work.
2426
2427 2008-04-06  Paul Thomas  <pault@gcc.gnu.org>
2428
2429         PR fortran/35780
2430         * expr.c (scalarize_intrinsic_call): Identify which argument is
2431         an array and use that as the template.
2432         (check_init_expr): Remove tests that first argument is an array
2433         in the call to scalarize_intrinsic_call.
2434
2435 2008-04-06  Tobias Schlüter  <tobi@gcc.gnu.org>
2436
2437         PR fortran/35832
2438         * io.c (io_tag): Add field 'value'.  Split 'spec' field in
2439         existing io_tags.
2440         (match_etag, match_vtag, match_ltag): Split parsing in two steps
2441         to give better error messages.
2442
2443 2008-04-06  Tobias Burnus  <burnus@net-b.de>
2444
2445         * io.c (check_io_constraints): Add constrains. ID= requires
2446         asynchronous= and asynchronous= must be init expression.
2447
2448 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2449
2450         * f95-lang.c: Set LANG_HOOKS_NAME to "GNU Fortran".
2451
2452 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2453
2454         * dump-parse-tree.c: Use fprintf, fputs and fputc instead of
2455         gfc_status and gfc_status_char. Remove gfc_ prefix of the gfc_show_*
2456         functions and make them static. Add new gfc_dump_parse_tree
2457         function.
2458         * gfortran.h (gfc_option_t): Rename verbose into dump_parse_tree.
2459         (gfc_status, gfc_status_char): Delete prototypes.
2460         * error.c (gfc_status, gfc_status_char): Remove functions.
2461         * scanner.c (gfc_new_file): Use printf instead of gfc_status.
2462         * options.c (gfc_init_options): Rename verbose into dump_parse_tree.
2463         (gfc_handle_module_path_options): Use gfc_fatal_error instead of
2464         gfc_status and exit.
2465         (gfc_handle_option): Rename verbose into dump_parse_tree.
2466         * parse.c (gfc_parse_file): Use gfc_dump_parse_tree.
2467
2468 2008-04-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2469             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2470
2471         PR fortran/25829 28655
2472         * dump-parse-tree.c (gfc_show_code_node): Show new I/O parameters.
2473         * gfortran.h (gfc_statement): Add ST_WAIT enumerator.
2474         (gfc_open): Add pointers for decimal, encoding, round, sign,
2475         asynchronous. (gfc_inquire): Add pointers for asynchronous, decimal,
2476         encoding, pending, round, sign, size, id.
2477         (gfc_wait): New typedef struct. (gfc_dt): Add pointers for id, pos,
2478         asynchronous, blank, decimal, delim, pad, round, sign.
2479         (gfc_exec_op): Add EXEC_WAIT enumerator. (gfc_code): Add pointer for
2480         wait. (gfc_free_wait), (gfc_resolve_wait): New function prototypes.
2481         * trans-stmt.h (gfc_trans_wait): New function prototype.
2482         * trans.c (gfc_trans_code): Add case for EXEC_WAIT.
2483         * io.c (io_tag): Add new tags for DECIMAL, ENCODING, ROUND, SIGN,
2484         ASYCHRONOUS, ID. (match_open_element): Add matchers for new tags.
2485         (gfc_free_open): Free new pointers. (gfc_resolve_open): Resolve new
2486         tags. (gfc_resolve_open): Remove comment around check for allowed
2487         values and ASYNCHRONOUS, update it.  Likewise for DECIMAL, ENCODING,
2488         ROUND, and SIGN. (match_dt_element): Add matching for new tags.
2489         (gfc_free_wait): New function. (gfc_resolve_wait): New function.
2490         (match_wait_element): New function. (gfc_match_wait): New function.
2491         * resolve.c (gfc_resolve_blocks): Add case for EXEC_WAIT.
2492         (resolve_code): Add case for EXEC_WAIT. 
2493         * st.c (gfc_free_statement): Add case for EXEC_WAIT.
2494         * trans-io.c (ioparam_type): Add IOPARM_ptype_wait. (gfc_st_parameter):
2495         Add "wait" entry. (iocall): Add IOCALL_WAIT enumerator.
2496         (gfc_build_io_library_fndecls): Add function declaration for st_wait.
2497         (gfc_trans_open): Add mask bits for new I/O tags.
2498         (gfc_trans_inquire): Add mask bits for new I/O tags.
2499         (gfc_trans_wait): New translation function.
2500         (build_dt): Add mask bits for new I/O tags.
2501         * match.c (gfc_match_if) Add matcher for "wait".
2502         * match.h (gfc_match_wait): Prototype for new function.
2503         * ioparm.def: Add new I/O parameter definitions.
2504         * parse.c (decode_statement): Add match for "wait" statement.
2505         (next_statement): Add case for ST_WAIT. (gfc_ascii_statement): Same.
2506
2507 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
2508
2509         PR fortran/35786
2510         * openmp.c (resolve_omp_clauses): Diagnose if a clause symbol
2511         isn't a variable.
2512
2513 2008-04-03  Tom Tromey  <tromey@redhat.com>
2514
2515         * Make-lang.in (fortran_OBJS): New variable.
2516
2517 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
2518
2519         * f95-lang.c (insert_block): Kill.
2520
2521 2008-04-01  George Helffrich <george@gcc.gnu.org>
2522
2523         PR fortran/35154, fortran/23057
2524         * trans-common.c (create_common):  Add decl to function
2525         chain to preserve identifier scope in debug output.
2526
2527 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
2528
2529         * gfortran.texi: Include gpl_v3.texi instead of gpl.texi
2530         * Make-lang.in (GFORTRAN_TEXI): Include gpl_v3.texi instead of
2531         gpl.texi.
2532
2533 2008-03-30  Paul Thomas  <pault@gcc.gnu.org>
2534
2535         PR fortran/35740
2536         * resolve.c (resolve_function, resolve_call): If the procedure
2537         is elemental do not look for noncopying intrinsics.
2538
2539 2008-03-29  Paul Thomas  <pault@gcc.gnu.org>
2540
2541         PR fortran/35698
2542         * trans-array.c (gfc_array_init_size): Set 'size' zero if
2543         negative in one dimension.
2544
2545         PR fortran/35702
2546         * trans-expr.c (gfc_trans_string_copy): Only assign a char
2547         directly if the lhs and rhs types are the same.
2548
2549 2008-03-28  Daniel Franke  <franke.daniel@gmail.com>
2550             Paul Richard Thomas <paul.richard.thomas@gmail.com>
2551
2552         PR fortran/34714
2553         * primary.c (match_variable): Improved matching of function 
2554         result variables.
2555         * resolve.c (resolve_allocate_deallocate): Removed checks if
2556         the actual argument for STAT is a variable.
2557
2558 2008-03-28  Tobias Burnus  <burnus@net-b.de>
2559
2560         * symbol.c (gfc_get_default_type): Fix error message; option
2561         -fallow_leading_underscore should be -fallow-leading-underscore
2562
2563 2008-03-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2564
2565         PR fortran/35724
2566         * iresolve.c (gfc_resolve_cshift): Check for NULL symtree in test for
2567         optional argument attribute.
2568
2569 2008-03-27  Tom Tromey  <tromey@redhat.com>
2570
2571         * Make-lang.in: Revert automatic dependency patch.
2572
2573 2008-03-25  Tom Tromey  <tromey@redhat.com>
2574
2575         * Make-lang.in: Remove .o targets.
2576         (fortran_OBJS): New variable.
2577         (fortran/gfortranspec.o): Move to fortran/.  Reduce to variable
2578         setting.
2579         (GFORTRAN_D_OBJS): Update.
2580         (GFORTRAN_TRANS_DEPS): Remove.
2581
2582 2008-03-24  Paul Thomas  <pault@gcc.gnu.org>
2583
2584         PR fortran/34813
2585         * resolve.c (resolve_structure_cons): It is an error to assign
2586         NULL to anything other than a pointer or allocatable component.
2587
2588         PR fortran/33295
2589         * resolve.c (resolve_symbol): If the symbol is a derived type,
2590         resolve the derived type.  If the symbol is a derived type
2591         function, ensure that the derived type is visible in the same
2592         namespace as the function.
2593
2594 2008-03-23  Tobias Schlüter  <tobi@gcc.gnu.org>
2595
2596         * trans.h: Use fold_build in build1_v, build2_v and build3_v
2597         macros.
2598         * trans-openmp.c (gfc_trans_omp_critical, gfc_trans_omp_single):
2599         Don't use build2_v macro.
2600
2601 2008-03-19  Daniel Franke  <franke.daniel@gmail.com>
2602
2603         PR fortran/35152
2604         * interface.c (gfc_procedure_use): Check for keyworded arguments in
2605         procedures without explicit interfaces.
2606
2607 2008-03-16  Paul Thomas  <pault@gcc.gnu.org>
2608
2609         PR fortran/35470
2610         * resolve.c (check_assumed_size_reference):  Only visit the
2611         first reference and look directly at the highest dimension.
2612
2613 2008-03-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2614
2615         PR fortran/35184
2616         * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
2617         assert.
2618
2619 2008-03-15  Daniel Franke  <franke.daniel@gmail.com>
2620
2621         PR fortran/35584
2622         * resolve.c (resolve_branch): Less strict and pessimistic warning
2623         message.
2624
2625 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
2626
2627         * f95-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
2628         (gfc_be_parse_file): Call clear_binding_stack from here.
2629         (gfc_clear_binding_stack): Rename to clear_binding_stack.
2630                 
2631 2008-03-09  Paul Thomas  <pault@gcc.gnu.org>
2632
2633         PR fortran/35474
2634         * module.c (mio_symtree_ref): After providing a symbol for a
2635         missing equivalence member, resolve and NULL the fixups.
2636
2637 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2638
2639         * invoke.texi (Error and Warning Options): Document
2640         -Wline-truncation.
2641
2642 2008-03-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2643
2644         PR fortran/34956
2645         * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
2646         checking bounds of absent optional arguments.
2647
2648 2008-03-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2649
2650         PR fortran/33197
2651         * intrinsic.c (add_functions): Add simplification routines for
2652         ERF, DERF, ERFC and DERFC.
2653         * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
2654         extensions into Fortran 2008 features.
2655         * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
2656         prototypes.
2657         * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
2658
2659 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2660
2661         PR fortran/33197
2662         * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
2663         ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
2664         ERFC_SCALED, LOG_GAMMA and HYPOT.
2665         * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
2666         gfc_resolve_hypot): New prototypes.
2667         * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
2668         ACOSH, ASINH and ATANH available.
2669         * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
2670         * lang.opt: Add -std=f2008 option.
2671         * libgfortran.h: Define GFC_STD_F2008.
2672         * lang-specs.h: Add .f08 and .F08 file suffixes.
2673         * iresolve.c (gfc_resolve_hypot): New function.
2674         * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
2675         * check.c (gfc_check_hypot): New function.
2676         * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
2677         * options.c (set_default_std_flags): Allow Fortran 2008 by default.
2678         (form_from_filename): Add .f08 suffix.
2679         (gfc_handle_option): Handle -std=f2008 option.
2680         * simplify.c (gfc_simplify_hypot): New function.
2681         * gfortran.texi: Document Fortran 2008 status and file extensions.
2682         * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
2683         as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
2684         ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
2685         * invoke.texi: Document the new -std=f2008 option.
2686
2687 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
2688
2689         * gfortranspec.c (lang_specific_driver): Update copyright notice
2690         dates.
2691
2692 2008-02-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2693
2694         PR fortran/35059
2695         * expr.c (find_array_element): Modify traversing the constructor to
2696         avoid trying to access NULL memory pointed to by next for the
2697         last element. (find_array_section): Exit while loop if cons->next is
2698         NULL.
2699         * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
2700         (gfc_conv_function_call): Same.
2701         * decl.c (gfc_match_implicit): Same.
2702         * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
2703
2704 2008-02-28  Daniel Franke  <franke.daniel@gmail.com>
2705
2706         PR fortran/31463
2707         PR fortran/33950
2708         PR fortran/34296
2709         * lang.opt: Added -Wreturn-type.
2710         * options.c (gfc_handle_option): Recognize -Wreturn-type.
2711         * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
2712         where the result value is not set.
2713         (gfc_generate_function_code): Likewise.
2714         (generate_local_decl): Emit warnings for funtions whose RESULT
2715         variable is not set.
2716
2717 2008-02-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2718
2719         PR fortran/34868
2720         * trans-expr.c (gfc_conv_variable): Don't build indirect
2721         references when explicit interface is mandated.
2722         * resolve.c (resolve_formal_arglist): Set attr.always_explicit
2723         on the result symbol as well as the procedure symbol.
2724
2725 2008-02-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2726
2727         PR fortran/33387
2728         * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
2729         gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
2730         gfor_fndecl_math_exponent16.
2731         * f95-lang.c (build_builtin_fntypes): Add new function types.
2732         (gfc_init_builtin_functions): Add new builtins for nextafter,
2733         frexp, ldexp, fabs, scalbn and inf.
2734         * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
2735         (gfc_resolve_scale): Don't convert type of second argument.
2736         (gfc_resolve_set_exponent): Likewise.
2737         (gfc_resolve_size): Don't add hidden arguments.
2738         * trans-decl.c: Remove gfor_fndecl_math_exponent4,
2739         gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
2740         gfor_fndecl_math_exponent16.
2741         * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
2742         for scalbn, fraction, nearest, rrspacing, set_exponent and
2743         spacing.
2744         (gfc_conv_intrinsic_exponent): Directly call frexp.
2745         (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
2746         gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
2747         gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
2748         functions.
2749         (gfc_conv_intrinsic_function): Use the new functions above.
2750
2751 2008-02-26  Tobias Burnus  <burnus@net-b.de>
2752
2753         PR fortran/35033
2754         * interface.c (check_operator_interface): Show better line for error
2755         messages; fix constrains for user-defined assignment operators.
2756         (gfc_extend_assign): Fix constrains for user-defined assignment
2757         operators.
2758
2759 2008-02-26  Tom Tromey  <tromey@redhat.com>
2760
2761         * trans-io.c (set_error_locus): Remove old location code.
2762         * trans-decl.c (gfc_set_decl_location): Remove old location code.
2763         * f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
2764         * scanner.c (gfc_gobble_whitespace): Remove old location code.
2765         (get_file): Likewise.
2766         (preprocessor_line): Likewise.
2767         (load_file): Likewise.
2768         (gfc_new_file): Likewise.
2769         * trans.c (gfc_trans_runtime_check): Remove old location code.
2770         (gfc_get_backend_locus): Likewise.
2771         (gfc_set_backend_locus): Likewise.
2772         * data.c (gfc_assign_data_value): Remove old location code.
2773         * error.c (show_locus): Remove old location code.
2774         * gfortran.h (gfc_linebuf): Remove old location code.
2775         (gfc_linebuf_linenum): Remove old-location variant.
2776
2777 2008-02-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2778
2779         PR fortran/34729
2780         * trans-const.c (gfc_build_string_const): Don't call gettext.
2781         (gfc_build_localized_string_const): New function.
2782         * trans-const.h (gfc_build_localized_string_const): New prototype.
2783         * trans.c (gfc_trans_runtime_check): Use
2784         gfc_build_localized_string_const instead of gfc_build_string_const.
2785         (gfc_call_malloc): Likewise.
2786         (gfc_allocate_with_status): Likewise.
2787         (gfc_allocate_array_with_status): Likewise.
2788         (gfc_deallocate_with_status): Likewise.
2789         (gfc_call_realloc): Likewise.
2790         * trans-io.c (gfc_trans_io_runtime_check): Likewise.
2791
2792 2008-02-24  Tobias Schlüter  <tobi@gcc.gnu.org>
2793
2794         * arith.c: Update copyright years.
2795         * arith.h: Likewise.
2796         * array.c: Likewise.
2797         * bbt.c: Likewise.
2798         * check.c: Likewise.
2799         * data.c: Likewise.
2800         * data.h: Likewise.
2801         * decl.c: Likewise.
2802         * dependency.c: Likewise.
2803         * dependency.h: Likewise.
2804         * dump-parse-tree.c: Likewise.
2805         * error.c: Likewise.
2806         * expr.c: Likewise.
2807         * gfc-internals.texi: Likewise.
2808         * gfortran.h: Likewise.
2809         * gfortran.texi: Likewise.
2810         * gfortranspec.c: Likewise.
2811         * interface.c: Likewise.
2812         * intrinsic.c: Likewise.
2813         * intrinsic.h: Likewise.
2814         * intrinsic.texi: Likewise.
2815         * invoke.texi: Likewise.
2816         * io.c: Likewise.
2817         * iresolve.c: Likewise.
2818         * iso-c-binding.def: Likewise.
2819         * iso-fortran-env.def: Likewise.
2820         * lang-specs.h: Likewise.
2821         * lang.opt: Likewise.
2822         * libgfortran.h: Likewise.
2823         * match.c: Likewise.
2824         * match.h: Likewise.
2825         * matchexp.c: Likewise.
2826         * misc.c: Likewise.
2827         * module.c: Likewise.
2828         * openmp.c: Likewise.
2829         * options.c: Likewise.
2830         * parse.c: Likewise.
2831         * parse.h: Likewise.
2832         * primary.c: Likewise.
2833         * resolve.c: Likewise.
2834         * scanner.c: Likewise.
2835         * simplify.c: Likewise.
2836         * st.c: Likewise.
2837         * symbol.c: Likewise.
2838         * target-memory.c: Likewise.
2839         * target-memory.h: Likewise.
2840         * trans-array.h: Likewise.
2841         * trans-const.h: Likewise.
2842         * trans-stmt.h: Likewise.
2843         * trans-types.c: Likewise.
2844         * trans-types.h: Likewise.
2845         * types.def: Likewise.
2846
2847 2008-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2848
2849         PR fortran/35223
2850         * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
2851         (gfc_simplify_ibset): Remove call to range_check.
2852         (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
2853         (gfc_simplify_real): Add call gfc_clear_ts to initialize the
2854         temporary gfc_typspec variable.
2855
2856 2008-02-24  Tobias Schlüter  <tobi@gcc.gnu.org>
2857
2858         * trans-array.c (gfc_conv_descriptor_data_get,
2859         gfc_conv_descriptor_data_set_internal,
2860         gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
2861         gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
2862         gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
2863         gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
2864         gfc_conv_array_transpose, gfc_grow_array,
2865         gfc_trans_array_constructor_subarray,
2866         gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
2867         gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
2868         gfc_conv_array_initializer, gfc_trans_array_bounds,
2869         gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
2870         gfc_get_dataptr_offset, gfc_conv_array_parameter,
2871         gfc_trans_dealloc_allocated, get_full_array_size,
2872         gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
2873         instead of buildN.
2874         * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
2875         gfc_conv_component_ref, gfc_conv_cst_int_power,
2876         gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
2877         * trans-common.c (create_common): Likewise.
2878         * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
2879         Likewise.
2880         * trans-const.c (gfc_conv_constant_to_tree): Likewise.
2881         * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
2882         gfc_trans_integer_select, gfc_trans_character_select,
2883         gfc_trans_forall_loop, compute_overall_iter_number,
2884         gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
2885         gfc_trans_deallocate): Likewise.
2886         * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
2887         gfc_allocate_with_status, gfc_allocate_array_with_status,
2888         gfc_deallocate_with_status): Likewise.
2889         * f95-lang.c (gfc_truthvalue_conversion): Likewise.
2890         * trans-io.c (set_parameter_const, set_parameter_value,
2891         set_parameter_ref, set_string, set_internal_unit, io_result,
2892         set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
2893         * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
2894         gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
2895         gfc_generate_function_code): Likewise.
2896         * convert.c (convert): Likewise.
2897         * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
2898         build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
2899         gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
2900         gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
2901         gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
2902         gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
2903         gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
2904         gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
2905         gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
2906         gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
2907         gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
2908         gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
2909         gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
2910         gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
2911         gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
2912         gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
2913         gfc_conv_intrinsic_repeat): Likewise.
2914
2915 2008-02-23  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2916
2917         PR target/25477
2918         * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
2919         * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
2920         * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
2921         gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
2922         * trans-decl.c: Likewise.
2923
2924 2008-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2925
2926         PR fortran/35059
2927         * expr.c (find_array_element): Modify traversing the constructor to
2928         avoid trying to access NULL memory pointed to by next for the
2929         last element. (find_array_section): Exit while loop if cons->next is
2930         NULL.
2931
2932 2008-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2933
2934         PR fortran/34907
2935         * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
2936         structure.
2937         (gfc_resolve_aint): Likewise.
2938         (gfc_resolve_anint): Likewise.
2939         (gfc_resolve_besn): Likewise.
2940         (gfc_resolve_cshift): Likewise.
2941         (gfc_resolve_ctime): Likewise.
2942         (gfc_resolve_eoshift): Likewise.
2943         (gfc_resolve_index_func): Likewise.
2944         (gfc_resolve_isatty): Likewise.
2945         (gfc_resolve_malloc): Likewise.
2946         (gfc_resolve_rrspacing): Likewise.
2947         (gfc_resolve_scale): Likewise.
2948         (gfc_resolve_set_exponent): Likewise.
2949         (gfc_resolve_spacing): Likewise.
2950         (gfc_resolve_spacing): Likewise.
2951         (gfc_resolve_fgetc): Likewise.
2952         (gfc_resolve_fputc): Likewise.
2953         (gfc_resolve_ftell): Likewise.
2954         (gfc_resolve_ttynam): Likewise.
2955         (gfc_resolve_alarm_sub): Likewise.
2956         (gfc_resolve_mvbits): Likewise.
2957         (gfc_resolve_getarg): Likewise.
2958         (gfc_resolve_signal_sub): Likewise.
2959         (gfc_resolve_exit): Likewise.
2960         (gfc_resolve_flush): Likewise.
2961         (gfc_resolve_free): Likewise.
2962         (gfc_resolve_ctime_sub): Likewise.
2963         (gfc_resolve_fgetc_sub): Likewise.
2964         (gfc_resolve_fputc_sub): Likewise.
2965         (gfc_resolve_fseek_sub): Likewise.
2966         (gfc_resolve_ftell_sub): Likewise.
2967         (gfc_resolve_ttynam_sub): Likewise.
2968
2969 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2970
2971         * gfc-internals.texi: Fix typos and markup nits.
2972         * gfortran.texi: Likewise.
2973         * intrinsic.texi: Likewise.
2974
2975 2008-02-21  Richard Guenther  <rguenther@suse.de>
2976
2977         * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
2978         as unary PAREN_EXPR for real and complex typed expressions.
2979         (gfc_conv_unary_op): Fold the built tree.
2980
2981 2008-02-20  Tobias Burnus  <burnus@net-b.de>
2982
2983         PR fortran/34997
2984         * match.c (gfc_match_name): Improve error message for '$'.
2985
2986 2008-02-19  Daniel Franke  <franke.daniel@gmail.com>
2987
2988         PR fortran/35030
2989         * expr.c (gfc_check_pointer_assign): Add type and kind information
2990         to type-mismatch message.
2991         (gfc_check_assign): Unify error messages.
2992
2993 2008-02-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2994
2995         PR fortran/34952
2996         * gfortran.texi: Create new section for unimplemented extensions.
2997         Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
2998         Remove "smaller projects" list. Fix a few typos.
2999
3000 2008-02-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3001
3002         * intrinsic.texi: Rename INDEX node to avoid clashing with
3003         index.html on case-insensitive systems.
3004
3005 2008-02-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3006
3007         PR fortran/35150
3008         * trans-expr.c (gfc_conv_function_call): Force evaluation of
3009         se->expr.
3010
3011 2008-02-10  Daniel Franke  <franke.daniel@gmail.com>
3012
3013         PR fortran/35019
3014         * lang.opt: Allow '-J<dir>' next to '-J <dir>', 
3015         likewise '-I <dir>' and '-I<dir>'.
3016
3017 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3018
3019         PR other/35107
3020         * Make-lang.in (f951): Add $(GMPLIBS).
3021
3022 2008-02-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3023
3024         PR fortran/35037
3025         * trans-common.c (build_field): Mark fields as volatile when needed.
3026
3027 2008-02-05  Tobias Burnus  <burnus@net-b.de>
3028
3029         PR fortran/35093
3030         * data.c (gfc_assign_data_value): Only free "size" if
3031         it has not already been freed.
3032
3033 2008-02-05  Paul Thomas  <pault@gcc.gnu.org>
3034
3035         PR fortran/34945
3036         * array.c (match_array_element_spec): Remove check for negative
3037         array size.
3038         (gfc_resolve_array_spec): Add check for negative size.
3039
3040 2008-02-05  Paul Thomas  <pault@gcc.gnu.org>
3041
3042         PR fortran/32315
3043         * data.c (gfc_assign_data_value): Add bounds check for array
3044         references.
3045
3046 2008-02-04  Daniel Franke  <franke.daniel@gmail.com>
3047
3048         * resolve.c (resolve_where): Fix typo.
3049         (gfc_resolve_where_code_in_forall): Likewise.
3050
3051 2008-02-03  Paul Thomas  <pault@gcc.gnu.org>
3052
3053         PR fortran/32760
3054         * resolve.c (resolve_allocate_deallocate): New function.
3055         (resolve_code): Call it for allocate and deallocate.
3056         * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
3057         the checking of the STAT tag and put in above new function.
3058         * primary,c (match_variable): Do not fix flavor of host
3059         associated symbols yet if the type is not known.
3060
3061 2008-01-31  Paul Thomas  <pault@gcc.gnu.org>
3062
3063         PR fortran/34910
3064         * expr.c (gfc_check_assign): It is an error to assign
3065         to a sibling procedure.
3066
3067 2008-01-30  Paul Thomas  <pault@gcc.gnu.org>
3068
3069         PR fortran/34975
3070         * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
3071         delete_symtree to gfc_delete_symtree.
3072         * gfortran.h : Add prototype for gfc_delete_symtree.
3073         * module.c (load_generic_interfaces): Transfer symbol to a
3074         unique symtree and delete old symtree, instead of renaming.
3075         (read_module): The rsym and the found symbol are the same, so
3076         the found symtree can be deleted.
3077
3078         PR fortran/34429
3079         * decl.c (match_char_spec): Remove the constraint on deferred
3080         matching of functions and free the length expression.
3081         delete_symtree to gfc_delete_symtree.
3082         (gfc_match_type_spec): Whitespace.
3083         (gfc_match_function_decl): Defer characteristic association for
3084         all types except BT_UNKNOWN.
3085         * parse.c (decode_specification_statement): Only derived type
3086         function matching is delayed to the end of specification.
3087
3088 2008-01-28  Tobias Burnus  <burnus@net-b.de>
3089
3090         PR libfortran/34980
3091         * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
3092
3093 2008-01-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3094
3095         PR fortran/34990
3096         * array.c (gfc_check_constructor_type): Revert clearing the expression.
3097
3098 2008-01-26  Tobias Burnus  <burnus@net-b.de>
3099
3100         PR fortran/34848
3101         * trans-expr.c (gfc_conv_function_call): Don't call
3102         gfc_add_interface_mapping if the expression is NULL.
3103
3104 2008-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3105
3106         PR fortran/31610
3107         * trans-array.c (gfc_trans_create_temp_array): Remove call to
3108         gcc_assert (integer_zerop (loop->from[n])).
3109
3110 2008-01-25  Daniel Franke  <franke.daniel@gmail.com>
3111
3112         PR fortran/34661
3113         * resolve.c (resolve_where): Added check if user-defined assignment 
3114         operator is an elemental subroutine.
3115         (gfc_resolve_where_code_in_forall): Likewise.
3116
3117 2008-01-24  Daniel Franke  <franke.daniel@gmail.com>
3118
3119         PR fortran/33375
3120         PR fortran/34858
3121         * gfortran.h: Revert changes from 2008-01-17.
3122         * match.c: Likewise.
3123         * symbol.c: Likewise.
3124         (gfc_undo_symbols): Undo namespace changes related to common blocks.
3125
3126 2008-01-24  Daniel Franke  <franke.daniel@gmail.com>
3127
3128         PR fortran/34202
3129         * data.c (formalize_structure_cons): Skip formalization on
3130         empty structures.
3131
3132 2008-01-24  Daniel Franke  <franke.daniel@gmail.com>
3133
3134         * gfortran.texi (OpenMP): Extended existing documentation.
3135         (contributors): Added major contributors of 2008 that were
3136         not listed yet.
3137         (proposed extensions): Removed implemented items.
3138
3139 2008-01-24  Paul Thomas  <pault@gcc.gnu.org>
3140
3141         PR fortran/34872
3142         * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS  is
3143         seen, check for a statement label and, if present, delete it
3144         and set the locus to the start of the statement.
3145
3146 2008-01-22  Paul Thomas  <pault@gcc.gnu.org>
3147
3148         PR fortran/34875
3149         * trans-io.c (gfc_trans_transfer): If the array reference in a
3150         read has a vector subscript, use gfc_conv_subref_array_arg to
3151         copy back the temporary.
3152
3153 2008-01-22  Tobias Burnus  <burnus@net-b.de>
3154
3155         PR fortran/34848
3156         * interface.c (compare_actual_formal): Fix adding type
3157         to missing_arg_type for absent optional arguments.
3158
3159 2008-01-22  Tobias Burnus  <burnus@net-b.de>
3160
3161         PR fortran/34907
3162         * parse.c (parse_spec): Change = into ==.
3163
3164 2008-01-22  Daniel Franke  <franke.daniel@gmail.com>
3165
3166         PR fortran/34915
3167         * expr.c (check_elemental): Fix check for valid data types.
3168
3169 2008-01-22  Tobias Burnus  <burnus@net-b.de>
3170
3171         PR fortran/34899
3172         * scanner.c (load_line): Support <tab><digit> continuation lines.
3173         * invoke.texi (-Wtabs): Document this.
3174
3175 2008-01-22  Paul Thomas  <pault@gcc.gnu.org>
3176
3177         PR fortran/34896
3178         * module.c (read_module): Set use_rename attribute.
3179
3180 2007-01-21  Tobias Burnus  <burnus@net-b.de>
3181
3182         PR fortran/34901
3183         * interface.c (compare_parameter): Improved error message
3184         for arguments of same type and mismatched kinds.
3185
3186 2008-01-20  Paul Thomas  <pault@gcc.gnu.org>
3187
3188         PR fortran/34861
3189         * resolve.c (resolve_entries): Do not do an array bounds check
3190         if the result symbols are the same.
3191
3192         PR fortran/34854
3193         * module.c (read_module) : Hide the symtree of the previous
3194         version of the symbol if this symbol is renamed.
3195
3196 2008-01-20  Paul Thomas  <pault@gcc.gnu.org>
3197
3198         PR fortran/34784
3199         * array.c (gfc_check_constructor_type): Clear the expression ts
3200         so that the checking starts from the deepest level of array
3201         constructor.
3202         * primary.c (match_varspec): If an unknown type is changed to
3203         default character and the attempt to match a substring fails,
3204         change it back to unknown.
3205
3206         PR fortran/34785
3207         * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
3208         NULL for an array constructor, use the cl.length expression to
3209         build it.
3210         (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
3211         a tree assignment.
3212
3213 2008-01-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
3214
3215         PR fortran/34817
3216         PR fortran/34838
3217         * iresolve.c (gfc_resolve_all):  Remove conversion of mask
3218         argument to kind=1 by removing call to resolve_mask_arg().
3219         (gfc_resolve_any):  Likewise.
3220
3221 2008-01-19  Tobias Burnus  <burnus@net-b.de>
3222
3223         PR fortran/34760
3224         * primary.c (match_variable): Handle FL_UNKNOWN without
3225         uneducated guessing.
3226         (match_variable): Improve error message.
3227
3228 2008-01-18  Tobias Burnus  <burnus@net-b.de>
3229
3230         PR fortran/32616
3231         * interface.c (get_expr_storage_size): Return storage size
3232         for array element designators.
3233         (compare_actual_formal): Reject unequal string sizes for
3234         assumed-shape dummy arguments. And fix error message for
3235         array-sections with vector subscripts.
3236
3237 2008-01-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3238
3239         PR fortran/34556
3240         * simplify.c (is_constant_array_expr): New static function that returns
3241         true if the given expression is an array and is constant.
3242         (gfc_simplify_reshape): Use new function.
3243
3244 2008-01-17  H.J. Lu  <hongjiu.lu@intel.com>
3245
3246         PR fortran/33375
3247         * symbol.c (free_common_tree): Renamed to ...
3248         (gfc_free_common_tree): This.  Remove static.
3249         (gfc_free_namespace): Updated.
3250
3251         * gfortran.h (gfc_free_common_tree): New.
3252
3253         * match.c (gfc_match_common): Call gfc_free_common_tree () with
3254         gfc_current_ns->common_root and set gfc_current_ns->common_root
3255         to NULL on syntax error.
3256
3257 2008-01-18  Richard Sandiford  <rsandifo@nildram.co.uk>
3258
3259         PR fortran/34686
3260         * trans-expr.c (gfc_conv_function_call): Use proper
3261         type for returned character pointers.
3262
3263 2008-01-17  Paul Thomas  <pault@gcc.gnu.org>
3264
3265         PR fortran/34429
3266         PR fortran/34431
3267         PR fortran/34471
3268         * decl.c : Remove gfc_function_kind_locus and
3269         gfc_function_type_locus. Add gfc_matching_function.
3270         (match_char_length): If matching a function and the length
3271         does not match, return MATCH_YES and try again later.
3272         (gfc_match_kind_spec): The same.
3273         (match_char_kind): The same.
3274         (gfc_match_type_spec): The same for numeric and derived types.
3275         (match_prefix): Rename as gfc_match_prefix.
3276         (gfc_match_function_decl): Except for function valued character
3277         lengths, defer applying kind, type and charlen info until the
3278         end of specification block.
3279         gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
3280         parse.c (decode_specification_statement): New function.
3281         (decode_statement): Call it when a function has kind = -1. Set
3282         and reset gfc_matching function, as function statement is being
3283         matched.
3284         (match_deferred_characteristics): Simplify with a single call
3285         to gfc_match_prefix. Do appropriate error handling. In any
3286         case, make sure that kind = -1 is reset or corrected.
3287         (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
3288         Throw an error if kind = -1 after last specification statement.
3289         parse.h : Prototype for gfc_match_prefix.
3290
3291 2008-01-16  Tobias Burnus  <burnus@net-b.de>
3292
3293         PR fortran/34796
3294         * interface.c (compare_parameter): Allow AS_DEFERRED array
3295         elements and reject attr.pointer array elemenents.
3296         (get_expr_storage_size): Return storage size of elements of
3297         assumed-shape and pointer arrays.
3298
3299 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
3300
3301         * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
3302         for flag_tree_parallelize_loops.
3303
3304 2008-01-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
3305
3306         PR libfortran/34671
3307         * iresolve.c (gfc_resolve_all):  Call resolve_mask_arg.
3308         (gfc_resolve_any):  Likewise.
3309         (gfc_resolve_count):  Likewise.  Don't append kind of
3310         argument to function name.
3311
3312 2008-01-13  Tobias Burnus  <burnus@net-b.de>
3313
3314         PR fortran/34665
3315         * resolve.c (resolve_actual_arglist): For expressions,
3316         also check for assume-sized arrays.
3317         * interface.c (compare_parameter): Move F2003 character checks
3318         here, print error messages here, reject elements of
3319         assumed-shape array as argument to dummy arrays.
3320         (compare_actual_formal): Update for the changes above.
3321
3322 2008-01-13  Tobias Burnus  <burnus@net-b.de>
3323
3324         PR fortran/34763
3325         * decl.c (contained_procedure): Only check directly preceeding state.
3326
3327 2008-01-13  Tobias Burnus  <burnus@net-b.de>
3328
3329         PR fortran/34759
3330         * check.c (gfc_check_shape): Accept array ranges of
3331         assumed-size arrays.
3332
3333 2008-01-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3334
3335         PR fortran/34432
3336         * match.c (gfc_match_name): Don't error if leading character is a '(',
3337         just return MATCH_NO.
3338
3339 2008-01-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3340
3341         PR fortran/34722
3342         * trans-io.c (create_dummy_iostat): Commit the symbol.
3343
3344 2008-01-11  Paul Thomas  <pault@gcc.gnu.org>
3345
3346         PR fortran/34537
3347         * simplify.c (gfc_simplify_transfer): Return NULL if the size
3348         of the element is unavailable and only assign character length
3349         to the result, if 'mold' is constant.
3350
3351 2008-01-10  Paul Thomas  <pault@gcc.gnu.org>
3352
3353         PR fortran/34396
3354         * trans-array.c (gfc_trans_array_ctor_element):  Use gfc_trans_string_copy
3355         to assign strings and perform bounds checks on the string length.
3356         (get_array_ctor_strlen): Remove bounds checking.
3357         (gfc_trans_array_constructor): Initialize string length checking.
3358         * trans-array.h : Add prototype for gfc_trans_string_copy.
3359
3360 2008-01-08  Richard Guenther  <rguenther@suse.de>
3361
3362         PR fortran/34706
3363         PR tree-optimization/34683
3364         * trans-types.c (gfc_get_array_type_bounds): Use an array type
3365         with known size for accesses if that is known.
3366
3367 2008-01-08  Paul Thomas  <pault@gcc.gnu.org>
3368
3369         PR fortran/34476
3370         * expr.c (find_array_element): Check that the array bounds are
3371         constant before using them.  Use lower, as well as upper bound.
3372         (check_restricted): Allow implied index variable.
3373
3374 2008-01-08  Paul Thomas  <pault@gcc.gnu.org>
3375
3376         PR fortran/34681
3377         * trans_array.c (gfc_trans_deferred_array): Do not null the
3378         data pointer on entering scope, nor deallocate it on leaving
3379         scope, if the symbol has the 'save' attribute.
3380
3381         PR fortran/34704
3382         * trans_decl.c (gfc_finish_var_decl): Derived types with
3383         allocatable components and an initializer must be TREE_STATIC.
3384
3385 2008-01-07  Paul Thomas  <pault@gcc.gnu.org>
3386
3387         PR fortran/34672
3388         * module.c (write_generic): Rewrite completely.
3389         (write_module): Change call to write_generic.
3390
3391 2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3392
3393         PR fortran/34659
3394         * scanner.c (load_line): Do not count ' ' as printable when checking for
3395         continuations.
3396
3397 2008-01-06  Paul Thomas  <pault@gcc.gnu.org>
3398
3399         PR fortran/34545
3400         * module.c (load_needed): If the namespace has no proc_name
3401         give it the module symbol.
3402
3403 2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3404
3405         PR fortran/34387
3406         * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
3407         the dummy variable expression, test for NULL, and pass the variable
3408         address to the called function.
3409
3410 2007-01-06  Tobias Burnus  <burnus@net-b.de>
3411
3412         PR fortran/34658
3413         * match.c (gfc_match_common): Remove blank common in
3414         DATA BLOCK warning.
3415         * resolve.c (resolve_common_vars): New function.
3416         (resolve_common_blocks): Move checks to resolve_common_vars
3417         and invoke that function.
3418         (resolve_types): Call resolve_common_vars for blank commons.
3419
3420 2008-01-06  Tobias Burnus  <burnus@net-b.de>
3421
3422         PR fortran/34655
3423         * resolve.c (resolve_equivalence_derived): Reject derived types with
3424         default initialization if equivalenced with COMMON variable.
3425
3426 2008-01-06  Tobias Burnus  <burnus@net-b.de>
3427
3428         PR fortran/34654
3429         * io.c (check_io_constraints): Disallow unformatted I/O for
3430         internal units.
3431
3432 2008-01-06  Tobias Burnus  <burnus@net-b.de>
3433
3434         PR fortran/34660
3435         * resolve.c (resolve_formal_arglist): Reject dummy procedure in
3436         ELEMENTAL functions.
3437
3438 2008-01-06  Tobias Burnus  <burnus@net-b.de>
3439
3440         PR fortran/34662
3441         * interface.c (compare_actual_formal): Reject parameter
3442         actual to intent(out) dummy.
3443
3444 2008-01-04  Tobias Burnus  <burnus@net-b.de>
3445
3446         PR fortran/34557
3447         * primary.c (match_varspec): Gobble whitespace before
3448         checking for '('.