2010-07-05 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / fortran / ChangeLog
blob611f6d982b932f73fad0cad05a1ad0da43cabd03
1 2010-07-05  Steven G. Kargl  <kargl@gcc.gnu.org>
3         fortran/44797
4         * fortran/io.c (resolve_tag): Check EXIST tag is a default logical.
6 2010-07-05  Paul Thomas  <pault@gcc.gnu.org>
8         PR fortran/44596
9         * trans-types.c (gfc_get_derived_type): Derived type fields
10         with the vtype attribute must have TYPE_REF_CAN_ALIAS_ALL set
11         but build_pointer_type_for_mode must be used for this.
13 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
15         * trans.h (gfc_conv_procedure_call): Take a VEC instead of a tree.
16         * trans-intrinsic.c (gfc_conv_intrinsic_funcall): Adjust for new
17         type of gfc_conv_procedure_call.
18         (conv_generic_with_optional_char_arg): Likewise.
19         * trans-stmt.c (gfc_trans_call): Likewise.
20         * trans-expr.c (gfc_conv_function_expr): Likewise.
21         (gfc_conv_procedure_call): Use build_call_vec instead of
22         build_call_list.
24 2010-07-04  Daniel Kraft  <d@domob.eu>
26         * gfc-internals.texi (gfc_code): Document BLOCK and ASSOCIATE.
28 2010-07-04  Paul Thomas  <pault@gcc.gnu.org>
30         PR fortran/44596
31         PR fortran/44745
32         * trans-types.c (gfc_get_derived_type): Derived type fields
33         with the vtype attribute must have TYPE_REF_CAN_ALIAS_ALL set.
35 2010-07-02  Mikael Morin  <mikael@gcc.gnu.org>
37         PR fortran/44662
38         * decl.c (match_procedure_in_type): Clear structure before using.
39         (gfc_match_generic): Ditto.
41 2010-07-02  Nathan Froyd  <froydnj@codesourcery.com>
43         * trans-types.h (gfc_add_field_to_struct): Add tree ** parameter.
44         * trans-types.c (gfc_add_field_to_struct_1): New function, most
45         of which comes from...
46         (gfc_add_field_to_struct): ...here.  Call it.  Add new parameter.
47         (gfc_get_desc_dim_type): Call gfc_add_field_to_struct_1 for
48         building fields.
49         (gfc_get_array_descriptor_base): Likewise.
50         (gfc_get_mixed_entry_union): Likewise.
51         (gfc_get_derived_type): Add extra chain parameter for
52         gfc_add_field_to_struct.
53         * trans-stmt.c (gfc_trans_character_select): Likewise.
54         * trans-io.c (gfc_build_st_parameter): Likewise.
56 2010-06-29  Janus Weil  <janus@gcc.gnu.org>
58         PR fortran/44718
59         * resolve.c (is_external_proc): Prevent procedure pointers from being
60         regarded as external procedures.
62 2010-06-29  Janus Weil  <janus@gcc.gnu.org>
64         PR fortran/44696
65         * trans-intrinsic.c (gfc_conv_associated): Handle polymorphic variables
66         passed as second argument of ASSOCIATED.
68 2010-06-29  Paul Thomas  <pault@gcc.gnu.org>
70         PR fortran/44582
71         * trans-expr.c (arrayfunc_assign_needs_temporary): New function
72         to determine if a function assignment can be made without a
73         temporary.
74         (gfc_trans_arrayfunc_assign): Move all the conditions that
75         suppress the direct function call to the above new functon and
76         call it.
78 2010-06-28  Paul Thomas  <pault@gcc.gnu.org>
80         PR fortran/40158
81         * interface.c (argument_rank_mismatch): New function.
82         (compare_parameter): Call new function instead of generating
83         the error directly.
85 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
87         * trans-openmp.c (dovar_init): Define.  Define VECs containing it.
88         (gfc_trans_omp_do): Use a VEC to accumulate variables and their
89         initializers.
91 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
93         * Make-lang.in: Update dependencies.
95 2010-06-27  Nathan Froyd  <froydnj@codesourcery.com>
97         * gfortran.h (gfc_code): Split backend_decl field into cycle_label
98         and exit_label fields.
99         * trans-openmp.c (gfc_trans_omp_do): Assign to new fields
100         individually.
101         * trans-stmt.c (gfc_trans_simple_do): Likewise.
102         (gfc_trans_do): Likewise.
103         (gfc_trans_do_while): Likewise.
104         (gfc_trans_cycle): Use cycle_label directly.
105         (gfc_trans_exit): Use exit_label directly.
107 2010-06-27  Daniel Kraft  <d@domob.eu>
109         * dump-parse-tree.c (show_symbol): Dump target-expression for
110         associate names.
111         (show_code_node): Make distinction between BLOCK and ASSOCIATE.
112         (show_namespace): Use show_level for correct indentation of
113         "inner namespaces" (contained procedures or BLOCK).
115 2010-06-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
117         PR fortran/44678
118         * dump-parse-tree.c (show_code_node):  Show namespace for
119         EXEC_BLOCK.
121 2010-06-26  Tobias Burnus  <burnus@net-b.de>
123         * decl.c (gfc_match_decl_type_spec): Support
124         TYPE(intrinsic-type-spec).
126 2010-06-25  Tobias Burnus  <burnus@net-b.de>
128         * intrinsic.h (gfc_check_selected_real_kind,
129         gfc_simplify_selected_real_kind): Update prototypes.
130         * intrinsic.c (add_functions): Add radix support to
131         selected_real_kind.
132         * check.c (gfc_check_selected_real_kind): Ditto.
133         * simplify.c (gfc_simplify_selected_real_kind): Ditto.
134         * trans-decl.c (gfc_build_intrinsic_function_decls):
135         Change call from selected_real_kind to selected_real_kind2008.
136         * intrinsic.texi (SELECTED_REAL_KIND): Update for radix.
137         (PRECISION, RANGE, RADIX): Add cross @refs.
139 2010-06-25  Tobias Burnus  <burnus@net-b.de>
141         * decl.c (gfc_match_entry): Mark ENTRY as GFC_STD_F2008_OBS.
142         * gfortran.texi (_gfortran_set_options): Update for
143         GFC_STD_F2008_OBS addition.
144         * libgfortran.h: Add GFC_STD_F2008_OBS.
145         * options.c (set_default_std_flags, gfc_handle_option): Handle
146         GFC_STD_F2008_OBS.
147         io.c (check_format): Fix allow_std check.
149 2010-06-25  Tobias Burnus  <burnus@net-b.de>
151         * decl.c (gfc_match_entry): Allow END besides
152         END SUBROUTINE/END FUNCTION for contained procedures.
154 2010-06-25  Tobias Burnus  <burnus@net-b.de>
156         * parse.c (next_free, next_fixed): Allow ";" as first character.
158 2010-06-24  Tobias Burnus  <burnus@net-b.de>
160         PR fortran/44614
161         * decl.c (variable_decl): Fix IMPORT diagnostic for CLASS.
163 2010-06-22  Janus Weil  <janus@gcc.gnu.org>
165         PR fortran/44616
166         * resolve.c (resolve_fl_derived): Avoid checking for abstract on class
167         containers.
169 2010-06-21  Tobias Burnus  <burnus@net-b.de>
171         PR fortran/40632
172         * interface.c (compare_parameter): Add gfc_is_simply_contiguous
173         checks.
174         * symbol.c (gfc_add_contiguous): New function.
175         (gfc_copy_attr, check_conflict): Handle contiguous attribute.
176         * decl.c (match_attr_spec): Ditto.
177         (gfc_match_contiguous): New function.
178         * resolve.c (resolve_fl_derived, resolve_symbol): Handle
179         contiguous.
180         * gfortran.h (symbol_attribute): Add contiguous.
181         (gfc_is_simply_contiguous): Add prototype.
182         (gfc_add_contiguous): Add prototype.
183         * match.h (gfc_match_contiguous): Add prototype.
184         * parse.c (decode_specification_statement,
185         decode_statement): Handle contiguous attribute.
186         * expr.c (gfc_is_simply_contiguous): New function.
187         * dump-parse-tree.c (show_attr): Handle contiguous.
188         * module.c (ab_attribute, attr_bits, mio_symbol_attribute):
189         Ditto.
190         * trans-expr.c (gfc_add_interface_mapping): Copy
191         attr.contiguous.
192         * trans-array.c (gfc_conv_descriptor_stride_get,
193         gfc_conv_array_parameter): Handle contiguous arrays.
194         * trans-types.c (gfc_build_array_type, gfc_build_array_type,
195         gfc_sym_type, gfc_get_derived_type, gfc_get_array_descr_info):
196         Ditto.
197         * trans.h (gfc_array_kind): Ditto.
198         * trans-decl.c (gfc_get_symbol_decl): Ditto.
200 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
202         * options.c (gfc_handle_option): Don't handle N_OPTS.
204 2010-06-19  Janus Weil  <janus@gcc.gnu.org>
206         PR fortran/44584
207         * resolve.c (resolve_fl_derived): Reverse ordering of conditions
208         to avoid ICE.
210 2010-06-18  Tobias Burnus  <burnus@net-b.de>
212         PR fortran/44556
213         * resolve.c (resolve_allocate_deallocate): Properly check
214         part-refs in stat=/errmsg= for invalid use.
216 2010-06-17  Janus Weil  <janus@gcc.gnu.org>
218         PR fortran/44558
219         * resolve.c (resolve_typebound_function,resolve_typebound_subroutine):
220         Return directly in case of an error.
222 2010-06-16  Janus Weil  <janus@gcc.gnu.org>
224         PR fortran/44549
225         * gfortran.h (gfc_get_typebound_proc): Modified Prototype.
226         * decl.c (match_procedure_in_type): Give a unique gfc_typebound_proc
227         structure to each procedure in a procedure list.
228         * module.c (mio_typebound_proc): Add NULL argument to
229         'gfc_get_typebound_proc'.
230         * symbol.c (gfc_get_typebound_proc): Add a new argument, which is used
231         to initialize the new structure.
233 2010-06-15  Janus Weil  <janus@gcc.gnu.org>
235         PR fortran/43388
236         * gfortran.h (gfc_expr): Add new member 'mold'.
237         * match.c (gfc_match_allocate): Implement the MOLD tag.
238         * resolve.c (resolve_allocate_expr): Ditto.
239         * trans-stmt.c (gfc_trans_allocate): Ditto.
241 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
243         PR fortran/44536
244         * trans-openmp.c (gfc_omp_predetermined_sharing): Don't return
245         OMP_CLAUSE_DEFAULT_SHARED for artificial vars with
246         GFC_DECL_SAVED_DESCRIPTOR set.
247         (gfc_omp_report_decl): New function.
248         * trans.h (gfc_omp_report_decl): New prototype.
249         * f95-lang.c (LANG_HOOKS_OMP_REPORT_DECL): Redefine.
251 2010-06-13  Daniel Franke  <franke.daniel@gmail.com>
253         PR fortran/31588
254         PR fortran/43954
255         * gfortranspec.c (lang_specific_driver): Removed deprecation
256         warning for -M.
257         * lang.opt: Add options -M, -MM, -MD, -MMD, -MF, -MG, -MP, -MT, -MQ.
258         * lang-specs.h (CPP_FORWARD_OPTIONS): Add -M* options.
259         * cpp.h (gfc_cpp_makedep): New.
260         (gfc_cpp_add_dep): New.
261         (gfc_cpp_add_target): New.
262         * cpp.c (gfc_cpp_option): Add deps* members.
263         (gfc_cpp_makedep): New.
264         (gfc_cpp_add_dep): New.
265         (gfc_cpp_add_target): New.
266         (gfc_cpp_init_options): Initialize new options.
267         (gfc_cpp_handle_option): Handle new options.
268         (gfc_cpp_post_options): Map new options to libcpp-options.
269         (gfc_cpp_init): Handle deferred -MQ and -MT options.
270         (gfc_cpp_done): If requested, write dependencies to file.
271         * module.c (gfc_dump_module): Add a module filename as target.
272         * scanner.c (open_included_file): New parameter system; add the
273         included file as dependency.
274         (gfc_open_included_file): Add the included file as dependency.
275         (gfc_open_intrinsic_module): Likewise.
276         * invoke.texi: Removed deprecation warning for -M.
277         * gfortran.texi: Removed Makefile-dependencies project.
279 2010-06-12  Daniel Franke  <franke.daniel@gmail.com>
281         * resolve.c (resolve_global_procedure): Improved checking if an
282         explicit interface is required.
284 2010-06-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
286         * trans-decl.c (gfc_build_intrinsic_function_decls): Fix
287         return type.
288         * trans-intrinsic.c (gfc_conv_intrinsic_fdate): Fix argument type.
289         (gfc_conv_intrinsic_ttynam): Likewise.
290         (gfc_conv_intrinsic_trim): Likewise.
292 2010-06-12  Janus Weil  <janus@gcc.gnu.org>
294         PR fortran/40117
295         * decl.c (match_procedure_in_type): Allow procedure lists (F08).
297 2010-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
299         * trans-intrinsic.c (gfc_build_intrinsic_lib_fndecls): Fix comment.
301 2010-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
303         * mathbuiltins.def: Add builtins that do not directly correspond
304         to a Fortran intrinsic, with new macro OTHER_BUILTIN.
305         * f95-lang.c (gfc_init_builtin_functions): Define OTHER_BUILTIN.
306         * trans-intrinsic.c (gfc_intrinsic_map_t): Remove
307         code_{r,c}{4,8,10,16} fields. Add
308         {,complex}{float,double,long_double}_built_in fields.
309         (gfc_intrinsic_map): Adjust definitions of DEFINE_MATH_BUILTIN,
310         DEFINE_MATH_BUILTIN_C and LIB_FUNCTION accordingly. Add
311         definition of OTHER_BUILTIN.
312         (real_compnt_info): Remove unused struct.
313         (builtin_decl_for_precision, builtin_decl_for_float_kind): New
314         functions.
315         (build_round_expr): Call builtin_decl_for_precision instead of
316         series of if-else.
317         (gfc_conv_intrinsic_aint): Call builtin_decl_for_float_kind
318         instead of a switch.
319         (gfc_build_intrinsic_lib_fndecls): Match
320         {real,complex}{4,8,10,16}decl into the C-style built_in_decls.
321         (gfc_get_intrinsic_lib_fndecl): Do not hardcode floating-point
322         kinds.
323         (gfc_conv_intrinsic_lib_function): Go through all the extended
324         gfc_intrinsic_map.
325         (gfc_trans_same_strlen_check): Call builtin_decl_for_float_kind
326         instead of a switch.
327         (gfc_conv_intrinsic_abs): Likewise.
328         (gfc_conv_intrinsic_mod): Likewise.
329         (gfc_conv_intrinsic_sign): Likewise.
330         (gfc_conv_intrinsic_fraction): Likewise.
331         (gfc_conv_intrinsic_nearest): Likewise.
332         (gfc_conv_intrinsic_spacing): Likewise.
333         (gfc_conv_intrinsic_rrspacing): Likewise.
334         (gfc_conv_intrinsic_scale): Likewise.
335         (gfc_conv_intrinsic_set_exponent): Likewise.
337 2010-06-11  Paul Thomas  <pault@gcc.gnu.org>
339         PR fortran/42051
340         PR fortran/43896
341         * trans-expr.c (gfc_conv_derived_to_class): Handle array-valued
342         functions with CLASS formal arguments.
344 2010-06-10  Janus Weil  <janus@gcc.gnu.org>
346         PR fortran/44207
347         * resolve.c (conformable_arrays): Handle allocatable components.
349 2010-06-10  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
351         PR fortran/38273
352         * gfortran.texi: Document that Cray pointers cannot be function
353         results.
355 2010-06-10  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
357         PR fortran/36234
358         * gfortran.texi: Document lack of support for syntax
359         "complex FUNCTION name*16()", and existence of alternative
360         legacy syntax "complex*16 FUNCTION name()".
362 2010-06-10  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
364         PR fortran/43032
365         * intrinsic.texi (FLUSH): Note the difference between FLUSH and
366         POSIX's fsync(), and how to call the latter from Fortran code.
368 2010-06-10  Daniel Franke  <franke.daniel@gmail.com>
370         PR fortran/44457
371         * interface.c (compare_actual_formal): Reject actual arguments with
372         array subscript passed to ASYNCHRONOUS dummys.
374 2010-06-10  Daniel Kraft  <d@domob.eu>
376         PR fortran/38936
377         * gfortran.h (enum gfc_statement): Add ST_ASSOCIATE, ST_END_ASSOCIATE.
378         (struct gfc_symbol): New field `assoc'.
379         (struct gfc_association_list): New struct.
380         (struct gfc_code): New struct `block' in union, move `ns' there
381         and add association list.
382         (gfc_free_association_list): New method.
383         (gfc_has_vector_subscript): Made public;
384         * match.h (gfc_match_associate): New method.
385         * parse.h (enum gfc_compile_state): Add COMP_ASSOCIATE.
386         * decl.c (gfc_match_end): Handle ST_END_ASSOCIATE.
387         * interface.c (gfc_has_vector_subscript): Made public.
388         (compare_actual_formal): Rename `has_vector_subscript' accordingly.
389         * match.c (gfc_match_associate): New method.
390         (gfc_match_select_type): Change reference to gfc_code's `ns' field.
391         * primary.c (match_variable): Don't allow names associated to expr here.
392         * parse.c (decode_statement): Try matching ASSOCIATE statement.
393         (case_exec_markers, case_end): Add ASSOCIATE statement.
394         (gfc_ascii_statement): Hande ST_ASSOCIATE and ST_END_ASSOCIATE.
395         (parse_associate): New method.
396         (parse_executable): Handle ST_ASSOCIATE.
397         (parse_block_construct): Change reference to gfc_code's `ns' field.
398         * resolve.c (resolve_select_type): Ditto.
399         (resolve_code): Ditto.
400         (resolve_block_construct): Ditto and add comment.
401         (resolve_select_type): Set association list in generated BLOCK to NULL.
402         (resolve_symbol): Resolve associate names.
403         * st.c (gfc_free_statement): Change reference to gfc_code's `ns' field
404         and free association list.
405         (gfc_free_association_list): New method.
406         * symbol.c (gfc_new_symbol): NULL new field `assoc'.
407         * trans-stmt.c (gfc_trans_block_construct): Change reference to
408         gfc_code's `ns' field.
410 2010-06-10  Kai Tietz  <kai.tietz@onevision.com>
412         * error.c (error_print): Pre-initialize loc by NULL.
413         * openmp.c (resolve_omp_clauses): Add explicit
414         braces to avoid ambigous else.
415         * array.c (match_subscript): Pre-initialize m to MATCH_ERROR.
417 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
419         * gfc-internals.texi: Move to GFDL 1.3.
420         * gfortran.texi: Ditto.
421         * intrinsic.texi: Ditto.
422         * invoke.texi: Ditto.
424 2010-06-09  Daniel Franke  <franke.daniel@gmail.com>
426         PR fortran/44347
427         * check.c (gfc_check_selected_real_kind): Verify that the
428         actual arguments are scalar.
430 2010-06-09  Daniel Franke  <franke.daniel@gmail.com>
432         PR fortran/44359
433         * intrinsic.c (gfc_convert_type_warn): Further improve -Wconversion.
435 2010-06-09  Janus Weil  <janus@gcc.gnu.org>
437         PR fortran/44430
438         * dump-parse-tree.c (show_symbol): Avoid infinite loop.
440 2010-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>
442         * fortran/symbol.c (check_conflict):  Remove an invalid conflict check.
444 2010-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>
446         * fortran/intrinsic.c (add_functions): Change gfc_check_btest,
447         gfc_check_ibclr, and gfc_check_ibset to gfc_check_bitfcn.
448         * fortran/intrinsic.h: Remove prototypes for gfc_check_btest,
449         gfc_check_ibclr, and gfc_check_ibset.  Add prototype for
450         gfc_check_bitfcn.
451         * fortran/check.c (nonnegative_check, less_than_bitsize1, 
452         less_than_bitsize2): New functions.
453         (gfc_check_btest): Renamed to gfc_check_bitfcn.  Use
454         nonnegative_check and less_than_bitsize1.
455         (gfc_check_ibclr, gfc_check_ibset): Removed.
456         (gfc_check_ibits,gfc_check_mvbits): Use nonnegative_check and
457         less_than_bitsize1.
459 2010-06-09  Janus Weil  <janus@gcc.gnu.org>
461         PR fortran/44211
462         * resolve.c (resolve_typebound_function,resolve_typebound_subroutine):
463         Resolve references.
465 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
467         * resolve.c (resolve_deallocate_expr): Avoid warning
468         about possible use of iunitialized sym.
469         (resolve_allocate_expr): Pre-initialize sym by NULL.
471 2010-06-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
473         PR fortran/43040
474         * f95-lang.c (gfc_init_builtin_functions): Remove comment.
476 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
478         * trans-types.c (gfc_get_nodesc_array_type): Use typed GC
479         allocation.
480         (gfc_get_array_type_bounds): Likewise.
482         * trans-decl.c (gfc_allocate_lang_decl): Likewise.
483         (gfc_find_module): Likewise.
485         * f95-lang.c (pushlevel): Likewise.
487         * trans.h (struct lang_type): Add variable_size GTY option.
488         (struct lang_decl): Likewise.
490 2010-06-08  Tobias Burnus  <burnus@net-b.de>
492         PR fortran/44446
493         * symbol.c (check_conflict): Move protected--external/procedure check ...
494         * resolve.c (resolve_select_type): ... to the resolution stage.
496 2010-06-07  Tobias Burnus  <burnus@net-b.de>
498         * options.c (gfc_handle_option): Fix -fno-recursive.
500 2010-06-07  Tobias Burnus  <burnus@net-b.de>
502         * gfc-internals.texi (copyrights-gfortran): Fix copyright year format.
503         * gfortran.texi (copyrights-gfortran): Ditto.
505 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
507         * lang.opt (fshort-enums): Define using Var and VarExists.
508         * options.c (gfc_handle_option): Don't set flag_short_enums here.
510 2010-06-05  Paul Thomas  <pault@gcc.gnu.org>
511             Janus Weil  <janus@gcc.gnu.org>
513         PR fortran/43945
514         * resolve.c (get_declared_from_expr): Move to before
515         resolve_typebound_generic_call.  Make new_ref and class_ref
516         ignorable if set to NULL.
517         (resolve_typebound_generic_call): Once we have resolved the
518         generic call, check that the specific instance is that which
519         is bound to the declared type.
520         (resolve_typebound_function,resolve_typebound_subroutine): Avoid
521         freeing 'class_ref->next' twice.
523 2010-06-05  Paul Thomas  <pault@gcc.gnu.org>
525         PR fortran/43895
526         * trans-array.c (structure_alloc_comps): Dereference scalar
527         'decl' if it is a REFERENCE_TYPE. Tidy expressions containing
528         TREE_TYPE (decl).
530 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
532         * gfortranspec.c (append_arg, lang_specific_driver): Use
533         GCC-specific formats in diagnostics.
535 2010-06-02  Tobias Burnus  <burnus@net-b.de>
537         PR fortran/44360
538         * parse.c (gfc_fixup_sibling_symbols): Do not "fix" use-associated
539         symbols.
541 2010-06-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
543         PR fortran/44371
544         * match.c (gfc_match_stopcode): Move gfc_match_eos call inside 
545         condition block.
547 2010-05-31  Steven G. Kargl  <kargl@gcc.gnu.org>
549         * fortran/gfortran.texi:  Fix typos in description of variable-format-
550         expressions.
552 2010-05-31  Thomas Koenig  <tkoenig@gcc.gnu.org>
554         PR fortran/36928
555         * dependency.c (gfc_check_section_vs_section):  Check
556         for interleaving array assignments without conflicts.
558 2010-05-30  Janus Weil  <janus@gcc.gnu.org>
560         * gcc/fortran/gfortran.h (CLASS_DATA): New macro for accessing the
561         $data component of a class container.
562         * gcc/fortran/decl.c (attr_decl1): Use macro CLASS_DATA.
563         * gcc/fortran/expr.c (gfc_check_pointer_assign,gfc_check_assign_symbol,
564         gfc_has_ultimate_allocatable,gfc_has_ultimate_pointer): Ditto.
565         * gcc/fortran/interface.c (matching_typebound_op): Ditto.
566         * gcc/fortran/match.c (gfc_match_allocate, gfc_match_deallocate): Ditto.
567         * gcc/fortran/parse.c (parse_derived): Ditto.
568         * gcc/fortran/primary.c (gfc_match_varspec, gfc_variable_attr,
569         gfc_expr_attr): Ditto.
570         * gcc/fortran/resolve.c (resolve_structure_cons, find_array_spec,
571         resolve_deallocate_expr, resolve_allocate_expr, resolve_select_type,
572         resolve_fl_var_and_proc, resolve_typebound_procedure,
573         resolve_fl_derived): Ditto.
574         * gcc/fortran/symbol.c (gfc_type_compatible): Restructured.
575         * gcc/fortran/trans-array.c (structure_alloc_comps): Use macro
576         CLASS_DATA.
577         * gcc/fortran/trans-decl.c (gfc_get_symbol_decl,
578         gfc_trans_deferred_vars): Ditto.
579         * gcc/fortran/trans-stmt.c (gfc_trans_allocate): Ditto.
581 2010-05-28  Tobias Burnus  <burnus@net-b.de>
583         * options.c (gfc_handle_option): Fix handling of -fno-whole-file.
585 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
587         * gfortranspec.c (append_arg, lang_specific_driver): Use
588         fatal_error instead of fatal.  Use warning instead of fprintf for
589         warnings.
591 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
593         * cpp.c (gfc_cpp_init_0): Use xstrerror instead of strerror.
594         * module.c (write_char, gfc_dump_module, gfc_use_module): Use
595         xstrerror instead of strerror.
597 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
599         * cpp.c (cb_cpp_error): Save and restore
600         global_dc->warn_system_headers, not variable warn_system_headers.
602 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
604         * fortran/f95-lang.c: Do not include libfuncs.h, expr.h, and except.h.
606 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
608         * trans-common.c: Do not include rtl.h, include output.h instead.
609         * trans-decl.c: Likewise.
611 2010-05-26  Paul Thomas  <pault@gcc.gnu.org>
613         PR fortran/40011
614         * resolve.c (resolve_global_procedure): Resolve the gsymbol's
615         namespace before trying to reorder the gsymbols.
617 2010-05-25  Daniel Franke  <franke.daniel@gmail.com>
619         PR fortran/30668
620         PR fortran/31346
621         PR fortran/34260
622         * resolve.c (resolve_global_procedure): Add check for global
623         procedures with implicit interfaces and assumed-shape or optional
624         dummy arguments. Verify that function return type, kind and string
625         lengths match.
627 2010-05-21  Tobias Burnus  <burnus@net-b.de>
629         * gfortran.h: Do not include system.h.
630         * bbt.c: Include system.h.
631         * data.c: Ditto.
632         * dependency.c: Ditto.
633         * dump-parse-tree.c: Ditto.
634         * arith.h: Do not include gfortran.h.
635         * constructor.h: Do not include gfortran.h and splay-tree.h.
636         * match.h: Do not include gfortran.h.
637         * parse.h: Ditto.
638         * target-memory.h: Ditto.
639         * openmp.c: Do not include toplev.h and target.h.
640         * trans-stmt.c: Ditto not include toplev.h.
641         * primary.c: Ditto.
642         * trans-common.c: Tell why toplev.h is needed. And
643         do not include target.h.
644         * trans-expr.c: Tell why toplev.h is needed.
645         * trans-array.c: Ditto.
646         * trans-openmp.c: Ditto.
647         * trans-const.c: Ditto.
648         * trans.c: Ditto.
649         * trans-types.c: Ditto.
650         * trans-io.c: Ditto.
651         * trans-decl.c: Ditto.
652         * scanner.c: Ditto.
653         * convert.c: Ditto.
654         * trans-intrinsic.c: Ditto.
655         * options.c: Ditto.
657 2010-05-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
659         PR fortran/43851
660         * match.c (gfc_match_stopcode): Use gfc_match_init_expr. Go to cleanup
661         before returning MATCH_ERROR. Add check for scalar. Add check for
662         default integer kind.
664 2010-05-22  Janus Weil  <janus@gcc.gnu.org>
666         PR fortran/44212
667         * match.c (gfc_match_select_type): On error jump back out of the local
668         namespace.
669         * parse.c (parse_derived): Defer creation of vtab symbols to resolution
670         stage, more precisely to ...
671         * resolve.c (resolve_fl_derived): ... this place.
673 2010-05-22  Janus Weil  <janus@gcc.gnu.org>
675         PR fortran/44213
676         * resolve.c (ensure_not_abstract): Allow abstract types with
677         non-abstract ancestors.
679 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
681         * trans-const.c: Include realmpfr.h.
682         * Make-lang.in: Update dependencies.
684 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
686         * trans-const.c, trans-types.c, trans-intrinsic.c:
687         Clean up redundant includes.
689 2010-05-20  Daniel Franke  <franke.daniel@gmail.com>
691         PR fortran/38407
692         * lang.opt (Wunused-dummy-argument): New option.
693         * gfortran.h (gfc_option_t): Add warn_unused_dummy_argument.
694         * options.c (gfc_init_options): Disable warn_unused_dummy_argument.
695         (set_Wall): Enable warn_unused_dummy_argument.
696         (gfc_handle_option): Set warn_unused_dummy_argument according to
697         command line.
698         * trans-decl.c (generate_local_decl): Separate warnings about
699         unused variables and unused dummy arguments.
700         * invoke.texi: Documented new option.
702 2010-05-20  Steven Bosscher  <steven@gcc.gnu.org>
704         * trans-expr.c: Do not include convert.h, ggc.h, real.h, and gimple.h.
705         (gfc_conv_string_tmp): Do not assert type comparibilty.
706         *  trans-array.c: Do not include gimple.h, ggc.h, and real.h.
707         (gfc_conv_expr_descriptor): Remove assert.
708         * trans-common.c: Clarify why rtl.h and tm.h are included.
709         * trans-openmp.c: Do not include ggc.h and real.h.
710         Explain why gimple.h is included.
711         * trans-const.c: Do not include ggc.h.
712         * trans-stmt.c: Do not include gimple.h, ggc.h, and real.h.
713         * trans.c: Do not include ggc.h and real.h.
714         Explain why gimple.h is included.
715         * trans-types.c: Do not include tm.h.  Explain why langhooks.h
716         and dwarf2out.h are included.
717         * trans-io.c: Do not include gimple.h and real.h.
718         * trans-decl.c: Explain why gimple.h, tm.h, and rtl.h are included.
719         * trans-intrinsic.c: Do not include gimple.h.  Explain why tm.h
720         is included.
722 2010-05-20  Tobias Burnus  <burnus@net-b.de>
724         * options.c (gfc_init_options,gfc_post_options): Enable
725         flag_associative_math by default.
727 2010-05-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
729         PR fortran/43851
730         * trans-stmt.c (gfc_trans_stop): Add generation of call to
731         gfortran_error_stop_numeric. Fix up some whitespace. Use stop_string for
732         blank STOP, handling a null expression. (gfc_trans_pause): Use
733         pause_string for blank PAUSE.
734         * trans.h: Add external function declaration for error_stop_numeric.
735         * trans-decl.c (gfc_build_builtin_function_decls): Add the building of
736         the declaration for the library call. Adjust whitespaces.
737         * match.c (gfc_match_stopcode): Remove use of the actual stop code to
738         signal no stop code. Match the expression following the stop and pass
739         that to the translators. Remove the old use of digit matching.  Add
740         checks that the stop_code expression is INTEGER or CHARACTER, constant,
741         and if CHARACTER, default character KIND.
743 2010-05-19  Daniel Franke  <franke.daniel@gmail.com>
745         PR fortran/44055
746         * lang.opt (Wconversion-extra): New option.
747         * gfortran.h (gfc_option_t): Add warn_conversion_extra.
748         * options.c (gfc_init_options): Disable -Wconversion-extra by default.
749         (set_Wall): Enable -Wconversion.
750         (gfc_handle_option): Set warn_conversion_extra.
751         * intrinsic.c (gfc_convert_type_warn): Ignore kind conditions
752         introduced for -Wconversion if -Wconversion-extra is present.
753         * invoke.texi: Add -Wconversion to -Wall; document new behaviour of
754         -Wconversion; document -Wconversion-extra.
756 2010-05-19  Daniel Franke  <franke.daniel@gmail.com>
758         PR fortran/42360
759         * gfortran.h (gfc_has_default_initializer): New.
760         * expr.c (gfc_has_default_initializer): New.
761         * resolve.c (has_default_initializer): Removed, use
762         gfc_has_default_initializer() instead. Updated all callers.
763         * trans-array.c (has_default_initializer): Removed, use
764         gfc_has_default_initializer() instead. Updated all callers.
765         * trans-decl.c (generate_local_decl): Do not check the
766         first component only to check for initializers, but use
767         gfc_has_default_initializer() instead.
769 2010-05-19  Daniel Franke  <franke.daniel@gmail.com>
771         PR fortran/38404
772         * primary.c (match_string_constant): Move start_locus just inside 
773         the string.
774         * data.c (create_character_intializer): Clarified truncation warning.
776 2010-05-19  Daniel Franke  <franke.daniel@gmail.com>
778         PR fortran/34505
779         * intrinsic.h (gfc_check_float): New prototype.
780         (gfc_check_sngl): New prototype.
781         * check.c (gfc_check_float): New.
782         (gfc_check_sngl): New.
783         * intrinsic.c (add_functions): Moved DFLOAT from aliasing DBLE
784         to be a specific for REAL. Added check routines for FLOAT, DFLOAT
785         and SNGL.
786         * intrinsic.texi: Removed individual nodes of FLOAT, DFLOAT and SNGL,
787         added them to the list of specifics of REAL instead.
789 2010-05-17  Janus Weil  <janus@gcc.gnu.org>
791         PR fortran/43990
792         * trans-expr.c (gfc_conv_structure): Remove unneeded and buggy code.
793         This is now handled via 'gfc_class_null_initializer'.
795 2010-05-17  Janus Weil  <janus@gcc.gnu.org>
797         * class.c (gfc_add_component_ref,gfc_class_null_initializer,
798         gfc_build_class_symbol,add_proc_component,add_proc_comps, 
799         add_procs_to_declared_vtab1,copy_vtab_proc_comps,
800         add_procs_to_declared_vtab,add_generic_specifics, 
801         add_generics_to_declared_vtab,gfc_find_derived_vtab,
802         find_typebound_proc_uop,gfc_find_typebound_proc,
803         gfc_find_typebound_user_op,gfc_find_typebound_intrinsic_op, 
804         gfc_get_tbp_symtree): Moved here from other places.
805         * expr.c (gfc_add_component_ref,gfc_class_null_initializer): Move to
806         class.c.
807         * gfortran.h (gfc_build_class_symbol,gfc_find_derived_vtab,
808         gfc_find_typebound_proc,gfc_find_typebound_user_op,
809         gfc_find_typebound_intrinsic_op,gfc_get_tbp_symtree,
810         gfc_add_component_ref, gfc_class_null_initializer): Moved to class.c.
811         * Make-lang.in: Add class.o.
812         * symbol.c (gfc_build_class_symbol,add_proc_component,add_proc_comps,
813         add_procs_to_declared_vtab1,copy_vtab_proc_comps,
814         add_procs_to_declared_vtab,add_generic_specifics,
815         add_generics_to_declared_vtab,gfc_find_derived_vtab,
816         find_typebound_proc_uop,gfc_find_typebound_proc,
817         gfc_find_typebound_user_op,gfc_find_typebound_intrinsic_op,
818         gfc_get_tbp_symtree): Move to class.c.
820 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
822         * trans-types.c (gfc_init_types): Use build_function_type_list.
823         (gfc_get_ppc_type): Likewise.
824         * trans-decl.c (gfc_generate_constructors): Likewise.
825         * f95-lang.c (build_builtin_fntypes): Likewise.
826         (gfc_init_builtin_functions): Likewise.
827         (DEF_FUNCTION_TYPE_0): Likewise.
828         (DEF_FUNCTION_TYPE_1): Likewise.
829         (DEF_FUNCTION_TYPE_2): Likewise.
830         (DEF_FUNCTION_TYPE_3): Likewise.
831         (DEF_FUNCTION_TYPE_4): Likewise.
832         (DEF_FUNCTION_TYPE_5): Likewise.
833         (DEF_FUNCTION_TYPE_6): Likewise.
834         (DEF_FUNCTION_TYPE_7): Likewise.  Use ARG7.
835         (DEF_FUNCTION_TYPE_VAR_0): Use build_varags_function_type_list.
837 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
839         * trans-array.c (gfc_trans_array_constructor_value): Use
840         build_constructor instead of build_constructor_from_list.
841         (gfc_build_constant_array_constructor): Likewise.
842         * trans-decl.c (create_main_function): Likewise.
843         * trans-stmt.c (gfc_trans_character_select): Likewise.
845 2010-05-17  Janus Weil  <janus@gcc.gnu.org>
847         PR fortran/44044
848         * resolve.c (resolve_fl_var_and_proc): Move error messages here from ...
849         (resolve_fl_variable_derived): ... this place.
850         (resolve_symbol): Make sure function symbols (and their result
851         variables) are not resolved twice.
853 2010-05-16  Daniel Franke  <franke.daniel@gmail.com>
855         PR fortran/35779
856         * array.c (match_array_list): Revert change from 2010-05-13.
858 2010-05-16  Richard Guenther  <rguenther@suse.de>
860         * trans-decl.c (module_htab_decls_hash): Revert last change.
862 2010-05-16  Richard Guenther  <rguenther@suse.de>
864         * trans-decl.c (module_htab_decls_hash): Use IDENTIFIER_HASH_VALUE.
866 2010-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
868         * options.c (set_Wall): Remove special logic for Wuninitialized
869         without -O.
871 2010-05-15  Janus Weil  <janus@gcc.gnu.org>
873         PR fortran/44154
874         PR fortran/42647
875         * trans-decl.c (gfc_trans_deferred_vars): Modify ordering of
876         if branches.
878 2010-05-15  Janus Weil  <janus@gcc.gnu.org>
880         PR fortran/43207
881         PR fortran/43969
882         * gfortran.h (gfc_class_null_initializer): New prototype.
883         * expr.c (gfc_class_null_initializer): New function to build a NULL
884         initializer for CLASS pointers.
885         * symbol.c (gfc_build_class_symbol): Modify internal naming of class
886         containers. Remove default NULL initialization of $data component.
887         * trans.c (gfc_allocate_array_with_status): Fix wording of an error 
888         message.
889         * trans-expr.c (gfc_conv_initializer,gfc_trans_subcomponent_assign):
890         Use new function 'gfc_class_null_initializer'.
891         * trans-intrinsic.c (gfc_conv_allocated): Handle allocatable scalar
892         class variables.
894 2010-05-14  Steven G. Kargl  <kargl@gcc.gnu.org>
896         PR fortran/44135
897         * fortran/interface.c (get_sym_storage_size): Use signed instead of
898         unsigned mpz_get_?i routines.
900 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
902         * trans.c (trans_code): Set backend locus early.
903         * trans-decl.c (gfc_get_fake_result_decl): Use source location
904         of the function instead of current input_location.
906 2010-05-13  Daniel Franke  <franke.daniel@gmail.com>
908         PR fortran/35779
909         * intrinsic.c (gfc_init_expr): Renamed to gfc_init_expr_flag.
910         Updated all usages.
911         * expr.c (init_flag): Removed; use gfc_init_expr_flag everywhere.
912         * array.c (match_array_list): Pass on gfc_init_expr_flag when matching
913         iterators.
915 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
917         PR fortran/44036
918         * openmp.c (resolve_omp_clauses): Allow procedure pointers in clause
919         variable lists.
920         * trans-openmp.c (gfc_omp_privatize_by_reference): Don't privatize
921         by reference dummy procedures or non-dummy procedure pointers.
922         (gfc_omp_predetermined_sharing): Return
923         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE for dummy procedures.
925 2010-05-11  Daniel Franke  <franke.daniel@gmail.com>
927         PR fortran/43711
928         * openmp.c (gfc_match_omp_taskwait): Report unexpected characters
929         after OMP statement.
930         (gfc_match_omp_critical): Likewise.
931         (gfc_match_omp_flush): Likewise.
932         (gfc_match_omp_workshare): Likewise.
933         (gfc_match_omp_master): Likewise.
934         (gfc_match_omp_ordered): Likewise.
935         (gfc_match_omp_atomic): Likewise.
936         (gfc_match_omp_barrier): Likewise.
937         (gfc_match_omp_end_nowait): Likewise.
939 2010-05-11  Daniel Franke  <franke.daniel@gmail.com>
941         PR fortran/31820
942         * resolve.c (validate_case_label_expr): Removed FIXME.
943         (resolve_select): Raise default warning on case labels out of range
944         of the case expression.
946 2010-05-10  Daniel Franke  <franke.daniel@gmail.com>
948         PR fortran/27866
949         PR fortran/35003
950         PR fortran/42809
951         * intrinsic.c (gfc_convert_type_warn): Be more discriminative
952         about conversion warnings.
954 2010-05-10  Janus Weil  <janus@gcc.gnu.org>
956         PR fortran/44044
957         * match.c (gfc_match_select_type): Move error message to
958         resolve_select_type.
959         * resolve.c (resolve_select_type): Error message moved here from
960         gfc_match_select_type. Correctly set type of temporary.
962 2010-05-10  Richard Guenther  <rguenther@suse.de>
964         * trans-decl.c (gfc_build_library_function_decl): Split out
965         worker to ...
966         (build_library_function_decl_1): ... this new function.
967         Set a fnspec attribute if a specification was provided.
968         (gfc_build_library_function_decl_with_spec): New function.
969         (gfc_build_intrinsic_function_decls): Annotate internal_pack
970         and internal_unpack.
972 2010-05-07  Daniel Franke  <franke.daniel@gmail.com>
974         PR fortran/40728
975         * intrinc.c (gfc_is_intrinsic): Do not prematurely mark symbol
976         as external.
978 2010-05-07  Jason Merrill  <jason@redhat.com>
980         * trans-expr.c (gfc_conv_procedure_call): Rename nullptr to null_ptr
981         to avoid -Wc++-compat warning.
983 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
985         PR 40989
986         * options.c (gfc_handle_option): Add argument kind.
987         * gfortran.h (gfc_handle_option): Update declaration.
989 2010-05-06  Tobias Burnus  <burnus@net-b.de>
991         PR fortran/43985
992         * trans-types.c (gfc_sym_type): Mark Cray pointees as
993         GFC_POINTER_TYPE_P.
995 2010-05-05  Daniel Franke  <franke.daniel@gmail.com>
997         PR fortran/32331
998         * resolve.c (traverse_data_list): Rephrase error message for
999         non-constant bounds in data-implied-do.
1001 2010-05-05  Daniel Franke  <franke.daniel@gmail.com>
1003         PR fortran/24978
1004         * gfortran.h: Removed repeat count from constructor, removed
1005         all usages.
1006         * data.h (gfc_assign_data_value_range): Changed return value from
1007         void to gfc_try.
1008         * data.c (gfc_assign_data_value): Add location to constructor element.
1009         (gfc_assign_data_value_range): Call gfc_assign_data_value()
1010         for each element in range. Return early if an error was generated.
1011         * resolve.c (check_data_variable): Stop early if range assignment
1012         generated an error.
1014 2010-05-05  Janus Weil  <janus@gcc.gnu.org>
1016         PR fortran/43696
1017         * resolve.c (resolve_fl_derived): Some fixes for class variables.
1018         * symbol.c (gfc_build_class_symbol): Add separate class container for
1019         class pointers.
1021 2010-05-03  Steven G. Kargl  <kargl@gcc.gnu.org>
1023         PR fortran/43592
1024         * fortran/parse.c (parse_interface): Do not dereference a NULL pointer.
1026 2010-05-02  Tobias Burnus  <burnus@net-b.de>
1028         PR fortran/18918
1029         * intrinsic.c (add_functions): Fix GFC_STD and add gfc_resolve_ calls
1030         for lcobound, ucobound, image_index and this_image.
1031         * intrinsic.h (gfc_resolve_lcobound, gfc_resolve_this_image,
1032         gfc_resolve_image_index, gfc_resolve_ucobound): New prototypes.
1033         * iresolve.c (gfc_resolve_lcobound, gfc_resolve_this_image,
1034         gfc_resolve_image_index, gfc_resolve_ucobound, resolve_bound): New
1035         functions.
1036         (gfc_resolve_lbound, gfc_resolve_ubound): Use resolve_bound.
1038 2010-04-30  Tobias Burnus  <burnus@net-b.de>
1040         PR fortran/18918
1041         PR fortran/43931
1042         *  trans-types.c (gfc_get_array_descriptor_base): Fix index
1043         calculation for array descriptor types.
1045 2010-04-29  Janus Weil  <janus@gcc.gnu.org>
1047         PR fortran/43896
1048         * symbol.c (add_proc_component,copy_vtab_proc_comps): Remove
1049         initializers for PPC members of the vtabs.
1051 2010-04-29  Janus Weil  <janus@gcc.gnu.org>
1053         PR fortran/42274
1054         * symbol.c (add_proc_component,add_proc_comps): Correctly set the 'ppc'
1055         attribute for all PPC members of the vtypes.
1056         (copy_vtab_proc_comps): Copy the correct interface.
1057         * trans.h (gfc_trans_assign_vtab_procs): Modified prototype.
1058         * trans-expr.c (gfc_trans_assign_vtab_procs): Pass the derived type as
1059         a dummy argument and make sure all PPC members of the vtab are
1060         initialized correctly.
1061         (gfc_conv_derived_to_class,gfc_trans_class_assign): Additional argument
1062         in call to gfc_trans_assign_vtab_procs.
1063         * trans-stmt.c (gfc_trans_allocate): Ditto.
1065 2010-04-29  Paul Thomas  <pault@gcc.gnu.org>
1067         PR fortran/43326
1068         * resolve.c (resolve_typebound_function): Renamed
1069         resolve_class_compcall.Do all the detection of class references
1070         here.
1071         (resolve_typebound_subroutine): resolve_class_typebound_call
1072         renamed. Otherwise same as resolve_typebound_function.
1073         (gfc_resolve_expr): Call resolve_typebound_function.
1074         (resolve_code): Call resolve_typebound_subroutine.
1076 2010-04-29  Janus Weil  <janus@gcc.gnu.org>
1078         PR fortran/43492
1079         * resolve.c (resolve_typebound_generic_call): For CLASS methods
1080         pass back the specific symtree name, rather than the target
1081         name.
1083 2010-04-29  Paul Thomas  <pault@gcc.gnu.org>
1085         PR fortran/42353
1086         * resolve.c (resolve_structure_cons): Make the initializer of
1087         the vtab component 'extends' the same type as the component.
1089 2010-04-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1091         PR fortran/42680
1092         * interface.c (check_interface1): Pass symbol name rather than NULL to
1093         gfc_compare_interfaces.(gfc_compare_interfaces): Add assert to
1094         trap MULL. (gfc_compare_derived_types): Revert previous change
1095         incorporated incorrectly during merge from trunk, r155778.
1096         * resolve.c (check_generic_tbp_ambiguity): Pass symbol name rather
1097         than NULL to gfc_compare_interfaces.
1098         * symbol.c (add_generic_specifics): Likewise.
1100 2010-02-29  Janus Weil  <janus@gcc.gnu.org>
1102         PR fortran/42353
1103         * interface.c (gfc_compare_derived_types): Add condition for vtype.
1104         * symbol.c (gfc_find_derived_vtab): Sey access to private.
1105         (gfc_find_derived_vtab): Likewise.
1106         * module.c (ab_attribute): Add enumerator AB_VTAB.
1107         (mio_symbol_attribute): Use new attribute, AB_VTAB.
1108         (check_for_ambiguous): Likewise.
1110 2010-04-29  Paul Thomas  <pault@gcc.gnu.org>
1111             Janus Weil  <janus@gcc.gnu.org>
1113         PR fortran/41829
1114         * trans-expr.c (select_class_proc): Remove function.
1115         (conv_function_val): Delete reference to previous.
1116         (gfc_conv_derived_to_class): Add second argument to the call to
1117         gfc_find_derived_vtab.
1118         (gfc_conv_structure): Exclude proc_pointer components when
1119         accessing $data field of class objects.
1120         (gfc_trans_assign_vtab_procs): New function.
1121         (gfc_trans_class_assign): Add second argument to the call to
1122         gfc_find_derived_vtab.
1123         * symbol.c (gfc_build_class_symbol): Add delayed_vtab arg and
1124         implement holding off searching for the vptr derived type.
1125         (add_proc_component): New function.
1126         (add_proc_comps): New function.
1127         (add_procs_to_declared_vtab1): New function.
1128         (copy_vtab_proc_comps): New function.
1129         (add_procs_to_declared_vtab): New function.
1130         (void add_generic_specifics): New function.
1131         (add_generics_to_declared_vtab): New function.
1132         (gfc_find_derived_vtab): Add second argument to the call to
1133         gfc_find_derived_vtab. Add the calls to
1134         add_procs_to_declared_vtab and add_generics_to_declared_vtab.
1135         * decl.c (build_sym, build_struct): Use new arg in calls to
1136         gfc_build_class_symbol.
1137         * gfortran.h : Add vtype bitfield to symbol_attr. Remove the
1138         definition of struct gfc_class_esym_list. Modify prototypes
1139         of gfc_build_class_symbol and gfc_find_derived_vtab.
1140         * trans-stmt.c (gfc_trans_allocate): Add second argument to the
1141         call to gfc_find_derived_vtab.
1142         * module.c : Add the vtype attribute.
1143         * trans.h : Add prototype for gfc_trans_assign_vtab_procs.
1144         * resolve.c (resolve_typebound_generic_call): Add second arg
1145         to pass along the generic name for class methods.
1146         (resolve_typebound_call): The same.
1147         (resolve_compcall): Use the second arg to carry the generic
1148         name from the above. Remove the reference to class_esym.
1149         (check_members, check_class_members, resolve_class_esym,
1150         hash_value_expr): Remove functions.
1151         (resolve_class_compcall, resolve_class_typebound_call): Modify
1152         to use vtable rather than member by member calls.
1153         (gfc_resolve_expr): Modify second arg in call to
1154         resolve_compcall.
1155         (resolve_select_type): Add second arg in call to
1156         gfc_find_derived_vtab.
1157         (resolve_code): Add second arg in call resolve_typebound_call.
1158         (resolve_fl_derived): Exclude vtypes from check for late
1159         procedure definitions. Likewise for checking of explicit
1160         interface and checking of pass arg.
1161         * iresolve.c (gfc_resolve_extends_type_of): Add second arg in
1162         calls to gfc_find_derived_vtab.
1163         * match.c (select_type_set_tmp): Use new arg in call to
1164         gfc_build_class_symbol.
1165         * trans-decl.c (gfc_get_symbol_decl): Complete vtable if
1166         necessary.
1167         * parse.c (endType): Finish incomplete classes.
1169 2010-04-28  Tobias Burnus  <burnus@net-b.de>
1171         PR fortran/18918
1172         PR fortran/43919
1173         * simplify.c (simplify_cobound): Handle scalar coarrays.
1175 2010-04-27  Tobias Burnus  <burnus@net-b.de>
1177         * gfc-internals.texi: Update copyright year.
1178         * gfortran.texi: Ditto.
1179         * invoke.texi: Ditto.
1181 2010-04-27  Tobias Burnus  <burnus@net-b.de>
1183         PR fortran/18918
1184         * resolve.c (resolve_allocate_expr): Allow array coarrays.
1185         * trans-types.h (gfc_get_array_type_bounds): Update prototype.
1186         * trans-types.c (gfc_get_array_type_bounds,
1187         gfc_get_array_descriptor_base): Add corank argument.
1188         * trans-array.c (gfc_array_init_size): Handle corank.
1189         (gfc_trans_create_temp_array, gfc_array_allocate,
1190         gfc_conv_expr_descriptor): Add corank argument to call.
1191         * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Ditto.
1193 2010-04-24  Steven G. Kargl  <kargl@gcc.gnu.org>
1195         PR fortran/30073
1196         PR fortran/43793
1197         * trans-array.c (gfc_trans_array_bound_check): Use TREE_CODE instead
1198         of mucking with a tree directly.
1200 2010-04-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1202         PR fortran/43832
1203         * io.c (gfc_match_open): Remove branch to syntax error. Add call to
1204         gfc_error with new error message.
1206 2010-04-24  Paul Thomas  <pault@gcc.gnu.org>
1208         PR fortran/43841
1209         PR fortran/43843
1210         * trans-expr.c (gfc_conv_expr): Supply an address expression for
1211         GFC_SS_REFERENCE.
1212         (gfc_conv_expr_reference): Call gfc_conv_expr and return for
1213         GFC_SS_REFERENCE.
1214         * trans-array.c (gfc_add_loop_ss_code): Store the value rather
1215         than the address of a GFC_SS_REFERENCE.
1216         * trans.h : Change comment on GFC_SS_REFERENCE. 
1218 2010-04-22  Richard Guenther  <rguenther@suse.de>
1220         PR fortran/43829
1221         * resolve.c (gfc_resolve_index): Wrap around ...
1222         (gfc_resolve_index_1): ... this.  Add parameter to allow
1223         any integer kind index type.
1224         (resolve_array_ref): Allow any integer kind for the start
1225         index of an array ref.
1227 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1229         PR fortran/43836
1230         * f95-lang.c (gfc_define_builtin): Set TREE_NOTHROW on
1231         the decl.
1233 2010-04-20  Harald Anlauf  <anlauf@gmx.de>
1235         * intrinsic.c (sort_actual): Remove 'is' in error message.
1237 2010-04-20  Paul Thomas  <pault@gcc.gnu.org>
1239         PR fortran/43227
1240         * resolve.c (resolve_fl_derived): If a component character
1241         length has not been resolved, do so now.
1242         (resolve_symbol): The same as above for a symbol character
1243         length.
1244         * trans-decl.c (gfc_create_module_variable): A 'length' decl is
1245         not needed for a character valued, procedure pointer.
1247         PR fortran/43266
1248         * resolve.c (ensure_not_abstract_walker): If 'overriding' is
1249         not found, return FAILURE rather than ICEing.
1251 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
1253         PR fortran/43339
1254         * openmp.c (gfc_resolve_do_iterator): Only make iteration vars for
1255         sequential loops private in the innermost containing task region.
1257 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1259         * f95-lang.c (gfc_init_decl_processing): Remove second argument in call
1260         to build_common_tree_nodes.
1262 2010-04-17  Steven G. Kargl  <kargl@gcc.gnu.org>
1264         PR fortran/31538
1265         * fortran/trans-array.c (gfc_conv_ss_startstride): Remove the use of
1266         gfc_msg_bounds by using 'Array bound mismatch' directly.
1267         (gfc_trans_dummy_array_bias):  Remove the use of gfc_msg_bounds.  Reword
1268         error message to include the mismatch in the extent of array bound.
1269         * fortran/trans.c: Remove gfc_msg_bounds.  It is only used in one place.
1270         * fortran/trans.h: Remove extern definition of gfc_msg_bounds.
1272 2010-04-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1274         * gfortran.texi: Update information on temporary file locations.
1276 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
1278         * trans-decl.c (gfc_build_qualified_array): Ensure
1279         ubound.N and lbound.N artificial variable names don't appear
1280         in debug info.
1282 2010-04-15  Steven G. Kargl  <kargl@gcc.gnu.org>
1284         PR fortran/30073
1285         * trans-array.c (gfc_trans_array_bound_check): Eliminate a redundant
1286         block of code.  Set name to the variable associated with the descriptor.
1288 2010-04-15  Jakub Jelinek  <jakub@redhat.com>
1290         * trans-decl.c (gfc_build_qualified_array): Clear DECL_IGNORED_P
1291         on VAR_DECL LBOUND and/or UBOUND, even for -O1.
1293 2010-04-14  Steven G. Kargl  <kargl@gcc.gnu.org>
1295         * intrinsic.texi: Add the missing specific name of intrinsic
1296         procedure where the specific name is identical to the generic name.
1297         Fix inconsistent or mismatch in the argument names in intrinsic
1298         procedure descriptions.  Add the SCALAR allocatable description to
1299         ALLOCATED.
1301 2010-04-14  Tobias Burnus  <burnus@net-b.de>
1303         PR fortran/18918
1304         * array.c (gfc_find_array_ref): Handle codimensions.
1305         (gfc_match_array_spec,gfc_match_array_ref): Use gfc_fatal_error.
1306         * check.c (is_coarray, dim_corank_check, gfc_check_lcobound,
1307         gfc_check_image_index, gfc_check_this_image, gfc_check_ucobound):
1308         New functions.
1309         * gfortran.h (gfc_isym_id): Add GFC_ISYM_IMAGE_INDEX,
1310         GFC_ISYM_LCOBOUND, GFC_ISYM_THIS_IMAGE,
1311         GFC_ISYM_UCOBOUND.
1312         * intrinsic.h (add_functions): Add this_image, image_index,
1313         lcobound and ucobound intrinsics.
1314         * intrinsic.c (gfc_check_lcobound,gfc_check_ucobound,
1315         gfc_check_image_index, gfc_check_this_image,
1316         gfc_simplify_image_index, gfc_simplify_lcobound,
1317         gfc_simplify_this_image, gfc_simplify_ucobound):
1318         New function prototypes.
1319         * intrinsic.texi (IMAGE_INDEX, LCOBOUND, THIS_IMAGE
1320         IMAGE_INDEX): Document new intrinsic functions.
1321         * match.c (gfc_match_critical, sync_statement): Make -fcoarray=none
1322         error fatal.
1323         * simplify.c (simplify_bound_dim): Handle coarrays.
1324         (simplify_bound): Update simplify_bound_dim call.
1325         (gfc_simplify_num_images): Add -fcoarray=none check.
1326         (simplify_cobound, gfc_simplify_lcobound, gfc_simplify_ucobound,
1327         gfc_simplify_ucobound, gfc_simplify_ucobound): New functions.
1329 2010-04-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1331         PR fortran/43747
1332         * constructor.c: Fix typo in comment.
1333         * expr.c (find_array_section): Add check for max array limit.
1335 2010-04-13  Iain Sandoe  <iains@gcc.gnu.org>
1337         PR bootstrap/31400
1338         * gfortranspec.c (lookup_option): Check for -static and return
1339         OPTION_static.
1340         (lang_specific_driver): Break when OPTION_static is discovered.
1342 2010-04-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1344         * array.c (extract_element): Restore function from trunk.
1345         (gfc_get_array_element): Restore function from trunk.
1346         (gfc_expand_constructor): Restore check against
1347         flag_max_array_constructor.
1348         * constructor.c (node_copy_and_append): Delete unused.
1349         * gfortran.h: Delete comment and extra include.
1350         * constructor.h: Bump copyright and clean up TODO comments.
1351         * resolve.c: Whitespace.
1353 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
1355         * simplify.c (compute_dot_product): Replaced usage of ADVANCE macro
1356         with direct access access to elements. Adjusted prototype, fixed all
1357         callers.
1358         (gfc_simplify_dot_product): Removed duplicate check for zero-sized
1359         array.
1360         (gfc_simplify_matmul): Removed usage of ADVANCE macro.
1361         (gfc_simplify_spread): Removed workaround, directly insert elements
1362         at a given array position.
1363         (gfc_simplify_transpose): Likewise.
1364         (gfc_simplify_pack): Replaced usage of ADVANCE macro with corresponding
1365         function calls.
1366         (gfc_simplify_unpack): Likewise.
1368 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
1370         * simplify.c (only_convert_cmplx_boz): Renamed to ...
1371         (convert_boz): ... this and moved to start of file.
1372         (gfc_simplify_abs): Whitespace fix.
1373         (gfc_simplify_acos): Whitespace fix.
1374         (gfc_simplify_acosh): Whitespace fix.
1375         (gfc_simplify_aint): Whitespace fix.
1376         (gfc_simplify_dint): Whitespace fix.
1377         (gfc_simplify_anint): Whitespace fix.
1378         (gfc_simplify_and): Replaced if-gate by more common switch-over-type.
1379         (gfc_simplify_dnint): Whitespace fix.
1380         (gfc_simplify_asin): Whitespace fix.
1381         (gfc_simplify_asinh): Moved creation of result-expr out of switch.
1382         (gfc_simplify_atan): Likewise.
1383         (gfc_simplify_atanh): Whitespace fix.
1384         (gfc_simplify_atan2): Whitespace fix.
1385         (gfc_simplify_bessel_j0): Removed ATTRIBUTE_UNUSED.
1386         (gfc_simplify_bessel_j1): Likewise.
1387         (gfc_simplify_bessel_jn): Likewise.
1388         (gfc_simplify_bessel_y0): Likewise.
1389         (gfc_simplify_bessel_y1): Likewise.
1390         (gfc_simplify_bessel_yn): Likewise.
1391         (gfc_simplify_ceiling): Reorderd statements.
1392         (simplify_cmplx): Use convert_boz(), check for constant arguments.
1393         Whitespace fix.
1394         (gfc_simplify_cmplx): Use correct default kind. Removed check for
1395         constant arguments.
1396         (gfc_simplify_complex): Replaced if-gate. Removed check for
1397         constant arguments.
1398         (gfc_simplify_conjg): Whitespace fix.
1399         (gfc_simplify_cos): Whitespace fix.
1400         (gfc_simplify_cosh): Replaced if-gate by more common switch-over-type.
1401         (gfc_simplify_dcmplx): Removed check for constant arguments.
1402         (gfc_simplify_dble): Use convert_boz() and gfc_convert_constant().
1403         (gfc_simplify_digits): Whitespace fix.
1404         (gfc_simplify_dim): Whitespace fix.
1405         (gfc_simplify_dprod): Reordered statements.
1406         (gfc_simplify_erf): Whitespace fix.
1407         (gfc_simplify_erfc): Whitespace fix.
1408         (gfc_simplify_epsilon): Whitespace fix.
1409         (gfc_simplify_exp): Whitespace fix.
1410         (gfc_simplify_exponent): Use convert_boz().
1411         (gfc_simplify_floor): Reorderd statements.
1412         (gfc_simplify_gamma): Whitespace fix.
1413         (gfc_simplify_huge): Whitespace fix.
1414         (gfc_simplify_iand): Whitespace fix.
1415         (gfc_simplify_ieor): Whitespace fix.
1416         (simplify_intconv): Use gfc_convert_constant().
1417         (gfc_simplify_int): Use simplify_intconv().
1418         (gfc_simplify_int2): Reorderd statements.
1419         (gfc_simplify_idint): Reorderd statements.
1420         (gfc_simplify_ior): Whitespace fix.
1421         (gfc_simplify_ishftc): Removed duplicate type check.
1422         (gfc_simplify_len): Use range_check() instead of manual range check.
1423         (gfc_simplify_lgamma): Removed ATTRIBUTE_UNUSED. Whitespace fix.
1424         (gfc_simplify_log): Whitespace fix.
1425         (gfc_simplify_log10): Whitespace fix.
1426         (gfc_simplify_minval): Whitespace fix.
1427         (gfc_simplify_maxval): Whitespace fix.
1428         (gfc_simplify_mod): Whitespace fix.
1429         (gfc_simplify_modulo): Whitespace fix.
1430         (simplify_nint): Reorderd statements.
1431         (gfc_simplify_not): Whitespace fix.
1432         (gfc_simplify_or): Replaced if-gate by more common switch-over-type.
1433         (gfc_simplify_radix): Removed unused result-variable. Whitespace fix.
1434         (gfc_simplify_range): Removed unused result-variable. Whitespace fix.
1435         (gfc_simplify_real): Use convert_boz() and gfc_convert_constant().
1436         (gfc_simplify_realpart): Whitespace fix.
1437         (gfc_simplify_selected_char_kind): Removed unused result-variable.
1438         (gfc_simplify_selected_int_kind): Removed unused result-variable.
1439         (gfc_simplify_selected_real_kind): Removed unused result-variable.
1440         (gfc_simplify_sign): Whitespace fix.
1441         (gfc_simplify_sin): Whitespace fix.
1442         (gfc_simplify_sinh): Replaced if-gate by more common switch-over-type.
1443         (gfc_simplify_sqrt): Avoided goto by inlining check. Whitespace fix.
1444         (gfc_simplify_tan): Replaced if-gate by more common switch-over-type.
1445         (gfc_simplify_tanh): Replaced if-gate by more common switch-over-type.
1446         (gfc_simplify_xor): Replaced if-gate by more common switch-over-type.
1448 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
1450         * gfortran.h (gfc_start_constructor): Removed.
1451         (gfc_get_array_element): Removed.
1452         * array.c (gfc_start_constructor): Removed, use gfc_get_array_expr 
1453         instead. Fixed all callers.
1454         (extract_element): Removed.
1455         (gfc_expand_constructor): Temporarily removed check for
1456         max-array-constructor. Will be re-introduced later if still required.
1457         (gfc_get_array_element): Removed, use gfc_constructor_lookup_expr
1458         instead. Fixed all callers.
1459         * expr.c (find_array_section): Replaced manual lookup of elements
1460         by gfc_constructor_lookup.
1462 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
1464         * gfortran.h (gfc_get_null_expr): New prototype.
1465         (gfc_get_operator_expr): New prototype.
1466         (gfc_get_character_expr): New prototype.
1467         (gfc_get_iokind_expr): New prototype.
1468         * expr.c (gfc_get_null_expr): New.
1469         (gfc_get_character_expr): New.
1470         (gfc_get_iokind_expr): New.
1471         (gfc_get_operator_expr): Moved here from matchexp.c (build_node).
1472         * matchexp.c (build_node): Renamed and moved to
1473         expr.c (gfc_get_operator_expr). Reordered arguments to match 
1474         other functions. Fixed all callers.
1475         (gfc_get_parentheses): Use specific function to build expr.
1476         * array.c (gfc_match_array_constructor): Likewise.
1477         * arith.c (eval_intrinsic): Likewise.
1478         (gfc_hollerith2int): Likewise.
1479         (gfc_hollerith2real): Likewise.
1480         (gfc_hollerith2complex): Likewise.
1481         (gfc_hollerith2logical): Likewise.
1482         * data.c (create_character_intializer): Likewise.
1483         * decl.c (gfc_match_null): Likewise.
1484         (enum_initializer): Likewise.
1485         * io.c (gfc_match_format): Likewise.
1486         (match_io): Likewise.
1487         * match.c (gfc_match_nullify): Likewise.
1488         * primary.c (match_string_constant): Likewise.
1489         (match_logical_constant): Likewise.
1490         (build_actual_constructor): Likewise.
1491         * resolve.c (build_default_init_expr): Likewise.
1492         * symbol.c (generate_isocbinding_symbol): Likewise.
1493         (gfc_build_class_symbol): Likewise.
1494         (gfc_find_derived_vtab): Likewise.
1495         * simplify.c (simplify_achar_char): Likewise.
1496         (gfc_simplify_adjustl): Likewise.
1497         (gfc_simplify_adjustr): Likewise.
1498         (gfc_simplify_and): Likewise.
1499         (gfc_simplify_bit_size): Likewise.
1500         (gfc_simplify_is_iostat_end): Likewise.
1501         (gfc_simplify_is_iostat_eor): Likewise.
1502         (gfc_simplify_isnan): Likewise.
1503         (simplify_bound): Likewise.
1504         (gfc_simplify_leadz): Likewise.
1505         (gfc_simplify_len_trim): Likewise.
1506         (gfc_simplify_logical): Likewise.
1507         (gfc_simplify_maxexponent): Likewise.
1508         (gfc_simplify_minexponent): Likewise.
1509         (gfc_simplify_new_line): Likewise.
1510         (gfc_simplify_null): Likewise.
1511         (gfc_simplify_or): Likewise.
1512         (gfc_simplify_precision): Likewise.
1513         (gfc_simplify_repeat): Likewise.
1514         (gfc_simplify_scan): Likewise.
1515         (gfc_simplify_size): Likewise.
1516         (gfc_simplify_trailz): Likewise.
1517         (gfc_simplify_trim): Likewise.
1518         (gfc_simplify_verify): Likewise.
1519         (gfc_simplify_xor): Likewise.
1520         * trans-io.c (build_dt): Likewise.
1521         (gfc_new_nml_name_expr): Removed.
1523 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
1525         * arith.h (gfc_constant_result): Removed prototype.
1526         * constructor.h (gfc_build_array_expr): Removed prototype.
1527         (gfc_build_structure_constructor_expr): Removed prototype.
1528         * gfortran.h (gfc_int_expr): Removed prototype.
1529         (gfc_logical_expr): Removed prototype.
1530         (gfc_get_array_expr): New prototype.
1531         (gfc_get_structure_constructor_expr): New prototype.
1532         (gfc_get_constant_expr): New prototype.
1533         (gfc_get_int_expr): New prototype.
1534         (gfc_get_logical_expr): New prototype.
1535         * arith.c (gfc_constant_result): Moved and renamed to
1536         expr.c (gfc_get_constant_expr). Fixed all callers.
1537         * constructor.c (gfc_build_array_expr): Moved and renamed to
1538         expr.c (gfc_get_array_expr). Split gfc_typespec argument to type
1539         and kind. Fixed all callers.
1540         (gfc_build_structure_constructor_expr): Moved and renamed to
1541         expr.c (gfc_get_structure_constructor_expr). Split gfc_typespec argument
1542         to type and kind. Fixed all callers.
1543         * expr.c (gfc_logical_expr): Renamed to ...
1544         (gfc_get_logical_expr): ... this. Added kind argument. Fixed all callers.
1545         (gfc_int_expr): Renamed to ...
1546         (gfc_get_int_expr): ... this. Added kind and where arguments. Fixed all
1547         callers.
1548         (gfc_get_constant_expr): New.
1549         (gfc_get_array_expr): New.
1550         (gfc_get_structure_constructor_expr): New.
1551         * simplify.c (int_expr_with_kind): Removed, callers use gfc_get_int_expr
1552         instead.
1554 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
1556         * constructor.h: New.
1557         * constructor.c: New.
1558         * Make-lang.in: Add new files to F95_PARSER_OBJS.
1559         * arith.c (reducy_unary): Use constructor API.
1560         (reduce_binary_ac): Likewise.
1561         (reduce_binary_ca): Likewise.
1562         (reduce_binary_aa): Likewise.
1563         * check.c (gfc_check_pack): Likewise.
1564         (gfc_check_reshape): Likewise.
1565         (gfc_check_unpack): Likewise.
1566         * decl.c (add_init_expr_to_sym): Likewise.
1567         (build_struct): Likewise.
1568         * dependency.c (gfc_check_dependency): Likewise.
1569         (contains_forall_index_p): Likewise.
1570         * dump-parse-tree.c (show_constructor): Likewise.
1571         * expr.c (free_expr0): Likewise.
1572         (gfc_copy_expr): Likewise.
1573         (gfc_is_constant_expr): Likewise.
1574         (simplify_constructor): Likewise.
1575         (find_array_element): Likewise.
1576         (find_component_ref): Likewise.
1577         (find_array_section): Likewise.
1578         (find_substring_ref): Likewise.
1579         (simplify_const_ref): Likewise.
1580         (scalarize_intrinsic_call): Likewise.
1581         (check_alloc_comp_init): Likewise.
1582         (gfc_default_initializer): Likewise.
1583         (gfc_traverse_expr): Likewise.
1584         * iresolve.c (check_charlen_present): Likewise.
1585         (gfc_resolve_reshape): Likewise.
1586         (gfc_resolve_transfer): Likewise.
1587         * module.c (mio_constructor): Likewise.
1588         * primary.c (build_actual_constructor): Likewise.
1589         (gfc_match_structure_constructor): Likewise.
1590         * resolve.c (resolve_structure_cons): Likewise.
1591         * simplify.c (is_constant_array_expr): Likewise.
1592         (init_result_expr): Likewise.
1593         (transformational_result): Likewise.
1594         (simplify_transformation_to_scalar): Likewise.
1595         (simplify_transformation_to_array): Likewise.
1596         (gfc_simplify_dot_product): Likewise.
1597         (simplify_bound): Likewise.
1598         (simplify_matmul): Likewise.
1599         (simplify_minval_maxval): Likewise.
1600         (gfc_simplify_pack): Likewise.
1601         (gfc_simplify_reshape): Likewise.
1602         (gfc_simplify_shape): Likewise.
1603         (gfc_simplify_spread): Likewise.
1604         (gfc_simplify_transpose): Likewise.
1605         (gfc_simplify_unpack): Likewise.q
1606         (gfc_convert_constant): Likewise.
1607         (gfc_convert_char_constant): Likewise.
1608         * target-memory.c (size_array): Likewise.
1609         (encode_array): Likewise.
1610         (encode_derived): Likewise.
1611         (interpret_array): Likewise.
1612         (gfc_interpret_derived): Likewise.
1613         (expr_to_char): Likewise.
1614         (gfc_merge_initializers): Likewise.
1615         * trans-array.c (gfc_get_array_constructor_size): Likewise.
1616         (gfc_trans_array_constructor_value): Likewise.
1617         (get_array_ctor_strlen): Likewise.
1618         (gfc_constant_array_constructor_p): Likewise.
1619         (gfc_build_constant_array_constructor): Likewise.
1620         (gfc_trans_array_constructor): Likewise.
1621         (gfc_conv_array_initializer): Likewise.
1622         * trans-decl.c (check_constant_initializer): Likewise.
1623         * trans-expr.c (flatten_array_ctors_without_strlen): Likewise.
1624         (gfc_apply_interface_mapping_to_cons): Likewise.
1625         (gfc_trans_structure_assign): Likewise.
1626         (gfc_conv_structure): Likewise.
1627         * array.c (check_duplicate_iterator): Likewise.
1628         (match_array_list): Likewise.
1629         (match_array_cons_element): Likewise.
1630         (gfc_match_array_constructor): Likewise.
1631         (check_constructor_type): Likewise.
1632         (check_constructor): Likewise.
1633         (expand): Likewise.
1634         (expand_constructor): Likewise.
1635         (extract_element): Likewise.
1636         (gfc_expanded_ac): Likewise.
1637         (resolve_array_list): Likewise.
1638         (gfc_resolve_character_array_constructor): Likewise.
1639         (copy_iterator): Renamed to ...
1640         (gfc_copy_iterator): ... this.
1641         (gfc_append_constructor): Removed.
1642         (gfc_insert_constructor): Removed unused function.
1643         (gfc_get_constructor): Removed.
1644         (gfc_free_constructor): Removed.
1645         (qgfc_copy_constructor): Removed.
1646         * gfortran.h (struct gfc_expr): Removed member 'con_by_offset'.
1647         Removed all references. Replaced constructor list by splay-tree.
1648         (struct gfc_constructor): Removed member 'next', moved 'offset' from
1649         the inner struct, added member 'base'.
1650         (gfc_append_constructor): Removed prototype.
1651         (gfc_insert_constructor): Removed prototype.
1652         (gfc_get_constructor): Removed prototype.
1653         (gfc_free_constructor): Removed prototype.
1654         (qgfc_copy_constructor): Removed prototype.
1655         (gfc_copy_iterator): New prototype.
1656         * trans-array.h (gfc_constant_array_constructor_p): Adjusted prototype.
1658 2010-04-10  Tobias Burnus  <burnus@net-b.de>
1660         PR fortran/43591
1661         * expr.c (gfc_is_constant_expr, gfc_traverse_expr): Handle
1662         proc-pointers and type-bound procedures.
1663         (gfc_specification_expr): Check proc-pointers for pureness.
1665 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
1667         PR bootstrap/43684
1668         * gfortranspec.c (lang_specific_driver): Do not expose vars 
1669         only used by HAVE_LD_STATIC_DYNAMIC targets unless compiling
1670         for such.
1672 2010-04-09  Tobias Burnus  <burnus@net-b.de>
1674         PR fortran/18918
1675         * decl.c (variable_decl, match_attr_spec): Fix setting the array
1676         spec.
1677         * array.c (match_subscript,gfc_match_array_ref): Add coarray support.
1678         * data.c (gfc_assign_data_value): Ditto.
1679         * expr.c (gfc_check_pointer_assign): Add check for coarray constraint.
1680         (gfc_traverse_expr): Traverse also through codimension expressions.
1681         (gfc_is_coindexed, gfc_has_ultimate_allocatable,
1682         gfc_has_ultimate_pointer): New functions.
1683         * gfortran.h (gfc_array_ref_dimen_type): Add DIMEN_STAR for coarrays.
1684         (gfc_array_ref): Add codimen.
1685         (gfc_array_ref): Add in_allocate.
1686         (gfc_is_coindexed, gfc_has_ultimate_allocatable,
1687         gfc_has_ultimate_pointer): Add prototypes.
1688         * interface.c (compare_parameter, compare_actual_formal,
1689         check_intents): Add coarray constraints.
1690         * match.c (gfc_match_iterator): Add coarray constraint.
1691         * match.h (gfc_match_array_ref): Update interface.
1692         * primary.c (gfc_match_varspec): Handle codimensions.
1693         * resolve.c (coarray_alloc, inquiry_argument): New static variables.
1694         (check_class_members): Return gfc_try instead for error recovery.
1695         (resolve_typebound_function,resolve_typebound_subroutine,
1696         check_members): Handle return value of check_class_members.
1697         (resolve_structure_cons, resolve_actual_arglist, resolve_function,
1698         check_dimension, compare_spec_to_ref, resolve_array_ref,
1699         resolve_ref, resolve_variable, gfc_resolve_expr, conformable_arrays,
1700         resolve_allocate_expr, resolve_ordinary_assign): Add coarray
1701         support.
1702         * trans-array.c (gfc_conv_array_ref, gfc_walk_variable_expr):
1703         Skip over coarray refs.
1704         (gfc_array_allocate) Add support for references containing coindexes.
1705         * trans-expr.c (gfc_add_interface_mapping): Copy coarray attribute.
1706         (gfc_map_intrinsic_function): Ignore codimensions.
1708 2010-04-08  Bud Davis  <bdavis9659@sbcglobal.net>
1710         PR fortran/28039
1711         * io.c (check_format_string):  Added check for additional non 
1712         blank characters after the format string was successfully 
1713         parsed.
1714         * io.c (check_format): Changed the error messages for positive
1715         int required and period required to drop through the error logic
1716         and report with gfc_error instead of gfc_error_now.  Corrected
1717         format postion for hollerith strings.
1719 2010-04-08  Tobias Burnus  <burnus@net-b.de>
1721         * module.c (use_iso_fortran_env_module): Fix standard check.
1723 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
1725         * parse.c (parse_derived, parse_enum): Avoid set but not used
1726         warning.
1728 2010-04-07  Janne Blomqvist  <jb@gcc.gnu.org>
1730         PR fortran/40539
1731         * gfortran.texi: Add section about representation of
1732         LOGICAL variables.
1734 2010-04-07  Simon Baldwin  <simonb@google.com>
1736         * cpp.c (cb_cpp_error): Add warning reason argument, set a value
1737         for diagnostic_override_option_index if CPP_W_WARNING_DIRECTIVE.
1739 2010-04-07  Richard Guenther  <rguenther@suse.de>
1741         * options.c (gfc_init_options): Do not set.
1743 2010-04-06  Tobias Burnus  <burnus@net-b.de>
1745         PR fortran/18918
1746         * array.c (gfc_match_array_spec): Add error for -fcoarray=none.
1747         * match.c (gfc_match_critical, sync_statement): Ditto.
1748         * gfortran.h (gfc_fcoarray): New enum.
1749         (gfc_option_t): Use it.
1750         * lang.opt (fcoarray): Add new flag.
1751         * invoke.texi (fcoarray): Document it.
1752         * options.c (gfc_init_options,gfc_handle_option): Handle -fcoarray=.
1753         (gfc_handle_coarray_option): New function.
1755 2010-04-06  Tobias Burnus  <burnus@net-b.de>
1757         PR fortran/18918
1758         * gfortran.h (gfc_array_spec): Add cotype.
1759         * array.c (gfc_match_array_spec,gfc_set_array_spec): Use it
1760         and defer error diagnostic.
1761         * resolve.c (resolve_fl_derived): Add missing check.
1762         (resolve_symbol): Add cotype/type check.
1763         * parse.c (parse_derived): Fix setting of coarray_comp.
1765 2010-04-06  Tobias Burnus  <burnus@net-b.de>
1767         PR fortran/18918
1768         * array.c (gfc_free_array_spec,gfc_resolve_array_spec,
1769         match_array_element_spec,gfc_copy_array_spec,
1770         gfc_compare_array_spec): Include corank.
1771         (match_array_element_spec,gfc_set_array_spec): Support codimension.
1772         * decl.c (build_sym,build_struct,variable_decl,
1773         match_attr_spec,attr_decl1,cray_pointer_decl,
1774         gfc_match_volatile): Add codimension.
1775         (gfc_match_codimension): New function.
1776         * dump-parse-tree.c (show_array_spec,show_attr): Support codimension.
1777         * gfortran.h (symbol_attribute,gfc_array_spec): Ditto.
1778         (gfc_add_codimension): New function prototype.
1779         * match.h (gfc_match_codimension): New function prototype.
1780         (gfc_match_array_spec): Update prototype
1781         * match.c (gfc_match_common): Update gfc_match_array_spec call.
1782         * module.c (MOD_VERSION): Bump.
1783         (mio_symbol_attribute): Support coarray attributes.
1784         (mio_array_spec): Add corank support.
1785         * parse.c (decode_specification_statement,decode_statement,
1786         parse_derived): Add coarray support.
1787         * resolve.c (resolve_formal_arglist, was_declared,
1788         is_non_constant_shape_array, resolve_fl_variable,
1789         resolve_fl_derived, resolve_symbol): Add coarray support.
1790         * symbol.c (check_conflict, gfc_add_volatile, gfc_copy_attr,
1791         gfc_build_class_symbol): Add coarray support.
1792         (gfc_add_codimension): New function.
1794 2010-04-06  Tobias Burnus  <burnus@net-b.de>
1796         PR fortran/18918
1797         * iso-fortran-env.def: Add the integer parameters atomic_int_kind,
1798         atomic_logical_kind, iostat_inquire_internal_unit, stat_locked,
1799         stat_locked_other_image, stat_stopped_image and stat_unlocked of
1800         Fortran 2008.
1801         * intrinsic.texi (iso_fortran_env): Ditto.
1802         * libgfortran.h (libgfortran_stat_codes): New enum.
1803         * module.c (use_iso_fortran_env_module): Honour -std= when loading
1804         constants from the intrinsic module.
1806 2010-04-06  Tobias Burnus  <burnus@net-b.de>
1808         PR fortran/39997
1809         * intrinsic.c (add_functions): Add num_images.
1810         * decl.c (gfc_match_end): Handle END CRITICAL.
1811         * intrinsic.h (gfc_simplify_num_images): Add prototype.
1812         * dump-parse-tree.c (show_code_node): Dump CRITICAL, ERROR STOP,
1813         and SYNC.
1814         * gfortran.h (gfc_statement): Add enum items for those.
1815         (gfc_exec_op) Ditto.
1816         (gfc_isym_id): Add num_images.
1817         * trans-stmt.c (gfc_trans_stop): Handle ERROR STOP.
1818         (gfc_trans_sync,gfc_trans_critical): New functions.
1819         * trans-stmt.h (gfc_trans_stop,gfc_trans_sync,
1820         gfc_trans_critical): Add/update prototypes.
1821         * trans.c (gfc_trans_code): Handle CRITICAL, ERROR STOP,
1822         and SYNC statements.
1823         * trans.h (gfor_fndecl_error_stop_string) Add variable.
1824         * resolve.c (resolve_sync): Add function.
1825         (gfc_resolve_blocks): Handle CRITICAL.
1826         (resolve_code): Handle CRITICAL, ERROR STOP,
1827         (resolve_branch): Add CRITICAL constraint check.
1828         and SYNC statements.
1829         * st.c (gfc_free_statement): Add new statements.
1830         * trans-decl.c (gfor_fndecl_error_stop_string): Global variable.
1831         (gfc_build_builtin_function_decls): Initialize it.
1832         * match.c (gfc_match_if): Handle ERROR STOP and SYNC.
1833         (gfc_match_critical, gfc_match_error_stop, sync_statement,
1834         gfc_match_sync_all, gfc_match_sync_images, gfc_match_sync_memory):
1835         New functions.
1836         (match_exit_cycle): Handle CRITICAL constraint.
1837         (gfc_match_stopcode): Handle ERROR STOP.
1838         * match.h (gfc_match_critical, gfc_match_error_stop,
1839         gfc_match_sync_all, gfc_match_sync_images,
1840         gfc_match_sync_memory): Add prototype.
1841         * parse.c (decode_statement, gfc_ascii_statement,
1842         parse_executable): Handle new statements.
1843         (parse_critical_block): New function.
1844         * parse.h (gfc_compile_state): Add COMP_CRITICAL.
1845         * intrinsic.texi (num_images): Document new function.
1846         * simplify.c (gfc_simplify_num_images): Add function.
1848 2010-04-06  Tobias Burnus  <burnus@net-b.de>
1850         PR fortran/43178
1851         * trans-array.c (gfc_conv_expr_descriptor): Update
1852         gfc_trans_scalar_assign call.
1853         (has_default_initializer): New function.
1854         (gfc_trans_deferred_array): Nullify less often.
1855         * trans-expr.c (gfc_conv_subref_array_arg,
1856         gfc_trans_subcomponent_assign): Update call to
1857         gfc_trans_scalar_assign.
1858         (gfc_trans_scalar_assign): Add parameter and pass it on.
1859         (gfc_trans_assignment_1): Optionally, do not dealloc before
1860         assignment.
1861         * trans-openmp.c (gfc_trans_omp_array_reduction): Update
1862         call to gfc_trans_scalar_assign.
1863         * trans-decl.c (gfc_get_symbol_decl): Do not always apply
1864         initializer to static variables.
1865         (gfc_init_default_dt): Add dealloc parameter and pass it on.
1866         * trans-stmt.c (forall_make_variable_temp,
1867         generate_loop_for_temp_to_lhs, generate_loop_for_rhs_to_temp,
1868         gfc_trans_forall_1, gfc_trans_where_assign, gfc_trans_where_3
1869         gfc_trans_allocate): Update gfc_trans_assignment call.
1870         * trans.h (gfc_trans_scalar_assign, gfc_init_default_dt,
1871         gfc_init_default_dt, gfc_trans_assignment): Add bool dealloc
1872         parameter to prototype.
1874 2010-03-31  Paul Thomas  <pault@gcc.gnu.org>
1876         * ioparm.def : Update copyright.
1877         * lang.opt : ditto
1878         * trans-array.c : ditto
1879         * trans-array.h : ditto
1880         * expr.c: ditto
1881         * trans-types.c: ditto
1882         * dependency.c : ditto
1883         * gfortran.h : ditto
1884         * options.c : ditto
1885         * trans-io.c : ditto
1886         * trans-intrinsic.c : ditto
1887         * libgfortran.h : ditto
1888         * invoke.texi : ditto
1889         * intrinsic.texi : ditto
1890         * trans.c : ditto
1891         * trans.h : ditto
1892         * intrinsic.c : ditto
1893         * interface.c : ditto
1894         * iresolve.c : ditto
1895         * trans-stmt.c : ditto
1896         * trans-stmt.h : ditto
1897         * parse,c : ditto
1898         * match.h : ditto
1899         * error.c : ditto
1901 2010-03-20  Paul Thomas  <pault@gcc.gnu.org>
1903         PR fortran/43450
1904         * trans-decl.c (gfc_create_module_variable): With -fwhole-file
1905         do not assert the context of derived types.
1907 2010-03-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1909         PR fortran/43409
1910         * ioparm.def: Change inquire size variable to type pointer to
1911         GFC_IO_INT type.
1913 2010-03-18  Paul Thomas  <pault@gcc.gnu.org>
1915         PR fortran/43039
1916         * trans-expr.c (conv_parent_component_references): Ensure that
1917         'dt' has a backend_decl.
1919         PR fortran/43043
1920         * trans-expr.c (gfc_conv_structure): Ensure that the derived
1921         type has a backend_decl.
1923         PR fortran/43044
1924         * resolve.c (resolve_global_procedure): Check that the 'cl'
1925         structure is not NULL.
1927 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
1929         * lang.opt (-ffixed-line-length-, ffree-line-length-): Remove
1930         redundant tab.
1932 2010-03-17  Tobias Burnus  <burnus@net-b.de>
1934         PR fortran/43331
1935         * trans-array.c (gfc_conv_array_index_offset,gfc_conv_array_ref,
1936         gfc_conv_ss_startstride): Remove no-longer-needed cp_was_assumed
1937         check.
1938         * decl.c (gfc_match_derived_decl): Don't mark assumed-size Cray
1939         pointees as having explizit size.
1940         * expr.c (gfc_check_assign): Remove now unreachable Cray pointee
1941         check.
1942         * trans-types.c (gfc_is_nodesc_array): Add cp_was_assumed to assert.
1943         (gfc_sym_type): Don't mark Cray pointees as restricted pointers.
1944         * resolve.c (resolve_symbol): Handle cp_was_assumed.
1945         * trans-decl.c (gfc_trans_deferred_vars): Ditto.
1946         (gfc_finish_var_decl): Don't mark Cray pointees as restricted
1947         pointers.
1949 2010-03-14  Tobias Burnus  <burnus@net-b.de>
1951         PR fortran/43362
1952         * resolve.c (resolve_structure_cons): Add missing PURE constraint.
1953         (resolve_ordinary_assign): Add check to avoid segfault.
1955 2010-03-12  Paul Thomas  <pault@gcc.gnu.org>
1957         PR fortran/43291
1958         PR fortran/43326
1959         * resolve.c (resolve_compcall): Add new boolean dummy argument
1960         'class_members'. Only resolve expression at end if false.
1961         Remove redundant, static variable 'class_object'.
1962         (check_class_members): Add extra argument to call of
1963         resolve_compcall.
1964         (resolve_typebound_function): Renamed resolve_class_compcall.
1965         Do all the detection of class references here. Correct calls to
1966         resolve_compcall for extra argument.
1967         (resolve_typebound_subroutine): resolve_class_typebound_call
1968         renamed. Otherwise same as resolve_typebound_function.
1969         (gfc_resolve_expr): Call resolve_typebound_function.
1970         (resolve_code): Call resolve_typebound_subroutine.
1972 2010-03-10  Tobias Burnus  <burnus@net-b.de
1974         PR fortran/43303
1975         * symbol.c (get_iso_c_sym): Set sym->result.
1977 2010-03-08  Janus Weil  <janus@gcc.gnu.org>
1979         PR fortran/43256
1980         * resolve.c (resolve_compcall): Don't set 'value.function.name' here
1981         for TBPs, otherwise they will not be resolved properly.
1982         (resolve_function): Use 'value.function.esym' instead of
1983         'value.function.name' to check if we're dealing with a TBP.
1984         (check_class_members): Set correct type of passed object for all TBPs,
1985         not only generic ones, except if the type is abstract.
1987 2010-03-04  Janus Weil  <janus@gcc.gnu.org>
1989         PR fortran/43244
1990         * decl.c (gfc_match_final_decl): Make sure variable names starting with
1991         'final...' are not misinterpreted as FINAL statements.
1993 2010-03-03  Paul Thomas  <pault@gcc.gnu.org>
1995         PR fortran/43243
1996         * trans-array.c (gfc_conv_array_parameter): Contiguous refs to
1997         allocatable ultimate components do not need temporaries, whilst
1998         ultimate pointer components do.
2000 2010-03-03  Janus Weil  <janus@gcc.gnu.org>
2002         PR fortran/43169
2003         * resolve.c (resolve_code): Correctly set gfc_current_ns for
2004         EXEC_SELECT_TYPE.
2005         (gfc_impure_variable): Make it work with sub-namespaces (BLOCK etc).
2006         (gfc_pure): Ditto.
2008 2010-03-02  Paul Thomas  <pault@gcc.gnu.org>
2010         PR fortran/43180
2011         * trans-array.c (gfc_conv_array_parameter): A full array of
2012         derived type need not be restricted to a symbol without an
2013         array spec to use the call to gfc_conv_expr_descriptor.
2015         PR fortran/43173
2016         * trans-array.c (gfc_conv_array_parameter): Contiguous refs to
2017         allocatable arrays do not need temporaries.
2019 2010-03-01  Tobias Burnus  <burnus@net-b.de>
2021         PR fortran/43199
2022         * resolve.c (find_array_spec): Handle REF_COMPONENT with
2023         CLASS components.
2025 2010-02-28  Tobias Burnus  <burnus@net-b.de>
2027         PR fortran/43205
2028         * trans-expr.c (is_zero_initializer_p): Move up in the file.
2029         (gfc_conv_initializer): Handle zero initializer as special case.
2031 2010-02-27  Tobias Burnus  <burnus@net-b.de>
2033         PR fortran/43185
2034         * resolve.c (resolve_fl_variable_derived): Imply SAVE
2035         for module variables for Fortran 2008.
2037 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
2039         PR debug/43166
2040         * trans-common.c (build_common_decl): Also update DECL_MODE,
2041         and DECL_SIZE when encountering a larger common block and call
2042         layout_decl.
2044 2010-02-24  Tobias Burnus  <burnus@net-b.de>
2046         PR fortran/43042
2047         * trans-expr.c (gfc_conv_initializer): Call directly
2048         gfc_conv_constant for C_NULL_(FUN)PTR.
2050 2010-02-22  Paul Thomas  <pault@gcc.gnu.org>
2052         PR fortran/43072
2053         * dependency.c (gfc_full_array_ref_p): Check for contiguous by
2054         checking the rest of the dimensions for elements.
2056 2010-02-21  Tobias Burnus  <burnus@net-b.de>
2058         PR fortran/35259
2059         * gfortran.h (gfc_option_t): New flag -fprotect-parens.
2060         * lang.opt: Ditto.
2061         * option.c (gfc_init_options,gfc_handle_option): Ditto.
2062         * trans-expr.c (gfc_conv_expr_op): Use the flag.
2063         * invoke.texi: Document new -fno-protect-parens flag.
2065 2010-02-20  Paul Thomas  <pault@gcc.gnu.org>
2067         PR fortran/36932
2068         PR fortran/36933
2069         PR fortran/43072
2070         PR fortran/43111
2071         * dependency.c (gfc_check_argument_var_dependency): Use enum
2072         value instead of arithmetic vaue for 'elemental'.
2073         (check_data_pointer_types): New function.
2074         (gfc_check_dependency): Call check_data_pointer_types.
2075         * trans-array.h : Change fourth argument of
2076         gfc_conv_array_parameter to boolean.
2077         * trans-array.c (gfc_conv_array_parameter): A contiguous array
2078         can be a dummy but it must not be assumed shape or deferred.
2079         Change fourth argument to boolean. Array constructor exprs will
2080         always be contiguous and do not need packing and unpacking.
2081         * trans-expr.c (gfc_conv_procedure_call): Clean up some white
2082         space and change fourth argument of gfc_conv_array_parameter
2083         to boolean.
2084         (gfc_trans_arrayfunc_assign): Change fourth argument of
2085         gfc_conv_array_parameter to boolean.
2086         * trans-io.c (gfc_convert_array_to_string): The same.
2087         * trans-intrinsic.c (gfc_conv_intrinsic_loc): The same.
2089 2010-02-20  Tobias Burnus  <burnus@net-b.de>
2091         PR fortran/42958
2092         * libgfortran.h: Add GFC_RTCHECK_MEM.
2093         * invoke.texi (-fcheck=): Document -fcheck=mem.
2094         * tranc.c (gfc_call_malloc): Remove negative-size run-time error
2095         and enable malloc-success check only with -fcheck=mem.
2096         * option.c (gfc_handle_runtime_check_option): Add -fcheck=mem.
2098 2010-02-16  Tobias Burnus  <burnus@net-b.de>
2100         PR fortran/43040
2101         * gfortran.h (gfc_isym_id): Rename GFS_ISYM_GAMMA to GFS_ISYM_TGAMMA.
2102         * intrinsic.c (add_functions): Ditto.
2103         * iresolve.c (gfc_resolve_gamma): Call tgamma instead of gamma.
2104         * mathbuiltins.def: Use TGAMMA instead of GAMMA with "tgamma".
2106 2010-02-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2108         PR fortran/32382
2109         * trans-stmt.h: Add prototype for gfc_trans_code_cond. Add tree cond to
2110         gfc_trans_do prototype.
2111         * trans-stmt.c (gfc_trans_simple_do): Add optional argument to pass in
2112         a loop exit condition.  If exit condition is given, build the loop exit
2113         code, checking IO results of implied do loops in READ and WRITE.
2114         (gfc_trans_do): Likewise.
2115         * trans.c (trans_code): New static work function, previously
2116         gfc_trans_code. Passes exit condition to gfc_trans_do.
2117         (gfc_trans_code): Calls trans_code with NULL_TREE condition.
2118         (gfc_trans_code_cond): Calls trans_code with loop exit condition.
2119         * trans-io.c (build_dt): Build an exit condition to allow checking IO
2120         result status bits in the dtparm structure. Use this condition in call
2121         to gfc_trans_code_cond.
2123 2010-02-13  Paul Thomas  <pault@gcc.gnu.org>
2125         PR fortran/41113
2126         PR fortran/41117
2127         * trans-array.c (gfc_conv_array_parameter): Use
2128         gfc_full_array_ref_p to detect full and contiguous variable
2129         arrays. Full array components and contiguous arrays do not need
2130         internal_pack and internal_unpack.
2132 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
2134         PR fortran/43030
2135         * resolve.c (gfc_resolve_dim_arg): Call gfc_clear_ts.
2137         PR fortran/43029
2138         * decl.c (enumerator_decl): Don't call gfc_free_enum_history
2139         here.
2140         (gfc_match_enumerator_def): But here whenever enumerator_decl returns
2141         MATCH_ERROR.
2143 2010-02-10  Joost VandeVondele <jv244@cam.ac.uk>
2144             Tobias Burnus <burnus@net-b.de>
2146         PR fortran/40823
2147         * decl.c (gfc_match_subroutine): Explicitly set sym->declared_at.
2149 2010-02-10  Tobias Burnus  <burnus@net-b.de>
2151         PR fortran/43015
2152         * trans-decl.c (gfc_generate_function_code): Only check
2153         actual-vs.-dummy character bounds if not bind(C).
2155 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
2157         PR fortran/42309
2158         * trans-expr.c (gfc_conv_subref_array_arg): Avoid accessing
2159         info->dimen after info has been freed.
2161 2010-02-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2163         PR fortran/42999
2164         * array.c (gfc_constant_ac): Do not prevent expansion of constructors
2165         with iterators.
2167 2010-02-09  Jakub Jelinek  <jakub@redhat.com>
2169         * module.c (fix_mio_expr): Declare sym.
2171 2010-02-09  Paul Thomas  <pault@gcc.gnu.org>
2173         PR fortran/41869
2174         * module.c (fix_mio_expr): Fix for private generic procedures.
2176 2010-02-09  Daniel Kraft  <d@domob.eu>
2178         PR fortran/39171
2179         * resolve.c (resolve_charlen): Change warning about negative CHARACTER
2180         length to be correct and issue only with -Wsurprising.
2181         * invoke.texi (Wsurprising): Mention this new warning that is
2182         turned on by -Wsurprising.
2184 2010-02-09  Daniel Kraft  <d@domob.eu>
2186         PR fortran/41507
2187         * intrinsic.texi (MAXVAL): Remove wrong claim that array argument
2188         can be CHARACTER type.
2189         (MINVAL), (MAXLOC), (MINLOC): Ditto.
2191 2010-02-05  Paul Thomas  <pault@gcc.gnu.org>
2193         PR fortran/42309
2194         * trans-expr.c (gfc_conv_subref_array_arg): Add new argument
2195         'formal_ptr'. If this is true, give returned descriptor unity
2196         lbounds, in all dimensions, and the appropriate offset.
2197         (gfc_conv_procedure_call); If formal is a pointer, set the last
2198         argument of gfc_conv_subref_array_arg to true.
2199         * trans.h : Add last argument for gfc_conv_subref_array_arg.
2200         * trans-io.c (set_internal_unit, gfc_trans_transfer): Set the
2201         new arg of gfc_conv_subref_array_arg to false.
2202         * trans-stmt.c (forall_make_variable_temp): The same.
2204 2010-02-03  Tobias Burnus  <burnus@net-b.de>
2206         PR fortran/42936
2207         * interface.c (compare_parameter): Disable rank-checking
2208         for NULL().
2210 2010-02-02  Tobias Burnus  <burnus@net-b.de>
2212         PR fortran/42650
2213         * parse.c (decode_specification_statement): Use sym->result not sym.
2215 2010-02-01  Tobias Burnus  <burnus@net-b.de>
2217         PR fortran/42922
2218         * decl.c (variable_decl): Allow default initializer in
2219         TYPE declarations in PURE functions.
2221 2010-01-31  Janus Weil  <janus@gcc.gnu.org>
2223         PR fortran/42888
2224         * resolve.c (resolve_allocate_expr): Move default initialization code
2225         here from gfc_trans_allocate.
2226         * trans.c (gfc_trans_code): Call gfc_trans_class_assign also for
2227         EXEC_INIT_ASSIGN.
2228         * trans-expr.c (gfc_trans_class_assign): Handle default initialization
2229         of CLASS variables via memcpy.
2230         * trans-stmt.c (gfc_trans_allocate): Move default initialization code
2231         to resolve_allocate_expr.
2233 2010-01-31  Paul Thomas  <pault@gcc.gnu.org>
2235         PR fortran/38324
2236         * expr.c (gfc_get_full_arrayspec_from_expr): New function.
2237         * gfortran.h : Add prototype for above.
2238         * trans-expr.c (gfc_trans_alloc_subarray_assign): New function.
2239         (gfc_trans_subcomponent_assign): Call new function to replace
2240         the code to deal with allocatable components.
2241         * trans-intrinsic.c (gfc_conv_intrinsic_bound): Call
2242         gfc_get_full_arrayspec_from_expr to replace existing code.
2244 2010-01-25  Tobias Burnus  <burnus@net-b.de>
2246         PR fortran/42858
2247         * array.c (gfc_array_dimen_size): Fix intrinsic procedure
2248         check.
2250 2010-01-24  Paul Thomas  <pault@gcc.gnu.org>
2252         PR fortran/41044
2253         PR fortran/41167
2254         * expr.c (remove_subobject_ref): If the constructor is NULL use
2255         the expression as the source.
2256         (simplify_const_ref): Change the type of expression if
2257         there are component references.  Allow for substring to be at
2258         the end of an arbitrarily long chain of references.  If an
2259         element is found that is not in an EXPR_ARRAY, assume that this
2260         is scalar initialization of array. Call remove_subobject_ref in
2261         this case with NULL second argument.
2263 2010-01-24  Tobias Burnus  <burnus@net-b.de>
2265         PR fortran/39304
2266         * array.c (gfc_array_dimen_size): Use correct specific
2267         function in the check.
2269 2010-01-21  Paul Thomas  <pault@gcc.gnu.org>
2271         PR fortran/42736
2272         * trans-stmt.c (gfc_conv_elemental_dependencies): If temporary
2273         is required, turn any trailing array elements after a range
2274         into ranges so that offsets can be calculated.
2276 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
2278         * module.c (mio_f2k_derived): Use enumerator as initializer of
2279         enum variable.
2281         PR bootstrap/42812
2282         * gfortran.h  (struct gfc_namespace) <resolved>: Change to signed
2283         bitfield of width 2.
2285 2010-01-19  Janus Weil  <janus@gcc.gnu.org>
2287         PR fortran/42804
2288         * resolve.c (extract_compcall_passed_object): Set locus for
2289         passed-object argument.
2290         (extract_ppc_passed_object): Set locus and correctly remove PPC
2291         reference.
2293 2010-01-19  Paul Thomas  <pault@gcc.gnu.org>
2295         PR fortran/42783
2296         * trans-decl.c (add_argument_checking): Do not use the backend
2297         decl directly to test for the presence of an optional dummy
2298         argument.  Use gfc_conv_expr_present, remembering to set the
2299         symbol referenced.
2301         PR fortran/42772
2302         * trans-decl.c (gfc_generate_function_code): Small white space
2303         changes. If 'recurcheckvar' is NULL do not try to reset it.
2305 2010-01-19  Janus Weil  <janus@gcc.gnu.org>
2307         PR fortran/42545
2308         * resolve.c (resolve_fl_derived): Set the accessibility of the parent
2309         component for extended types.
2310         * symbol.c (gfc_find_component): Remove a wrongly-worded error message
2311         and take care of parent component accessibility.
2313 2010-01-17  Janus Weil  <janus@gcc.gnu.org>
2315         PR fortran/42677
2316         * gfortran.h (symbol_attribute): Remove 'ambiguous_interfaces'.
2317         * interface.c (check_interface1): Move a warning message here from
2318         resolve_fl_procedure.
2319         (check_sym_interfaces): Removed 'attr.ambiguous_interfaces'.
2320         * module.c (read_module): Remove call to gfc_check_interfaces, since
2321         this comes too early here.
2322         * resolve.c (resolve_fl_procedure): Move warning message to
2323         check_interface1.
2325 2010-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2327         PR fortran/42684
2328         * interface.c (check_interface1): Pass symbol name rather than NULL to
2329         gfc_compare_interfaces. (gfc_compare_interfaces): Add assert to
2330         trap MULL.
2331         * resolve.c (check_generic_tbp_ambiguity): Pass symbol name rather
2332         than NULL to gfc_compare_interfaces.
2334 2010-01-14  Paul Thomas  <pault@gcc.gnu.org>
2336         PR fortran/41478
2337         * trans-array.c (duplicate_allocatable):  Static version of
2338         gfc_duplicate_allocatable with provision to handle scalar
2339         components. New boolean argument to switch off call to malloc
2340         if true.
2341         (gfc_duplicate_allocatable): New function to call above with
2342         new argument false.
2343         (gfc_copy_allocatable_data): New function to call above with
2344         new argument true.
2345         (structure_alloc_comps): Do not apply indirect reference to
2346         scalar pointers. Add new section to copy allocatable components
2347         of arrays. Extend copying of allocatable components to include
2348         scalars.
2349         (gfc_copy_only_alloc_comp): New function to copy allocatable
2350         component derived types, without allocating the base structure.
2351         * trans-array.h : Add primitive for gfc_copy_allocatable_data.
2352         Add primitive for gfc_copy_only_alloc_comp.
2353         * trans-expr.c (gfc_conv_procedure_call): After calls to
2354         transformational functions with results that are derived types
2355         with allocatable components, copy the components in the result.
2356         (gfc_trans_arrayfunc_assign): Deallocate allocatable components
2357         of lhs derived types before allocation.
2358         
2359 2010-01-14  Paul Thomas  <pault@gcc.gnu.org>
2361         PR fortran/42481
2362         * module.c (load_generic_interfaces): If a procedure that is
2363         use associated but not generic is given an interface that
2364         includes itself, then make it generic.
2366 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
2367             Shujing Zhao  <pearly.zhao@oracle.com>
2369         PR translation/42469
2370         * lang.opt (fblas-matmul-limit=, finit-character=, finit-integer=,
2371         finit-logical=, finit-real=, fmax-array-constructor=): Use tab
2372         character between option name and help text.
2374 2010-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2376         PR fortran/20923
2377         PR fortran/32489
2378         * trans-array.c (gfc_conv_array_initializer): Change call to
2379         gfc_error_now to call to gfc_fatal_error.
2380         * array.c (count_elements): Whitespace. (extract_element): Whitespace.
2381         (is_constant_element): Changed name from constant_element.
2382         (gfc_constant_ac): Only use expand_construuctor for expression
2383         types of EXPR_ARRAY.  If expression type is EXPR_CONSTANT, no need to
2384         call gfc_is_constant_expr.
2385         * expr.c (gfc_reduce_init_expr): Adjust conditionals and delete error
2386         message.
2387         * resolve.c (gfc_is_expandable_expr): New function that determiners if
2388         array expressions should have their constructors expanded.
2389         (gfc_resolve_expr): Use new function to determine whether or not to call
2390         gfc_expand_constructor.
2392 2010-01-09  Tobias Burnus  <burnus@net-b.de>
2394         PR fortran/41298
2395         * trans-expr.c (gfc_trans_structure_assign): Handle
2396         c_null_(fun)ptr.
2397         * symbol.c (gen_special_c_interop_ptr): Add NULL_EXPR
2398         to the constructor for c_null_(fun)ptr.
2399         * resolve.c (resolve_structure_cons): Add special case
2400         for c_null_(fun)ptr.
2402 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
2404         * gfortranspec.c (lang_specific_driver): Update copyright notice
2405         dates.
2407 2010-01-08  Tobias Burnus  <burnus@net-b.de>
2409         PR/fortran 25829
2410         * symbol.c (check_conflict, gfc_copy_attr): Add
2411         ASYNCHRONOUS support.
2412         (gfc_add_asynchronous): New function.
2413         * decl.c (match_attr_spec): Add ASYNCHRONOUS support.
2414         (gfc_match_asynchronous): New function.
2415         * dump-parse-tree.c (show_attr): Add ASYNCHRONOUS support.
2416         * gfortran.h (symbol_attribute): New ASYNCHRONOUS bit.
2417         (gfc_add_asynchronous): New Prototype.
2418         * module.c (ab_attribute, mio_symbol_attribute): Add
2419         ASYNCHRONOUS support.
2420         * resolve.c (was_declared): Ditto.
2421         * match.h (gfc_match_asynchronous): New prototype.
2422         * parse.c (decode_specification_statement,decode_statement):
2423         Add ASYNCHRONOUS support.
2425 2010-01-07  Tobias Burnus  <burnus@net-b.de>
2427         PR fortran/42597
2428         * trans-decl.c (get_proc_pointer_decl): Fix call to
2429         gfc_conv_initializer for array-valued proc-pointer funcs.
2431 2010-01-07  Tobias Burnus  <burnus@net-b.de>
2433         PR fortran/41872
2434         * trans-decl.c (gfc_trans_deferred_vars): Don't initialize
2435         allocatable scalars with SAVE attribute.
2437 2010-01-05  Tobias Burnus  <burnus@net-b.de>
2439         PR fortran/42517
2440         * options.c (gfc_post_options): Set -frecursion
2441         when -fopenmp is used.
2443 2010-01-05  Tobias Burnus  <burnus@net-b.de>
2445         PR fortran/41872
2446         * trans-expr.c (gfc_conv_procedure_call): Nullify
2447         return value for allocatable-scalar character functions.
2449 2010-01-04  Tobias Burnus  <burnus@net-b.de>
2451         PR fortran/36161
2452         * error.c (error_printf, gfc_warning, gfc_notify_std,
2453         gfc_warning_now, gfc_error, gfc_error_now,
2454         gfc_fatal_error): Change argument name from nocmsgid to
2455         gmsgid to enable (x)gettext's % checking.
2457 2010-01-04  Tobias Burnus  <burnus@net-b.de>
2458         
2459         * trans-decl.c (gfc_trans_deferred_vars): Fix spelling.
2461 2010-01-04  Tobias Burnus  <burnus@net-b.de>
2463         PR fortran/41872
2464         * trans-expr.c (gfc_conv_procedure_call): Add indirect ref
2465         for functions returning allocatable scalars.
2466         * trans-stmt.c (gfc_trans_allocate): Emmit error when
2467         reallocating an allocatable scalar.
2468         * trans.c (gfc_allocate_with_status): Fix pseudocode syntax
2469         in comment.
2470         * trans-decl.c (gfc_trans_deferred_vars): Nullify local
2471         allocatable scalars.
2472         (gfc_generate_function_code): Nullify result variable for
2473         allocatable scalars.
2474         
2475         PR fortran/40849
2476         * module.c (gfc_use_module): Fix warning string to allow
2477         for translation.
2479         PR fortran/42517
2480         * invoke.texi (-fcheck=recursion): Mention that the checking
2481         is also disabled for -frecursive.
2482         * trans-decl.c (gfc_generate_function_code): Disable
2483         -fcheck=recursion when -frecursive is used.
2485         * intrinsic.texi (iso_c_binding): Improve wording.
2488 Copyright (C) 2010 Free Software Foundation, Inc.
2490 Copying and distribution of this file, with or without modification,
2491 are permitted in any medium without royalty provided the copyright
2492 notice and this notice are preserved.