OSDN Git Service

2010-05-15 Janus Weil <janus@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
1 2010-05-15  Janus Weil  <janus@gcc.gnu.org>
2
3         PR fortran/43207
4         PR fortran/43969
5         * gfortran.h (gfc_class_null_initializer): New prototype.
6         * expr.c (gfc_class_null_initializer): New function to build a NULL
7         initializer for CLASS pointers.
8         * symbol.c (gfc_build_class_symbol): Modify internal naming of class
9         containers. Remove default NULL initialization of $data component.
10         * trans.c (gfc_allocate_array_with_status): Fix wording of an error 
11         message.
12         * trans-expr.c (gfc_conv_initializer,gfc_trans_subcomponent_assign):
13         Use new function 'gfc_class_null_initializer'.
14         * trans-intrinsic.c (gfc_conv_allocated): Handle allocatable scalar
15         class variables.
16
17 2010-05-14  Steven G. Kargl  <kargl@gcc.gnu.org>
18
19         PR fortran/44135
20         * fortran/interface.c (get_sym_storage_size): Use signed instead of
21         unsigned mpz_get_?i routines.
22
23 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
24
25         * trans.c (trans_code): Set backend locus early.
26         * trans-decl.c (gfc_get_fake_result_decl): Use source location
27         of the function instead of current input_location.
28
29 2010-05-13  Daniel Franke  <franke.daniel@gmail.com>
30
31         PR fortran/35779
32         * intrinsic.c (gfc_init_expr): Renamed to gfc_init_expr_flag.
33         Updated all usages.
34         * expr.c (init_flag): Removed; use gfc_init_expr_flag everywhere.
35         * array.c (match_array_list): Pass on gfc_init_expr_flag when matching
36         iterators.
37
38 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
39
40         PR fortran/44036
41         * openmp.c (resolve_omp_clauses): Allow procedure pointers in clause
42         variable lists.
43         * trans-openmp.c (gfc_omp_privatize_by_reference): Don't privatize
44         by reference dummy procedures or non-dummy procedure pointers.
45         (gfc_omp_predetermined_sharing): Return
46         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE for dummy procedures.
47
48 2010-05-11  Daniel Franke  <franke.daniel@gmail.com>
49
50         PR fortran/43711
51         * openmp.c (gfc_match_omp_taskwait): Report unexpected characters
52         after OMP statement.
53         (gfc_match_omp_critical): Likewise.
54         (gfc_match_omp_flush): Likewise.
55         (gfc_match_omp_workshare): Likewise.
56         (gfc_match_omp_master): Likewise.
57         (gfc_match_omp_ordered): Likewise.
58         (gfc_match_omp_atomic): Likewise.
59         (gfc_match_omp_barrier): Likewise.
60         (gfc_match_omp_end_nowait): Likewise.
61
62 2010-05-11  Daniel Franke  <franke.daniel@gmail.com>
63
64         PR fortran/31820
65         * resolve.c (validate_case_label_expr): Removed FIXME.
66         (resolve_select): Raise default warning on case labels out of range
67         of the case expression.
68
69 2010-05-10  Daniel Franke  <franke.daniel@gmail.com>
70
71         PR fortran/27866
72         PR fortran/35003
73         PR fortran/42809
74         * intrinsic.c (gfc_convert_type_warn): Be more discriminative
75         about conversion warnings.
76
77 2010-05-10  Janus Weil  <janus@gcc.gnu.org>
78
79         PR fortran/44044
80         * match.c (gfc_match_select_type): Move error message to
81         resolve_select_type.
82         * resolve.c (resolve_select_type): Error message moved here from
83         gfc_match_select_type. Correctly set type of temporary.
84
85 2010-05-10  Richard Guenther  <rguenther@suse.de>
86
87         * trans-decl.c (gfc_build_library_function_decl): Split out
88         worker to ...
89         (build_library_function_decl_1): ... this new function.
90         Set a fnspec attribute if a specification was provided.
91         (gfc_build_library_function_decl_with_spec): New function.
92         (gfc_build_intrinsic_function_decls): Annotate internal_pack
93         and internal_unpack.
94
95 2010-05-07  Daniel Franke  <franke.daniel@gmail.com>
96
97         PR fortran/40728
98         * intrinc.c (gfc_is_intrinsic): Do not prematurely mark symbol
99         as external
100
101 2010-05-07  Jason Merrill  <jason@redhat.com>
102
103         * trans-expr.c (gfc_conv_procedure_call): Rename nullptr to null_ptr
104         to avoid -Wc++-compat warning.
105
106 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
107
108         PR 40989
109         * options.c (gfc_handle_option): Add argument kind.
110         * gfortran.h (gfc_handle_option): Update declaration.
111
112 2010-05-06  Tobias Burnus  <burnus@net-b.de>
113
114         PR fortran/43985
115         * trans-types.c (gfc_sym_type): Mark Cray pointees as
116         GFC_POINTER_TYPE_P.
117
118 2010-05-05  Daniel Franke  <franke.daniel@gmail.com>
119
120         PR fortran/32331
121         * resolve.c (traverse_data_list): Rephrase error message for
122         non-constant bounds in data-implied-do.
123
124 2010-05-05  Daniel Franke  <franke.daniel@gmail.com>
125
126         PR fortran/24978
127         * gfortran.h: Removed repeat count from constructor, removed
128         all usages.
129         * data.h (gfc_assign_data_value_range): Changed return value from
130         void to gfc_try.
131         * data.c (gfc_assign_data_value): Add location to constructor element.
132         (gfc_assign_data_value_range): Call gfc_assign_data_value()
133         for each element in range. Return early if an error was generated.
134         * resolve.c (check_data_variable): Stop early if range assignment
135         generated an error.
136
137 2010-05-05  Janus Weil  <janus@gcc.gnu.org>
138
139         PR fortran/43696
140         * resolve.c (resolve_fl_derived): Some fixes for class variables.
141         * symbol.c (gfc_build_class_symbol): Add separate class container for
142         class pointers.
143
144 2010-05-03  Steven G. Kargl  <kargl@gcc.gnu.org>
145
146         PR fortran/43592
147         * fortran/parse.c (parse_interface): Do not dereference a NULL pointer.
148
149 2010-05-02  Tobias Burnus  <burnus@net-b.de>
150
151         PR fortran/18918
152         * intrinsic.c (add_functions): Fix GFC_STD and add gfc_resolve_ calls
153         for lcobound, ucobound, image_index and this_image.
154         * intrinsic.h (gfc_resolve_lcobound, gfc_resolve_this_image,
155         gfc_resolve_image_index, gfc_resolve_ucobound): New prototypes.
156         * iresolve.c (gfc_resolve_lcobound, gfc_resolve_this_image,
157         gfc_resolve_image_index, gfc_resolve_ucobound, resolve_bound): New
158         functions.
159         (gfc_resolve_lbound, gfc_resolve_ubound): Use resolve_bound.
160
161 2010-04-30  Tobias Burnus  <burnus@net-b.de>
162
163         PR fortran/18918
164         PR fortran/43931
165         *  trans-types.c (gfc_get_array_descriptor_base): Fix index
166         calculation for array descriptor types.
167
168 2010-04-29  Janus Weil  <janus@gcc.gnu.org>
169
170         PR fortran/43896
171         * symbol.c (add_proc_component,copy_vtab_proc_comps): Remove
172         initializers for PPC members of the vtabs.
173
174 2010-04-29  Janus Weil  <janus@gcc.gnu.org>
175
176         PR fortran/42274
177         * symbol.c (add_proc_component,add_proc_comps): Correctly set the 'ppc'
178         attribute for all PPC members of the vtypes.
179         (copy_vtab_proc_comps): Copy the correct interface.
180         * trans.h (gfc_trans_assign_vtab_procs): Modified prototype.
181         * trans-expr.c (gfc_trans_assign_vtab_procs): Pass the derived type as
182         a dummy argument and make sure all PPC members of the vtab are
183         initialized correctly.
184         (gfc_conv_derived_to_class,gfc_trans_class_assign): Additional argument
185         in call to gfc_trans_assign_vtab_procs.
186         * trans-stmt.c (gfc_trans_allocate): Ditto.
187
188 2010-04-29  Paul Thomas  <pault@gcc.gnu.org>
189
190         PR fortran/43326
191         * resolve.c (resolve_typebound_function): Renamed
192         resolve_class_compcall.Do all the detection of class references
193         here.
194         (resolve_typebound_subroutine): resolve_class_typebound_call
195         renamed. Otherwise same as resolve_typebound_function.
196         (gfc_resolve_expr): Call resolve_typebound_function.
197         (resolve_code): Call resolve_typebound_subroutine.
198
199 2010-04-29  Janus Weil  <janus@gcc.gnu.org>
200
201         PR fortran/43492
202         * resolve.c (resolve_typebound_generic_call): For CLASS methods
203         pass back the specific symtree name, rather than the target
204         name.
205
206 2010-04-29  Paul Thomas  <pault@gcc.gnu.org>
207
208         PR fortran/42353
209         * resolve.c (resolve_structure_cons): Make the initializer of
210         the vtab component 'extends' the same type as the component.
211
212 2010-04-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
213
214         PR fortran/42680
215         * interface.c (check_interface1): Pass symbol name rather than NULL to
216         gfc_compare_interfaces.(gfc_compare_interfaces): Add assert to
217         trap MULL. (gfc_compare_derived_types): Revert previous change
218         incorporated incorrectly during merge from trunk, r155778.
219         * resolve.c (check_generic_tbp_ambiguity): Pass symbol name rather
220         than NULL to gfc_compare_interfaces.
221         * symbol.c (add_generic_specifics): Likewise.
222
223 2010-02-29  Janus Weil  <janus@gcc.gnu.org>
224
225         PR fortran/42353
226         * interface.c (gfc_compare_derived_types): Add condition for vtype.
227         * symbol.c (gfc_find_derived_vtab): Sey access to private.
228         (gfc_find_derived_vtab): Likewise.
229         * module.c (ab_attribute): Add enumerator AB_VTAB.
230         (mio_symbol_attribute): Use new attribute, AB_VTAB.
231         (check_for_ambiguous): Likewise.
232
233 2010-04-29  Paul Thomas  <pault@gcc.gnu.org>
234             Janus Weil  <janus@gcc.gnu.org>
235
236         PR fortran/41829
237         * trans-expr.c (select_class_proc): Remove function.
238         (conv_function_val): Delete reference to previous.
239         (gfc_conv_derived_to_class): Add second argument to the call to
240         gfc_find_derived_vtab.
241         (gfc_conv_structure): Exclude proc_pointer components when
242         accessing $data field of class objects.
243         (gfc_trans_assign_vtab_procs): New function.
244         (gfc_trans_class_assign): Add second argument to the call to
245         gfc_find_derived_vtab.
246         * symbol.c (gfc_build_class_symbol): Add delayed_vtab arg and
247         implement holding off searching for the vptr derived type.
248         (add_proc_component): New function.
249         (add_proc_comps): New function.
250         (add_procs_to_declared_vtab1): New function.
251         (copy_vtab_proc_comps): New function.
252         (add_procs_to_declared_vtab): New function.
253         (void add_generic_specifics): New function.
254         (add_generics_to_declared_vtab): New function.
255         (gfc_find_derived_vtab): Add second argument to the call to
256         gfc_find_derived_vtab. Add the calls to
257         add_procs_to_declared_vtab and add_generics_to_declared_vtab.
258         * decl.c (build_sym, build_struct): Use new arg in calls to
259         gfc_build_class_symbol.
260         * gfortran.h : Add vtype bitfield to symbol_attr. Remove the
261         definition of struct gfc_class_esym_list. Modify prototypes
262         of gfc_build_class_symbol and gfc_find_derived_vtab.
263         * trans-stmt.c (gfc_trans_allocate): Add second argument to the
264         call to gfc_find_derived_vtab.
265         * module.c : Add the vtype attribute.
266         * trans.h : Add prototype for gfc_trans_assign_vtab_procs.
267         * resolve.c (resolve_typebound_generic_call): Add second arg
268         to pass along the generic name for class methods.
269         (resolve_typebound_call): The same.
270         (resolve_compcall): Use the second arg to carry the generic
271         name from the above. Remove the reference to class_esym.
272         (check_members, check_class_members, resolve_class_esym,
273         hash_value_expr): Remove functions.
274         (resolve_class_compcall, resolve_class_typebound_call): Modify
275         to use vtable rather than member by member calls.
276         (gfc_resolve_expr): Modify second arg in call to
277         resolve_compcall.
278         (resolve_select_type): Add second arg in call to
279         gfc_find_derived_vtab.
280         (resolve_code): Add second arg in call resolve_typebound_call.
281         (resolve_fl_derived): Exclude vtypes from check for late
282         procedure definitions. Likewise for checking of explicit
283         interface and checking of pass arg.
284         * iresolve.c (gfc_resolve_extends_type_of): Add second arg in
285         calls to gfc_find_derived_vtab.
286         * match.c (select_type_set_tmp): Use new arg in call to
287         gfc_build_class_symbol.
288         * trans-decl.c (gfc_get_symbol_decl): Complete vtable if
289         necessary.
290         * parse.c (endType): Finish incomplete classes.
291
292 2010-04-28  Tobias Burnus  <burnus@net-b.de>
293
294         PR fortran/18918
295         PR fortran/43919
296         * simplify.c (simplify_cobound): Handle scalar coarrays.
297
298 2010-04-27  Tobias Burnus  <burnus@net-b.de>
299
300         * gfc-internals.texi: Update copyright year.
301         * gfortran.texi: Ditto.
302         * invoke.texi: Ditto.
303
304 2010-04-27  Tobias Burnus  <burnus@net-b.de>
305
306         PR fortran/18918
307         * resolve.c (resolve_allocate_expr): Allow array coarrays.
308         * trans-types.h (gfc_get_array_type_bounds): Update prototype.
309         * trans-types.c (gfc_get_array_type_bounds,
310         gfc_get_array_descriptor_base): Add corank argument.
311         * trans-array.c (gfc_array_init_size): Handle corank.
312         (gfc_trans_create_temp_array, gfc_array_allocate,
313         gfc_conv_expr_descriptor): Add corank argument to call.
314         * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Ditto.
315
316 2010-04-24  Steven G. Kargl  <kargl@gcc.gnu.org>
317
318         PR fortran/30073
319         PR fortran/43793
320         * trans-array.c (gfc_trans_array_bound_check): Use TREE_CODE instead
321         of mucking with a tree directly.
322
323 2010-04-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
324
325         PR fortran/43832
326         * io.c (gfc_match_open): Remove branch to syntax error. Add call to
327         gfc_error with new error message.
328
329 2010-04-24  Paul Thomas  <pault@gcc.gnu.org>
330
331         PR fortran/43841
332         PR fortran/43843
333         * trans-expr.c (gfc_conv_expr): Supply an address expression for
334         GFC_SS_REFERENCE.
335         (gfc_conv_expr_reference): Call gfc_conv_expr and return for
336         GFC_SS_REFERENCE.
337         * trans-array.c (gfc_add_loop_ss_code): Store the value rather
338         than the address of a GFC_SS_REFERENCE.
339         * trans.h : Change comment on GFC_SS_REFERENCE. 
340
341 2010-04-22  Richard Guenther  <rguenther@suse.de>
342
343         PR fortran/43829
344         * resolve.c (gfc_resolve_index): Wrap around ...
345         (gfc_resolve_index_1): ... this.  Add parameter to allow
346         any integer kind index type.
347         (resolve_array_ref): Allow any integer kind for the start
348         index of an array ref.
349
350 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
351
352         PR fortran/43836
353         * f95-lang.c (gfc_define_builtin): Set TREE_NOTHROW on
354         the decl.
355
356 2010-04-20  Harald Anlauf  <anlauf@gmx.de>
357
358         * intrinsic.c (sort_actual): Remove 'is' in error message.
359
360 2010-04-20  Paul Thomas  <pault@gcc.gnu.org>
361
362         PR fortran/43227
363         * resolve.c (resolve_fl_derived): If a component character
364         length has not been resolved, do so now.
365         (resolve_symbol): The same as above for a symbol character
366         length.
367         * trans-decl.c (gfc_create_module_variable): A 'length' decl is
368         not needed for a character valued, procedure pointer.
369
370         PR fortran/43266
371         * resolve.c (ensure_not_abstract_walker): If 'overriding' is
372         not found, return FAILURE rather than ICEing.
373
374 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
375
376         PR fortran/43339
377         * openmp.c (gfc_resolve_do_iterator): Only make iteration vars for
378         sequential loops private in the innermost containing task region.
379
380 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
381
382         * f95-lang.c (gfc_init_decl_processing): Remove second argument in call
383         to build_common_tree_nodes.
384
385 2010-04-17  Steven G. Kargl  <kargl@gcc.gnu.org>
386
387         PR fortran/31538
388         * fortran/trans-array.c (gfc_conv_ss_startstride): Remove the use of
389         gfc_msg_bounds by using 'Array bound mismatch' directly.
390         (gfc_trans_dummy_array_bias):  Remove the use of gfc_msg_bounds.  Reword
391         error message to include the mismatch in the extent of array bound.
392         * fortran/trans.c: Remove gfc_msg_bounds.  It is only used in one place.
393         * fortran/trans.h: Remove extern definition of gfc_msg_bounds.
394
395 2010-04-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
396
397         * gfortran.texi: Update information on temporary file locations.
398
399 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
400
401         * trans-decl.c (gfc_build_qualified_array): Ensure
402         ubound.N and lbound.N artificial variable names don't appear
403         in debug info.
404
405 2010-04-15  Steven G. Kargl  <kargl@gcc.gnu.org>
406
407         PR fortran/30073
408         * trans-array.c (gfc_trans_array_bound_check): Eliminate a redundant
409         block of code.  Set name to the variable associated with the descriptor.
410
411 2010-04-15  Jakub Jelinek  <jakub@redhat.com>
412
413         * trans-decl.c (gfc_build_qualified_array): Clear DECL_IGNORED_P
414         on VAR_DECL LBOUND and/or UBOUND, even for -O1.
415
416 2010-04-14  Steven G. Kargl  <kargl@gcc.gnu.org>
417
418         * intrinsic.texi: Add the missing specific name of intrinsic
419         procedure where the specific name is identical to the generic name.
420         Fix inconsistent or mismatch in the argument names in intrinsic
421         procedure descriptions.  Add the SCALAR allocatable description to
422         ALLOCATED.
423
424 2010-04-14  Tobias Burnus  <burnus@net-b.de>
425
426         PR fortran/18918
427         * array.c (gfc_find_array_ref): Handle codimensions.
428         (gfc_match_array_spec,gfc_match_array_ref): Use gfc_fatal_error.
429         * check.c (is_coarray, dim_corank_check, gfc_check_lcobound,
430         gfc_check_image_index, gfc_check_this_image, gfc_check_ucobound):
431         New functions.
432         * gfortran.h (gfc_isym_id): Add GFC_ISYM_IMAGE_INDEX,
433         GFC_ISYM_LCOBOUND, GFC_ISYM_THIS_IMAGE,
434         GFC_ISYM_UCOBOUND.
435         * intrinsic.h (add_functions): Add this_image, image_index,
436         lcobound and ucobound intrinsics.
437         * intrinsic.c (gfc_check_lcobound,gfc_check_ucobound,
438         gfc_check_image_index, gfc_check_this_image,
439         gfc_simplify_image_index, gfc_simplify_lcobound,
440         gfc_simplify_this_image, gfc_simplify_ucobound):
441         New function prototypes.
442         * intrinsic.texi (IMAGE_INDEX, LCOBOUND, THIS_IMAGE
443         IMAGE_INDEX): Document new intrinsic functions.
444         * match.c (gfc_match_critical, sync_statement): Make -fcoarray=none
445         error fatal.
446         * simplify.c (simplify_bound_dim): Handle coarrays.
447         (simplify_bound): Update simplify_bound_dim call.
448         (gfc_simplify_num_images): Add -fcoarray=none check.
449         (simplify_cobound, gfc_simplify_lcobound, gfc_simplify_ucobound,
450         gfc_simplify_ucobound, gfc_simplify_ucobound): New functions.
451
452 2010-04-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
453
454         PR fortran/43747
455         * constructor.c: Fix typo in comment.
456         * expr.c (find_array_section): Add check for max array limit.
457
458 2010-04-13  Iain Sandoe  <iains@gcc.gnu.org>
459
460         PR bootstrap/31400
461         * gfortranspec.c (lookup_option): Check for -static and return
462         OPTION_static.
463         (lang_specific_driver): Break when OPTION_static is discovered.
464
465 2010-04-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
466
467         * array.c (extract_element): Restore function from trunk.
468         (gfc_get_array_element): Restore function from trunk.
469         (gfc_expand_constructor): Restore check against
470         flag_max_array_constructor.
471         * constructor.c (node_copy_and_append): Delete unused.
472         * gfortran.h: Delete comment and extra include.
473         * constructor.h: Bump copyright and clean up TODO comments.
474         * resolve.c: Whitespace.
475
476 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
477
478         * simplify.c (compute_dot_product): Replaced usage of ADVANCE macro
479         with direct access access to elements. Adjusted prototype, fixed all
480         callers.
481         (gfc_simplify_dot_product): Removed duplicate check for zero-sized
482         array.
483         (gfc_simplify_matmul): Removed usage of ADVANCE macro.
484         (gfc_simplify_spread): Removed workaround, directly insert elements
485         at a given array position.
486         (gfc_simplify_transpose): Likewise.
487         (gfc_simplify_pack): Replaced usage of ADVANCE macro with corresponding
488         function calls.
489         (gfc_simplify_unpack): Likewise.
490
491 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
492
493         * simplify.c (only_convert_cmplx_boz): Renamed to ...
494         (convert_boz): ... this and moved to start of file.
495         (gfc_simplify_abs): Whitespace fix.
496         (gfc_simplify_acos): Whitespace fix.
497         (gfc_simplify_acosh): Whitespace fix.
498         (gfc_simplify_aint): Whitespace fix.
499         (gfc_simplify_dint): Whitespace fix.
500         (gfc_simplify_anint): Whitespace fix.
501         (gfc_simplify_and): Replaced if-gate by more common switch-over-type.
502         (gfc_simplify_dnint): Whitespace fix.
503         (gfc_simplify_asin): Whitespace fix.
504         (gfc_simplify_asinh): Moved creation of result-expr out of switch.
505         (gfc_simplify_atan): Likewise.
506         (gfc_simplify_atanh): Whitespace fix.
507         (gfc_simplify_atan2): Whitespace fix.
508         (gfc_simplify_bessel_j0): Removed ATTRIBUTE_UNUSED.
509         (gfc_simplify_bessel_j1): Likewise.
510         (gfc_simplify_bessel_jn): Likewise.
511         (gfc_simplify_bessel_y0): Likewise.
512         (gfc_simplify_bessel_y1): Likewise.
513         (gfc_simplify_bessel_yn): Likewise.
514         (gfc_simplify_ceiling): Reorderd statements.
515         (simplify_cmplx): Use convert_boz(), check for constant arguments.
516         Whitespace fix.
517         (gfc_simplify_cmplx): Use correct default kind. Removed check for
518         constant arguments.
519         (gfc_simplify_complex): Replaced if-gate. Removed check for
520         constant arguments.
521         (gfc_simplify_conjg): Whitespace fix.
522         (gfc_simplify_cos): Whitespace fix.
523         (gfc_simplify_cosh): Replaced if-gate by more common switch-over-type.
524         (gfc_simplify_dcmplx): Removed check for constant arguments.
525         (gfc_simplify_dble): Use convert_boz() and gfc_convert_constant().
526         (gfc_simplify_digits): Whitespace fix.
527         (gfc_simplify_dim): Whitespace fix.
528         (gfc_simplify_dprod): Reordered statements.
529         (gfc_simplify_erf): Whitespace fix.
530         (gfc_simplify_erfc): Whitespace fix.
531         (gfc_simplify_epsilon): Whitespace fix.
532         (gfc_simplify_exp): Whitespace fix.
533         (gfc_simplify_exponent): Use convert_boz().
534         (gfc_simplify_floor): Reorderd statements.
535         (gfc_simplify_gamma): Whitespace fix.
536         (gfc_simplify_huge): Whitespace fix.
537         (gfc_simplify_iand): Whitespace fix.
538         (gfc_simplify_ieor): Whitespace fix.
539         (simplify_intconv): Use gfc_convert_constant().
540         (gfc_simplify_int): Use simplify_intconv().
541         (gfc_simplify_int2): Reorderd statements.
542         (gfc_simplify_idint): Reorderd statements.
543         (gfc_simplify_ior): Whitespace fix.
544         (gfc_simplify_ishftc): Removed duplicate type check.
545         (gfc_simplify_len): Use range_check() instead of manual range check.
546         (gfc_simplify_lgamma): Removed ATTRIBUTE_UNUSED. Whitespace fix.
547         (gfc_simplify_log): Whitespace fix.
548         (gfc_simplify_log10): Whitespace fix.
549         (gfc_simplify_minval): Whitespace fix.
550         (gfc_simplify_maxval): Whitespace fix.
551         (gfc_simplify_mod): Whitespace fix.
552         (gfc_simplify_modulo): Whitespace fix.
553         (simplify_nint): Reorderd statements.
554         (gfc_simplify_not): Whitespace fix.
555         (gfc_simplify_or): Replaced if-gate by more common switch-over-type.
556         (gfc_simplify_radix): Removed unused result-variable. Whitespace fix.
557         (gfc_simplify_range): Removed unused result-variable. Whitespace fix.
558         (gfc_simplify_real): Use convert_boz() and gfc_convert_constant().
559         (gfc_simplify_realpart): Whitespace fix.
560         (gfc_simplify_selected_char_kind): Removed unused result-variable.
561         (gfc_simplify_selected_int_kind): Removed unused result-variable.
562         (gfc_simplify_selected_real_kind): Removed unused result-variable.
563         (gfc_simplify_sign): Whitespace fix.
564         (gfc_simplify_sin): Whitespace fix.
565         (gfc_simplify_sinh): Replaced if-gate by more common switch-over-type.
566         (gfc_simplify_sqrt): Avoided goto by inlining check. Whitespace fix.
567         (gfc_simplify_tan): Replaced if-gate by more common switch-over-type.
568         (gfc_simplify_tanh): Replaced if-gate by more common switch-over-type.
569         (gfc_simplify_xor): Replaced if-gate by more common switch-over-type.
570
571 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
572
573         * gfortran.h (gfc_start_constructor): Removed.
574         (gfc_get_array_element): Removed.
575         * array.c (gfc_start_constructor): Removed, use gfc_get_array_expr 
576         instead. Fixed all callers.
577         (extract_element): Removed.
578         (gfc_expand_constructor): Temporarily removed check for
579         max-array-constructor. Will be re-introduced later if still required.
580         (gfc_get_array_element): Removed, use gfc_constructor_lookup_expr
581         instead. Fixed all callers.
582         * expr.c (find_array_section): Replaced manual lookup of elements
583         by gfc_constructor_lookup.
584
585 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
586
587         * gfortran.h (gfc_get_null_expr): New prototype.
588         (gfc_get_operator_expr): New prototype.
589         (gfc_get_character_expr): New prototype.
590         (gfc_get_iokind_expr): New prototype.
591         * expr.c (gfc_get_null_expr): New.
592         (gfc_get_character_expr): New.
593         (gfc_get_iokind_expr): New.
594         (gfc_get_operator_expr): Moved here from matchexp.c (build_node).
595         * matchexp.c (build_node): Renamed and moved to
596         expr.c (gfc_get_operator_expr). Reordered arguments to match 
597         other functions. Fixed all callers.
598         (gfc_get_parentheses): Use specific function to build expr.
599         * array.c (gfc_match_array_constructor): Likewise.
600         * arith.c (eval_intrinsic): Likewise.
601         (gfc_hollerith2int): Likewise.
602         (gfc_hollerith2real): Likewise.
603         (gfc_hollerith2complex): Likewise.
604         (gfc_hollerith2logical): Likewise.
605         * data.c (create_character_intializer): Likewise.
606         * decl.c (gfc_match_null): Likewise.
607         (enum_initializer): Likewise.
608         * io.c (gfc_match_format): Likewise.
609         (match_io): Likewise.
610         * match.c (gfc_match_nullify): Likewise.
611         * primary.c (match_string_constant): Likewise.
612         (match_logical_constant): Likewise.
613         (build_actual_constructor): Likewise.
614         * resolve.c (build_default_init_expr): Likewise.
615         * symbol.c (generate_isocbinding_symbol): Likewise.
616         (gfc_build_class_symbol): Likewise.
617         (gfc_find_derived_vtab): Likewise.
618         * simplify.c (simplify_achar_char): Likewise.
619         (gfc_simplify_adjustl): Likewise.
620         (gfc_simplify_adjustr): Likewise.
621         (gfc_simplify_and): Likewise.
622         (gfc_simplify_bit_size): Likewise.
623         (gfc_simplify_is_iostat_end): Likewise.
624         (gfc_simplify_is_iostat_eor): Likewise.
625         (gfc_simplify_isnan): Likewise.
626         (simplify_bound): Likewise.
627         (gfc_simplify_leadz): Likewise.
628         (gfc_simplify_len_trim): Likewise.
629         (gfc_simplify_logical): Likewise.
630         (gfc_simplify_maxexponent): Likewise.
631         (gfc_simplify_minexponent): Likewise.
632         (gfc_simplify_new_line): Likewise.
633         (gfc_simplify_null): Likewise.
634         (gfc_simplify_or): Likewise.
635         (gfc_simplify_precision): Likewise.
636         (gfc_simplify_repeat): Likewise.
637         (gfc_simplify_scan): Likewise.
638         (gfc_simplify_size): Likewise.
639         (gfc_simplify_trailz): Likewise.
640         (gfc_simplify_trim): Likewise.
641         (gfc_simplify_verify): Likewise.
642         (gfc_simplify_xor): Likewise.
643         * trans-io.c (build_dt): Likewise.
644         (gfc_new_nml_name_expr): Removed.
645
646 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
647
648         * arith.h (gfc_constant_result): Removed prototype.
649         * constructor.h (gfc_build_array_expr): Removed prototype.
650         (gfc_build_structure_constructor_expr): Removed prototype.
651         * gfortran.h (gfc_int_expr): Removed prototype.
652         (gfc_logical_expr): Removed prototype.
653         (gfc_get_array_expr): New prototype.
654         (gfc_get_structure_constructor_expr): New prototype.
655         (gfc_get_constant_expr): New prototype.
656         (gfc_get_int_expr): New prototype.
657         (gfc_get_logical_expr): New prototype.
658         * arith.c (gfc_constant_result): Moved and renamed to
659         expr.c (gfc_get_constant_expr). Fixed all callers.
660         * constructor.c (gfc_build_array_expr): Moved and renamed to
661         expr.c (gfc_get_array_expr). Split gfc_typespec argument to type
662         and kind. Fixed all callers.
663         (gfc_build_structure_constructor_expr): Moved and renamed to
664         expr.c (gfc_get_structure_constructor_expr). Split gfc_typespec argument
665         to type and kind. Fixed all callers.
666         * expr.c (gfc_logical_expr): Renamed to ...
667         (gfc_get_logical_expr): ... this. Added kind argument. Fixed all callers.
668         (gfc_int_expr): Renamed to ...
669         (gfc_get_int_expr): ... this. Added kind and where arguments. Fixed all
670         callers.
671         (gfc_get_constant_expr): New.
672         (gfc_get_array_expr): New.
673         (gfc_get_structure_constructor_expr): New.
674         * simplify.c (int_expr_with_kind): Removed, callers use gfc_get_int_expr
675         instead.
676
677 2010-04-12  Daniel Franke  <franke.daniel@gmail.com>
678
679         * constructor.h: New.
680         * constructor.c: New.
681         * Make-lang.in: Add new files to F95_PARSER_OBJS.
682         * arith.c (reducy_unary): Use constructor API.
683         (reduce_binary_ac): Likewise.
684         (reduce_binary_ca): Likewise.
685         (reduce_binary_aa): Likewise.
686         * check.c (gfc_check_pack): Likewise.
687         (gfc_check_reshape): Likewise.
688         (gfc_check_unpack): Likewise.
689         * decl.c (add_init_expr_to_sym): Likewise.
690         (build_struct): Likewise.
691         * dependency.c (gfc_check_dependency): Likewise.
692         (contains_forall_index_p): Likewise.
693         * dump-parse-tree.c (show_constructor): Likewise.
694         * expr.c (free_expr0): Likewise.
695         (gfc_copy_expr): Likewise.
696         (gfc_is_constant_expr): Likewise.
697         (simplify_constructor): Likewise.
698         (find_array_element): Likewise.
699         (find_component_ref): Likewise.
700         (find_array_section): Likewise.
701         (find_substring_ref): Likewise.
702         (simplify_const_ref): Likewise.
703         (scalarize_intrinsic_call): Likewise.
704         (check_alloc_comp_init): Likewise.
705         (gfc_default_initializer): Likewise.
706         (gfc_traverse_expr): Likewise.
707         * iresolve.c (check_charlen_present): Likewise.
708         (gfc_resolve_reshape): Likewise.
709         (gfc_resolve_transfer): Likewise.
710         * module.c (mio_constructor): Likewise.
711         * primary.c (build_actual_constructor): Likewise.
712         (gfc_match_structure_constructor): Likewise.
713         * resolve.c (resolve_structure_cons): Likewise.
714         * simplify.c (is_constant_array_expr): Likewise.
715         (init_result_expr): Likewise.
716         (transformational_result): Likewise.
717         (simplify_transformation_to_scalar): Likewise.
718         (simplify_transformation_to_array): Likewise.
719         (gfc_simplify_dot_product): Likewise.
720         (simplify_bound): Likewise.
721         (simplify_matmul): Likewise.
722         (simplify_minval_maxval): Likewise.
723         (gfc_simplify_pack): Likewise.
724         (gfc_simplify_reshape): Likewise.
725         (gfc_simplify_shape): Likewise.
726         (gfc_simplify_spread): Likewise.
727         (gfc_simplify_transpose): Likewise.
728         (gfc_simplify_unpack): Likewise.q
729         (gfc_convert_constant): Likewise.
730         (gfc_convert_char_constant): Likewise.
731         * target-memory.c (size_array): Likewise.
732         (encode_array): Likewise.
733         (encode_derived): Likewise.
734         (interpret_array): Likewise.
735         (gfc_interpret_derived): Likewise.
736         (expr_to_char): Likewise.
737         (gfc_merge_initializers): Likewise.
738         * trans-array.c (gfc_get_array_constructor_size): Likewise.
739         (gfc_trans_array_constructor_value): Likewise.
740         (get_array_ctor_strlen): Likewise.
741         (gfc_constant_array_constructor_p): Likewise.
742         (gfc_build_constant_array_constructor): Likewise.
743         (gfc_trans_array_constructor): Likewise.
744         (gfc_conv_array_initializer): Likewise.
745         * trans-decl.c (check_constant_initializer): Likewise.
746         * trans-expr.c (flatten_array_ctors_without_strlen): Likewise.
747         (gfc_apply_interface_mapping_to_cons): Likewise.
748         (gfc_trans_structure_assign): Likewise.
749         (gfc_conv_structure): Likewise.
750         * array.c (check_duplicate_iterator): Likewise.
751         (match_array_list): Likewise.
752         (match_array_cons_element): Likewise.
753         (gfc_match_array_constructor): Likewise.
754         (check_constructor_type): Likewise.
755         (check_constructor): Likewise.
756         (expand): Likewise.
757         (expand_constructor): Likewise.
758         (extract_element): Likewise.
759         (gfc_expanded_ac): Likewise.
760         (resolve_array_list): Likewise.
761         (gfc_resolve_character_array_constructor): Likewise.
762         (copy_iterator): Renamed to ...
763         (gfc_copy_iterator): ... this.
764         (gfc_append_constructor): Removed.
765         (gfc_insert_constructor): Removed unused function.
766         (gfc_get_constructor): Removed.
767         (gfc_free_constructor): Removed.
768         (qgfc_copy_constructor): Removed.
769         * gfortran.h (struct gfc_expr): Removed member 'con_by_offset'.
770         Removed all references. Replaced constructor list by splay-tree.
771         (struct gfc_constructor): Removed member 'next', moved 'offset' from
772         the inner struct, added member 'base'.
773         (gfc_append_constructor): Removed prototype.
774         (gfc_insert_constructor): Removed prototype.
775         (gfc_get_constructor): Removed prototype.
776         (gfc_free_constructor): Removed prototype.
777         (qgfc_copy_constructor): Removed prototype.
778         (gfc_copy_iterator): New prototype.
779         * trans-array.h (gfc_constant_array_constructor_p): Adjusted prototype.
780
781 2010-04-10  Tobias Burnus  <burnus@net-b.de>
782
783         PR fortran/43591
784         * expr.c (gfc_is_constant_expr, gfc_traverse_expr): Handle
785         proc-pointers and type-bound procedures.
786         (gfc_specification_expr): Check proc-pointers for pureness.
787
788 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
789
790         PR bootstrap/43684
791         * gfortranspec.c (lang_specific_driver): Do not expose vars 
792         only used by HAVE_LD_STATIC_DYNAMIC targets unless compiling
793         for such.
794
795 2010-04-09  Tobias Burnus  <burnus@net-b.de>
796
797         PR fortran/18918
798         * decl.c (variable_decl, match_attr_spec): Fix setting the array
799         spec.
800         * array.c (match_subscript,gfc_match_array_ref): Add coarray support.
801         * data.c (gfc_assign_data_value): Ditto.
802         * expr.c (gfc_check_pointer_assign): Add check for coarray constraint.
803         (gfc_traverse_expr): Traverse also through codimension expressions.
804         (gfc_is_coindexed, gfc_has_ultimate_allocatable,
805         gfc_has_ultimate_pointer): New functions.
806         * gfortran.h (gfc_array_ref_dimen_type): Add DIMEN_STAR for coarrays.
807         (gfc_array_ref): Add codimen.
808         (gfc_array_ref): Add in_allocate.
809         (gfc_is_coindexed, gfc_has_ultimate_allocatable,
810         gfc_has_ultimate_pointer): Add prototypes.
811         * interface.c (compare_parameter, compare_actual_formal,
812         check_intents): Add coarray constraints.
813         * match.c (gfc_match_iterator): Add coarray constraint.
814         * match.h (gfc_match_array_ref): Update interface.
815         * primary.c (gfc_match_varspec): Handle codimensions.
816         * resolve.c (coarray_alloc, inquiry_argument): New static variables.
817         (check_class_members): Return gfc_try instead for error recovery.
818         (resolve_typebound_function,resolve_typebound_subroutine,
819         check_members): Handle return value of check_class_members.
820         (resolve_structure_cons, resolve_actual_arglist, resolve_function,
821         check_dimension, compare_spec_to_ref, resolve_array_ref,
822         resolve_ref, resolve_variable, gfc_resolve_expr, conformable_arrays,
823         resolve_allocate_expr, resolve_ordinary_assign): Add coarray
824         support.
825         * trans-array.c (gfc_conv_array_ref, gfc_walk_variable_expr):
826         Skip over coarray refs.
827         (gfc_array_allocate) Add support for references containing coindexes.
828         * trans-expr.c (gfc_add_interface_mapping): Copy coarray attribute.
829         (gfc_map_intrinsic_function): Ignore codimensions.
830
831 2010-04-08  Bud Davis  <bdavis9659@sbcglobal.net>
832
833         PR fortran/28039
834         * io.c (check_format_string):  Added check for additional non 
835         blank characters after the format string was successfully 
836         parsed.
837         * io.c (check_format): Changed the error messages for positive
838         int required and period required to drop through the error logic
839         and report with gfc_error instead of gfc_error_now.  Corrected
840         format postion for hollerith strings.
841
842 2010-04-08  Tobias Burnus  <burnus@net-b.de>
843
844         * module.c (use_iso_fortran_env_module): Fix standard check.
845
846 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
847
848         * parse.c (parse_derived, parse_enum): Avoid set but not used
849         warning.
850
851 2010-04-07  Janne Blomqvist  <jb@gcc.gnu.org>
852
853         PR fortran/40539
854         * gfortran.texi: Add section about representation of
855         LOGICAL variables.
856
857 2010-04-07  Simon Baldwin  <simonb@google.com>
858
859         * cpp.c (cb_cpp_error): Add warning reason argument, set a value
860         for diagnostic_override_option_index if CPP_W_WARNING_DIRECTIVE.
861
862 2010-04-07  Richard Guenther  <rguenther@suse.de>
863
864         * options.c (gfc_init_options): Do not set.
865
866 2010-04-06  Tobias Burnus  <burnus@net-b.de>
867
868         PR fortran/18918
869         * array.c (gfc_match_array_spec): Add error for -fcoarray=none.
870         * match.c (gfc_match_critical, sync_statement): Ditto.
871         * gfortran.h (gfc_fcoarray): New enum.
872         (gfc_option_t): Use it.
873         * lang.opt (fcoarray): Add new flag.
874         * invoke.texi (fcoarray): Document it.
875         * options.c (gfc_init_options,gfc_handle_option): Handle -fcoarray=.
876         (gfc_handle_coarray_option): New function.
877
878 2010-04-06  Tobias Burnus  <burnus@net-b.de>
879
880         PR fortran/18918
881         * gfortran.h (gfc_array_spec): Add cotype.
882         * array.c (gfc_match_array_spec,gfc_set_array_spec): Use it
883         and defer error diagnostic.
884         * resolve.c (resolve_fl_derived): Add missing check.
885         (resolve_symbol): Add cotype/type check.
886         * parse.c (parse_derived): Fix setting of coarray_comp.
887
888 2010-04-06  Tobias Burnus  <burnus@net-b.de>
889
890         PR fortran/18918
891         * array.c (gfc_free_array_spec,gfc_resolve_array_spec,
892         match_array_element_spec,gfc_copy_array_spec,
893         gfc_compare_array_spec): Include corank.
894         (match_array_element_spec,gfc_set_array_spec): Support codimension.
895         * decl.c (build_sym,build_struct,variable_decl,
896         match_attr_spec,attr_decl1,cray_pointer_decl,
897         gfc_match_volatile): Add codimension.
898         (gfc_match_codimension): New function.
899         * dump-parse-tree.c (show_array_spec,show_attr): Support codimension.
900         * gfortran.h (symbol_attribute,gfc_array_spec): Ditto.
901         (gfc_add_codimension): New function prototype.
902         * match.h (gfc_match_codimension): New function prototype.
903         (gfc_match_array_spec): Update prototype
904         * match.c (gfc_match_common): Update gfc_match_array_spec call.
905         * module.c (MOD_VERSION): Bump.
906         (mio_symbol_attribute): Support coarray attributes.
907         (mio_array_spec): Add corank support.
908         * parse.c (decode_specification_statement,decode_statement,
909         parse_derived): Add coarray support.
910         * resolve.c (resolve_formal_arglist, was_declared,
911         is_non_constant_shape_array, resolve_fl_variable,
912         resolve_fl_derived, resolve_symbol): Add coarray support.
913         * symbol.c (check_conflict, gfc_add_volatile, gfc_copy_attr,
914         gfc_build_class_symbol): Add coarray support.
915         (gfc_add_codimension): New function.
916
917 2010-04-06  Tobias Burnus  <burnus@net-b.de>
918
919         PR fortran/18918
920         * iso-fortran-env.def: Add the integer parameters atomic_int_kind,
921         atomic_logical_kind, iostat_inquire_internal_unit, stat_locked,
922         stat_locked_other_image, stat_stopped_image and stat_unlocked of
923         Fortran 2008.
924         * intrinsic.texi (iso_fortran_env): Ditto.
925         * libgfortran.h (libgfortran_stat_codes): New enum.
926         * module.c (use_iso_fortran_env_module): Honour -std= when loading
927         constants from the intrinsic module.
928
929 2010-04-06  Tobias Burnus  <burnus@net-b.de>
930
931         PR fortran/39997
932         * intrinsic.c (add_functions): Add num_images.
933         * decl.c (gfc_match_end): Handle END CRITICAL.
934         * intrinsic.h (gfc_simplify_num_images): Add prototype.
935         * dump-parse-tree.c (show_code_node): Dump CRITICAL, ERROR STOP,
936         and SYNC.
937         * gfortran.h (gfc_statement): Add enum items for those.
938         (gfc_exec_op) Ditto.
939         (gfc_isym_id): Add num_images.
940         * trans-stmt.c (gfc_trans_stop): Handle ERROR STOP.
941         (gfc_trans_sync,gfc_trans_critical): New functions.
942         * trans-stmt.h (gfc_trans_stop,gfc_trans_sync,
943         gfc_trans_critical): Add/update prototypes.
944         * trans.c (gfc_trans_code): Handle CRITICAL, ERROR STOP,
945         and SYNC statements.
946         * trans.h (gfor_fndecl_error_stop_string) Add variable.
947         * resolve.c (resolve_sync): Add function.
948         (gfc_resolve_blocks): Handle CRITICAL.
949         (resolve_code): Handle CRITICAL, ERROR STOP,
950         (resolve_branch): Add CRITICAL constraint check.
951         and SYNC statements.
952         * st.c (gfc_free_statement): Add new statements.
953         * trans-decl.c (gfor_fndecl_error_stop_string): Global variable.
954         (gfc_build_builtin_function_decls): Initialize it.
955         * match.c (gfc_match_if): Handle ERROR STOP and SYNC.
956         (gfc_match_critical, gfc_match_error_stop, sync_statement,
957         gfc_match_sync_all, gfc_match_sync_images, gfc_match_sync_memory):
958         New functions.
959         (match_exit_cycle): Handle CRITICAL constraint.
960         (gfc_match_stopcode): Handle ERROR STOP.
961         * match.h (gfc_match_critical, gfc_match_error_stop,
962         gfc_match_sync_all, gfc_match_sync_images,
963         gfc_match_sync_memory): Add prototype.
964         * parse.c (decode_statement, gfc_ascii_statement,
965         parse_executable): Handle new statements.
966         (parse_critical_block): New function.
967         * parse.h (gfc_compile_state): Add COMP_CRITICAL.
968         * intrinsic.texi (num_images): Document new function.
969         * simplify.c (gfc_simplify_num_images): Add function.
970
971 2010-04-06  Tobias Burnus  <burnus@net-b.de>
972
973         PR fortran/43178
974         * trans-array.c (gfc_conv_expr_descriptor): Update
975         gfc_trans_scalar_assign call.
976         (has_default_initializer): New function.
977         (gfc_trans_deferred_array): Nullify less often.
978         * trans-expr.c (gfc_conv_subref_array_arg,
979         gfc_trans_subcomponent_assign): Update call to
980         gfc_trans_scalar_assign.
981         (gfc_trans_scalar_assign): Add parameter and pass it on.
982         (gfc_trans_assignment_1): Optionally, do not dealloc before
983         assignment.
984         * trans-openmp.c (gfc_trans_omp_array_reduction): Update
985         call to gfc_trans_scalar_assign.
986         * trans-decl.c (gfc_get_symbol_decl): Do not always apply
987         initializer to static variables.
988         (gfc_init_default_dt): Add dealloc parameter and pass it on.
989         * trans-stmt.c (forall_make_variable_temp,
990         generate_loop_for_temp_to_lhs, generate_loop_for_rhs_to_temp,
991         gfc_trans_forall_1, gfc_trans_where_assign, gfc_trans_where_3
992         gfc_trans_allocate): Update gfc_trans_assignment call.
993         * trans.h (gfc_trans_scalar_assign, gfc_init_default_dt,
994         gfc_init_default_dt, gfc_trans_assignment): Add bool dealloc
995         parameter to prototype.
996
997 2010-03-31  Paul Thomas  <pault@gcc.gnu.org>
998
999         * ioparm.def : Update copyright.
1000         * lang.opt : ditto
1001         * trans-array.c : ditto
1002         * trans-array.h : ditto
1003         * expr.c: ditto
1004         * trans-types.c: ditto
1005         * dependency.c : ditto
1006         * gfortran.h : ditto
1007         * options.c : ditto
1008         * trans-io.c : ditto
1009         * trans-intrinsic.c : ditto
1010         * libgfortran.h : ditto
1011         * invoke.texi : ditto
1012         * intrinsic.texi : ditto
1013         * trans.c : ditto
1014         * trans.h : ditto
1015         * intrinsic.c : ditto
1016         * interface.c : ditto
1017         * iresolve.c : ditto
1018         * trans-stmt.c : ditto
1019         * trans-stmt.h : ditto
1020         * parse,c : ditto
1021         * match.h : ditto
1022         * error.c : ditto
1023
1024 2010-03-20  Paul Thomas  <pault@gcc.gnu.org>
1025
1026         PR fortran/43450
1027         * trans-decl.c (gfc_create_module_variable): With -fwhole-file
1028         do not assert the context of derived types.
1029
1030 2010-03-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1031
1032         PR fortran/43409
1033         * ioparm.def: Change inquire size variable to type pointer to
1034         GFC_IO_INT type.
1035
1036 2010-03-18  Paul Thomas  <pault@gcc.gnu.org>
1037
1038         PR fortran/43039
1039         * trans-expr.c (conv_parent_component_references): Ensure that
1040         'dt' has a backend_decl.
1041
1042         PR fortran/43043
1043         * trans-expr.c (gfc_conv_structure): Ensure that the derived
1044         type has a backend_decl.
1045
1046         PR fortran/43044
1047         * resolve.c (resolve_global_procedure): Check that the 'cl'
1048         structure is not NULL.
1049
1050 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
1051
1052         * lang.opt (-ffixed-line-length-, ffree-line-length-): Remove
1053         redundant tab.
1054
1055 2010-03-17  Tobias Burnus  <burnus@net-b.de>
1056
1057         PR fortran/43331
1058         * trans-array.c (gfc_conv_array_index_offset,gfc_conv_array_ref,
1059         gfc_conv_ss_startstride): Remove no-longer-needed cp_was_assumed
1060         check.
1061         * decl.c (gfc_match_derived_decl): Don't mark assumed-size Cray
1062         pointees as having explizit size.
1063         * expr.c (gfc_check_assign): Remove now unreachable Cray pointee
1064         check.
1065         * trans-types.c (gfc_is_nodesc_array): Add cp_was_assumed to assert.
1066         (gfc_sym_type): Don't mark Cray pointees as restricted pointers.
1067         * resolve.c (resolve_symbol): Handle cp_was_assumed.
1068         * trans-decl.c (gfc_trans_deferred_vars): Ditto.
1069         (gfc_finish_var_decl): Don't mark Cray pointees as restricted
1070         pointers.
1071
1072 2010-03-14  Tobias Burnus  <burnus@net-b.de>
1073
1074         PR fortran/43362
1075         * resolve.c (resolve_structure_cons): Add missing PURE constraint.
1076         (resolve_ordinary_assign): Add check to avoid segfault.
1077
1078 2010-03-12  Paul Thomas  <pault@gcc.gnu.org>
1079
1080         PR fortran/43291
1081         PR fortran/43326
1082         * resolve.c (resolve_compcall): Add new boolean dummy argument
1083         'class_members'. Only resolve expression at end if false.
1084         Remove redundant, static variable 'class_object'.
1085         (check_class_members): Add extra argument to call of
1086         resolve_compcall.
1087         (resolve_typebound_function): Renamed resolve_class_compcall.
1088         Do all the detection of class references here. Correct calls to
1089         resolve_compcall for extra argument.
1090         (resolve_typebound_subroutine): resolve_class_typebound_call
1091         renamed. Otherwise same as resolve_typebound_function.
1092         (gfc_resolve_expr): Call resolve_typebound_function.
1093         (resolve_code): Call resolve_typebound_subroutine.
1094
1095 2010-03-10  Tobias Burnus  <burnus@net-b.de
1096
1097         PR fortran/43303
1098         * symbol.c (get_iso_c_sym): Set sym->result.
1099
1100 2010-03-08  Janus Weil  <janus@gcc.gnu.org>
1101
1102         PR fortran/43256
1103         * resolve.c (resolve_compcall): Don't set 'value.function.name' here
1104         for TBPs, otherwise they will not be resolved properly.
1105         (resolve_function): Use 'value.function.esym' instead of
1106         'value.function.name' to check if we're dealing with a TBP.
1107         (check_class_members): Set correct type of passed object for all TBPs,
1108         not only generic ones, except if the type is abstract.
1109
1110 2010-03-04  Janus Weil  <janus@gcc.gnu.org>
1111
1112         PR fortran/43244
1113         * decl.c (gfc_match_final_decl): Make sure variable names starting with
1114         'final...' are not misinterpreted as FINAL statements.
1115
1116 2010-03-03  Paul Thomas  <pault@gcc.gnu.org>
1117
1118         PR fortran/43243
1119         * trans-array.c (gfc_conv_array_parameter): Contiguous refs to
1120         allocatable ultimate components do not need temporaries, whilst
1121         ultimate pointer components do.
1122
1123 2010-03-03  Janus Weil  <janus@gcc.gnu.org>
1124
1125         PR fortran/43169
1126         * resolve.c (resolve_code): Correctly set gfc_current_ns for
1127         EXEC_SELECT_TYPE.
1128         (gfc_impure_variable): Make it work with sub-namespaces (BLOCK etc).
1129         (gfc_pure): Ditto.
1130
1131 2010-03-02  Paul Thomas  <pault@gcc.gnu.org>
1132
1133         PR fortran/43180
1134         * trans-array.c (gfc_conv_array_parameter): A full array of
1135         derived type need not be restricted to a symbol without an
1136         array spec to use the call to gfc_conv_expr_descriptor.
1137
1138         PR fortran/43173
1139         * trans-array.c (gfc_conv_array_parameter): Contiguous refs to
1140         allocatable arrays do not need temporaries.
1141
1142 2010-03-01  Tobias Burnus  <burnus@net-b.de>
1143
1144         PR fortran/43199
1145         * resolve.c (find_array_spec): Handle REF_COMPONENT with
1146         CLASS components.
1147
1148 2010-02-28  Tobias Burnus  <burnus@net-b.de>
1149
1150         PR fortran/43205
1151         * trans-expr.c (is_zero_initializer_p): Move up in the file.
1152         (gfc_conv_initializer): Handle zero initializer as special case.
1153
1154 2010-02-27  Tobias Burnus  <burnus@net-b.de>
1155
1156         PR fortran/43185
1157         * resolve.c (resolve_fl_variable_derived): Imply SAVE
1158         for module variables for Fortran 2008.
1159
1160 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
1161
1162         PR debug/43166
1163         * trans-common.c (build_common_decl): Also update DECL_MODE,
1164         and DECL_SIZE when encountering a larger common block and call
1165         layout_decl.
1166
1167 2010-02-24  Tobias Burnus  <burnus@net-b.de>              
1168
1169         PR fortran/43042
1170         * trans-expr.c (gfc_conv_initializer): Call directly
1171         gfc_conv_constant for C_NULL_(FUN)PTR.              
1172
1173 2010-02-22  Paul Thomas  <pault@gcc.gnu.org>
1174
1175         PR fortran/43072
1176         * dependency.c (gfc_full_array_ref_p): Check for contiguous by
1177         checking the rest of the dimensions for elements.
1178
1179 2010-02-21  Tobias Burnus  <burnus@net-b.de>
1180
1181         PR fortran/35259
1182         * gfortran.h (gfc_option_t): New flag -fprotect-parens.
1183         * lang.opt: Ditto.
1184         * option.c (gfc_init_options,gfc_handle_option): Ditto.
1185         * trans-expr.c (gfc_conv_expr_op): Use the flag.
1186         * invoke.texi: Document new -fno-protect-parens flag.
1187
1188 2010-02-20  Paul Thomas  <pault@gcc.gnu.org>
1189
1190         PR fortran/36932
1191         PR fortran/36933
1192         PR fortran/43072
1193         PR fortran/43111
1194         * dependency.c (gfc_check_argument_var_dependency): Use enum
1195         value instead of arithmetic vaue for 'elemental'.
1196         (check_data_pointer_types): New function.
1197         (gfc_check_dependency): Call check_data_pointer_types.
1198         * trans-array.h : Change fourth argument of
1199         gfc_conv_array_parameter to boolean.
1200         * trans-array.c (gfc_conv_array_parameter): A contiguous array
1201         can be a dummy but it must not be assumed shape or deferred.
1202         Change fourth argument to boolean. Array constructor exprs will
1203         always be contiguous and do not need packing and unpacking.
1204         * trans-expr.c (gfc_conv_procedure_call): Clean up some white
1205         space and change fourth argument of gfc_conv_array_parameter
1206         to boolean.
1207         (gfc_trans_arrayfunc_assign): Change fourth argument of
1208         gfc_conv_array_parameter to boolean.
1209         * trans-io.c (gfc_convert_array_to_string): The same.
1210         * trans-intrinsic.c (gfc_conv_intrinsic_loc): The same.
1211
1212 2010-02-20  Tobias Burnus  <burnus@net-b.de>
1213
1214         PR fortran/42958
1215         * libgfortran.h: Add GFC_RTCHECK_MEM.
1216         * invoke.texi (-fcheck=): Document -fcheck=mem.
1217         * tranc.c (gfc_call_malloc): Remove negative-size run-time error
1218         and enable malloc-success check only with -fcheck=mem.
1219         * option.c (gfc_handle_runtime_check_option): Add -fcheck=mem.
1220
1221 2010-02-16  Tobias Burnus  <burnus@net-b.de>
1222
1223         PR fortran/43040
1224         * gfortran.h (gfc_isym_id): Rename GFS_ISYM_GAMMA to GFS_ISYM_TGAMMA.
1225         * intrinsic.c (add_functions): Ditto.
1226         * iresolve.c (gfc_resolve_gamma): Call tgamma instead of gamma.
1227         * mathbuiltins.def: Use TGAMMA instead of GAMMA with "tgamma".
1228
1229 2010-02-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1230
1231         PR fortran/32382
1232         * trans-stmt.h: Add prototype for gfc_trans_code_cond. Add tree cond to
1233         gfc_trans_do prototype.
1234         * trans-stmt.c (gfc_trans_simple_do): Add optional argument to pass in
1235         a loop exit condition.  If exit condition is given, build the loop exit
1236         code, checking IO results of implied do loops in READ and WRITE.
1237         (gfc_trans_do): Likewise.
1238         * trans.c (trans_code): New static work function, previously
1239         gfc_trans_code. Passes exit condition to gfc_trans_do.
1240         (gfc_trans_code): Calls trans_code with NULL_TREE condition.
1241         (gfc_trans_code_cond): Calls trans_code with loop exit condition.
1242         * trans-io.c (build_dt): Build an exit condition to allow checking IO
1243         result status bits in the dtparm structure. Use this condition in call
1244         to gfc_trans_code_cond.
1245
1246 2010-02-13  Paul Thomas  <pault@gcc.gnu.org>
1247
1248         PR fortran/41113
1249         PR fortran/41117
1250         * trans-array.c (gfc_conv_array_parameter): Use
1251         gfc_full_array_ref_p to detect full and contiguous variable
1252         arrays. Full array components and contiguous arrays do not need
1253         internal_pack and internal_unpack.
1254
1255 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
1256
1257         PR fortran/43030
1258         * resolve.c (gfc_resolve_dim_arg): Call gfc_clear_ts.
1259
1260         PR fortran/43029
1261         * decl.c (enumerator_decl): Don't call gfc_free_enum_history
1262         here.
1263         (gfc_match_enumerator_def): But here whenever enumerator_decl returns
1264         MATCH_ERROR.
1265
1266 2010-02-10  Joost VandeVondele <jv244@cam.ac.uk>
1267             Tobias Burnus <burnus@net-b.de>
1268
1269         PR fortran/40823
1270         * decl.c (gfc_match_subroutine): Explicitly set sym->declared_at.
1271
1272 2010-02-10  Tobias Burnus  <burnus@net-b.de>
1273
1274         PR fortran/43015
1275         * trans-decl.c (gfc_generate_function_code): Only check
1276         actual-vs.-dummy character bounds if not bind(C).
1277
1278 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
1279
1280         PR fortran/42309
1281         * trans-expr.c (gfc_conv_subref_array_arg): Avoid accessing
1282         info->dimen after info has been freed.
1283
1284 2010-02-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1285
1286         PR fortran/42999
1287         * array.c (gfc_constant_ac): Do not prevent expansion of constructors
1288         with iterators.
1289
1290 2010-02-09  Jakub Jelinek  <jakub@redhat.com>
1291
1292         * module.c (fix_mio_expr): Declare sym.
1293
1294 2010-02-09  Paul Thomas  <pault@gcc.gnu.org>
1295
1296         PR fortran/41869
1297         * module.c (fix_mio_expr): Fix for private generic procedures.
1298
1299 2010-02-09  Daniel Kraft  <d@domob.eu>
1300
1301         PR fortran/39171
1302         * resolve.c (resolve_charlen): Change warning about negative CHARACTER
1303         length to be correct and issue only with -Wsurprising.
1304         * invoke.texi (Wsurprising): Mention this new warning that is
1305         turned on by -Wsurprising.
1306
1307 2010-02-09  Daniel Kraft  <d@domob.eu>
1308
1309         PR fortran/41507
1310         * intrinsic.texi (MAXVAL): Remove wrong claim that array argument
1311         can be CHARACTER type.
1312         (MINVAL), (MAXLOC), (MINLOC): Ditto.
1313
1314 2010-02-05  Paul Thomas  <pault@gcc.gnu.org>
1315
1316         PR fortran/42309
1317         * trans-expr.c (gfc_conv_subref_array_arg): Add new argument
1318         'formal_ptr'. If this is true, give returned descriptor unity
1319         lbounds, in all dimensions, and the appropriate offset.
1320         (gfc_conv_procedure_call); If formal is a pointer, set the last
1321         argument of gfc_conv_subref_array_arg to true.
1322         * trans.h : Add last argument for gfc_conv_subref_array_arg.
1323         * trans-io.c (set_internal_unit, gfc_trans_transfer): Set the
1324         new arg of gfc_conv_subref_array_arg to false.
1325         * trans-stmt.c (forall_make_variable_temp): The same.
1326
1327 2010-02-03  Tobias Burnus  <burnus@net-b.de>
1328
1329         PR fortran/42936
1330         * interface.c (compare_parameter): Disable rank-checking
1331         for NULL().
1332
1333 2010-02-02  Tobias Burnus  <burnus@net-b.de>
1334
1335         PR fortran/42650
1336         * parse.c (decode_specification_statement): Use sym->result not sym.
1337
1338 2010-02-01  Tobias Burnus  <burnus@net-b.de>
1339
1340         PR fortran/42922
1341         * decl.c (variable_decl): Allow default initializer in
1342         TYPE declarations in PURE functions.
1343
1344 2010-01-31  Janus Weil  <janus@gcc.gnu.org>
1345
1346         PR fortran/42888
1347         * resolve.c (resolve_allocate_expr): Move default initialization code
1348         here from gfc_trans_allocate.
1349         * trans.c (gfc_trans_code): Call gfc_trans_class_assign also for
1350         EXEC_INIT_ASSIGN.
1351         * trans-expr.c (gfc_trans_class_assign): Handle default initialization
1352         of CLASS variables via memcpy.
1353         * trans-stmt.c (gfc_trans_allocate): Move default initialization code
1354         to resolve_allocate_expr.
1355
1356 2010-01-31  Paul Thomas  <pault@gcc.gnu.org>
1357
1358         PR fortran/38324
1359         * expr.c (gfc_get_full_arrayspec_from_expr): New function.
1360         * gfortran.h : Add prototype for above.
1361         * trans-expr.c (gfc_trans_alloc_subarray_assign): New function.
1362         (gfc_trans_subcomponent_assign): Call new function to replace
1363         the code to deal with allocatable components.
1364         * trans-intrinsic.c (gfc_conv_intrinsic_bound): Call
1365         gfc_get_full_arrayspec_from_expr to replace existing code.
1366
1367 2010-01-25  Tobias Burnus  <burnus@net-b.de>
1368
1369         PR fortran/42858
1370         * array.c (gfc_array_dimen_size): Fix intrinsic procedure
1371         check.
1372
1373 2010-01-24  Paul Thomas  <pault@gcc.gnu.org>
1374
1375         PR fortran/41044
1376         PR fortran/41167
1377         * expr.c (remove_subobject_ref): If the constructor is NULL use
1378         the expression as the source.
1379         (simplify_const_ref): Change the type of expression if
1380         there are component references.  Allow for substring to be at
1381         the end of an arbitrarily long chain of references.  If an
1382         element is found that is not in an EXPR_ARRAY, assume that this
1383         is scalar initialization of array. Call remove_subobject_ref in
1384         this case with NULL second argument.
1385
1386 2010-01-24  Tobias Burnus  <burnus@net-b.de>
1387
1388         PR fortran/39304
1389         * array.c (gfc_array_dimen_size): Use correct specific
1390         function in the check.
1391
1392 2010-01-21  Paul Thomas  <pault@gcc.gnu.org>
1393
1394         PR fortran/42736
1395         * trans-stmt.c (gfc_conv_elemental_dependencies): If temporary
1396         is required, turn any trailing array elements after a range
1397         into ranges so that offsets can be calculated.
1398
1399 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
1400
1401         * module.c (mio_f2k_derived): Use enumerator as initializer of
1402         enum variable.
1403
1404         PR bootstrap/42812
1405         * gfortran.h  (struct gfc_namespace) <resolved>: Change to signed
1406         bitfield of width 2.
1407
1408 2010-01-19  Janus Weil  <janus@gcc.gnu.org>
1409
1410         PR fortran/42804
1411         * resolve.c (extract_compcall_passed_object): Set locus for
1412         passed-object argument.
1413         (extract_ppc_passed_object): Set locus and correctly remove PPC
1414         reference.
1415
1416 2010-01-19  Paul Thomas  <pault@gcc.gnu.org>
1417
1418         PR fortran/42783
1419         * trans-decl.c (add_argument_checking): Do not use the backend
1420         decl directly to test for the presence of an optional dummy
1421         argument.  Use gfc_conv_expr_present, remembering to set the
1422         symbol referenced.
1423
1424         PR fortran/42772
1425         * trans-decl.c (gfc_generate_function_code): Small white space
1426         changes. If 'recurcheckvar' is NULL do not try to reset it.
1427
1428 2010-01-19  Janus Weil  <janus@gcc.gnu.org>
1429
1430         PR fortran/42545
1431         * resolve.c (resolve_fl_derived): Set the accessibility of the parent
1432         component for extended types.
1433         * symbol.c (gfc_find_component): Remove a wrongly-worded error message
1434         and take care of parent component accessibility.
1435
1436 2010-01-17  Janus Weil  <janus@gcc.gnu.org>
1437
1438         PR fortran/42677
1439         * gfortran.h (symbol_attribute): Remove 'ambiguous_interfaces'.
1440         * interface.c (check_interface1): Move a warning message here from
1441         resolve_fl_procedure.
1442         (check_sym_interfaces): Removed 'attr.ambiguous_interfaces'.
1443         * module.c (read_module): Remove call to gfc_check_interfaces, since
1444         this comes too early here.
1445         * resolve.c (resolve_fl_procedure): Move warning message to
1446         check_interface1.
1447
1448 2010-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1449
1450         PR fortran/42684
1451         * interface.c (check_interface1): Pass symbol name rather than NULL to
1452         gfc_compare_interfaces. (gfc_compare_interfaces): Add assert to
1453         trap MULL.
1454         * resolve.c (check_generic_tbp_ambiguity): Pass symbol name rather
1455         than NULL to gfc_compare_interfaces.
1456
1457 2010-01-14  Paul Thomas  <pault@gcc.gnu.org>
1458
1459         PR fortran/41478
1460         * trans-array.c (duplicate_allocatable):  Static version of
1461         gfc_duplicate_allocatable with provision to handle scalar
1462         components. New boolean argument to switch off call to malloc
1463         if true.
1464         (gfc_duplicate_allocatable): New function to call above with
1465         new argument false.
1466         (gfc_copy_allocatable_data): New function to call above with
1467         new argument true.
1468         (structure_alloc_comps): Do not apply indirect reference to
1469         scalar pointers. Add new section to copy allocatable components
1470         of arrays. Extend copying of allocatable components to include
1471         scalars.
1472         (gfc_copy_only_alloc_comp): New function to copy allocatable
1473         component derived types, without allocating the base structure.
1474         * trans-array.h : Add primitive for gfc_copy_allocatable_data.
1475         Add primitive for gfc_copy_only_alloc_comp.
1476         * trans-expr.c (gfc_conv_procedure_call): After calls to
1477         transformational functions with results that are derived types
1478         with allocatable components, copy the components in the result.
1479         (gfc_trans_arrayfunc_assign): Deallocate allocatable components
1480         of lhs derived types before allocation.
1481         
1482 2010-01-14  Paul Thomas  <pault@gcc.gnu.org>
1483
1484         PR fortran/42481
1485         * module.c (load_generic_interfaces): If a procedure that is
1486         use associated but not generic is given an interface that
1487         includes itself, then make it generic.
1488
1489 2010-01-11  Joseph Myers  <joseph@codesourcery.com>  
1490             Shujing Zhao  <pearly.zhao@oracle.com>
1491
1492         PR translation/42469
1493         * lang.opt (fblas-matmul-limit=, finit-character=, finit-integer=,
1494         finit-logical=, finit-real=, fmax-array-constructor=): Use tab
1495         character between option name and help text.
1496
1497 2010-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1498
1499         PR fortran/20923
1500         PR fortran/32489
1501         * trans-array.c (gfc_conv_array_initializer): Change call to
1502         gfc_error_now to call to gfc_fatal_error.
1503         * array.c (count_elements): Whitespace. (extract_element): Whitespace.
1504         (is_constant_element): Changed name from constant_element.
1505         (gfc_constant_ac): Only use expand_construuctor for expression
1506         types of EXPR_ARRAY.  If expression type is EXPR_CONSTANT, no need to
1507         call gfc_is_constant_expr.
1508         * expr.c (gfc_reduce_init_expr): Adjust conditionals and delete error
1509         message.
1510         * resolve.c (gfc_is_expandable_expr): New function that determiners if
1511         array expressions should have their constructors expanded.
1512         (gfc_resolve_expr): Use new function to determine whether or not to call
1513         gfc_expand_constructor.
1514
1515 2010-01-09  Tobias Burnus  <burnus@net-b.de>
1516
1517         PR fortran/41298
1518         * trans-expr.c (gfc_trans_structure_assign): Handle
1519         c_null_(fun)ptr.
1520         * symbol.c (gen_special_c_interop_ptr): Add NULL_EXPR
1521         to the constructor for c_null_(fun)ptr.
1522         * resolve.c (resolve_structure_cons): Add special case
1523         for c_null_(fun)ptr.
1524
1525 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
1526
1527         * gfortranspec.c (lang_specific_driver): Update copyright notice
1528         dates.
1529
1530 2010-01-08  Tobias Burnus  <burnus@net-b.de>
1531
1532         PR/fortran 25829
1533         * symbol.c (check_conflict, gfc_copy_attr): Add
1534         ASYNCHRONOUS support.
1535         (gfc_add_asynchronous): New function.
1536         * decl.c (match_attr_spec): Add ASYNCHRONOUS support.
1537         (gfc_match_asynchronous): New function.
1538         * dump-parse-tree.c (show_attr): Add ASYNCHRONOUS support.
1539         * gfortran.h (symbol_attribute): New ASYNCHRONOUS bit.
1540         (gfc_add_asynchronous): New Prototype.
1541         * module.c (ab_attribute, mio_symbol_attribute): Add
1542         ASYNCHRONOUS support.
1543         * resolve.c (was_declared): Ditto.
1544         * match.h (gfc_match_asynchronous): New prototype.
1545         * parse.c (decode_specification_statement,decode_statement):
1546         Add ASYNCHRONOUS support.
1547
1548 2010-01-07  Tobias Burnus  <burnus@net-b.de>
1549
1550         PR fortran/42597
1551         * trans-decl.c (get_proc_pointer_decl): Fix call to
1552         gfc_conv_initializer for array-valued proc-pointer funcs.
1553
1554 2010-01-07  Tobias Burnus  <burnus@net-b.de>
1555
1556         PR fortran/41872
1557         * trans-decl.c (gfc_trans_deferred_vars): Don't initialize
1558         allocatable scalars with SAVE attribute.
1559
1560 2010-01-05  Tobias Burnus  <burnus@net-b.de>
1561
1562         PR fortran/42517
1563         * options.c (gfc_post_options): Set -frecursion
1564         when -fopenmp is used.
1565
1566 2010-01-05  Tobias Burnus  <burnus@net-b.de>
1567
1568         PR fortran/41872
1569         * trans-expr.c (gfc_conv_procedure_call): Nullify
1570         return value for allocatable-scalar character functions.
1571
1572 2010-01-04  Tobias Burnus  <burnus@net-b.de>
1573
1574         PR fortran/36161
1575         * error.c (error_printf, gfc_warning, gfc_notify_std,
1576         gfc_warning_now, gfc_error, gfc_error_now,
1577         gfc_fatal_error): Change argument name from nocmsgid to
1578         gmsgid to enable (x)gettext's % checking.
1579
1580 2010-01-04  Tobias Burnus  <burnus@net-b.de>
1581         
1582         * trans-decl.c (gfc_trans_deferred_vars): Fix spelling.
1583
1584 2010-01-04  Tobias Burnus  <burnus@net-b.de>
1585
1586         PR fortran/41872
1587         * trans-expr.c (gfc_conv_procedure_call): Add indirect ref
1588         for functions returning allocatable scalars.
1589         * trans-stmt.c (gfc_trans_allocate): Emmit error when
1590         reallocating an allocatable scalar.
1591         * trans.c (gfc_allocate_with_status): Fix pseudocode syntax
1592         in comment.
1593         * trans-decl.c (gfc_trans_deferred_vars): Nullify local
1594         allocatable scalars.
1595         (gfc_generate_function_code): Nullify result variable for
1596         allocatable scalars.
1597         
1598         PR fortran/40849
1599         * module.c (gfc_use_module): Fix warning string to allow
1600         for translation.
1601
1602         PR fortran/42517
1603         * invoke.texi (-fcheck=recursion): Mention that the checking
1604         is also disabled for -frecursive.
1605         * trans-decl.c (gfc_generate_function_code): Disable
1606         -fcheck=recursion when -frecursive is used.
1607
1608         * intrinsic.texi (iso_c_binding): Improve wording.
1609
1610 \f
1611 Copyright (C) 2010 Free Software Foundation, Inc.
1612
1613 Copying and distribution of this file, with or without modification,
1614 are permitted in any medium without royalty provided the copyright
1615 notice and this notice are preserved.