OSDN Git Service

2010-08-02 Thomas Koenig <tkoenig@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
1 2010-08-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
2
3         PR fortran/36854
4         * dependency.h:  Add prototype for gfc_are_identical_variables.
5         * frontend-passes.c:  Include depencency.h.
6         (optimimize_equality):  Use gfc_are_identical_variables.
7         * dependency.c (identical_array_ref): New function.
8         (gfc_are_identical_variables):  New function.
9         (gfc_deb_compare_expr):  Use gfc_are_identical_variables.
10         * dependency.c (gfc_check_section_vs_section).  Rename gfc_
11         prefix from statc function.
12         (check_section_vs_section): Change arguments to gfc_array_ref,
13         adjust function body accordingly.
14
15 2010-08-02  Mikael Morin  <mikael@gcc.gnu.org>
16             Janus Weil  <janus@gcc.gnu.org>
17
18         PR fortran/42051
19         PR fortran/44064
20         PR fortran/45151
21         * intrinsic.c (gfc_get_intrinsic_sub_symbol): Commit changed symbol. 
22         * symbol.c (gen_cptr_param, gen_fptr_param, gen_shape_param,
23         gfc_copy_formal_args, gfc_copy_formal_args_intr,
24         gfc_copy_formal_args_ppc, generate_isocbinding_symbol): Ditto.
25         * parse.c (parse_derived_contains, parse_spec, parse_progunit): 
26         Call reject_statement in case of error. 
27         (match_deferred_characteritics): Call gfc_undo_symbols in case match
28         fails.
29
30 2010-08-01  Janus Weil  <janus@gcc.gnu.org>
31
32         PR fortran/44912
33         * class.c (gfc_build_class_symbol): Make '$vptr' component private.
34         (gfc_find_derived_vtab): Make vtabs and vtypes public.
35         * module.c (read_module): When reading module files, always import
36         vtab and vtype symbols.
37
38 2010-07-31  Mikael Morin  <mikael@gcc.gnu.org>
39
40         PR fortran/42051
41         PR fortran/44064
42         * symbol.c (changed_syms): Made non-static.
43         * parse.c (changed_syms): Declare new external. 
44         (next_statement): Assert changed_syms is NULL at the beginning.
45
46 2010-07-30  Janus Weil  <janus@gcc.gnu.org>
47             Steven G. Kargl  <kargl@gcc.gnu.org>
48
49         PR fortran/44929
50         * match.c (match_type_spec): Try to parse derived types before
51         intrinsic types.
52
53 2010-07-30  Mikael Morin  <mikael@gcc.gnu.org>
54
55         * gfortran.h (gfc_release_symbol): New prototype.
56         * symbol.c (gfc_release_symbol): New. Code taken from free_sym_tree.
57         (gfc_undo_symbols, free_sym_tree, gfc_free_finalizer):
58         Use gfc_release_symbol.
59         * parse.c (gfc_fixup_sibling_symbols): Ditto.
60         * resolve.c (resolve_symbol): Ditto.
61
62 2010-07-29  Tobias Burnus  <burnus@net-b.de>
63
64         PR fortran/45087
65         PR fortran/45125
66         * trans-decl.c (gfc_get_extern_function_decl): Correctly handle
67         external procedure declarations in modules.
68         (gfc_get_symbol_decl): Modify assert.
69
70 2010-07-29  Janus Weil  <janus@gcc.gnu.org>
71
72         PR fortran/44962
73         * resolve.c (resolve_fl_derived): Call gfc_resolve_array_spec.
74
75 2010-07-29  Janus Weil  <janus@gcc.gnu.org>
76
77         PR fortran/45004
78         * trans-stmt.h (gfc_trans_class_init_assign): New prototype.
79         (gfc_trans_class_assign): Modified prototype.
80         * trans.h (gfc_conv_intrinsic_move_alloc): New prototype.
81         * trans-expr.c (gfc_trans_class_init_assign): Split off from ...
82         (gfc_trans_class_assign): ... here. Modified actual arguments.
83         * trans-intrinsic.c (gfc_conv_intrinsic_move_alloc): New function to
84         handle the MOVE_ALLOC intrinsic with scalar and class arguments.
85         * trans.c (trans_code): Call 'gfc_conv_intrinsic_move_alloc'.
86
87 2010-07-29  Mikael Morin  <mikael@gcc.gnu.org>
88
89         PR fortran/42051
90         PR fortran/44064
91         * class.c (gfc_find_derived_vtab): Accept or discard newly created
92         symbols before returning.
93
94 2010-07-29  Joseph Myers  <joseph@codesourcery.com>
95
96         * lang.opt (cpp): Remove Joined and Separate markers.
97         (cpp=): New internal option.
98         * lang-specs.h (F951_CPP_OPTIONS): Generate -cpp= option.
99         * cpp.c (gfc_cpp_handle_option): Handle OPT_cpp_ instead of
100         OPT_cpp.
101
102 2010-07-29  Daniel Kraft  <d@domob.eu>
103
104         PR fortran/45117
105         * array.c (resolve_array_bound): Fix error message to properly handle
106         non-variable expressions.
107
108 2010-07-28  Mikael Morin  <mikael@gcc.gnu.org>
109
110         * decl.c (free_value): Also free repeat field.
111         * data.c (gfc_assign_data_value): Always free offset before returning.
112
113 2010-07-28  Daniel Kraft  <d@domob.eu>
114
115         * gfortran.h (gfc_build_intrinsic_call): New method.
116         * expr.c (gfc_build_intrinsic_call): New method.
117         * simplify.c (range_check): Ignore non-constant value.
118         (simplify_bound_dim): Handle non-variable expressions and
119         fix memory leak with non-free'ed expression.
120         (simplify_bound): Handle non-variable expressions.
121         (gfc_simplify_shape): Ditto.
122         (gfc_simplify_size): Ditto, but only in certain cases possible.
123
124 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
125
126         * gfortranspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG):
127         Remove.
128
129 2010-07-28  Tobias Burnus  <burnus@net-b.de>
130
131         PR fortran/45077
132         * trans-types.c (gfc_get_derived_type): Fix DT declaration
133         from modules for whole-file mode.
134
135 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
136
137         * gfortran.h (gfc_handle_option): Update prototype and return
138         value type.
139         * options.c (gfc_handle_option): Update prototype and return value
140         type.
141
142 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
143
144         * cpp.c (gfc_cpp_init_options): Update prototype.  Use number of
145         decoded options in allocating deferred_opt.
146         * cpp.h (gfc_cpp_init_options): Update prototype.
147         * f95-lang.c (LANG_HOOKS_OPTION_LANG_MASK): Define.
148         * gfortran.h (gfc_option_lang_mask): New.
149         (gfc_init_options): Update prototype.
150         * options.c (gfc_option_lang_mask): New.
151         (gfc_init_options): Update prototype.  Pass new arguments to
152         gfc_cpp_init_options.
153
154 2010-07-26  Tobias Burnus  <burnus@net-b.de>
155
156         PR fortran/40873
157         * trans-decl.c (gfc_get_extern_function_decl): Fix generation
158         for functions which are later in the same file.
159         (gfc_create_function_decl, build_function_decl,
160         build_entry_thunks): Add global argument.
161         * trans.c (gfc_generate_module_code): Update
162         gfc_create_function_decl call.
163         * trans.h (gfc_create_function_decl): Update prototype.
164         * resolve.c (resolve_global_procedure): Also resolve for
165         IFSRC_IFBODY.
166
167 2010-07-26  Richard Henderson  <rth@redhat.com>
168
169         PR target/44132
170         * f95-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
171         (gfc_write_global_declarations): New.
172
173 2010-07-26  Tobias Burnus  <burnus@net-b.de>
174
175         PR fortran/45066
176         * trans-io.c (build_dt): Use NULL_TREE rather than NULL
177         for call to transfer_namelist_element.
178         * trans-decl.c (gfc_get_symbol_decl): Also set sym->backend_decl
179         for -fwhole-file.
180
181 2010-07-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
182
183         PR fortran/40628
184         * Make-lang.in:  Add fortran/frontend-passes.o.
185         * gfortran.h:  Add prototype for gfc_run_passes.
186         * resolve.c (gfc_resolve):  Call gfc_run_passes.
187         * frontend-passes.c:  New file.
188
189 2010-07-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
190
191         PR fortran/42852
192         * scanner.c (gfc_next_char_literal): Enable truncation warning for
193         free-form '&'.
194
195 2010-07-25  Mikael Morin  <mikael@gcc.gnu.org>
196
197         PR fortran/44660
198         * gfortran.h (gfc_namespace): New field old_equiv.
199         (gfc_free_equiv_until): New prototype.
200         * match.c (gfc_free_equiv_until): New, renamed from gfc_free_equiv with
201         a parameterized stop condition.
202         (gfc_free_equiv): Use gfc_free_equiv_until.
203         * parse.c (next_statement): Save equivalence list.
204         (reject_statement): Restore equivalence list. 
205
206 2010-07-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
207
208         PR fortran/42852
209         * scanner.c (gfc_next_char_literal): Move check for truncation earlier
210         in the function so that it does not get missed by early exits.
211         (load_line): Add checks for quoted strings and free form comments to
212         disable warnings on comments. Add check for ampersand as first
213         character after truncation and don't warn for this case, but warn if
214         there are subsequent non-whitespace characters.
215
216 2010-07-24  Tobias Burnus  <burnus@net-b.de>
217
218         PR fortran/40011
219         * parse.c (gfc_parse_file): Do not override
220         gfc_global_ns_list items.
221
222 2010-07-24  Tobias Burnus  <burnus@net-b.de>
223
224         * options.c (gfc_init_options): Enable -fwhole-file by default.
225         * interface.c (compare_parameter): Assume a Hollerith constant is
226         compatible with all other argument types.
227
228 2010-07-23  Tobias Burnus  <burnus@net-b.de>
229
230         PR fortran/44945
231         * trans-decl.c (gfc_get_symbol_decl): Use module decl with
232         -fwhole-file also for derived types.
233         * trans-types.c (copy_dt_decls_ifequal): Remove static and
234         rename to gfc_copy_dt_decls_ifequal.
235         (gfc_get_derived_type): Update call.
236         * trans-types.h (gfc_copy_dt_decls_ifequal): Add prototype.
237
238 2010-07-23  Tobias Burnus  <burnus@net-b.de>
239
240         PR fortran/45030
241         * resolve.c (resolve_global_procedure): Properly handle ENTRY.
242
243 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
244
245         * trans-types.c (gfc_get_array_descriptor_base,
246         gfc_get_array_type_bounds): Set TYPE_NAMELESS.
247         * trans-decl.c (gfc_build_qualified_array): Set DECL_NAMELESS
248         instead of clearing DECL_NAME.
249         (gfc_build_dummy_array_decl): Set DECL_NAMELESS.
250
251 2009-07-23  Paul Thomas  <pault@gcc.gnu.org>
252
253         PR fortran/24524
254         * trans-array.c (gfc_init_loopinfo): Initialize the reverse
255         field.
256         gfc_trans_scalarized_loop_end: If reverse set in dimension n,
257         reverse the scalarization loop.
258         gfc_conv_resolve_dependencies: Pass the reverse field of the
259         loopinfo to gfc_dep_resolver.
260         trans-expr.c (gfc_trans_assignment_1): Enable loop reversal for
261         assignment by resetting loop.reverse.
262         gfortran.h : Add the gfc_reverse enum.
263         trans.h : Add the reverse field to gfc_loopinfo.
264         dependency.c (gfc_check_dependency): Pass null to the new arg
265         of gfc_dep_resolver.
266         (gfc_check_section_vs_section): Check for reverse dependencies.
267         (gfc_dep_resolver): Add reverse argument and deal with the loop
268         reversal logic.
269         dependency.h : Modify prototype for gfc_dep_resolver to include
270         gfc_reverse *.
271
272 2010-07-23  Daniel Kraft  <d@domob.eu>
273
274         PR fortran/44709
275         * gfortran.h (gfc_find_symtree_in_proc): New method.
276         * symbol.c (gfc_find_symtree_in_proc): New method.
277         * match.c (match_exit_cycle): Look for loop name also in parent
278         namespaces within current procedure.
279
280 2010-07-22  Tobias Burnus  <burnus@net-b.de>
281
282         PR fortran/45019
283         * dependency.c (gfc_check_dependency): Add argument alising check.
284         * symbol.c (gfc_symbols_could_alias): Add argument alising check.
285
286 2010-07-22  Daniel Kraft  <d@domob.eu>
287
288         * trans-stmt.c (gfc_trans_return): Put back in the handling of se.post,
289         now in the correct place.
290
291 2010-07-21  Steven G. Kargl  <kargl@gcc.gnu.org>
292
293         PR fortran/44929
294         * Revert my commit r162325.
295
296 2010-07-21  Daniel Kraft  <d@domob.eu>
297
298         * trans.h (gfc_get_return_label): Removed.
299         (gfc_generate_return): New method.
300         (gfc_trans_deferred_vars): Update gfc_wrapped_block rather than
301         returning a tree directly.
302         * trans-stmt.c (gfc_trans_return): Use `gfc_generate_return'.
303         (gfc_trans_block_construct): Update for new interface to
304         `gfc_trans_deferred_vars'.
305         * trans-decl.c (current_function_return_label): Removed.
306         (current_procedure_symbol): New variable.
307         (gfc_get_return_label): Removed.
308         (gfc_trans_deferred_vars): Update gfc_wrapped_block rather than
309         returning a tree directly.
310         (get_proc_result), (gfc_generate_return): New methods.
311         (gfc_generate_function_code): Clean up and do init/cleanup here
312         also with gfc_wrapped_block.  Remove return-label but rather
313         return directly.
314
315 2010-07-19  Steven G. Kargl  <kargl@gcc.gnu.org>
316
317         PR fortran/44929
318         * fortran/match.c (match_type_spec): Check for derived type before
319         intrinsic types.
320
321 2010-07-19  Paul Thomas  <pault@gcc.gnu.org>
322
323         PR fortran/42385
324         * interface.c (matching_typebound_op): Add argument for the
325         return of the generic name for the procedure.
326         (build_compcall_for_operator): Add an argument for the generic
327         name of an operator procedure and supply it to the expression.
328         (gfc_extend_expr, gfc_extend_assign): Use the generic name in
329         calls to the above procedures.
330         * resolve.c (resolve_typebound_function): Catch procedure
331         component calls for CLASS objects, check that the vtable is
332         complete and insert the $vptr and procedure components, to make
333         the call.
334         (resolve_typebound_function): The same.
335         * trans-decl.c (gfc_trans_deferred_vars): Do not deallocate
336         an allocatable scalar if it is a result.
337
338 2010-07-19  Paul Thomas  <pault@gcc.gnu.org>
339
340         PR fortran/44353
341         * match.c (gfc_match_iterator): Reverted.
342
343 2010-07-18  Paul Thomas  <pault@gcc.gnu.org>
344
345         PR fortran/44353
346         * match.c (gfc_match_iterator): Remove error that iterator
347         cannot be INTENT(IN).
348
349 2010-07-17  Mikael Morin  <mikael@gcc.gnu.org>
350
351         * trans-array.c (gfc_free_ss): Don't free beyond ss rank.
352         Access subscript through the "dim" field index.
353         (gfc_trans_create_temp_array): Access ss info through the "dim" field
354         index.
355         (gfc_conv_array_index_offset): Ditto.
356         (gfc_conv_loop_setup): Ditto.
357         (gfc_conv_expr_descriptor): Ditto.
358         (gfc_conv_ss_startstride): Ditto.  Update call to
359         gfc_conv_section_startstride.
360         (gfc_conv_section_startstride): Set values along the array dimension.
361         Get array dimension directly from the argument.
362
363 2010-07-15  Jakub Jelinek  <jakub@redhat.com>
364
365         * trans.h (gfc_string_to_single_character): New prototype.
366         * trans-expr.c (string_to_single_character): Renamed to ...
367         (gfc_string_to_single_character): ... this.  No longer static.
368         (gfc_conv_scalar_char_value, gfc_build_compare_string,
369         gfc_trans_string_copy): Adjust callers.
370         * config-lang.in (gtfiles): Add fortran/trans-stmt.c.
371         * trans-stmt.c: Include ggc.h and gt-fortran-trans-stmt.h.
372         (select_struct): Move to toplevel, add GTY(()).
373         (gfc_trans_character_select): Optimize SELECT CASE
374         with character length 1.
375
376 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
377
378         * f95-lang.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
379         * trans-common.c: Likewise.
380         * trans-decl.c: Likewise.
381         * trans-types.c: Likewise.
382         * trans.c: Likewise.
383
384 2010-07-15  Janus Weil  <janus@gcc.gnu.org>
385
386         PR fortran/44936
387         * resolve.c (resolve_typebound_generic_call): Resolve generic
388         non-polymorphic type-bound procedure calls to the correct specific
389         procedure.
390         (resolve_typebound_subroutine): Remove superfluous code.
391
392 2010-07-15  Daniel Kraft  <d@domob.eu>
393
394         PR fortran/44709
395         * trans.h (struct gfc_wrapped_block): New struct.
396         (gfc_start_wrapped_block), (gfc_add_init_cleanup): New methods.
397         (gfc_finish_wrapped_block): New method.
398         (gfc_init_default_dt): Add new init code to block rather than
399         returning it.
400         * trans-array.h (gfc_trans_auto_array_allocation): Use gfc_wrapped_block
401         (gfc_trans_dummy_array_bias): Ditto.
402         (gfc_trans_g77_array): Ditto.
403         (gfc_trans_deferred_array): Ditto.
404         * trans.c (gfc_add_expr_to_block): Call add_expr_to_chain.
405         (add_expr_to_chain): New method based on old gfc_add_expr_to_block.
406         (gfc_start_wrapped_block), (gfc_add_init_cleanup): New methods.
407         (gfc_finish_wrapped_block): New method.
408         * trans-array.c (gfc_trans_auto_array_allocation): use gfc_wrapped_block
409         (gfc_trans_g77_array), (gfc_trans_dummy_array_bias): Ditto.
410         (gfc_trans_deferred_array): Ditto.
411         * trans-decl.c (gfc_trans_dummy_character): Ditto.
412         (gfc_trans_auto_character_variable), (gfc_trans_assign_aux_var): Ditto.
413         (init_intent_out_dt): Ditto.
414         (gfc_init_default_dt): Add new init code to block rather than
415         returning it.
416         (gfc_trans_deferred_vars): Use gfc_wrapped_block to collect all init
417         and cleanup code and put it all together.
418
419 2010-07-15  Jakub Jelinek  <jakub@redhat.com>
420
421         * trans.h (gfc_build_compare_string): Add CODE argument.
422         * trans-intrinsic.c (gfc_conv_intrinsic_strcmp): Pass OP to
423         gfc_build_compare_string.
424         * trans-expr.c (gfc_conv_expr_op): Pass CODE to
425         gfc_build_compare_string.
426         (string_to_single_character): Rename len variable to length.
427         (gfc_optimize_len_trim): New function.
428         (gfc_build_compare_string): Add CODE argument.  If it is EQ_EXPR
429         or NE_EXPR and one of the strings is string literal with LEN_TRIM
430         bigger than the length of the other string, they compare unequal.
431
432         PR fortran/40206
433         * trans-stmt.c (gfc_trans_character_select): Always use NULL for high
434         in CASE_LABEL_EXPR and use NULL for low for the default case.
435
436 2010-07-14  Mikael Morin  <mikael@gcc.gnu.org>
437
438         * trans-array.c (gfc_conv_section_upper_bound): Remove
439         (gfc_conv_section_startstride): Don't set the upper bound in the 
440         vector subscript case.
441         (gfc_conv_loop_setup): Don't use gfc_conv_section_upper_bound
442
443 2010-07-14  Janus Weil  <janus@gcc.gnu.org>
444
445         PR fortran/44925
446         * gfortran.h (gfc_is_data_pointer): Remove prototype.
447         * dependency.c (gfc_is_data_pointer): Make it static.
448         * intrinsic.texi: Update documentation on C_LOC.
449         * resolve.c (gfc_iso_c_func_interface): Fix pointer and target checks
450         and add a check for polymorphic variables.
451
452 2010-07-14  Jakub Jelinek  <jakub@redhat.com>
453
454         * trans-expr.c (string_to_single_character): Also optimize
455         string literals containing a single char followed only by spaces.
456         (gfc_trans_string_copy): Remove redundant string_to_single_character
457         calls.
458
459         * trans-decl.c (gfc_build_intrinsic_function_decls,
460         gfc_build_builtin_function_decls): Mark functions as
461         DECL_PURE_P or TREE_READONLY.
462
463 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
464
465         * trans-decl.c (build_entry_thunks): Call build_call_expr_loc_vec
466         instead of build_function_call_expr.
467         * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Likewise.
468
469 2010-07-13  Tobias Burnus  <burnus@net-b.de>
470             Daniel Franke  <franke.daniel@gmail.com>
471
472         PR fortran/43665
473         * trans.h (gfc_build_library_function_decl_with_spec): New prototype.
474         * trans-decl.c (gfc_build_library_function_decl_with_spec): Removed
475         static.
476         * trans-io (gfc_build_io_library_fndecls): Add "fn spec" annotations.
477
478 2010-07-13  Daniel Franke  <franke.daniel@gmail.com>
479             Tobias Burnus  <burnus@net-b.de>
480
481         PR fortran/43665
482         * trans-decl.c (gfc_build_intrinsic_function_decls): Add
483         noclobber/noescape annotations to function calls.
484         (gfc_build_builtin_function_decls): Likewise.
485
486 2010-07-13  Janus Weil  <janus@gcc.gnu.org>
487
488         PR fortran/44434
489         PR fortran/44565
490         PR fortran/43945
491         PR fortran/44869
492         * gfortran.h (gfc_find_derived_vtab): Modified prototype.
493         * class.c (gfc_build_class_symbol): Modified call to
494         'gfc_find_derived_vtab'.
495         (add_proc_component): Removed, moved code into 'add_proc_comp'.
496         (add_proc_comps): Renamed to 'add_proc_comp', removed treatment of
497         generics.
498         (add_procs_to_declared_vtab1): Removed unnecessary argument 'resolved'.
499         Removed treatment of generics.
500         (copy_vtab_proc_comps): Removed unnecessary argument 'resolved'.
501         Call 'add_proc_comp' instead of duplicating code.
502         (add_procs_to_declared_vtab): Removed unnecessary arguments 'resolved'
503         and 'declared'.
504         (add_generic_specifics,add_generics_to_declared_vtab): Removed.
505         (gfc_find_derived_vtab): Removed unnecessary argument 'resolved'.
506         Removed treatment of generics.
507         * iresolve.c (gfc_resolve_extends_type_of): Modified call to
508         'gfc_find_derived_vtab'.
509         * resolve.c (resolve_typebound_function,resolve_typebound_subroutine):
510         Removed treatment of generics.
511         (resolve_select_type,resolve_fl_derived): Modified call to
512         'gfc_find_derived_vtab'.
513         * trans-decl.c (gfc_get_symbol_decl): Ditto.
514         * trans-expr.c (gfc_conv_derived_to_class,gfc_trans_class_assign):
515         Ditto.
516         * trans-stmt.c (gfc_trans_allocate): Ditto.
517
518 2010-07-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
519
520         PR fortran/37077
521         * trans-io.c (build_dt): Set common.unit to flag chracter(kind=4)
522         internal unit.
523
524 2010-07-12  Mikael Morin  <mikael@gcc.gnu.org>
525
526         * expr.c (gfc_get_int_expr): Don't initialize mpfr data twice.
527         * resolve.c (build_default_init_expr): Ditto.
528
529 2010-07-11  Tobias Burnus  <burnus@net-b.de>
530
531         PR fortran/44702
532         * module.c (sort_iso_c_rename_list): Remove.
533         (import_iso_c_binding_module,use_iso_fortran_env_module):
534         Allow multiple imports of the same symbol.
535
536 2010-07-11  Mikael Morin  <mikael@gcc.gnu.org>
537
538         * arith.c (gfc_arith_done_1): Release mpfr internal caches.
539
540 2010-07-11  Janus Weil  <janus@gcc.gnu.org>
541
542         PR fortran/44869
543         * decl.c (build_sym,attr_decl1): Only build the class container if the
544         symbol has sufficient attributes.
545         * expr.c (gfc_check_pointer_assign): Use class_pointer instead of
546         pointer attribute for classes.
547         * match.c (gfc_match_allocate,gfc_match_deallocate): Ditto.
548         * module.c (MOD_VERSION): Bump.
549         (enum ab_attribute,attr_bits): Add AB_CLASS_POINTER.
550         (mio_symbol_attribute): Handle class_pointer attribute.
551         * parse.c (parse_derived): Use class_pointer instead of pointer
552         attribute for classes.
553         * primary.c (gfc_variable_attr,gfc_expr_attr): Ditto.
554         * resolve.c (resolve_structure_cons,resolve_deallocate_expr,
555         resolve_allocate_expr,resolve_fl_derived): Ditto.
556         (resolve_fl_var_and_proc): Check for class_ok attribute.
557
558 2010-07-10  Mikael Morin  <mikael@gcc.gnu.org>
559
560         * trans-io.c (gfc_build_st_parameter): Update calls to
561         gfc_add_field_to_struct.
562         * trans-stmt.c (ADD_FIELD): Ditto.
563         * trans-types.c
564         (gfc_get_derived_type): Ditto. Don't create backend_decl for C_PTR's
565         C_ADDRESS field.
566         (gfc_add_field_to_struct_1): Set TYPE_FIELDS(context) instead of
567         fieldlist, remove fieldlist from argument list.
568         (gfc_add_field_to_struct): Update call to gfc_add_field_to_struct_1
569         and remove fieldlist from argument list.
570         (gfc_get_desc_dim_type, gfc_get_array_descriptor_base,
571         gfc_get_mixed_entry_union): Move setting
572         TYPE_FIELDS to gfc_add_field_to_struct_1 and update calls to it.
573         * trans-types.h (gfc_add_field_to_struct): Update prototype.
574
575 2010-07-10  Paul Thomas  <pault@gcc.gnu.org>
576
577         PR fortran/44773
578         * trans-expr.c (arrayfunc_assign_needs_temporary): No temporary
579         if the lhs has never been host associated, as well as not being
580         use associated, a pointer or a target.
581         * resolve.c (resolve_variable): Mark variables that are host
582         associated.
583         * gfortran.h: Add the host_assoc bit to the symbol_attribute
584         structure.
585
586 2010-07-09  Janus Weil  <janus@gcc.gnu.org>
587
588         * intrinsic.texi: Add documentation for SAME_TYPE_AS, EXTENDS_TYPE_OF,
589         STORAGE_SIZE, C_NULL_PTR and C_NULL_FUNPTR. Modify documentation of
590         SIZEOF and C_SIZEOF.
591
592 2010-07-08  Janus Weil  <janus@gcc.gnu.org>
593
594         PR fortran/44649
595         * gfortran.h (gfc_isym_id): Add GFC_ISYM_C_SIZEOF,GFC_ISYM_STORAGE_SIZE.
596         * intrinsic.h (gfc_check_c_sizeof,gfc_check_storage_size,
597         gfc_resolve_storage_size): New prototypes.
598         * check.c (gfc_check_c_sizeof,gfc_check_storage_size): New functions.
599         * intrinsic.c (add_functions): Add STORAGE_SIZE.
600         * iresolve.c (gfc_resolve_storage_size): New function.
601         * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): Handle polymorphic
602         arguments.
603         (gfc_conv_intrinsic_storage_size): New function.
604         (gfc_conv_intrinsic_function): Handle STORAGE_SIZE.
605
606 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
607
608         PR fortran/44847
609         * match.c (match_exit_cycle): Error on EXIT also from collapsed
610         !$omp do loops.  Error on CYCLE to non-innermost collapsed
611         !$omp do loops.
612
613 2010-07-08  Tobias Burnus  <burnus@net-b.de>
614
615         PR fortran/18918
616         * array.c (gfc_match_array_ref): Better error message for
617         coarrays with too few ranks.
618         (match_subscript): Move one diagnostic to caller.
619         * gfortran.h (gfc_get_corank): Add prottype.
620         * expr.c (gfc_get_corank): New function.
621         * iresolve.c (resolve_bound): Fix rank for cobounds.
622         (gfc_resolve_lbound,gfc_resolve_lcobound, gfc_resolve_ubound,
623         gfc_resolve_ucobound, gfc_resolve_this_image): Update
624         resolve_bound call.
625
626 2010-07-06  Tobias Burnus  <burnus@net-b.de>
627
628         PR fortran/44742
629         * array.c (gfc_expand_constructor): Add optional diagnostic.
630         * gfortran.h (gfc_expand_constructor): Update prototype.
631         * expr.c (gfc_simplify_expr, check_init_expr,
632         gfc_reduce_init_expr): Update gfc_expand_constructor call.
633         * resolve.c (gfc_resolve_expr): Ditto.
634
635 2010-07-06  Tobias Burnus  <burnus@net-b.de>
636
637         * trans-decl.c: Include diagnostic-core.h besides toplev.h.
638         * trans-intrinsic.c: Ditto.
639         * trans-types.c: Ditto.
640         * convert.c: Include diagnostic-core.h instead of toplev.h.
641         * options.c: Ditto.
642         * trans-array.c: Ditto.
643         * trans-const.c: Ditto.
644         * trans-expr.c: Ditto.
645         * trans-io.c: Ditto.
646         * trans-openmp.c: Ditto.
647         * trans.c: Ditto.
648
649 2010-07-06  Thomas Koenig  <tkoenig@gcc.gnu.org>
650
651         PR fortran/PR44693
652         * check.c (dim_rank_check):  Also check intrinsic functions.
653         Adjust permissible rank for functions which reduce the rank of
654         their argument.  Spread is an exception, where DIM can
655         be one larger than the rank of array.
656
657 2010-07-05  Steven G. Kargl  <kargl@gcc.gnu.org>
658
659         PR fortran/44797
660         * fortran/io.c (resolve_tag): Check EXIST tag is a default logical.
661
662 2010-07-05  Paul Thomas  <pault@gcc.gnu.org>
663
664         PR fortran/44596
665         * trans-types.c (gfc_get_derived_type): Derived type fields
666         with the vtype attribute must have TYPE_REF_CAN_ALIAS_ALL set
667         but build_pointer_type_for_mode must be used for this.
668
669 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
670
671         * trans.h (gfc_conv_procedure_call): Take a VEC instead of a tree.
672         * trans-intrinsic.c (gfc_conv_intrinsic_funcall): Adjust for new
673         type of gfc_conv_procedure_call.
674         (conv_generic_with_optional_char_arg): Likewise.
675         * trans-stmt.c (gfc_trans_call): Likewise.
676         * trans-expr.c (gfc_conv_function_expr): Likewise.
677         (gfc_conv_procedure_call): Use build_call_vec instead of
678         build_call_list.
679
680 2010-07-04  Daniel Kraft  <d@domob.eu>
681
682         * gfc-internals.texi (gfc_code): Document BLOCK and ASSOCIATE.
683
684 2010-07-04  Paul Thomas  <pault@gcc.gnu.org>
685
686         PR fortran/44596
687         PR fortran/44745
688         * trans-types.c (gfc_get_derived_type): Derived type fields
689         with the vtype attribute must have TYPE_REF_CAN_ALIAS_ALL set.
690
691 2010-07-02  Mikael Morin  <mikael@gcc.gnu.org>
692
693         PR fortran/44662
694         * decl.c (match_procedure_in_type): Clear structure before using.
695         (gfc_match_generic): Ditto.
696
697 2010-07-02  Nathan Froyd  <froydnj@codesourcery.com>
698
699         * trans-types.h (gfc_add_field_to_struct): Add tree ** parameter.
700         * trans-types.c (gfc_add_field_to_struct_1): New function, most
701         of which comes from...
702         (gfc_add_field_to_struct): ...here.  Call it.  Add new parameter.
703         (gfc_get_desc_dim_type): Call gfc_add_field_to_struct_1 for
704         building fields.
705         (gfc_get_array_descriptor_base): Likewise.
706         (gfc_get_mixed_entry_union): Likewise.
707         (gfc_get_derived_type): Add extra chain parameter for
708         gfc_add_field_to_struct.
709         * trans-stmt.c (gfc_trans_character_select): Likewise.
710         * trans-io.c (gfc_build_st_parameter): Likewise.
711
712 2010-06-29  Janus Weil  <janus@gcc.gnu.org>
713
714         PR fortran/44718
715         * resolve.c (is_external_proc): Prevent procedure pointers from being
716         regarded as external procedures.
717
718 2010-06-29  Janus Weil  <janus@gcc.gnu.org>
719
720         PR fortran/44696
721         * trans-intrinsic.c (gfc_conv_associated): Handle polymorphic variables
722         passed as second argument of ASSOCIATED.
723
724 2010-06-29  Paul Thomas  <pault@gcc.gnu.org>
725
726         PR fortran/44582
727         * trans-expr.c (arrayfunc_assign_needs_temporary): New function
728         to determine if a function assignment can be made without a
729         temporary.
730         (gfc_trans_arrayfunc_assign): Move all the conditions that
731         suppress the direct function call to the above new functon and
732         call it.
733
734 2010-06-28  Paul Thomas  <pault@gcc.gnu.org>
735
736         PR fortran/40158
737         * interface.c (argument_rank_mismatch): New function.
738         (compare_parameter): Call new function instead of generating
739         the error directly.
740
741 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
742
743         * trans-openmp.c (dovar_init): Define.  Define VECs containing it.
744         (gfc_trans_omp_do): Use a VEC to accumulate variables and their
745         initializers.
746
747 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
748
749         * Make-lang.in: Update dependencies.
750
751 2010-06-27  Nathan Froyd  <froydnj@codesourcery.com>
752
753         * gfortran.h (gfc_code): Split backend_decl field into cycle_label
754         and exit_label fields.
755         * trans-openmp.c (gfc_trans_omp_do): Assign to new fields
756         individually.
757         * trans-stmt.c (gfc_trans_simple_do): Likewise.
758         (gfc_trans_do): Likewise.
759         (gfc_trans_do_while): Likewise.
760         (gfc_trans_cycle): Use cycle_label directly.
761         (gfc_trans_exit): Use exit_label directly.
762
763 2010-06-27  Daniel Kraft  <d@domob.eu>
764
765         * dump-parse-tree.c (show_symbol): Dump target-expression for
766         associate names.
767         (show_code_node): Make distinction between BLOCK and ASSOCIATE.
768         (show_namespace): Use show_level for correct indentation of
769         "inner namespaces" (contained procedures or BLOCK).
770
771 2010-06-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
772
773         PR fortran/44678
774         * dump-parse-tree.c (show_code_node):  Show namespace for
775         EXEC_BLOCK.
776
777 2010-06-26  Tobias Burnus  <burnus@net-b.de>
778
779         * decl.c (gfc_match_decl_type_spec): Support
780         TYPE(intrinsic-type-spec).
781
782 2010-06-25  Tobias Burnus  <burnus@net-b.de>
783
784         * intrinsic.h (gfc_check_selected_real_kind,
785         gfc_simplify_selected_real_kind): Update prototypes.
786         * intrinsic.c (add_functions): Add radix support to
787         selected_real_kind.
788         * check.c (gfc_check_selected_real_kind): Ditto.
789         * simplify.c (gfc_simplify_selected_real_kind): Ditto.
790         * trans-decl.c (gfc_build_intrinsic_function_decls):
791         Change call from selected_real_kind to selected_real_kind2008.
792         * intrinsic.texi (SELECTED_REAL_KIND): Update for radix.
793         (PRECISION, RANGE, RADIX): Add cross @refs.
794
795 2010-06-25  Tobias Burnus  <burnus@net-b.de>
796
797         * decl.c (gfc_match_entry): Mark ENTRY as GFC_STD_F2008_OBS.
798         * gfortran.texi (_gfortran_set_options): Update for
799         GFC_STD_F2008_OBS addition.
800         * libgfortran.h: Add GFC_STD_F2008_OBS.
801         * options.c (set_default_std_flags, gfc_handle_option): Handle
802         GFC_STD_F2008_OBS.
803         io.c (check_format): Fix allow_std check.
804
805 2010-06-25  Tobias Burnus  <burnus@net-b.de>
806
807         * decl.c (gfc_match_entry): Allow END besides
808         END SUBROUTINE/END FUNCTION for contained procedures.
809
810 2010-06-25  Tobias Burnus  <burnus@net-b.de>
811
812         * parse.c (next_free, next_fixed): Allow ";" as first character.
813
814 2010-06-24  Tobias Burnus  <burnus@net-b.de>
815
816         PR fortran/44614
817         * decl.c (variable_decl): Fix IMPORT diagnostic for CLASS.
818
819 2010-06-22  Janus Weil  <janus@gcc.gnu.org>
820
821         PR fortran/44616
822         * resolve.c (resolve_fl_derived): Avoid checking for abstract on class
823         containers.
824
825 2010-06-21  Tobias Burnus  <burnus@net-b.de>
826
827         PR fortran/40632
828         * interface.c (compare_parameter): Add gfc_is_simply_contiguous
829         checks.
830         * symbol.c (gfc_add_contiguous): New function.
831         (gfc_copy_attr, check_conflict): Handle contiguous attribute.
832         * decl.c (match_attr_spec): Ditto.
833         (gfc_match_contiguous): New function.
834         * resolve.c (resolve_fl_derived, resolve_symbol): Handle
835         contiguous.
836         * gfortran.h (symbol_attribute): Add contiguous.
837         (gfc_is_simply_contiguous): Add prototype.
838         (gfc_add_contiguous): Add prototype.
839         * match.h (gfc_match_contiguous): Add prototype.
840         * parse.c (decode_specification_statement,
841         decode_statement): Handle contiguous attribute.
842         * expr.c (gfc_is_simply_contiguous): New function.
843         * dump-parse-tree.c (show_attr): Handle contiguous.
844         * module.c (ab_attribute, attr_bits, mio_symbol_attribute):
845         Ditto.
846         * trans-expr.c (gfc_add_interface_mapping): Copy
847         attr.contiguous.
848         * trans-array.c (gfc_conv_descriptor_stride_get,
849         gfc_conv_array_parameter): Handle contiguous arrays.
850         * trans-types.c (gfc_build_array_type, gfc_build_array_type,
851         gfc_sym_type, gfc_get_derived_type, gfc_get_array_descr_info):
852         Ditto.
853         * trans.h (gfc_array_kind): Ditto.
854         * trans-decl.c (gfc_get_symbol_decl): Ditto.
855
856 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
857
858         * options.c (gfc_handle_option): Don't handle N_OPTS.
859
860 2010-06-19  Janus Weil  <janus@gcc.gnu.org>
861
862         PR fortran/44584
863         * resolve.c (resolve_fl_derived): Reverse ordering of conditions
864         to avoid ICE.
865
866 2010-06-18  Tobias Burnus  <burnus@net-b.de>
867
868         PR fortran/44556
869         * resolve.c (resolve_allocate_deallocate): Properly check
870         part-refs in stat=/errmsg= for invalid use.
871
872 2010-06-17  Janus Weil  <janus@gcc.gnu.org>
873
874         PR fortran/44558
875         * resolve.c (resolve_typebound_function,resolve_typebound_subroutine):
876         Return directly in case of an error.
877
878 2010-06-16  Janus Weil  <janus@gcc.gnu.org>
879
880         PR fortran/44549
881         * gfortran.h (gfc_get_typebound_proc): Modified Prototype.
882         * decl.c (match_procedure_in_type): Give a unique gfc_typebound_proc
883         structure to each procedure in a procedure list.
884         * module.c (mio_typebound_proc): Add NULL argument to
885         'gfc_get_typebound_proc'.
886         * symbol.c (gfc_get_typebound_proc): Add a new argument, which is used
887         to initialize the new structure.
888
889 2010-06-15  Janus Weil  <janus@gcc.gnu.org>
890
891         PR fortran/43388
892         * gfortran.h (gfc_expr): Add new member 'mold'.
893         * match.c (gfc_match_allocate): Implement the MOLD tag.
894         * resolve.c (resolve_allocate_expr): Ditto.
895         * trans-stmt.c (gfc_trans_allocate): Ditto.
896
897 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
898
899         PR fortran/44536
900         * trans-openmp.c (gfc_omp_predetermined_sharing): Don't return
901         OMP_CLAUSE_DEFAULT_SHARED for artificial vars with
902         GFC_DECL_SAVED_DESCRIPTOR set.
903         (gfc_omp_report_decl): New function.
904         * trans.h (gfc_omp_report_decl): New prototype.
905         * f95-lang.c (LANG_HOOKS_OMP_REPORT_DECL): Redefine.
906
907 2010-06-13  Daniel Franke  <franke.daniel@gmail.com>
908
909         PR fortran/31588
910         PR fortran/43954
911         * gfortranspec.c (lang_specific_driver): Removed deprecation
912         warning for -M.
913         * lang.opt: Add options -M, -MM, -MD, -MMD, -MF, -MG, -MP, -MT, -MQ.
914         * lang-specs.h (CPP_FORWARD_OPTIONS): Add -M* options.
915         * cpp.h (gfc_cpp_makedep): New.
916         (gfc_cpp_add_dep): New.
917         (gfc_cpp_add_target): New.
918         * cpp.c (gfc_cpp_option): Add deps* members.
919         (gfc_cpp_makedep): New.
920         (gfc_cpp_add_dep): New.
921         (gfc_cpp_add_target): New.
922         (gfc_cpp_init_options): Initialize new options.
923         (gfc_cpp_handle_option): Handle new options.
924         (gfc_cpp_post_options): Map new options to libcpp-options.
925         (gfc_cpp_init): Handle deferred -MQ and -MT options.
926         (gfc_cpp_done): If requested, write dependencies to file.
927         * module.c (gfc_dump_module): Add a module filename as target.
928         * scanner.c (open_included_file): New parameter system; add the
929         included file as dependency.
930         (gfc_open_included_file): Add the included file as dependency.
931         (gfc_open_intrinsic_module): Likewise.
932         * invoke.texi: Removed deprecation warning for -M.
933         * gfortran.texi: Removed Makefile-dependencies project.
934
935 2010-06-12  Daniel Franke  <franke.daniel@gmail.com>
936
937         * resolve.c (resolve_global_procedure): Improved checking if an
938         explicit interface is required.
939
940 2010-06-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
941
942         * trans-decl.c (gfc_build_intrinsic_function_decls): Fix
943         return type.
944         * trans-intrinsic.c (gfc_conv_intrinsic_fdate): Fix argument type.
945         (gfc_conv_intrinsic_ttynam): Likewise.
946         (gfc_conv_intrinsic_trim): Likewise.
947
948 2010-06-12  Janus Weil  <janus@gcc.gnu.org>
949
950         PR fortran/40117
951         * decl.c (match_procedure_in_type): Allow procedure lists (F08).
952
953 2010-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
954
955         * trans-intrinsic.c (gfc_build_intrinsic_lib_fndecls): Fix comment.
956
957 2010-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
958
959         * mathbuiltins.def: Add builtins that do not directly correspond
960         to a Fortran intrinsic, with new macro OTHER_BUILTIN.
961         * f95-lang.c (gfc_init_builtin_functions): Define OTHER_BUILTIN.
962         * trans-intrinsic.c (gfc_intrinsic_map_t): Remove
963         code_{r,c}{4,8,10,16} fields. Add
964         {,complex}{float,double,long_double}_built_in fields.
965         (gfc_intrinsic_map): Adjust definitions of DEFINE_MATH_BUILTIN,
966         DEFINE_MATH_BUILTIN_C and LIB_FUNCTION accordingly. Add
967         definition of OTHER_BUILTIN.
968         (real_compnt_info): Remove unused struct.
969         (builtin_decl_for_precision, builtin_decl_for_float_kind): New
970         functions.
971         (build_round_expr): Call builtin_decl_for_precision instead of
972         series of if-else.
973         (gfc_conv_intrinsic_aint): Call builtin_decl_for_float_kind
974         instead of a switch.
975         (gfc_build_intrinsic_lib_fndecls): Match
976         {real,complex}{4,8,10,16}decl into the C-style built_in_decls.
977         (gfc_get_intrinsic_lib_fndecl): Do not hardcode floating-point
978         kinds.
979         (gfc_conv_intrinsic_lib_function): Go through all the extended
980         gfc_intrinsic_map.
981         (gfc_trans_same_strlen_check): Call builtin_decl_for_float_kind
982         instead of a switch.
983         (gfc_conv_intrinsic_abs): Likewise.
984         (gfc_conv_intrinsic_mod): Likewise.
985         (gfc_conv_intrinsic_sign): Likewise.
986         (gfc_conv_intrinsic_fraction): Likewise.
987         (gfc_conv_intrinsic_nearest): Likewise.
988         (gfc_conv_intrinsic_spacing): Likewise.
989         (gfc_conv_intrinsic_rrspacing): Likewise.
990         (gfc_conv_intrinsic_scale): Likewise.
991         (gfc_conv_intrinsic_set_exponent): Likewise.
992
993 2010-06-11  Paul Thomas  <pault@gcc.gnu.org>
994
995         PR fortran/42051
996         PR fortran/43896
997         * trans-expr.c (gfc_conv_derived_to_class): Handle array-valued
998         functions with CLASS formal arguments.
999
1000 2010-06-10  Janus Weil  <janus@gcc.gnu.org>
1001
1002         PR fortran/44207
1003         * resolve.c (conformable_arrays): Handle allocatable components.
1004
1005 2010-06-10  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1006
1007         PR fortran/38273
1008         * gfortran.texi: Document that Cray pointers cannot be function
1009         results.
1010
1011 2010-06-10  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1012
1013         PR fortran/36234
1014         * gfortran.texi: Document lack of support for syntax
1015         "complex FUNCTION name*16()", and existence of alternative
1016         legacy syntax "complex*16 FUNCTION name()".
1017
1018 2010-06-10  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1019
1020         PR fortran/43032
1021         * intrinsic.texi (FLUSH): Note the difference between FLUSH and
1022         POSIX's fsync(), and how to call the latter from Fortran code.
1023
1024 2010-06-10  Daniel Franke  <franke.daniel@gmail.com>
1025
1026         PR fortran/44457
1027         * interface.c (compare_actual_formal): Reject actual arguments with
1028         array subscript passed to ASYNCHRONOUS dummys.
1029
1030 2010-06-10  Daniel Kraft  <d@domob.eu>
1031
1032         PR fortran/38936
1033         * gfortran.h (enum gfc_statement): Add ST_ASSOCIATE, ST_END_ASSOCIATE.
1034         (struct gfc_symbol): New field `assoc'.
1035         (struct gfc_association_list): New struct.
1036         (struct gfc_code): New struct `block' in union, move `ns' there
1037         and add association list.
1038         (gfc_free_association_list): New method.
1039         (gfc_has_vector_subscript): Made public;
1040         * match.h (gfc_match_associate): New method.
1041         * parse.h (enum gfc_compile_state): Add COMP_ASSOCIATE.
1042         * decl.c (gfc_match_end): Handle ST_END_ASSOCIATE.
1043         * interface.c (gfc_has_vector_subscript): Made public.
1044         (compare_actual_formal): Rename `has_vector_subscript' accordingly.
1045         * match.c (gfc_match_associate): New method.
1046         (gfc_match_select_type): Change reference to gfc_code's `ns' field.
1047         * primary.c (match_variable): Don't allow names associated to expr here.
1048         * parse.c (decode_statement): Try matching ASSOCIATE statement.
1049         (case_exec_markers, case_end): Add ASSOCIATE statement.
1050         (gfc_ascii_statement): Hande ST_ASSOCIATE and ST_END_ASSOCIATE.
1051         (parse_associate): New method.
1052         (parse_executable): Handle ST_ASSOCIATE.
1053         (parse_block_construct): Change reference to gfc_code's `ns' field.
1054         * resolve.c (resolve_select_type): Ditto.
1055         (resolve_code): Ditto.
1056         (resolve_block_construct): Ditto and add comment.
1057         (resolve_select_type): Set association list in generated BLOCK to NULL.
1058         (resolve_symbol): Resolve associate names.
1059         * st.c (gfc_free_statement): Change reference to gfc_code's `ns' field
1060         and free association list.
1061         (gfc_free_association_list): New method.
1062         * symbol.c (gfc_new_symbol): NULL new field `assoc'.
1063         * trans-stmt.c (gfc_trans_block_construct): Change reference to
1064         gfc_code's `ns' field.
1065
1066 2010-06-10  Kai Tietz  <kai.tietz@onevision.com>
1067
1068         * error.c (error_print): Pre-initialize loc by NULL.
1069         * openmp.c (resolve_omp_clauses): Add explicit
1070         braces to avoid ambigous else.
1071         * array.c (match_subscript): Pre-initialize m to MATCH_ERROR.
1072
1073 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
1074
1075         * gfc-internals.texi: Move to GFDL 1.3.
1076         * gfortran.texi: Ditto.
1077         * intrinsic.texi: Ditto.
1078         * invoke.texi: Ditto.
1079
1080 2010-06-09  Daniel Franke  <franke.daniel@gmail.com>
1081
1082         PR fortran/44347
1083         * check.c (gfc_check_selected_real_kind): Verify that the
1084         actual arguments are scalar.
1085
1086 2010-06-09  Daniel Franke  <franke.daniel@gmail.com>
1087
1088         PR fortran/44359
1089         * intrinsic.c (gfc_convert_type_warn): Further improve -Wconversion.
1090
1091 2010-06-09  Janus Weil  <janus@gcc.gnu.org>
1092
1093         PR fortran/44430
1094         * dump-parse-tree.c (show_symbol): Avoid infinite loop.
1095
1096 2010-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>
1097
1098         * fortran/symbol.c (check_conflict):  Remove an invalid conflict check.
1099
1100 2010-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>
1101
1102         * fortran/intrinsic.c (add_functions): Change gfc_check_btest,
1103         gfc_check_ibclr, and gfc_check_ibset to gfc_check_bitfcn.
1104         * fortran/intrinsic.h: Remove prototypes for gfc_check_btest,
1105         gfc_check_ibclr, and gfc_check_ibset.  Add prototype for
1106         gfc_check_bitfcn.
1107         * fortran/check.c (nonnegative_check, less_than_bitsize1, 
1108         less_than_bitsize2): New functions.
1109         (gfc_check_btest): Renamed to gfc_check_bitfcn.  Use
1110         nonnegative_check and less_than_bitsize1.
1111         (gfc_check_ibclr, gfc_check_ibset): Removed.
1112         (gfc_check_ibits,gfc_check_mvbits): Use nonnegative_check and
1113         less_than_bitsize1.
1114
1115 2010-06-09  Janus Weil  <janus@gcc.gnu.org>
1116
1117         PR fortran/44211
1118         * resolve.c (resolve_typebound_function,resolve_typebound_subroutine):
1119         Resolve references.
1120
1121 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
1122
1123         * resolve.c (resolve_deallocate_expr): Avoid warning
1124         about possible use of iunitialized sym.
1125         (resolve_allocate_expr): Pre-initialize sym by NULL.
1126
1127 2010-06-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1128
1129         PR fortran/43040
1130         * f95-lang.c (gfc_init_builtin_functions): Remove comment.
1131
1132 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1133
1134         * trans-types.c (gfc_get_nodesc_array_type): Use typed GC
1135         allocation.
1136         (gfc_get_array_type_bounds): Likewise.
1137
1138         * trans-decl.c (gfc_allocate_lang_decl): Likewise.
1139         (gfc_find_module): Likewise.
1140
1141         * f95-lang.c (pushlevel): Likewise.
1142
1143         * trans.h (struct lang_type): Add variable_size GTY option.
1144         (struct lang_decl): Likewise.
1145
1146 2010-06-08  Tobias Burnus  <burnus@net-b.de>
1147
1148         PR fortran/44446
1149         * symbol.c (check_conflict): Move protected--external/procedure check ...
1150         * resolve.c (resolve_select_type): ... to the resolution stage.
1151
1152 2010-06-07  Tobias Burnus  <burnus@net-b.de>
1153
1154         * options.c (gfc_handle_option): Fix -fno-recursive.
1155
1156 2010-06-07  Tobias Burnus  <burnus@net-b.de>
1157
1158         * gfc-internals.texi (copyrights-gfortran): Fix copyright year format.
1159         * gfortran.texi (copyrights-gfortran): Ditto.
1160
1161 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
1162
1163         * lang.opt (fshort-enums): Define using Var and VarExists.
1164         * options.c (gfc_handle_option): Don't set flag_short_enums here.
1165
1166 2010-06-05  Paul Thomas  <pault@gcc.gnu.org>
1167             Janus Weil  <janus@gcc.gnu.org>
1168
1169         PR fortran/43945
1170         * resolve.c (get_declared_from_expr): Move to before
1171         resolve_typebound_generic_call.  Make new_ref and class_ref
1172         ignorable if set to NULL.
1173         (resolve_typebound_generic_call): Once we have resolved the
1174         generic call, check that the specific instance is that which
1175         is bound to the declared type.
1176         (resolve_typebound_function,resolve_typebound_subroutine): Avoid
1177         freeing 'class_ref->next' twice.
1178
1179 2010-06-05  Paul Thomas  <pault@gcc.gnu.org>
1180
1181         PR fortran/43895
1182         * trans-array.c (structure_alloc_comps): Dereference scalar
1183         'decl' if it is a REFERENCE_TYPE. Tidy expressions containing
1184         TREE_TYPE (decl).
1185
1186 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
1187
1188         * gfortranspec.c (append_arg, lang_specific_driver): Use
1189         GCC-specific formats in diagnostics.
1190
1191 2010-06-02  Tobias Burnus  <burnus@net-b.de>
1192
1193         PR fortran/44360
1194         * parse.c (gfc_fixup_sibling_symbols): Do not "fix" use-associated
1195         symbols.
1196
1197 2010-06-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1198
1199         PR fortran/44371
1200         * match.c (gfc_match_stopcode): Move gfc_match_eos call inside 
1201         condition block.
1202
1203 2010-05-31  Steven G. Kargl  <kargl@gcc.gnu.org>
1204
1205         * fortran/gfortran.texi:  Fix typos in description of variable-format-
1206         expressions.
1207
1208 2010-05-31  Thomas Koenig  <tkoenig@gcc.gnu.org>
1209
1210         PR fortran/36928
1211         * dependency.c (gfc_check_section_vs_section):  Check
1212         for interleaving array assignments without conflicts.
1213
1214 2010-05-30  Janus Weil  <janus@gcc.gnu.org>
1215
1216         * gcc/fortran/gfortran.h (CLASS_DATA): New macro for accessing the
1217         $data component of a class container.
1218         * gcc/fortran/decl.c (attr_decl1): Use macro CLASS_DATA.
1219         * gcc/fortran/expr.c (gfc_check_pointer_assign,gfc_check_assign_symbol,
1220         gfc_has_ultimate_allocatable,gfc_has_ultimate_pointer): Ditto.
1221         * gcc/fortran/interface.c (matching_typebound_op): Ditto.
1222         * gcc/fortran/match.c (gfc_match_allocate, gfc_match_deallocate): Ditto.
1223         * gcc/fortran/parse.c (parse_derived): Ditto.
1224         * gcc/fortran/primary.c (gfc_match_varspec, gfc_variable_attr,
1225         gfc_expr_attr): Ditto.
1226         * gcc/fortran/resolve.c (resolve_structure_cons, find_array_spec,
1227         resolve_deallocate_expr, resolve_allocate_expr, resolve_select_type,
1228         resolve_fl_var_and_proc, resolve_typebound_procedure,
1229         resolve_fl_derived): Ditto.
1230         * gcc/fortran/symbol.c (gfc_type_compatible): Restructured.
1231         * gcc/fortran/trans-array.c (structure_alloc_comps): Use macro
1232         CLASS_DATA.
1233         * gcc/fortran/trans-decl.c (gfc_get_symbol_decl,
1234         gfc_trans_deferred_vars): Ditto.
1235         * gcc/fortran/trans-stmt.c (gfc_trans_allocate): Ditto.
1236
1237 2010-05-28  Tobias Burnus  <burnus@net-b.de>
1238
1239         * options.c (gfc_handle_option): Fix handling of -fno-whole-file.
1240
1241 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
1242
1243         * gfortranspec.c (append_arg, lang_specific_driver): Use
1244         fatal_error instead of fatal.  Use warning instead of fprintf for
1245         warnings.
1246
1247 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
1248
1249         * cpp.c (gfc_cpp_init_0): Use xstrerror instead of strerror.
1250         * module.c (write_char, gfc_dump_module, gfc_use_module): Use
1251         xstrerror instead of strerror.
1252
1253 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
1254
1255         * cpp.c (cb_cpp_error): Save and restore
1256         global_dc->warn_system_headers, not variable warn_system_headers.
1257
1258 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1259
1260         * fortran/f95-lang.c: Do not include libfuncs.h, expr.h, and except.h.
1261
1262 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1263
1264         * trans-common.c: Do not include rtl.h, include output.h instead.
1265         * trans-decl.c: Likewise.
1266
1267 2010-05-26  Paul Thomas  <pault@gcc.gnu.org>
1268
1269         PR fortran/40011
1270         * resolve.c (resolve_global_procedure): Resolve the gsymbol's
1271         namespace before trying to reorder the gsymbols.
1272
1273 2010-05-25  Daniel Franke  <franke.daniel@gmail.com>
1274
1275         PR fortran/30668
1276         PR fortran/31346
1277         PR fortran/34260
1278         * resolve.c (resolve_global_procedure): Add check for global
1279         procedures with implicit interfaces and assumed-shape or optional
1280         dummy arguments. Verify that function return type, kind and string
1281         lengths match.
1282
1283 2010-05-21  Tobias Burnus  <burnus@net-b.de>
1284
1285         * gfortran.h: Do not include system.h.
1286         * bbt.c: Include system.h.
1287         * data.c: Ditto.
1288         * dependency.c: Ditto.
1289         * dump-parse-tree.c: Ditto.
1290         * arith.h: Do not include gfortran.h.
1291         * constructor.h: Do not include gfortran.h and splay-tree.h.
1292         * match.h: Do not include gfortran.h.
1293         * parse.h: Ditto.
1294         * target-memory.h: Ditto.
1295         * openmp.c: Do not include toplev.h and target.h.
1296         * trans-stmt.c: Ditto not include toplev.h.
1297         * primary.c: Ditto.
1298         * trans-common.c: Tell why toplev.h is needed. And
1299         do not include target.h.
1300         * trans-expr.c: Tell why toplev.h is needed.
1301         * trans-array.c: Ditto.
1302         * trans-openmp.c: Ditto.
1303         * trans-const.c: Ditto.
1304         * trans.c: Ditto.
1305         * trans-types.c: Ditto.
1306         * trans-io.c: Ditto.
1307         * trans-decl.c: Ditto.
1308         * scanner.c: Ditto.
1309         * convert.c: Ditto.
1310         * trans-intrinsic.c: Ditto.
1311         * options.c: Ditto.
1312
1313 2010-05-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1314
1315         PR fortran/43851
1316         * match.c (gfc_match_stopcode): Use gfc_match_init_expr. Go to cleanup
1317         before returning MATCH_ERROR. Add check for scalar. Add check for
1318         default integer kind.
1319
1320 2010-05-22  Janus Weil  <janus@gcc.gnu.org>
1321
1322         PR fortran/44212
1323         * match.c (gfc_match_select_type): On error jump back out of the local
1324         namespace.
1325         * parse.c (parse_derived): Defer creation of vtab symbols to resolution
1326         stage, more precisely to ...
1327         * resolve.c (resolve_fl_derived): ... this place.
1328
1329 2010-05-22  Janus Weil  <janus@gcc.gnu.org>
1330
1331         PR fortran/44213
1332         * resolve.c (ensure_not_abstract): Allow abstract types with
1333         non-abstract ancestors.
1334
1335 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
1336
1337         * trans-const.c: Include realmpfr.h.
1338         * Make-lang.in: Update dependencies.
1339
1340 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
1341
1342         * trans-const.c, trans-types.c, trans-intrinsic.c:
1343         Clean up redundant includes.
1344
1345 2010-05-20  Daniel Franke  <franke.daniel@gmail.com>
1346
1347         PR fortran/38407
1348         * lang.opt (Wunused-dummy-argument): New option.
1349         * gfortran.h (gfc_option_t): Add warn_unused_dummy_argument.
1350         * options.c (gfc_init_options): Disable warn_unused_dummy_argument.
1351         (set_Wall): Enable warn_unused_dummy_argument.
1352         (gfc_handle_option): Set warn_unused_dummy_argument according to
1353         command line.
1354         * trans-decl.c (generate_local_decl): Separate warnings about
1355         unused variables and unused dummy arguments.
1356         * invoke.texi: Documented new option.
1357
1358 2010-05-20  Steven Bosscher  <steven@gcc.gnu.org>
1359
1360         * trans-expr.c: Do not include convert.h, ggc.h, real.h, and gimple.h.
1361         (gfc_conv_string_tmp): Do not assert type comparibilty.
1362         *  trans-array.c: Do not include gimple.h, ggc.h, and real.h.
1363         (gfc_conv_expr_descriptor): Remove assert.
1364         * trans-common.c: Clarify why rtl.h and tm.h are included.
1365         * trans-openmp.c: Do not include ggc.h and real.h.
1366         Explain why gimple.h is included.
1367         * trans-const.c: Do not include ggc.h.
1368         * trans-stmt.c: Do not include gimple.h, ggc.h, and real.h.
1369         * trans.c: Do not include ggc.h and real.h.
1370         Explain why gimple.h is included.
1371         * trans-types.c: Do not include tm.h.  Explain why langhooks.h
1372         and dwarf2out.h are included.
1373         * trans-io.c: Do not include gimple.h and real.h.
1374         * trans-decl.c: Explain why gimple.h, tm.h, and rtl.h are included.
1375         * trans-intrinsic.c: Do not include gimple.h.  Explain why tm.h
1376         is included.
1377
1378 2010-05-20  Tobias Burnus  <burnus@net-b.de>
1379
1380         * options.c (gfc_init_options,gfc_post_options): Enable
1381         flag_associative_math by default.
1382
1383 2010-05-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1384
1385         PR fortran/43851
1386         * trans-stmt.c (gfc_trans_stop): Add generation of call to
1387         gfortran_error_stop_numeric. Fix up some whitespace. Use stop_string for
1388         blank STOP, handling a null expression. (gfc_trans_pause): Use
1389         pause_string for blank PAUSE.
1390         * trans.h: Add external function declaration for error_stop_numeric.
1391         * trans-decl.c (gfc_build_builtin_function_decls): Add the building of
1392         the declaration for the library call. Adjust whitespaces.
1393         * match.c (gfc_match_stopcode): Remove use of the actual stop code to
1394         signal no stop code. Match the expression following the stop and pass
1395         that to the translators. Remove the old use of digit matching.  Add
1396         checks that the stop_code expression is INTEGER or CHARACTER, constant,
1397         and if CHARACTER, default character KIND.
1398
1399 2010-05-19  Daniel Franke  <franke.daniel@gmail.com>
1400
1401         PR fortran/44055
1402         * lang.opt (Wconversion-extra): New option.
1403         * gfortran.h (gfc_option_t): Add warn_conversion_extra.
1404         * options.c (gfc_init_options): Disable -Wconversion-extra by default.
1405         (set_Wall): Enable -Wconversion.
1406         (gfc_handle_option): Set warn_conversion_extra.
1407         * intrinsic.c (gfc_convert_type_warn): Ignore kind conditions
1408         introduced for -Wconversion if -Wconversion-extra is present.
1409         * invoke.texi: Add -Wconversion to -Wall; document new behaviour of
1410         -Wconversion; document -Wconversion-extra.
1411
1412 2010-05-19  Daniel Franke  <franke.daniel@gmail.com>
1413
1414         PR fortran/42360
1415         * gfortran.h (gfc_has_default_initializer): New.
1416         * expr.c (gfc_has_default_initializer): New.
1417         * resolve.c (has_default_initializer): Removed, use
1418         gfc_has_default_initializer() instead. Updated all callers.
1419         * trans-array.c (has_default_initializer): Removed, use
1420         gfc_has_default_initializer() instead. Updated all callers.
1421         * trans-decl.c (generate_local_decl): Do not check the
1422         first component only to check for initializers, but use
1423         gfc_has_default_initializer() instead.
1424
1425 2010-05-19  Daniel Franke  <franke.daniel@gmail.com>
1426
1427         PR fortran/38404
1428         * primary.c (match_string_constant): Move start_locus just inside 
1429         the string.
1430         * data.c (create_character_intializer): Clarified truncation warning.
1431
1432 2010-05-19  Daniel Franke  <franke.daniel@gmail.com>
1433
1434         PR fortran/34505
1435         * intrinsic.h (gfc_check_float): New prototype.
1436         (gfc_check_sngl): New prototype.
1437         * check.c (gfc_check_float): New.
1438         (gfc_check_sngl): New.
1439         * intrinsic.c (add_functions): Moved DFLOAT from aliasing DBLE
1440         to be a specific for REAL. Added check routines for FLOAT, DFLOAT
1441         and SNGL.
1442         * intrinsic.texi: Removed individual nodes of FLOAT, DFLOAT and SNGL,
1443         added them to the list of specifics of REAL instead.
1444
1445 2010-05-17  Janus Weil  <janus@gcc.gnu.org>
1446
1447         PR fortran/43990
1448         * trans-expr.c (gfc_conv_structure): Remove unneeded and buggy code.
1449         This is now handled via 'gfc_class_null_initializer'.
1450
1451 2010-05-17  Janus Weil  <janus@gcc.gnu.org>
1452
1453         * class.c (gfc_add_component_ref,gfc_class_null_initializer,
1454         gfc_build_class_symbol,add_proc_component,add_proc_comps, 
1455         add_procs_to_declared_vtab1,copy_vtab_proc_comps,
1456         add_procs_to_declared_vtab,add_generic_specifics, 
1457         add_generics_to_declared_vtab,gfc_find_derived_vtab,
1458         find_typebound_proc_uop,gfc_find_typebound_proc,
1459         gfc_find_typebound_user_op,gfc_find_typebound_intrinsic_op, 
1460         gfc_get_tbp_symtree): Moved here from other places.
1461         * expr.c (gfc_add_component_ref,gfc_class_null_initializer): Move to
1462         class.c.
1463         * gfortran.h (gfc_build_class_symbol,gfc_find_derived_vtab,
1464         gfc_find_typebound_proc,gfc_find_typebound_user_op,
1465         gfc_find_typebound_intrinsic_op,gfc_get_tbp_symtree,
1466         gfc_add_component_ref, gfc_class_null_initializer): Moved to class.c.
1467         * Make-lang.in: Add class.o.
1468         * symbol.c (gfc_build_class_symbol,add_proc_component,add_proc_comps,
1469         add_procs_to_declared_vtab1,copy_vtab_proc_comps,
1470         add_procs_to_declared_vtab,add_generic_specifics,
1471         add_generics_to_declared_vtab,gfc_find_derived_vtab,
1472         find_typebound_proc_uop,gfc_find_typebound_proc,
1473         gfc_find_typebound_user_op,gfc_find_typebound_intrinsic_op,
1474         gfc_get_tbp_symtree): Move to class.c.
1475
1476 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
1477
1478         * trans-types.c (gfc_init_types): Use build_function_type_list.
1479         (gfc_get_ppc_type): Likewise.
1480         * trans-decl.c (gfc_generate_constructors): Likewise.
1481         * f95-lang.c (build_builtin_fntypes): Likewise.
1482         (gfc_init_builtin_functions): Likewise.
1483         (DEF_FUNCTION_TYPE_0): Likewise.
1484         (DEF_FUNCTION_TYPE_1): Likewise.
1485         (DEF_FUNCTION_TYPE_2): Likewise.
1486         (DEF_FUNCTION_TYPE_3): Likewise.
1487         (DEF_FUNCTION_TYPE_4): Likewise.
1488         (DEF_FUNCTION_TYPE_5): Likewise.
1489         (DEF_FUNCTION_TYPE_6): Likewise.
1490         (DEF_FUNCTION_TYPE_7): Likewise.  Use ARG7.
1491         (DEF_FUNCTION_TYPE_VAR_0): Use build_varags_function_type_list.
1492  
1493 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
1494
1495         * trans-array.c (gfc_trans_array_constructor_value): Use
1496         build_constructor instead of build_constructor_from_list.
1497         (gfc_build_constant_array_constructor): Likewise.
1498         * trans-decl.c (create_main_function): Likewise.
1499         * trans-stmt.c (gfc_trans_character_select): Likewise.
1500
1501 2010-05-17  Janus Weil  <janus@gcc.gnu.org>
1502
1503         PR fortran/44044
1504         * resolve.c (resolve_fl_var_and_proc): Move error messages here from ...
1505         (resolve_fl_variable_derived): ... this place.
1506         (resolve_symbol): Make sure function symbols (and their result
1507         variables) are not resolved twice.
1508
1509 2010-05-16  Daniel Franke  <franke.daniel@gmail.com>
1510
1511         PR fortran/35779
1512         * array.c (match_array_list): Revert change from 2010-05-13.
1513
1514 2010-05-16  Richard Guenther  <rguenther@suse.de>
1515
1516         * trans-decl.c (module_htab_decls_hash): Revert last change.
1517
1518 2010-05-16  Richard Guenther  <rguenther@suse.de>
1519
1520         * trans-decl.c (module_htab_decls_hash): Use IDENTIFIER_HASH_VALUE.
1521
1522 2010-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1523
1524         * options.c (set_Wall): Remove special logic for Wuninitialized
1525         without -O.
1526
1527 2010-05-15  Janus Weil  <janus@gcc.gnu.org>
1528
1529         PR fortran/44154
1530         PR fortran/42647
1531         * trans-decl.c (gfc_trans_deferred_vars): Modify ordering of
1532         if branches.
1533
1534 2010-05-15  Janus Weil  <janus@gcc.gnu.org>
1535
1536         PR fortran/43207
1537         PR fortran/43969
1538         * gfortran.h (gfc_class_null_initializer): New prototype.
1539         * expr.c (gfc_class_null_initializer): New function to build a NULL
1540         initializer for CLASS pointers.
1541         * symbol.c (gfc_build_class_symbol): Modify internal naming of class
1542         containers. Remove default NULL initialization of $data component.
1543         * trans.c (gfc_allocate_array_with_status): Fix wording of an error 
1544         message.
1545         * trans-expr.c (gfc_conv_initializer,gfc_trans_subcomponent_assign):
1546         Use new function 'gfc_class_null_initializer'.
1547         * trans-intrinsic.c (gfc_conv_allocated): Handle allocatable scalar
1548         class variables.
1549
1550 2010-05-14  Steven G. Kargl  <kargl@gcc.gnu.org>
1551
1552         PR fortran/44135
1553         * fortran/interface.c (get_sym_storage_size): Use signed instead of
1554         unsigned mpz_get_?i routines.
1555
1556 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
1557
1558         * trans.c (trans_code): Set backend locus early.
1559         * trans-decl.c (gfc_get_fake_result_decl): Use source location
1560         of the function instead of current input_location.
1561
1562 2010-05-13  Daniel Franke  <franke.daniel@gmail.com>
1563
1564         PR fortran/35779
1565         * intrinsic.c (gfc_init_expr): Renamed to gfc_init_expr_flag.
1566         Updated all usages.
1567         * expr.c (init_flag): Removed; use gfc_init_expr_flag everywhere.
1568         * array.c (match_array_list): Pass on gfc_init_expr_flag when matching
1569         iterators.
1570
1571 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
1572
1573         PR fortran/44036
1574         * openmp.c (resolve_omp_clauses): Allow procedure pointers in clause
1575         variable lists.
1576         * trans-openmp.c (gfc_omp_privatize_by_reference): Don't privatize
1577         by reference dummy procedures or non-dummy procedure pointers.
1578         (gfc_omp_predetermined_sharing): Return
1579         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE for dummy procedures.
1580
1581 2010-05-11  Daniel Franke  <franke.daniel@gmail.com>
1582
1583         PR fortran/43711
1584         * openmp.c (gfc_match_omp_taskwait): Report unexpected characters
1585         after OMP statement.
1586         (gfc_match_omp_critical): Likewise.
1587         (gfc_match_omp_flush): Likewise.
1588         (gfc_match_omp_workshare): Likewise.
1589         (gfc_match_omp_master): Likewise.
1590         (gfc_match_omp_ordered): Likewise.
1591         (gfc_match_omp_atomic): Likewise.
1592         (gfc_match_omp_barrier): Likewise.
1593         (gfc_match_omp_end_nowait): Likewise.
1594
1595 2010-05-11  Daniel Franke  <franke.daniel@gmail.com>
1596
1597         PR fortran/31820
1598         * resolve.c (validate_case_label_expr): Removed FIXME.
1599         (resolve_select): Raise default warning on case labels out of range
1600         of the case expression.
1601
1602 2010-05-10  Daniel Franke  <franke.daniel@gmail.com>
1603
1604         PR fortran/27866
1605         PR fortran/35003
1606         PR fortran/42809
1607         * intrinsic.c (gfc_convert_type_warn): Be more discriminative
1608         about conversion warnings.
1609
1610 2010-05-10  Janus Weil  <janus@gcc.gnu.org>
1611
1612         PR fortran/44044
1613         * match.c (gfc_match_select_type): Move error message to
1614         resolve_select_type.
1615         * resolve.c (resolve_select_type): Error message moved here from
1616         gfc_match_select_type. Correctly set type of temporary.
1617
1618 2010-05-10  Richard Guenther  <rguenther@suse.de>
1619
1620         * trans-decl.c (gfc_build_library_function_decl): Split out
1621         worker to ...
1622         (build_library_function_decl_1): ... this new function.
1623         Set a fnspec attribute if a specification was provided.
1624         (gfc_build_library_function_decl_with_spec): New function.
1625         (gfc_build_intrinsic_function_decls): Annotate internal_pack
1626         and internal_unpack.
1627
1628 2010-05-07  Daniel Franke  <franke.daniel@gmail.com>
1629
1630         PR fortran/40728
1631         * intrinc.c (gfc_is_intrinsic): Do not prematurely mark symbol
1632         as external.
1633
1634 2010-05-07  Jason Merrill  <jason@redhat.com>
1635
1636         * trans-expr.c (gfc_conv_procedure_call): Rename nullptr to null_ptr
1637         to avoid -Wc++-compat warning.
1638
1639 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1640
1641         PR 40989
1642         * options.c (gfc_handle_option): Add argument kind.
1643         * gfortran.h (gfc_handle_option): Update declaration.
1644
1645 2010-05-06  Tobias Burnus  <burnus@net-b.de>
1646
1647         PR fortran/43985
1648         * trans-types.c (gfc_sym_type): Mark Cray pointees as
1649         GFC_POINTER_TYPE_P.
1650
1651 2010-05-05  Daniel Franke  <franke.daniel@gmail.com>
1652
1653         PR fortran/32331
1654         * resolve.c (traverse_data_list): Rephrase error message for
1655         non-constant bounds in data-implied-do.
1656
1657 2010-05-05  Daniel Franke  <franke.daniel@gmail.com>
1658
1659         PR fortran/24978
1660         * gfortran.h: Removed repeat count from constructor, removed
1661         all usages.
1662         * data.h (gfc_assign_data_value_range): Changed return value from
1663         void to gfc_try.
1664         * data.c (gfc_assign_data_value): Add location to constructor element.
1665         (gfc_assign_data_value_range): Call gfc_assign_data_value()
1666         for each element in range. Return early if an error was generated.
1667         * resolve.c (check_data_variable): Stop early if range assignment
1668         generated an error.
1669
1670 2010-05-05  Janus Weil  <janus@gcc.gnu.org>
1671
1672         PR fortran/43696
1673         * resolve.c (resolve_fl_derived): Some fixes for class variables.
1674         * symbol.c (gfc_build_class_symbol): Add separate class container for
1675         class pointers.
1676
1677 2010-05-03  Steven G. Kargl  <kargl@gcc.gnu.org>
1678
1679         PR fortran/43592
1680         * fortran/parse.c (parse_interface): Do not dereference a NULL pointer.
1681
1682 2010-05-02  Tobias Burnus  <burnus@net-b.de>
1683
1684         PR fortran/18918
1685         * intrinsic.c (add_functions): Fix GFC_STD and add gfc_resolve_ calls
1686         for lcobound, ucobound, image_index and this_image.
1687         * intrinsic.h (gfc_resolve_lcobound, gfc_resolve_this_image,
1688         gfc_resolve_image_index, gfc_resolve_ucobound): New prototypes.
1689         * iresolve.c (gfc_resolve_lcobound, gfc_resolve_this_image,
1690         gfc_resolve_image_index, gfc_resolve_ucobound, resolve_bound): New
1691         functions.
1692         (gfc_resolve_lbound, gfc_resolve_ubound): Use resolve_bound.
1693
1694 2010-04-30  Tobias Burnus  <burnus@net-b.de>
1695
1696         PR fortran/18918
1697         PR fortran/43931
1698         *  trans-types.c (gfc_get_array_descriptor_base): Fix index
1699         calculation for array descriptor types.
1700
1701 2010-04-29  Janus Weil  <janus@gcc.gnu.org>
1702
1703         PR fortran/43896
1704         * symbol.c (add_proc_component,copy_vtab_proc_comps): Remove
1705         initializers for PPC members of the vtabs.
1706
1707 2010-04-29  Janus Weil  <janus@gcc.gnu.org>
1708
1709         PR fortran/42274
1710         * symbol.c (add_proc_component,add_proc_comps): Correctly set the 'ppc'
1711         attribute for all PPC members of the vtypes.
1712         (copy_vtab_proc_comps): Copy the correct interface.
1713         * trans.h (gfc_trans_assign_vtab_procs): Modified prototype.
1714         * trans-expr.c (gfc_trans_assign_vtab_procs): Pass the derived type as
1715         a dummy argument and make sure all PPC members of the vtab are
1716         initialized correctly.
1717         (gfc_conv_derived_to_class,gfc_trans_class_assign): Additional argument
1718         in call to gfc_trans_assign_vtab_procs.
1719         * trans-stmt.c (gfc_trans_allocate): Ditto.
1720
1721 2010-04-29  Paul Thomas  <pault@gcc.gnu.org>
1722
1723         PR fortran/43326
1724         * resolve.c (resolve_typebound_function): Renamed
1725         resolve_class_compcall.Do all the detection of class references
1726         here.
1727         (resolve_typebound_subroutine): resolve_class_typebound_call
1728         renamed. Otherwise same as resolve_typebound_function.
1729         (gfc_resolve_expr): Call resolve_typebound_function.
1730         (resolve_code): Call resolve_typebound_subroutine.
1731
1732 2010-04-29  Janus Weil  <janus@gcc.gnu.org>
1733
1734         PR fortran/43492
1735         * resolve.c (resolve_typebound_generic_call): For CLASS methods
1736         pass back the specific symtree name, rather than the target
1737         name.
1738
1739 2010-04-29  Paul Thomas  <pault@gcc.gnu.org>
1740
1741         PR fortran/42353
1742         * resolve.c (resolve_structure_cons): Make the initializer of
1743         the vtab component 'extends' the same type as the component.
1744
1745 2010-04-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1746
1747         PR fortran/42680
1748         * interface.c (check_interface1): Pass symbol name rather than NULL to
1749         gfc_compare_interfaces.(gfc_compare_interfaces): Add assert to
1750         trap MULL. (gfc_compare_derived_types): Revert previous change
1751         incorporated incorrectly during merge from trunk, r155778.
1752         * resolve.c (check_generic_tbp_ambiguity): Pass symbol name rather
1753         than NULL to gfc_compare_interfaces.
1754         * symbol.c (add_generic_specifics): Likewise.
1755
1756 2010-02-29  Janus Weil  <janus@gcc.gnu.org>
1757
1758         PR fortran/42353
1759         * interface.c (gfc_compare_derived_types): Add condition for vtype.
1760         * symbol.c (gfc_find_derived_vtab): Sey access to private.
1761         (gfc_find_derived_vtab): Likewise.
1762         * module.c (ab_attribute): Add enumerator AB_VTAB.
1763         (mio_symbol_attribute): Use new attribute, AB_VTAB.
1764         (check_for_ambiguous): Likewise.
1765
1766 2010-04-29  Paul Thomas  <pault@gcc.gnu.org>
1767             Janus Weil  <janus@gcc.gnu.org>
1768
1769         PR fortran/41829
1770         * trans-expr.c (select_class_proc): Remove function.
1771         (conv_function_val): Delete reference to previous.
1772         (gfc_conv_derived_to_class): Add second argument to the call to
1773         gfc_find_derived_vtab.
1774         (gfc_conv_structure): Exclude proc_pointer components when
1775         accessing $data field of class objects.
1776         (gfc_trans_assign_vtab_procs): New function.
1777         (gfc_trans_class_assign): Add second argument to the call to
1778         gfc_find_derived_vtab.
1779         * symbol.c (gfc_build_class_symbol): Add delayed_vtab arg and
1780         implement holding off searching for the vptr derived type.
1781         (add_proc_component): New function.
1782         (add_proc_comps): New function.
1783         (add_procs_to_declared_vtab1): New function.
1784         (copy_vtab_proc_comps): New function.
1785         (add_procs_to_declared_vtab): New function.
1786         (void add_generic_specifics): New function.
1787         (add_generics_to_declared_vtab): New function.
1788         (gfc_find_derived_vtab): Add second argument to the call to
1789         gfc_find_derived_vtab. Add the calls to
1790         add_procs_to_declared_vtab and add_generics_to_declared_vtab.
1791         * decl.c (build_sym, build_struct): Use new arg in calls to
1792         gfc_build_class_symbol.
1793         * gfortran.h : Add vtype bitfield to symbol_attr. Remove the
1794         definition of struct gfc_class_esym_list. Modify prototypes
1795         of gfc_build_class_symbol and gfc_find_derived_vtab.
1796         * trans-stmt.c (gfc_trans_allocate): Add second argument to the
1797         call to gfc_find_derived_vtab.
1798         * module.c : Add the vtype attribute.
1799         * trans.h : Add prototype for gfc_trans_assign_vtab_procs.
1800         * resolve.c (resolve_typebound_generic_call): Add second arg
1801         to pass along the generic name for class methods.
1802         (resolve_typebound_call): The same.
1803         (resolve_compcall): Use the second arg to carry the generic
1804         name from the above. Remove the reference to class_esym.
1805         (check_members, check_class_members, resolve_class_esym,
1806         hash_value_expr): Remove functions.
1807         (resolve_class_compcall, resolve_class_typebound_call): Modify
1808         to use vtable rather than member by member calls.
1809         (gfc_resolve_expr): Modify second arg in call to
1810         resolve_compcall.
1811         (resolve_select_type): Add second arg in call to
1812         gfc_find_derived_vtab.
1813         (resolve_code): Add second arg in call resolve_typebound_call.
1814         (resolve_fl_derived): Exclude vtypes from check for late
1815         procedure definitions. Likewise for checking of explicit
1816         interface and checking of pass arg.
1817         * iresolve.c (gfc_resolve_extends_type_of): Add second arg in
1818         calls to gfc_find_derived_vtab.
1819         * match.c (select_type_set_tmp): Use new arg in call to
1820         gfc_build_class_symbol.
1821         * trans-decl.c (gfc_get_symbol_decl): Complete vtable if
1822         necessary.
1823         * parse.c (endType): Finish incomplete classes.
1824
1825 2010-04-28  Tobias Burnus  <burnus@net-b.de>
1826
1827         PR fortran/18918
1828         PR fortran/43919
1829         * simplify.c (simplify_cobound): Handle scalar coarrays.
1830
1831 2010-04-27  Tobias Burnus  <burnus@net-b.de>
1832
1833         * gfc-internals.texi: Update copyright year.
1834         * gfortran.texi: Ditto.
1835         * invoke.texi: Ditto.
1836
1837 2010-04-27  Tobias Burnus  <burnus@net-b.de>
1838
1839         PR fortran/18918
1840         * resolve.c (resolve_allocate_expr): Allow array coarrays.
1841         * trans-types.h (gfc_get_array_type_bounds): Update prototype.
1842         * trans-types.c (gfc_get_array_type_bounds,
1843         gfc_get_array_descriptor_base): Add corank argument.
1844         * trans-array.c (gfc_array_init_size): Handle corank.
1845         (gfc_trans_create_temp_array, gfc_array_allocate,
1846         gfc_conv_expr_descriptor): Add corank argument to call.
1847         * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Ditto.
1848
1849 2010-04-24  Steven G. Kargl  <kargl@gcc.gnu.org>
1850
1851         PR fortran/30073
1852         PR fortran/43793
1853         * trans-array.c (gfc_trans_array_bound_check): Use TREE_CODE instead
1854         of mucking with a tree directly.
1855
1856 2010-04-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1857
1858         PR fortran/43832
1859         * io.c (gfc_match_open): Remove branch to syntax error. Add call to
1860         gfc_error with new error message.
1861
1862 2010-04-24  Paul Thomas  <pault@gcc.gnu.org>
1863
1864         PR fortran/43841
1865         PR fortran/43843
1866         * trans-expr.c (gfc_conv_expr): Supply an address expression for
1867         GFC_SS_REFERENCE.
1868         (gfc_conv_expr_reference): Call gfc_conv_expr and return for
1869         GFC_SS_REFERENCE.
1870         * trans-array.c (gfc_add_loop_ss_code): Store the value rather
1871         than the address of a GFC_SS_REFERENCE.
1872         * trans.h : Change comment on GFC_SS_REFERENCE. 
1873
1874 2010-04-22  Richard Guenther  <rguenther@suse.de>
1875
1876         PR fortran/43829
1877         * resolve.c (gfc_resolve_index): Wrap around ...
1878         (gfc_resolve_index_1): ... this.  Add parameter to allow
1879         any integer kind index type.
1880         (resolve_array_ref): Allow any integer kind for the start
1881         index of an array ref.
1882
1883 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1884
1885         PR fortran/43836
1886         * f95-lang.c (gfc_define_builtin): Set TREE_NOTHROW on
1887         the decl.
1888
1889 2010-04-20  Harald Anlauf  <anlauf@gmx.de>
1890
1891         * intrinsic.c (sort_actual): Remove 'is' in error message.
1892
1893 2010-04-20  Paul Thomas  <pault@gcc.gnu.org>
1894
1895         PR fortran/43227
1896         * resolve.c (resolve_fl_derived): If a component character
1897         length has not been resolved, do so now.
1898         (resolve_symbol): The same as above for a symbol character
1899         length.
1900         * trans-decl.c (gfc_create_module_variable): A 'length' decl is
1901         not needed for a character valued, procedure pointer.
1902
1903         PR fortran/43266
1904         * resolve.c (ensure_not_abstract_walker): If 'overriding' is
1905         not found, return FAILURE rather than ICEing.
1906
1907 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
1908
1909         PR fortran/43339
1910         * openmp.c (gfc_resolve_do_iterator): Only make iteration vars for
1911         sequential loops private in the innermost containing task region.
1912
1913 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1914
1915         * f95-lang.c (gfc_init_decl_processing): Remove second argument in call
1916         to build_common_tree_nodes.
1917
1918 2010-04-17  Steven G. Kargl  <kargl@gcc.gnu.org>
1919
1920         PR fortran/31538
1921         * fortran/trans-array.c (gfc_conv_ss_startstride): Remove the use of
1922         gfc_msg_bounds by using 'Array bound mismatch' directly.
1923         (gfc_trans_dummy_array_bias):  Remove the use of gfc_msg_bounds.  Reword
1924         error message to include the mismatch in the extent of array bound.
1925         * fortran/trans.c: Remove gfc_msg_bounds.  It is only used in one place.
1926         * fortran/trans.h: Remove extern definition of gfc_msg_bounds.
1927
1928 2010-04-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1929
1930         * gfortran.texi: Update information on temporary file locations.
1931
1932 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
1933
1934         * trans-decl.c (gfc_build_qualified_array): Ensure
1935         ubound.N and lbound.N artificial variable names don't appear
1936         in debug info.
1937
1938 2010-04-15  Steven G. Kargl  <kargl@gcc.gnu.org>
1939
1940         PR fortran/30073
1941         * trans-array.c (gfc_trans_array_bound_check): Eliminate a redundant
1942         block of code.  Set name to the variable associated with the descriptor.
1943
1944 2010-04-15  Jakub Jelinek  <jakub@redhat.com>
1945
1946         * trans-decl.c (gfc_build_qualified_array): Clear DECL_IGNORED_P
1947         on VAR_DECL LBOUND and/or UBOUND, even for -O1.
1948
1949 2010-04-14  Steven G. Kargl  <kargl@gcc.gnu.org>
1950
1951         * intrinsic.texi: Add the missing specific name of intrinsic
1952         procedure where the specific name is identical to the generic name.
1953         Fix inconsistent or mismatch in the argument names in intrinsic
1954         procedure descriptions.  Add the SCALAR allocatable description to
1955         ALLOCATED.
1956
1957 2010-04-14  Tobias Burnus  <burnus@net-b.de>
1958
1959         PR fortran/18918
1960         * array.c (gfc_find_array_ref): Handle codimensions.
1961         (gfc_match_array_spec,gfc_match_array_ref): Use gfc_fatal_error.
1962         * check.c (is_coarray, dim_corank_check, gfc_check_lcobound,
1963         gfc_check_image_index, gfc_check_this_image, gfc_check_ucobound):
1964         New functions.
1965         * gfortran.h (gfc_isym_id): Add GFC_ISYM_IMAGE_INDEX,
1966         GFC_ISYM_LCOBOUND, GFC_ISYM_THIS_IMAGE,
1967         GFC_ISYM_UCOBOUND.
1968         * intrinsic.h (add_functions): Add this_image, image_index,
1969         lcobound and ucobound intrinsics.
1970         * intrinsic.c (gfc_check_lcobound,gfc_check_ucobound,
1971         gfc_check_image_index, gfc_check_this_image,
1972         gfc_simplify_image_index, gfc_simplify_lcobound,
1973         gfc_simplify_this_image, gfc_simplify_ucobound):
1974         New function prototypes.
1975         * intrinsic.texi (IMAGE_INDEX, LCOBOUND, THIS_IMAGE
1976         IMAGE_INDEX): Document new intrinsic functions.
1977         * match.c (gfc_match_critical, sync_statement): Make -fcoarray=none
1978         error fatal.
1979         * simplify.c (simplify_bound_dim): Handle coarrays.
1980         (simplify_bound): Update simplify_bound_dim call.
1981         (gfc_simplify_num_images): Add -fcoarray=none check.
1982         (simplify_cobound, gfc_simplify_lcobound, gfc_simplify_ucobound,
1983         gfc_simplify_ucobound, gfc_simplify_ucobound): New functions.
1984
1985 2010-04-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1986
1987         PR fortran/43747
1988         * constructor.c: Fix typo in comment.
1989         * expr.c (find_array_section): Add check for max array limit.
1990
1991 2010-04-13  Iain Sandoe  <iains@gcc.gnu.org>
1992
1993         PR bootstrap/31400
1994         * gfortranspec.c (lookup_option): Check for -static and return
1995         OPTION_static.
1996         (lang_specific_driver): Break when OPTION_static is discovered.
1997
1998 2010-04-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1999
2000         * array.c (extract_element): Restore function from trunk.
2001         (gfc_get_array_element): Restore function from trunk.
2002         (gfc_expand_constructor): Restore check against
2003         flag_max_array_constructor.
2004         * constructor.c (node_copy_and_append): Delete unused.
2005         * gfortran.h: Delete comment and extra include.
2006         * constructor.h: Bump copyright and clean up TODO comments.
2007         * resolve.c: Whitespace.
2008
2009 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
2010
2011         * simplify.c (compute_dot_product): Replaced usage of ADVANCE macro
2012         with direct access access to elements. Adjusted prototype, fixed all
2013         callers.
2014         (gfc_simplify_dot_product): Removed duplicate check for zero-sized
2015         array.
2016         (gfc_simplify_matmul): Removed usage of ADVANCE macro.
2017         (gfc_simplify_spread): Removed workaround, directly insert elements
2018         at a given array position.
2019         (gfc_simplify_transpose): Likewise.
2020         (gfc_simplify_pack): Replaced usage of ADVANCE macro with corresponding
2021         function calls.
2022         (gfc_simplify_unpack): Likewise.
2023
2024 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
2025
2026         * simplify.c (only_convert_cmplx_boz): Renamed to ...
2027         (convert_boz): ... this and moved to start of file.
2028         (gfc_simplify_abs): Whitespace fix.
2029         (gfc_simplify_acos): Whitespace fix.
2030         (gfc_simplify_acosh): Whitespace fix.
2031         (gfc_simplify_aint): Whitespace fix.
2032         (gfc_simplify_dint): Whitespace fix.
2033         (gfc_simplify_anint): Whitespace fix.
2034         (gfc_simplify_and): Replaced if-gate by more common switch-over-type.
2035         (gfc_simplify_dnint): Whitespace fix.
2036         (gfc_simplify_asin): Whitespace fix.
2037         (gfc_simplify_asinh): Moved creation of result-expr out of switch.
2038         (gfc_simplify_atan): Likewise.
2039         (gfc_simplify_atanh): Whitespace fix.
2040         (gfc_simplify_atan2): Whitespace fix.
2041         (gfc_simplify_bessel_j0): Removed ATTRIBUTE_UNUSED.
2042         (gfc_simplify_bessel_j1): Likewise.
2043         (gfc_simplify_bessel_jn): Likewise.
2044         (gfc_simplify_bessel_y0): Likewise.
2045         (gfc_simplify_bessel_y1): Likewise.
2046         (gfc_simplify_bessel_yn): Likewise.
2047         (gfc_simplify_ceiling): Reorderd statements.
2048         (simplify_cmplx): Use convert_boz(), check for constant arguments.
2049         Whitespace fix.
2050         (gfc_simplify_cmplx): Use correct default kind. Removed check for
2051         constant arguments.
2052         (gfc_simplify_complex): Replaced if-gate. Removed check for
2053         constant arguments.
2054         (gfc_simplify_conjg): Whitespace fix.
2055         (gfc_simplify_cos): Whitespace fix.
2056         (gfc_simplify_cosh): Replaced if-gate by more common switch-over-type.
2057         (gfc_simplify_dcmplx): Removed check for constant arguments.
2058         (gfc_simplify_dble): Use convert_boz() and gfc_convert_constant().
2059         (gfc_simplify_digits): Whitespace fix.
2060         (gfc_simplify_dim): Whitespace fix.
2061         (gfc_simplify_dprod): Reordered statements.
2062         (gfc_simplify_erf): Whitespace fix.
2063         (gfc_simplify_erfc): Whitespace fix.
2064         (gfc_simplify_epsilon): Whitespace fix.
2065         (gfc_simplify_exp): Whitespace fix.
2066         (gfc_simplify_exponent): Use convert_boz().
2067         (gfc_simplify_floor): Reorderd statements.
2068         (gfc_simplify_gamma): Whitespace fix.
2069         (gfc_simplify_huge): Whitespace fix.
2070         (gfc_simplify_iand): Whitespace fix.
2071         (gfc_simplify_ieor): Whitespace fix.
2072         (simplify_intconv): Use gfc_convert_constant().
2073         (gfc_simplify_int): Use simplify_intconv().
2074         (gfc_simplify_int2): Reorderd statements.
2075         (gfc_simplify_idint): Reorderd statements.
2076         (gfc_simplify_ior): Whitespace fix.
2077         (gfc_simplify_ishftc): Removed duplicate type check.
2078         (gfc_simplify_len): Use range_check() instead of manual range check.
2079         (gfc_simplify_lgamma): Removed ATTRIBUTE_UNUSED. Whitespace fix.
2080         (gfc_simplify_log): Whitespace fix.
2081         (gfc_simplify_log10): Whitespace fix.
2082         (gfc_simplify_minval): Whitespace fix.
2083         (gfc_simplify_maxval): Whitespace fix.
2084         (gfc_simplify_mod): Whitespace fix.
2085         (gfc_simplify_modulo): Whitespace fix.
2086         (simplify_nint): Reorderd statements.
2087         (gfc_simplify_not): Whitespace fix.
2088         (gfc_simplify_or): Replaced if-gate by more common switch-over-type.
2089         (gfc_simplify_radix): Removed unused result-variable. Whitespace fix.
2090         (gfc_simplify_range): Removed unused result-variable. Whitespace fix.
2091         (gfc_simplify_real): Use convert_boz() and gfc_convert_constant().
2092         (gfc_simplify_realpart): Whitespace fix.
2093         (gfc_simplify_selected_char_kind): Removed unused result-variable.
2094         (gfc_simplify_selected_int_kind): Removed unused result-variable.
2095         (gfc_simplify_selected_real_kind): Removed unused result-variable.
2096         (gfc_simplify_sign): Whitespace fix.
2097         (gfc_simplify_sin): Whitespace fix.
2098         (gfc_simplify_sinh): Replaced if-gate by more common switch-over-type.
2099         (gfc_simplify_sqrt): Avoided goto by inlining check. Whitespace fix.
2100         (gfc_simplify_tan): Replaced if-gate by more common switch-over-type.
2101         (gfc_simplify_tanh): Replaced if-gate by more common switch-over-type.
2102         (gfc_simplify_xor): Replaced if-gate by more common switch-over-type.
2103
2104 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
2105
2106         * gfortran.h (gfc_start_constructor): Removed.
2107         (gfc_get_array_element): Removed.
2108         * array.c (gfc_start_constructor): Removed, use gfc_get_array_expr 
2109         instead. Fixed all callers.
2110         (extract_element): Removed.
2111         (gfc_expand_constructor): Temporarily removed check for
2112         max-array-constructor. Will be re-introduced later if still required.
2113         (gfc_get_array_element): Removed, use gfc_constructor_lookup_expr
2114         instead. Fixed all callers.
2115         * expr.c (find_array_section): Replaced manual lookup of elements
2116         by gfc_constructor_lookup.
2117
2118 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
2119
2120         * gfortran.h (gfc_get_null_expr): New prototype.
2121         (gfc_get_operator_expr): New prototype.
2122         (gfc_get_character_expr): New prototype.
2123         (gfc_get_iokind_expr): New prototype.
2124         * expr.c (gfc_get_null_expr): New.
2125         (gfc_get_character_expr): New.
2126         (gfc_get_iokind_expr): New.
2127         (gfc_get_operator_expr): Moved here from matchexp.c (build_node).
2128         * matchexp.c (build_node): Renamed and moved to
2129         expr.c (gfc_get_operator_expr). Reordered arguments to match 
2130         other functions. Fixed all callers.
2131         (gfc_get_parentheses): Use specific function to build expr.
2132         * array.c (gfc_match_array_constructor): Likewise.
2133         * arith.c (eval_intrinsic): Likewise.
2134         (gfc_hollerith2int): Likewise.
2135         (gfc_hollerith2real): Likewise.
2136         (gfc_hollerith2complex): Likewise.
2137         (gfc_hollerith2logical): Likewise.
2138         * data.c (create_character_intializer): Likewise.
2139         * decl.c (gfc_match_null): Likewise.
2140         (enum_initializer): Likewise.
2141         * io.c (gfc_match_format): Likewise.
2142         (match_io): Likewise.
2143         * match.c (gfc_match_nullify): Likewise.
2144         * primary.c (match_string_constant): Likewise.
2145         (match_logical_constant): Likewise.
2146         (build_actual_constructor): Likewise.
2147         * resolve.c (build_default_init_expr): Likewise.
2148         * symbol.c (generate_isocbinding_symbol): Likewise.
2149         (gfc_build_class_symbol): Likewise.
2150         (gfc_find_derived_vtab): Likewise.
2151         * simplify.c (simplify_achar_char): Likewise.
2152         (gfc_simplify_adjustl): Likewise.
2153         (gfc_simplify_adjustr): Likewise.
2154         (gfc_simplify_and): Likewise.
2155         (gfc_simplify_bit_size): Likewise.
2156         (gfc_simplify_is_iostat_end): Likewise.
2157         (gfc_simplify_is_iostat_eor): Likewise.
2158         (gfc_simplify_isnan): Likewise.
2159         (simplify_bound): Likewise.
2160         (gfc_simplify_leadz): Likewise.
2161         (gfc_simplify_len_trim): Likewise.
2162         (gfc_simplify_logical): Likewise.
2163         (gfc_simplify_maxexponent): Likewise.
2164         (gfc_simplify_minexponent): Likewise.
2165         (gfc_simplify_new_line): Likewise.
2166         (gfc_simplify_null): Likewise.
2167         (gfc_simplify_or): Likewise.
2168         (gfc_simplify_precision): Likewise.
2169         (gfc_simplify_repeat): Likewise.
2170         (gfc_simplify_scan): Likewise.
2171         (gfc_simplify_size): Likewise.
2172         (gfc_simplify_trailz): Likewise.
2173         (gfc_simplify_trim): Likewise.
2174         (gfc_simplify_verify): Likewise.
2175         (gfc_simplify_xor): Likewise.
2176         * trans-io.c (build_dt): Likewise.
2177         (gfc_new_nml_name_expr): Removed.
2178
2179 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
2180
2181         * arith.h (gfc_constant_result): Removed prototype.
2182         * constructor.h (gfc_build_array_expr): Removed prototype.
2183         (gfc_build_structure_constructor_expr): Removed prototype.
2184         * gfortran.h (gfc_int_expr): Removed prototype.
2185         (gfc_logical_expr): Removed prototype.
2186         (gfc_get_array_expr): New prototype.
2187         (gfc_get_structure_constructor_expr): New prototype.
2188         (gfc_get_constant_expr): New prototype.
2189         (gfc_get_int_expr): New prototype.
2190         (gfc_get_logical_expr): New prototype.
2191         * arith.c (gfc_constant_result): Moved and renamed to
2192         expr.c (gfc_get_constant_expr). Fixed all callers.
2193         * constructor.c (gfc_build_array_expr): Moved and renamed to
2194         expr.c (gfc_get_array_expr). Split gfc_typespec argument to type
2195         and kind. Fixed all callers.
2196         (gfc_build_structure_constructor_expr): Moved and renamed to
2197         expr.c (gfc_get_structure_constructor_expr). Split gfc_typespec argument
2198         to type and kind. Fixed all callers.
2199         * expr.c (gfc_logical_expr): Renamed to ...
2200         (gfc_get_logical_expr): ... this. Added kind argument. Fixed all callers.
2201         (gfc_int_expr): Renamed to ...
2202         (gfc_get_int_expr): ... this. Added kind and where arguments. Fixed all
2203         callers.
2204         (gfc_get_constant_expr): New.
2205         (gfc_get_array_expr): New.
2206         (gfc_get_structure_constructor_expr): New.
2207         * simplify.c (int_expr_with_kind): Removed, callers use gfc_get_int_expr
2208         instead.
2209
2210 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
2211
2212         * constructor.h: New.
2213         * constructor.c: New.
2214         * Make-lang.in: Add new files to F95_PARSER_OBJS.
2215         * arith.c (reducy_unary): Use constructor API.
2216         (reduce_binary_ac): Likewise.
2217         (reduce_binary_ca): Likewise.
2218         (reduce_binary_aa): Likewise.
2219         * check.c (gfc_check_pack): Likewise.
2220         (gfc_check_reshape): Likewise.
2221         (gfc_check_unpack): Likewise.
2222         * decl.c (add_init_expr_to_sym): Likewise.
2223         (build_struct): Likewise.
2224         * dependency.c (gfc_check_dependency): Likewise.
2225         (contains_forall_index_p): Likewise.
2226         * dump-parse-tree.c (show_constructor): Likewise.
2227         * expr.c (free_expr0): Likewise.
2228         (gfc_copy_expr): Likewise.
2229         (gfc_is_constant_expr): Likewise.
2230         (simplify_constructor): Likewise.
2231         (find_array_element): Likewise.
2232         (find_component_ref): Likewise.
2233         (find_array_section): Likewise.
2234         (find_substring_ref): Likewise.
2235         (simplify_const_ref): Likewise.
2236         (scalarize_intrinsic_call): Likewise.
2237         (check_alloc_comp_init): Likewise.
2238         (gfc_default_initializer): Likewise.
2239         (gfc_traverse_expr): Likewise.
2240         * iresolve.c (check_charlen_present): Likewise.
2241         (gfc_resolve_reshape): Likewise.
2242         (gfc_resolve_transfer): Likewise.
2243         * module.c (mio_constructor): Likewise.
2244         * primary.c (build_actual_constructor): Likewise.
2245         (gfc_match_structure_constructor): Likewise.
2246         * resolve.c (resolve_structure_cons): Likewise.
2247         * simplify.c (is_constant_array_expr): Likewise.
2248         (init_result_expr): Likewise.
2249         (transformational_result): Likewise.
2250         (simplify_transformation_to_scalar): Likewise.
2251         (simplify_transformation_to_array): Likewise.
2252         (gfc_simplify_dot_product): Likewise.
2253         (simplify_bound): Likewise.
2254         (simplify_matmul): Likewise.
2255         (simplify_minval_maxval): Likewise.
2256         (gfc_simplify_pack): Likewise.
2257         (gfc_simplify_reshape): Likewise.
2258         (gfc_simplify_shape): Likewise.
2259         (gfc_simplify_spread): Likewise.
2260         (gfc_simplify_transpose): Likewise.
2261         (gfc_simplify_unpack): Likewise.q
2262         (gfc_convert_constant): Likewise.
2263         (gfc_convert_char_constant): Likewise.
2264         * target-memory.c (size_array): Likewise.
2265         (encode_array): Likewise.
2266         (encode_derived): Likewise.
2267         (interpret_array): Likewise.
2268         (gfc_interpret_derived): Likewise.
2269         (expr_to_char): Likewise.
2270         (gfc_merge_initializers): Likewise.
2271         * trans-array.c (gfc_get_array_constructor_size): Likewise.
2272         (gfc_trans_array_constructor_value): Likewise.
2273         (get_array_ctor_strlen): Likewise.
2274         (gfc_constant_array_constructor_p): Likewise.
2275         (gfc_build_constant_array_constructor): Likewise.
2276         (gfc_trans_array_constructor): Likewise.
2277         (gfc_conv_array_initializer): Likewise.
2278         * trans-decl.c (check_constant_initializer): Likewise.
2279         * trans-expr.c (flatten_array_ctors_without_strlen): Likewise.
2280         (gfc_apply_interface_mapping_to_cons): Likewise.
2281         (gfc_trans_structure_assign): Likewise.
2282         (gfc_conv_structure): Likewise.
2283         * array.c (check_duplicate_iterator): Likewise.
2284         (match_array_list): Likewise.
2285         (match_array_cons_element): Likewise.
2286         (gfc_match_array_constructor): Likewise.
2287         (check_constructor_type): Likewise.
2288         (check_constructor): Likewise.
2289         (expand): Likewise.
2290         (expand_constructor): Likewise.
2291         (extract_element): Likewise.
2292         (gfc_expanded_ac): Likewise.
2293         (resolve_array_list): Likewise.
2294         (gfc_resolve_character_array_constructor): Likewise.
2295         (copy_iterator): Renamed to ...
2296         (gfc_copy_iterator): ... this.
2297         (gfc_append_constructor): Removed.
2298         (gfc_insert_constructor): Removed unused function.
2299         (gfc_get_constructor): Removed.
2300         (gfc_free_constructor): Removed.
2301         (qgfc_copy_constructor): Removed.
2302         * gfortran.h (struct gfc_expr): Removed member 'con_by_offset'.
2303         Removed all references. Replaced constructor list by splay-tree.
2304         (struct gfc_constructor): Removed member 'next', moved 'offset' from
2305         the inner struct, added member 'base'.
2306         (gfc_append_constructor): Removed prototype.
2307         (gfc_insert_constructor): Removed prototype.
2308         (gfc_get_constructor): Removed prototype.
2309         (gfc_free_constructor): Removed prototype.
2310         (qgfc_copy_constructor): Removed prototype.
2311         (gfc_copy_iterator): New prototype.
2312         * trans-array.h (gfc_constant_array_constructor_p): Adjusted prototype.
2313
2314 2010-04-10  Tobias Burnus  <burnus@net-b.de>
2315
2316         PR fortran/43591
2317         * expr.c (gfc_is_constant_expr, gfc_traverse_expr): Handle
2318         proc-pointers and type-bound procedures.
2319         (gfc_specification_expr): Check proc-pointers for pureness.
2320
2321 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
2322
2323         PR bootstrap/43684
2324         * gfortranspec.c (lang_specific_driver): Do not expose vars 
2325         only used by HAVE_LD_STATIC_DYNAMIC targets unless compiling
2326         for such.
2327
2328 2010-04-09  Tobias Burnus  <burnus@net-b.de>
2329
2330         PR fortran/18918
2331         * decl.c (variable_decl, match_attr_spec): Fix setting the array
2332         spec.
2333         * array.c (match_subscript,gfc_match_array_ref): Add coarray support.
2334         * data.c (gfc_assign_data_value): Ditto.
2335         * expr.c (gfc_check_pointer_assign): Add check for coarray constraint.
2336         (gfc_traverse_expr): Traverse also through codimension expressions.
2337         (gfc_is_coindexed, gfc_has_ultimate_allocatable,
2338         gfc_has_ultimate_pointer): New functions.
2339         * gfortran.h (gfc_array_ref_dimen_type): Add DIMEN_STAR for coarrays.
2340         (gfc_array_ref): Add codimen.
2341         (gfc_array_ref): Add in_allocate.
2342         (gfc_is_coindexed, gfc_has_ultimate_allocatable,
2343         gfc_has_ultimate_pointer): Add prototypes.
2344         * interface.c (compare_parameter, compare_actual_formal,
2345         check_intents): Add coarray constraints.
2346         * match.c (gfc_match_iterator): Add coarray constraint.
2347         * match.h (gfc_match_array_ref): Update interface.
2348         * primary.c (gfc_match_varspec): Handle codimensions.
2349         * resolve.c (coarray_alloc, inquiry_argument): New static variables.
2350         (check_class_members): Return gfc_try instead for error recovery.
2351         (resolve_typebound_function,resolve_typebound_subroutine,
2352         check_members): Handle return value of check_class_members.
2353         (resolve_structure_cons, resolve_actual_arglist, resolve_function,
2354         check_dimension, compare_spec_to_ref, resolve_array_ref,
2355         resolve_ref, resolve_variable, gfc_resolve_expr, conformable_arrays,
2356         resolve_allocate_expr, resolve_ordinary_assign): Add coarray
2357         support.
2358         * trans-array.c (gfc_conv_array_ref, gfc_walk_variable_expr):
2359         Skip over coarray refs.
2360         (gfc_array_allocate) Add support for references containing coindexes.
2361         * trans-expr.c (gfc_add_interface_mapping): Copy coarray attribute.
2362         (gfc_map_intrinsic_function): Ignore codimensions.
2363
2364 2010-04-08  Bud Davis  <bdavis9659@sbcglobal.net>
2365
2366         PR fortran/28039
2367         * io.c (check_format_string):  Added check for additional non 
2368         blank characters after the format string was successfully 
2369         parsed.
2370         * io.c (check_format): Changed the error messages for positive
2371         int required and period required to drop through the error logic
2372         and report with gfc_error instead of gfc_error_now.  Corrected
2373         format postion for hollerith strings.
2374
2375 2010-04-08  Tobias Burnus  <burnus@net-b.de>
2376
2377         * module.c (use_iso_fortran_env_module): Fix standard check.
2378
2379 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
2380
2381         * parse.c (parse_derived, parse_enum): Avoid set but not used
2382         warning.
2383
2384 2010-04-07  Janne Blomqvist  <jb@gcc.gnu.org>
2385
2386         PR fortran/40539
2387         * gfortran.texi: Add section about representation of
2388         LOGICAL variables.
2389
2390 2010-04-07  Simon Baldwin  <simonb@google.com>
2391
2392         * cpp.c (cb_cpp_error): Add warning reason argument, set a value
2393         for diagnostic_override_option_index if CPP_W_WARNING_DIRECTIVE.
2394
2395 2010-04-07  Richard Guenther  <rguenther@suse.de>
2396
2397         * options.c (gfc_init_options): Do not set.
2398
2399 2010-04-06  Tobias Burnus  <burnus@net-b.de>
2400
2401         PR fortran/18918
2402         * array.c (gfc_match_array_spec): Add error for -fcoarray=none.
2403         * match.c (gfc_match_critical, sync_statement): Ditto.
2404         * gfortran.h (gfc_fcoarray): New enum.
2405         (gfc_option_t): Use it.
2406         * lang.opt (fcoarray): Add new flag.
2407         * invoke.texi (fcoarray): Document it.
2408         * options.c (gfc_init_options,gfc_handle_option): Handle -fcoarray=.
2409         (gfc_handle_coarray_option): New function.
2410
2411 2010-04-06  Tobias Burnus  <burnus@net-b.de>
2412
2413         PR fortran/18918
2414         * gfortran.h (gfc_array_spec): Add cotype.
2415         * array.c (gfc_match_array_spec,gfc_set_array_spec): Use it
2416         and defer error diagnostic.
2417         * resolve.c (resolve_fl_derived): Add missing check.
2418         (resolve_symbol): Add cotype/type check.
2419         * parse.c (parse_derived): Fix setting of coarray_comp.
2420
2421 2010-04-06  Tobias Burnus  <burnus@net-b.de>
2422
2423         PR fortran/18918
2424         * array.c (gfc_free_array_spec,gfc_resolve_array_spec,
2425         match_array_element_spec,gfc_copy_array_spec,
2426         gfc_compare_array_spec): Include corank.
2427         (match_array_element_spec,gfc_set_array_spec): Support codimension.
2428         * decl.c (build_sym,build_struct,variable_decl,
2429         match_attr_spec,attr_decl1,cray_pointer_decl,
2430         gfc_match_volatile): Add codimension.
2431         (gfc_match_codimension): New function.
2432         * dump-parse-tree.c (show_array_spec,show_attr): Support codimension.
2433         * gfortran.h (symbol_attribute,gfc_array_spec): Ditto.
2434         (gfc_add_codimension): New function prototype.
2435         * match.h (gfc_match_codimension): New function prototype.
2436         (gfc_match_array_spec): Update prototype
2437         * match.c (gfc_match_common): Update gfc_match_array_spec call.
2438         * module.c (MOD_VERSION): Bump.
2439         (mio_symbol_attribute): Support coarray attributes.
2440         (mio_array_spec): Add corank support.
2441         * parse.c (decode_specification_statement,decode_statement,
2442         parse_derived): Add coarray support.
2443         * resolve.c (resolve_formal_arglist, was_declared,
2444         is_non_constant_shape_array, resolve_fl_variable,
2445         resolve_fl_derived, resolve_symbol): Add coarray support.
2446         * symbol.c (check_conflict, gfc_add_volatile, gfc_copy_attr,
2447         gfc_build_class_symbol): Add coarray support.
2448         (gfc_add_codimension): New function.
2449
2450 2010-04-06  Tobias Burnus  <burnus@net-b.de>
2451
2452         PR fortran/18918
2453         * iso-fortran-env.def: Add the integer parameters atomic_int_kind,
2454         atomic_logical_kind, iostat_inquire_internal_unit, stat_locked,
2455         stat_locked_other_image, stat_stopped_image and stat_unlocked of
2456         Fortran 2008.
2457         * intrinsic.texi (iso_fortran_env): Ditto.
2458         * libgfortran.h (libgfortran_stat_codes): New enum.
2459         * module.c (use_iso_fortran_env_module): Honour -std= when loading
2460         constants from the intrinsic module.
2461
2462 2010-04-06  Tobias Burnus  <burnus@net-b.de>
2463
2464         PR fortran/39997
2465         * intrinsic.c (add_functions): Add num_images.
2466         * decl.c (gfc_match_end): Handle END CRITICAL.
2467         * intrinsic.h (gfc_simplify_num_images): Add prototype.
2468         * dump-parse-tree.c (show_code_node): Dump CRITICAL, ERROR STOP,
2469         and SYNC.
2470         * gfortran.h (gfc_statement): Add enum items for those.
2471         (gfc_exec_op) Ditto.
2472         (gfc_isym_id): Add num_images.
2473         * trans-stmt.c (gfc_trans_stop): Handle ERROR STOP.
2474         (gfc_trans_sync,gfc_trans_critical): New functions.
2475         * trans-stmt.h (gfc_trans_stop,gfc_trans_sync,
2476         gfc_trans_critical): Add/update prototypes.
2477         * trans.c (gfc_trans_code): Handle CRITICAL, ERROR STOP,
2478         and SYNC statements.
2479         * trans.h (gfor_fndecl_error_stop_string) Add variable.
2480         * resolve.c (resolve_sync): Add function.
2481         (gfc_resolve_blocks): Handle CRITICAL.
2482         (resolve_code): Handle CRITICAL, ERROR STOP,
2483         (resolve_branch): Add CRITICAL constraint check.
2484         and SYNC statements.
2485         * st.c (gfc_free_statement): Add new statements.
2486         * trans-decl.c (gfor_fndecl_error_stop_string): Global variable.
2487         (gfc_build_builtin_function_decls): Initialize it.
2488         * match.c (gfc_match_if): Handle ERROR STOP and SYNC.
2489         (gfc_match_critical, gfc_match_error_stop, sync_statement,
2490         gfc_match_sync_all, gfc_match_sync_images, gfc_match_sync_memory):
2491         New functions.
2492         (match_exit_cycle): Handle CRITICAL constraint.
2493         (gfc_match_stopcode): Handle ERROR STOP.
2494         * match.h (gfc_match_critical, gfc_match_error_stop,
2495         gfc_match_sync_all, gfc_match_sync_images,
2496         gfc_match_sync_memory): Add prototype.
2497         * parse.c (decode_statement, gfc_ascii_statement,
2498         parse_executable): Handle new statements.
2499         (parse_critical_block): New function.
2500         * parse.h (gfc_compile_state): Add COMP_CRITICAL.
2501         * intrinsic.texi (num_images): Document new function.
2502         * simplify.c (gfc_simplify_num_images): Add function.
2503
2504 2010-04-06  Tobias Burnus  <burnus@net-b.de>
2505
2506         PR fortran/43178
2507         * trans-array.c (gfc_conv_expr_descriptor): Update
2508         gfc_trans_scalar_assign call.
2509         (has_default_initializer): New function.
2510         (gfc_trans_deferred_array): Nullify less often.
2511         * trans-expr.c (gfc_conv_subref_array_arg,
2512         gfc_trans_subcomponent_assign): Update call to
2513         gfc_trans_scalar_assign.
2514         (gfc_trans_scalar_assign): Add parameter and pass it on.
2515         (gfc_trans_assignment_1): Optionally, do not dealloc before
2516         assignment.
2517         * trans-openmp.c (gfc_trans_omp_array_reduction): Update
2518         call to gfc_trans_scalar_assign.
2519         * trans-decl.c (gfc_get_symbol_decl): Do not always apply
2520         initializer to static variables.
2521         (gfc_init_default_dt): Add dealloc parameter and pass it on.
2522         * trans-stmt.c (forall_make_variable_temp,
2523         generate_loop_for_temp_to_lhs, generate_loop_for_rhs_to_temp,
2524         gfc_trans_forall_1, gfc_trans_where_assign, gfc_trans_where_3
2525         gfc_trans_allocate): Update gfc_trans_assignment call.
2526         * trans.h (gfc_trans_scalar_assign, gfc_init_default_dt,
2527         gfc_init_default_dt, gfc_trans_assignment): Add bool dealloc
2528         parameter to prototype.
2529
2530 2010-03-31  Paul Thomas  <pault@gcc.gnu.org>
2531
2532         * ioparm.def : Update copyright.
2533         * lang.opt : ditto
2534         * trans-array.c : ditto
2535         * trans-array.h : ditto
2536         * expr.c: ditto
2537         * trans-types.c: ditto
2538         * dependency.c : ditto
2539         * gfortran.h : ditto
2540         * options.c : ditto
2541         * trans-io.c : ditto
2542         * trans-intrinsic.c : ditto
2543         * libgfortran.h : ditto
2544         * invoke.texi : ditto
2545         * intrinsic.texi : ditto
2546         * trans.c : ditto
2547         * trans.h : ditto
2548         * intrinsic.c : ditto
2549         * interface.c : ditto
2550         * iresolve.c : ditto
2551         * trans-stmt.c : ditto
2552         * trans-stmt.h : ditto
2553         * parse,c : ditto
2554         * match.h : ditto
2555         * error.c : ditto
2556
2557 2010-03-20  Paul Thomas  <pault@gcc.gnu.org>
2558
2559         PR fortran/43450
2560         * trans-decl.c (gfc_create_module_variable): With -fwhole-file
2561         do not assert the context of derived types.
2562
2563 2010-03-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2564
2565         PR fortran/43409
2566         * ioparm.def: Change inquire size variable to type pointer to
2567         GFC_IO_INT type.
2568
2569 2010-03-18  Paul Thomas  <pault@gcc.gnu.org>
2570
2571         PR fortran/43039
2572         * trans-expr.c (conv_parent_component_references): Ensure that
2573         'dt' has a backend_decl.
2574
2575         PR fortran/43043
2576         * trans-expr.c (gfc_conv_structure): Ensure that the derived
2577         type has a backend_decl.
2578
2579         PR fortran/43044
2580         * resolve.c (resolve_global_procedure): Check that the 'cl'
2581         structure is not NULL.
2582
2583 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
2584
2585         * lang.opt (-ffixed-line-length-, ffree-line-length-): Remove
2586         redundant tab.
2587
2588 2010-03-17  Tobias Burnus  <burnus@net-b.de>
2589
2590         PR fortran/43331
2591         * trans-array.c (gfc_conv_array_index_offset,gfc_conv_array_ref,
2592         gfc_conv_ss_startstride): Remove no-longer-needed cp_was_assumed
2593         check.
2594         * decl.c (gfc_match_derived_decl): Don't mark assumed-size Cray
2595         pointees as having explizit size.
2596         * expr.c (gfc_check_assign): Remove now unreachable Cray pointee
2597         check.
2598         * trans-types.c (gfc_is_nodesc_array): Add cp_was_assumed to assert.
2599         (gfc_sym_type): Don't mark Cray pointees as restricted pointers.
2600         * resolve.c (resolve_symbol): Handle cp_was_assumed.
2601         * trans-decl.c (gfc_trans_deferred_vars): Ditto.
2602         (gfc_finish_var_decl): Don't mark Cray pointees as restricted
2603         pointers.
2604
2605 2010-03-14  Tobias Burnus  <burnus@net-b.de>
2606
2607         PR fortran/43362
2608         * resolve.c (resolve_structure_cons): Add missing PURE constraint.
2609         (resolve_ordinary_assign): Add check to avoid segfault.
2610
2611 2010-03-12  Paul Thomas  <pault@gcc.gnu.org>
2612
2613         PR fortran/43291
2614         PR fortran/43326
2615         * resolve.c (resolve_compcall): Add new boolean dummy argument
2616         'class_members'. Only resolve expression at end if false.
2617         Remove redundant, static variable 'class_object'.
2618         (check_class_members): Add extra argument to call of
2619         resolve_compcall.
2620         (resolve_typebound_function): Renamed resolve_class_compcall.
2621         Do all the detection of class references here. Correct calls to
2622         resolve_compcall for extra argument.
2623         (resolve_typebound_subroutine): resolve_class_typebound_call
2624         renamed. Otherwise same as resolve_typebound_function.
2625         (gfc_resolve_expr): Call resolve_typebound_function.
2626         (resolve_code): Call resolve_typebound_subroutine.
2627
2628 2010-03-10  Tobias Burnus  <burnus@net-b.de
2629
2630         PR fortran/43303
2631         * symbol.c (get_iso_c_sym): Set sym->result.
2632
2633 2010-03-08  Janus Weil  <janus@gcc.gnu.org>
2634
2635         PR fortran/43256
2636         * resolve.c (resolve_compcall): Don't set 'value.function.name' here
2637         for TBPs, otherwise they will not be resolved properly.
2638         (resolve_function): Use 'value.function.esym' instead of
2639         'value.function.name' to check if we're dealing with a TBP.
2640         (check_class_members): Set correct type of passed object for all TBPs,
2641         not only generic ones, except if the type is abstract.
2642
2643 2010-03-04  Janus Weil  <janus@gcc.gnu.org>
2644
2645         PR fortran/43244
2646         * decl.c (gfc_match_final_decl): Make sure variable names starting with
2647         'final...' are not misinterpreted as FINAL statements.
2648
2649 2010-03-03  Paul Thomas  <pault@gcc.gnu.org>
2650
2651         PR fortran/43243
2652         * trans-array.c (gfc_conv_array_parameter): Contiguous refs to
2653         allocatable ultimate components do not need temporaries, whilst
2654         ultimate pointer components do.
2655
2656 2010-03-03  Janus Weil  <janus@gcc.gnu.org>
2657
2658         PR fortran/43169
2659         * resolve.c (resolve_code): Correctly set gfc_current_ns for
2660         EXEC_SELECT_TYPE.
2661         (gfc_impure_variable): Make it work with sub-namespaces (BLOCK etc).
2662         (gfc_pure): Ditto.
2663
2664 2010-03-02  Paul Thomas  <pault@gcc.gnu.org>
2665
2666         PR fortran/43180
2667         * trans-array.c (gfc_conv_array_parameter): A full array of
2668         derived type need not be restricted to a symbol without an
2669         array spec to use the call to gfc_conv_expr_descriptor.
2670
2671         PR fortran/43173
2672         * trans-array.c (gfc_conv_array_parameter): Contiguous refs to
2673         allocatable arrays do not need temporaries.
2674
2675 2010-03-01  Tobias Burnus  <burnus@net-b.de>
2676
2677         PR fortran/43199
2678         * resolve.c (find_array_spec): Handle REF_COMPONENT with
2679         CLASS components.
2680
2681 2010-02-28  Tobias Burnus  <burnus@net-b.de>
2682
2683         PR fortran/43205
2684         * trans-expr.c (is_zero_initializer_p): Move up in the file.
2685         (gfc_conv_initializer): Handle zero initializer as special case.
2686
2687 2010-02-27  Tobias Burnus  <burnus@net-b.de>
2688
2689         PR fortran/43185
2690         * resolve.c (resolve_fl_variable_derived): Imply SAVE
2691         for module variables for Fortran 2008.
2692
2693 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
2694
2695         PR debug/43166
2696         * trans-common.c (build_common_decl): Also update DECL_MODE,
2697         and DECL_SIZE when encountering a larger common block and call
2698         layout_decl.
2699
2700 2010-02-24  Tobias Burnus  <burnus@net-b.de>
2701
2702         PR fortran/43042
2703         * trans-expr.c (gfc_conv_initializer): Call directly
2704         gfc_conv_constant for C_NULL_(FUN)PTR.
2705
2706 2010-02-22  Paul Thomas  <pault@gcc.gnu.org>
2707
2708         PR fortran/43072
2709         * dependency.c (gfc_full_array_ref_p): Check for contiguous by
2710         checking the rest of the dimensions for elements.
2711
2712 2010-02-21  Tobias Burnus  <burnus@net-b.de>
2713
2714         PR fortran/35259
2715         * gfortran.h (gfc_option_t): New flag -fprotect-parens.
2716         * lang.opt: Ditto.
2717         * option.c (gfc_init_options,gfc_handle_option): Ditto.
2718         * trans-expr.c (gfc_conv_expr_op): Use the flag.
2719         * invoke.texi: Document new -fno-protect-parens flag.
2720
2721 2010-02-20  Paul Thomas  <pault@gcc.gnu.org>
2722
2723         PR fortran/36932
2724         PR fortran/36933
2725         PR fortran/43072
2726         PR fortran/43111
2727         * dependency.c (gfc_check_argument_var_dependency): Use enum
2728         value instead of arithmetic vaue for 'elemental'.
2729         (check_data_pointer_types): New function.
2730         (gfc_check_dependency): Call check_data_pointer_types.
2731         * trans-array.h : Change fourth argument of
2732         gfc_conv_array_parameter to boolean.
2733         * trans-array.c (gfc_conv_array_parameter): A contiguous array
2734         can be a dummy but it must not be assumed shape or deferred.
2735         Change fourth argument to boolean. Array constructor exprs will
2736         always be contiguous and do not need packing and unpacking.
2737         * trans-expr.c (gfc_conv_procedure_call): Clean up some white
2738         space and change fourth argument of gfc_conv_array_parameter
2739         to boolean.
2740         (gfc_trans_arrayfunc_assign): Change fourth argument of
2741         gfc_conv_array_parameter to boolean.
2742         * trans-io.c (gfc_convert_array_to_string): The same.
2743         * trans-intrinsic.c (gfc_conv_intrinsic_loc): The same.
2744
2745 2010-02-20  Tobias Burnus  <burnus@net-b.de>
2746
2747         PR fortran/42958
2748         * libgfortran.h: Add GFC_RTCHECK_MEM.
2749         * invoke.texi (-fcheck=): Document -fcheck=mem.
2750         * tranc.c (gfc_call_malloc): Remove negative-size run-time error
2751         and enable malloc-success check only with -fcheck=mem.
2752         * option.c (gfc_handle_runtime_check_option): Add -fcheck=mem.
2753
2754 2010-02-16  Tobias Burnus  <burnus@net-b.de>
2755
2756         PR fortran/43040
2757         * gfortran.h (gfc_isym_id): Rename GFS_ISYM_GAMMA to GFS_ISYM_TGAMMA.
2758         * intrinsic.c (add_functions): Ditto.
2759         * iresolve.c (gfc_resolve_gamma): Call tgamma instead of gamma.
2760         * mathbuiltins.def: Use TGAMMA instead of GAMMA with "tgamma".
2761
2762 2010-02-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2763
2764         PR fortran/32382
2765         * trans-stmt.h: Add prototype for gfc_trans_code_cond. Add tree cond to
2766         gfc_trans_do prototype.
2767         * trans-stmt.c (gfc_trans_simple_do): Add optional argument to pass in
2768         a loop exit condition.  If exit condition is given, build the loop exit
2769         code, checking IO results of implied do loops in READ and WRITE.
2770         (gfc_trans_do): Likewise.
2771         * trans.c (trans_code): New static work function, previously
2772         gfc_trans_code. Passes exit condition to gfc_trans_do.
2773         (gfc_trans_code): Calls trans_code with NULL_TREE condition.
2774         (gfc_trans_code_cond): Calls trans_code with loop exit condition.
2775         * trans-io.c (build_dt): Build an exit condition to allow checking IO
2776         result status bits in the dtparm structure. Use this condition in call
2777         to gfc_trans_code_cond.
2778
2779 2010-02-13  Paul Thomas  <pault@gcc.gnu.org>
2780
2781         PR fortran/41113
2782         PR fortran/41117
2783         * trans-array.c (gfc_conv_array_parameter): Use
2784         gfc_full_array_ref_p to detect full and contiguous variable
2785         arrays. Full array components and contiguous arrays do not need
2786         internal_pack and internal_unpack.
2787
2788 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
2789
2790         PR fortran/43030
2791         * resolve.c (gfc_resolve_dim_arg): Call gfc_clear_ts.
2792
2793         PR fortran/43029
2794         * decl.c (enumerator_decl): Don't call gfc_free_enum_history
2795         here.
2796         (gfc_match_enumerator_def): But here whenever enumerator_decl returns
2797         MATCH_ERROR.
2798
2799 2010-02-10  Joost VandeVondele <jv244@cam.ac.uk>
2800             Tobias Burnus <burnus@net-b.de>
2801
2802         PR fortran/40823
2803         * decl.c (gfc_match_subroutine): Explicitly set sym->declared_at.
2804
2805 2010-02-10  Tobias Burnus  <burnus@net-b.de>
2806
2807         PR fortran/43015
2808         * trans-decl.c (gfc_generate_function_code): Only check
2809         actual-vs.-dummy character bounds if not bind(C).
2810
2811 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
2812
2813         PR fortran/42309
2814         * trans-expr.c (gfc_conv_subref_array_arg): Avoid accessing
2815         info->dimen after info has been freed.
2816
2817 2010-02-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2818
2819         PR fortran/42999
2820         * array.c (gfc_constant_ac): Do not prevent expansion of constructors
2821         with iterators.
2822
2823 2010-02-09  Jakub Jelinek  <jakub@redhat.com>
2824
2825         * module.c (fix_mio_expr): Declare sym.
2826
2827 2010-02-09  Paul Thomas  <pault@gcc.gnu.org>
2828
2829         PR fortran/41869
2830         * module.c (fix_mio_expr): Fix for private generic procedures.
2831
2832 2010-02-09  Daniel Kraft  <d@domob.eu>
2833
2834         PR fortran/39171
2835         * resolve.c (resolve_charlen): Change warning about negative CHARACTER
2836         length to be correct and issue only with -Wsurprising.
2837         * invoke.texi (Wsurprising): Mention this new warning that is
2838         turned on by -Wsurprising.
2839
2840 2010-02-09  Daniel Kraft  <d@domob.eu>
2841
2842         PR fortran/41507
2843         * intrinsic.texi (MAXVAL): Remove wrong claim that array argument
2844         can be CHARACTER type.
2845         (MINVAL), (MAXLOC), (MINLOC): Ditto.
2846
2847 2010-02-05  Paul Thomas  <pault@gcc.gnu.org>
2848
2849         PR fortran/42309
2850         * trans-expr.c (gfc_conv_subref_array_arg): Add new argument
2851         'formal_ptr'. If this is true, give returned descriptor unity
2852         lbounds, in all dimensions, and the appropriate offset.
2853         (gfc_conv_procedure_call); If formal is a pointer, set the last
2854         argument of gfc_conv_subref_array_arg to true.
2855         * trans.h : Add last argument for gfc_conv_subref_array_arg.
2856         * trans-io.c (set_internal_unit, gfc_trans_transfer): Set the
2857         new arg of gfc_conv_subref_array_arg to false.
2858         * trans-stmt.c (forall_make_variable_temp): The same.
2859
2860 2010-02-03  Tobias Burnus  <burnus@net-b.de>
2861
2862         PR fortran/42936
2863         * interface.c (compare_parameter): Disable rank-checking
2864         for NULL().
2865
2866 2010-02-02  Tobias Burnus  <burnus@net-b.de>
2867
2868         PR fortran/42650
2869         * parse.c (decode_specification_statement): Use sym->result not sym.
2870
2871 2010-02-01  Tobias Burnus  <burnus@net-b.de>
2872
2873         PR fortran/42922
2874         * decl.c (variable_decl): Allow default initializer in
2875         TYPE declarations in PURE functions.
2876
2877 2010-01-31  Janus Weil  <janus@gcc.gnu.org>
2878
2879         PR fortran/42888
2880         * resolve.c (resolve_allocate_expr): Move default initialization code
2881         here from gfc_trans_allocate.
2882         * trans.c (gfc_trans_code): Call gfc_trans_class_assign also for
2883         EXEC_INIT_ASSIGN.
2884         * trans-expr.c (gfc_trans_class_assign): Handle default initialization
2885         of CLASS variables via memcpy.
2886         * trans-stmt.c (gfc_trans_allocate): Move default initialization code
2887         to resolve_allocate_expr.
2888
2889 2010-01-31  Paul Thomas  <pault@gcc.gnu.org>
2890
2891         PR fortran/38324
2892         * expr.c (gfc_get_full_arrayspec_from_expr): New function.
2893         * gfortran.h : Add prototype for above.
2894         * trans-expr.c (gfc_trans_alloc_subarray_assign): New function.
2895         (gfc_trans_subcomponent_assign): Call new function to replace
2896         the code to deal with allocatable components.
2897         * trans-intrinsic.c (gfc_conv_intrinsic_bound): Call
2898         gfc_get_full_arrayspec_from_expr to replace existing code.
2899
2900 2010-01-25  Tobias Burnus  <burnus@net-b.de>
2901
2902         PR fortran/42858
2903         * array.c (gfc_array_dimen_size): Fix intrinsic procedure
2904         check.
2905
2906 2010-01-24  Paul Thomas  <pault@gcc.gnu.org>
2907
2908         PR fortran/41044
2909         PR fortran/41167
2910         * expr.c (remove_subobject_ref): If the constructor is NULL use
2911         the expression as the source.
2912         (simplify_const_ref): Change the type of expression if
2913         there are component references.  Allow for substring to be at
2914         the end of an arbitrarily long chain of references.  If an
2915         element is found that is not in an EXPR_ARRAY, assume that this
2916         is scalar initialization of array. Call remove_subobject_ref in
2917         this case with NULL second argument.
2918
2919 2010-01-24  Tobias Burnus  <burnus@net-b.de>
2920
2921         PR fortran/39304
2922         * array.c (gfc_array_dimen_size): Use correct specific
2923         function in the check.
2924
2925 2010-01-21  Paul Thomas  <pault@gcc.gnu.org>
2926
2927         PR fortran/42736
2928         * trans-stmt.c (gfc_conv_elemental_dependencies): If temporary
2929         is required, turn any trailing array elements after a range
2930         into ranges so that offsets can be calculated.
2931
2932 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
2933
2934         * module.c (mio_f2k_derived): Use enumerator as initializer of
2935         enum variable.
2936
2937         PR bootstrap/42812
2938         * gfortran.h  (struct gfc_namespace) <resolved>: Change to signed
2939         bitfield of width 2.
2940
2941 2010-01-19  Janus Weil  <janus@gcc.gnu.org>
2942
2943         PR fortran/42804
2944         * resolve.c (extract_compcall_passed_object): Set locus for
2945         passed-object argument.
2946         (extract_ppc_passed_object): Set locus and correctly remove PPC
2947         reference.
2948
2949 2010-01-19  Paul Thomas  <pault@gcc.gnu.org>
2950
2951         PR fortran/42783
2952         * trans-decl.c (add_argument_checking): Do not use the backend
2953         decl directly to test for the presence of an optional dummy
2954         argument.  Use gfc_conv_expr_present, remembering to set the
2955         symbol referenced.
2956
2957         PR fortran/42772
2958         * trans-decl.c (gfc_generate_function_code): Small white space
2959         changes. If 'recurcheckvar' is NULL do not try to reset it.
2960
2961 2010-01-19  Janus Weil  <janus@gcc.gnu.org>
2962
2963         PR fortran/42545
2964         * resolve.c (resolve_fl_derived): Set the accessibility of the parent
2965         component for extended types.
2966         * symbol.c (gfc_find_component): Remove a wrongly-worded error message
2967         and take care of parent component accessibility.
2968
2969 2010-01-17  Janus Weil  <janus@gcc.gnu.org>
2970
2971         PR fortran/42677
2972         * gfortran.h (symbol_attribute): Remove 'ambiguous_interfaces'.
2973         * interface.c (check_interface1): Move a warning message here from
2974         resolve_fl_procedure.
2975         (check_sym_interfaces): Removed 'attr.ambiguous_interfaces'.
2976         * module.c (read_module): Remove call to gfc_check_interfaces, since
2977         this comes too early here.
2978         * resolve.c (resolve_fl_procedure): Move warning message to
2979         check_interface1.
2980
2981 2010-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2982
2983         PR fortran/42684
2984         * interface.c (check_interface1): Pass symbol name rather than NULL to
2985         gfc_compare_interfaces. (gfc_compare_interfaces): Add assert to
2986         trap MULL.
2987         * resolve.c (check_generic_tbp_ambiguity): Pass symbol name rather
2988         than NULL to gfc_compare_interfaces.
2989
2990 2010-01-14  Paul Thomas  <pault@gcc.gnu.org>
2991
2992         PR fortran/41478
2993         * trans-array.c (duplicate_allocatable):  Static version of
2994         gfc_duplicate_allocatable with provision to handle scalar
2995         components. New boolean argument to switch off call to malloc
2996         if true.
2997         (gfc_duplicate_allocatable): New function to call above with
2998         new argument false.
2999         (gfc_copy_allocatable_data): New function to call above with
3000         new argument true.
3001         (structure_alloc_comps): Do not apply indirect reference to
3002         scalar pointers. Add new section to copy allocatable components
3003         of arrays. Extend copying of allocatable components to include
3004         scalars.
3005         (gfc_copy_only_alloc_comp): New function to copy allocatable
3006         component derived types, without allocating the base structure.
3007         * trans-array.h : Add primitive for gfc_copy_allocatable_data.
3008         Add primitive for gfc_copy_only_alloc_comp.
3009         * trans-expr.c (gfc_conv_procedure_call): After calls to
3010         transformational functions with results that are derived types
3011         with allocatable components, copy the components in the result.
3012         (gfc_trans_arrayfunc_assign): Deallocate allocatable components
3013         of lhs derived types before allocation.
3014         
3015 2010-01-14  Paul Thomas  <pault@gcc.gnu.org>
3016
3017         PR fortran/42481
3018         * module.c (load_generic_interfaces): If a procedure that is
3019         use associated but not generic is given an interface that
3020         includes itself, then make it generic.
3021
3022 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
3023             Shujing Zhao  <pearly.zhao@oracle.com>
3024
3025         PR translation/42469
3026         * lang.opt (fblas-matmul-limit=, finit-character=, finit-integer=,
3027         finit-logical=, finit-real=, fmax-array-constructor=): Use tab
3028         character between option name and help text.
3029
3030 2010-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
3031
3032         PR fortran/20923
3033         PR fortran/32489
3034         * trans-array.c (gfc_conv_array_initializer): Change call to
3035         gfc_error_now to call to gfc_fatal_error.
3036         * array.c (count_elements): Whitespace. (extract_element): Whitespace.
3037         (is_constant_element): Changed name from constant_element.
3038         (gfc_constant_ac): Only use expand_construuctor for expression
3039         types of EXPR_ARRAY.  If expression type is EXPR_CONSTANT, no need to
3040         call gfc_is_constant_expr.
3041         * expr.c (gfc_reduce_init_expr): Adjust conditionals and delete error
3042         message.
3043         * resolve.c (gfc_is_expandable_expr): New function that determiners if
3044         array expressions should have their constructors expanded.
3045         (gfc_resolve_expr): Use new function to determine whether or not to call
3046         gfc_expand_constructor.
3047
3048 2010-01-09  Tobias Burnus  <burnus@net-b.de>
3049
3050         PR fortran/41298
3051         * trans-expr.c (gfc_trans_structure_assign): Handle
3052         c_null_(fun)ptr.
3053         * symbol.c (gen_special_c_interop_ptr): Add NULL_EXPR
3054         to the constructor for c_null_(fun)ptr.
3055         * resolve.c (resolve_structure_cons): Add special case
3056         for c_null_(fun)ptr.
3057
3058 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
3059
3060         * gfortranspec.c (lang_specific_driver): Update copyright notice
3061         dates.
3062
3063 2010-01-08  Tobias Burnus  <burnus@net-b.de>
3064
3065         PR/fortran 25829
3066         * symbol.c (check_conflict, gfc_copy_attr): Add
3067         ASYNCHRONOUS support.
3068         (gfc_add_asynchronous): New function.
3069         * decl.c (match_attr_spec): Add ASYNCHRONOUS support.
3070         (gfc_match_asynchronous): New function.
3071         * dump-parse-tree.c (show_attr): Add ASYNCHRONOUS support.
3072         * gfortran.h (symbol_attribute): New ASYNCHRONOUS bit.
3073         (gfc_add_asynchronous): New Prototype.
3074         * module.c (ab_attribute, mio_symbol_attribute): Add
3075         ASYNCHRONOUS support.
3076         * resolve.c (was_declared): Ditto.
3077         * match.h (gfc_match_asynchronous): New prototype.
3078         * parse.c (decode_specification_statement,decode_statement):
3079         Add ASYNCHRONOUS support.
3080
3081 2010-01-07  Tobias Burnus  <burnus@net-b.de>
3082
3083         PR fortran/42597
3084         * trans-decl.c (get_proc_pointer_decl): Fix call to
3085         gfc_conv_initializer for array-valued proc-pointer funcs.
3086
3087 2010-01-07  Tobias Burnus  <burnus@net-b.de>
3088
3089         PR fortran/41872
3090         * trans-decl.c (gfc_trans_deferred_vars): Don't initialize
3091         allocatable scalars with SAVE attribute.
3092
3093 2010-01-05  Tobias Burnus  <burnus@net-b.de>
3094
3095         PR fortran/42517
3096         * options.c (gfc_post_options): Set -frecursion
3097         when -fopenmp is used.
3098
3099 2010-01-05  Tobias Burnus  <burnus@net-b.de>
3100
3101         PR fortran/41872
3102         * trans-expr.c (gfc_conv_procedure_call): Nullify
3103         return value for allocatable-scalar character functions.
3104
3105 2010-01-04  Tobias Burnus  <burnus@net-b.de>
3106
3107         PR fortran/36161
3108         * error.c (error_printf, gfc_warning, gfc_notify_std,
3109         gfc_warning_now, gfc_error, gfc_error_now,
3110         gfc_fatal_error): Change argument name from nocmsgid to
3111         gmsgid to enable (x)gettext's % checking.
3112
3113 2010-01-04  Tobias Burnus  <burnus@net-b.de>
3114         
3115         * trans-decl.c (gfc_trans_deferred_vars): Fix spelling.
3116
3117 2010-01-04  Tobias Burnus  <burnus@net-b.de>
3118
3119         PR fortran/41872
3120         * trans-expr.c (gfc_conv_procedure_call): Add indirect ref
3121         for functions returning allocatable scalars.
3122         * trans-stmt.c (gfc_trans_allocate): Emmit error when
3123         reallocating an allocatable scalar.
3124         * trans.c (gfc_allocate_with_status): Fix pseudocode syntax
3125         in comment.
3126         * trans-decl.c (gfc_trans_deferred_vars): Nullify local
3127         allocatable scalars.
3128         (gfc_generate_function_code): Nullify result variable for
3129         allocatable scalars.
3130         
3131         PR fortran/40849
3132         * module.c (gfc_use_module): Fix warning string to allow
3133         for translation.
3134
3135         PR fortran/42517
3136         * invoke.texi (-fcheck=recursion): Mention that the checking
3137         is also disabled for -frecursive.
3138         * trans-decl.c (gfc_generate_function_code): Disable
3139         -fcheck=recursion when -frecursive is used.
3140
3141         * intrinsic.texi (iso_c_binding): Improve wording.
3142
3143 \f
3144 Copyright (C) 2010 Free Software Foundation, Inc.
3145
3146 Copying and distribution of this file, with or without modification,
3147 are permitted in any medium without royalty provided the copyright
3148 notice and this notice are preserved.