OSDN Git Service

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