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