OSDN Git Service

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