OSDN Git Service

convert each use of gfc_free (p) to free (p)
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
1 2011-04-18  Jim Meyering  <meyering@redhat.com>
2
3         convert each use of gfc_free (p) to free (p)
4         Do that by running this command:
5           perl -pi -e    's/\bgfc_free ?\(/free (/' \
6             $(git grep -El '\bgfc_free ?\(')
7         which also corrects the few uses that lacked a space between
8         the function name and the open parenthesis.
9         Manually undo the change to the function definition itself
10         and its prototype.  They'll be removed next.
11         * array.c (gfc_free_array_spec, gfc_set_array_spec): s/gfc_free/free/
12         * constructor.c (node_free): Likewise.
13         * cpp.c (dump_queued_macros): Likewise.
14         * data.c (gfc_assign_data_value): Likewise.
15         * decl.c (free_variable, free_value, gfc_free_data): Likewise.
16         (gfc_free_data_all, match_old_style_init): Likewise.
17         (gfc_set_constant_character_len, gfc_free_enum_history, NUM_DECL):
18         Likewise.
19         (gfc_match_modproc): Likewise.
20         * dependency.c (check_section_vs_section): Likewise.
21         * error.c (gfc_pop_error, gfc_free_error): Likewise.
22         * expr.c (free_expr0, gfc_free_expr, gfc_free_actual_arglist): Likewise.
23         (gfc_free_ref_list, gfc_replace_expr, gfc_copy_ref): Likewise.
24         (find_substring_ref, gfc_simplify_expr, gfc_check_assign_symbol):
25         Likewise.
26         * frontend-passes.c (gfc_run_passes, cfe_expr_0): Likewise.
27         (strip_function_call, optimize_comparison): Likewise.
28         * interface.c (gfc_free_interface, arginfo, check_interface0): Likewise.
29         (CHECK_OS_COMPARISON, gfc_extend_assign, gfc_free_formal_arglist):
30         Likewise.
31         * intrinsic.c (gfc_intrinsic_done_1, gfc_convert_type_warn): Likewise.
32         (gfc_convert_chartype): Likewise.
33         * io.c (gfc_free_open, compare_to_allowed_values, gfc_free_close):
34         Likewise.
35         (gfc_free_filepos, gfc_free_dt, gfc_free_inquire): Likewise.
36         * match.c (gfc_free_iterator, gfc_match_associate): Likewise.
37         (gfc_free_alloc_list, gfc_free_namelist, gfc_free_equiv_until):
38         Likewise.
39         (free_case, gfc_free_forall_iterator): Likewise.
40         * misc.c: Likewise.
41         * module.c (free_pi_tree, resolve_fixups, free_rename): Likewise.
42         (free_true_name, peek_atom, mio_allocated_wide_string): Likewise.
43         (mio_pool_string, mio_internal_string, mio_gmp_integer): Likewise.
44         (mio_gmp_real, mio_expr, mio_typebound_proc): Likewise.
45         (mio_full_typebound_tree, skip_list, load_equiv): Likewise.
46         (free_written_common, gfc_use_module, gfc_free_use_stmts): Likewise.
47         * openmp.c (gfc_free_omp_clauses): Likewise.
48         * options.c (gfc_post_options): Likewise.
49         * parse.c (select_type_pop, parse_omp_structured_block): Likewise.
50         * primary.c (gfc_free_structure_ctor_component): Likewise.
51         * resolve.c (resolve_structure_cons, check_host_association): Likewise.
52         (gfc_resolve_forall, resolve_equivalence): Likewise.
53         * scanner.c (gfc_scanner_done_1, gfc_release_include_path): Likewise.
54         (gfc_define_undef_line, preprocessor_line, include_line): Likewise.
55         (load_file, gfc_read_orig_filename): Likewise.
56         * simplify.c (simplify_transformation_to_array): Likewise.
57         (gfc_simplify_ibits, simplify_shift, gfc_simplify_ishftc, STRING):
58         Likewise.
59         (gfc_simplify_compiler_options): Likewise.
60         * st.c (gfc_free_statement, gfc_free_statements): Likewise.
61         (gfc_free_association_list): Likewise.
62         * symbol.c (free_components, gfc_free_st_label, free_st_labels):
63         Likewise.
64         (gfc_delete_symtree, gfc_free_symbol, gfc_undo_symbols): Likewise.
65         (free_old_symbol, gfc_commit_symbols, free_tb_tree): Likewise.
66         (free_common_tree, free_uop_tree, free_sym_tree): Likewise.
67         (gfc_free_dt_list, gfc_free_equiv_infos, gfc_free_equiv_lists):
68         Likewise.
69         (gfc_free_finalizer, gfc_free_charlen, free_entry_list): Likewise.
70         (gfc_free_namespace): Likewise.
71         * trans-array.c (gfc_free_ss, gfc_trans_array_bound_check): Likewise.
72         (gfc_conv_array_ref, gfc_conv_ss_startstride): Likewise.
73         (gfc_trans_dummy_array_bias, gfc_conv_array_parameter): Likewise.
74         * trans-common.c (get_init_field, create_common): Likewise.
75         * trans-const.c (gfc_build_wide_string_const): Likewise.
76         (gfc_conv_string_init): Likewise.
77         * trans-decl.c (gfc_generate_function_code): Likewise.
78         * trans-expr.c (gfc_conv_substring, gfc_free_interface_mapping):
79         Likewise.
80         (SCALAR_POINTER, gfc_conv_statement_function): Likewise.
81         (gfc_trans_subarray_assign): Likewise.
82         * trans-intrinsic.c (conv_generic_with_optional_char_arg): Likewise.
83         * trans-io.c (gfc_trans_io_runtime_check, set_string): Likewise.
84         (transfer_namelist_element, transfer_array_component): Likewise.
85         * trans-openmp.c (gfc_trans_omp_array_reduction): Likewise.
86         * trans-stmt.c (cleanup_forall_symtrees, gfc_trans_forall_1): Likewise.
87         * trans.c (trans_runtime_error_vararg, gfc_restore_backend_locus):
88         Likewise.
89
90 2011-04-15  Jim Meyering  <meyering@redhat.com>
91
92         gfortran: remove cpp definition of free, ...
93         in preparation for the s/gfc_free/free/ transformation.
94         * gfortran.h (free): Remove macro definition that would otherwise
95         prevent direct use of the function.
96
97 2011-04-18  Tobias Burnus  <burnus@net-b.de>
98
99         PR fortran/18918
100         * array.c (gfc_match_array_ref): Check for too many codimensions.
101         * check.c (gfc_check_image_index): Check number of elements
102         in SUB argument.
103         * simplify.c (gfc_simplify_image_index): Remove unreachable checks.
104
105 2011-04-18  Tobias Burnus  <burnus@net-b.de>
106
107         PR fortran/18918
108         * iresolve.c (gfc_resolve_image_index): Set ts.type.
109         * simplify.c (gfc_simplify_image_index): Don't abort if the bounds
110         are not known at compile time and handle -fcoarray=lib.
111         * trans-intrinsics.c (gfc_conv_intrinsic_function): Handle
112         IMAGE_INDEX.
113         (conv_intrinsic_cobound): Fix comment typo.
114         (trans_this_image): New function.
115         * trans-array.c (gfc_unlikely): Move to trans.c.
116         * trans.c (gfc_unlikely): Function moved from trans-array.c.
117         (gfc_trans_runtime_check): Use it.
118         * trans-io.c (gfc_trans_io_runtime_check): Ditto.
119         * trans.h (gfc_unlikely): Add prototype.
120
121 2011-04-18  Paul Thomas  <pault@gcc.gnu.org>
122
123         PR fortran/48462
124         * trans-expr.c (fcncall_realloc_result): Renamed version of
125         realloc_lhs_bounds_for_intrinsic_call that does not touch the
126         descriptor bounds anymore but makes a temporary descriptor to
127         hold the result.
128         (gfc_trans_arrayfunc_assign): Modify the reference to above
129         renamed function.
130
131 2011-05-17  Tobias Burnus  <burnus@net-b.de>
132
133         PR fortran/48624
134         * trans-decl.c (gfc_get_extern_function_decl): Fix decl
135         for external procedures with proc arguments.
136
137 2011-04-15  Michael Matz  <matz@suse.de>
138
139         * trans-array.c (toplevel): Include gimple.h.
140         (gfc_trans_allocate_array_storage): Check flag_stack_arrays,
141         properly expand variable length arrays.
142         (gfc_trans_auto_array_allocation): If flag_stack_arrays create
143         variable length decls and associate them with their scope.
144         * gfortran.h (gfc_option_t): Add flag_stack_arrays member.
145         * options.c (gfc_init_options): Handle -fstack_arrays option.
146         * lang.opt (fstack-arrays): Add option.
147         * invoke.texi (Code Gen Options): Document it.
148         * Make-lang.in (trans-array.o): Depend on GIMPLE_H.
149
150 2011-04-15  Tobias Burnus  <burnus@net-b.de>
151
152         PR fortran/18918
153         * trans-intrinsic.c (conv_intrinsic_cobound): Remove unused
154         code which is also causing an ICE.
155
156 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
157
158         * f95-lang.c (poplevel): Use BLOCK_CHAIN and block_chainon.
159
160 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
161
162         * f95-lang.c (union lang_tree_node): Check for TS_COMMON before
163         calling TREE_CHAIN.
164
165 2011-04-12  Paul Thomas  <pault@gcc.gnu.org>
166
167         PR fortran/48360
168         PR fortran/48456
169         * trans-array.c (get_std_lbound): For derived type variables
170         return array valued component lbound.
171
172 2011-04-12  Martin Jambor  <mjambor@suse.cz>
173
174         * trans-decl.c (gfc_generate_function_code): Call
175         cgraph_get_create_node instead of cgraph_node.
176
177 2011-04-11  Tobias Burnus  <burnus@net-b.de>
178
179         PR fortran/18918
180         * simplify.c (simplify_bound_dim): Exit for
181         ucobound's last dimension unless -fcoarray=single.
182         * trans-array (gfc_conv_descriptor_size_1): Renamed from
183         gfc_conv_descriptor_size, made static, has now from_dim and
184         to_dim arguments.
185         (gfc_conv_descriptor_size): Call gfc_conv_descriptor_size.
186         (gfc_conv_descriptor_cosize): New function.
187         * trans-array.h (gfc_conv_descriptor_cosize): New prototype.
188         * trans-intrinsic.c (conv_intrinsic_cobound): Add input_location
189         and handle last codim of ucobound for when -fcoarray is not "single".
190
191 2011-04-08  Thomas Koenig  <tkoenig@gcc.gnu.org>
192
193         PR fortran/48448
194         * gfortran.h (gfc_option_t):  Add warn_function_elimination and
195         flag_frontend_optimize.
196         * lang.opt (Wfunction-elimination):  Add.
197         (ffrontend-optimize):  Add.
198         * invoke.texi:  Add documentation for -Wfunction-elimination
199         and -ffrontend-optimize.  Add -faggressive-function-elimination
200         to list of code generation options.
201         * frontend-passes.c (gfc_run_passes):  Run optimizations if
202         flag_frontend_optimize is set.
203         (warn_function_elimination):  New function.
204         (cfe_expr_0):  Call it if requested to do so.
205         * options.c (gfc_init_options):  Initiate warn_function_elimination
206         and flag_frontend_optimize.
207         (gfc_post_options):  Set flag_frontend_optimize if not specified
208         by user, depending on the optimization level.
209         (gfc_handle_option):  Handle -Wfunction-elimination and
210         -ffrontend-optimize.
211
212 2011-04-06  Tobias Burnus  <burnus@net-b.de>
213
214         PR fortran/18918
215         * trans-intrinsic.c (gfc_conv_intrinsic_function): Fix
216         call for this_image.
217
218 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
219
220         * trans-intrinsic.c (gfc_build_intrinsic_lib_fndecls): Use
221         build_function_type_list instead of build_function_type.  Correct
222         argument order for func_frexp and func_scalbn.
223
224 2011-04-05  Duncan Sands  <baldrick@free.fr>
225
226         * f95-lang.c (build_builtin_fntypes): Swap frexp parameter types.
227
228 2010-04-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
229
230         * frontend-passes: (optimize_lexical_comparison): New function.
231         (optimize_expr): Call it.
232         (optimize_comparison): Also handle lexical comparison functions.
233         Return false instad of -2 for unequal comparison.
234
235 2011-04-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
236
237         PR fortran/48412
238         * frontend-passes (cfe_expr_0):  Reverse the order of going
239         through the loops.
240
241 2011-04-04  Tobias Burnus  <burnus@net-b.de>
242             Mikael Morin  <mikael.morin@sfr.fr>
243
244         PR fortran/18918
245         * check.c (is_coarray): Update - because of DIMEN_THIS_IMAGE.
246         * expr.c (gfc_is_coindexed): Ditto.
247         * gfortran.h (gfc_array_ref_dimen_type): Add DIMEN_THIS_IMAGE.
248         * interface.c (compare_parameter): Use gfc_expr_attr and
249         gfc_is_coindexed.
250         * resolve.c (check_dimension, compare_spec_to_ref,
251         resolve_allocate_expr, check_data_variable): Update for
252         DIMEN_THIS_IMAGE.
253         * simplify.c (gfc_simplify_lcobound, gfc_simplify_this_image,
254         gfc_simplify_ucobound): Allow non-constant bounds.
255         * trans-array.c (gfc_set_loop_bounds_from_array_spec,
256         gfc_trans_create_temp_array, gfc_trans_constant_array_constructor,
257         gfc_set_vector_loop_bounds, gfc_conv_array_index_offset,
258         gfc_start_scalarized_body, gfc_trans_scalarizing_loops,
259         gfc_trans_scalarized_loop_boundary, gfc_conv_section_startstride,
260         gfc_conv_ss_startstride, gfc_conv_loop_setup,
261         gfc_trans_array_bounds, gfc_conv_expr_descriptor,
262         gfc_walk_variable_expr): Handle codimen.
263         * trans-decl.c (gfc_build_qualified_array): Save cobounds.
264         * trans-intrinsic.c (gfc_conv_intrinsic_bound): Use arg2.
265         (conv_intrinsic_cobound): New function.
266         (gfc_conv_intrinsic_function): Call it.
267         (gfc_walk_intrinsic_function, gfc_add_intrinsic_ss_code): Handle
268         ucobound, lcobound, this_image.
269         * fortran/trans-types.c (gfc_build_array_type): Save cobounds.
270         (gfc_get_dtype): Honour corank.
271         (gfc_get_nodesc_array_type): Save corank and codimensions.
272         (gfc_get_array_type_bounds): Save cobound.
273         * fortran/trans.h (gfc_ss_info,gfc_loopinfo): Add codimen item.
274         (gfc_array_kind): Add corank item.
275         (GFC_TYPE_ARRAY_CORANK): New macro.
276
277 2011-04-03  Kai Tietz  <ktietz@redhat.com>
278
279         PR middle-end/48422
280         * Make-lang.in (f95-lang.o): Add some missing dependencies.
281
282 2011-04-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
283
284         PR fortran/48352
285         * frontend-passes (cfe_register_funcs):  Don't
286         register functions if they appear as iterators in DO loops.
287
288 2011-03-30  Michael Matz  <matz@suse.de>
289
290         PR fortran/47516
291         * trans-expr.c (realloc_lhs_loop_for_fcn_call): Take loop as parameter,
292         don't use local variable.
293         (gfc_trans_arrayfunc_assign): Adjust caller.
294
295 2011-03-29  Janus Weil  <janus@gcc.gnu.org>
296
297         PR fortran/48095
298         * decl.c (match_procedure_decl,match_ppc_decl): Set flavor of interface.
299         * module.c (MOD_VERSION): Bump.
300         (mio_typespec): Read/write 'interface' field.
301         * primary.c (match_string_constant,match_logical_constant): Remove
302         unneeded code.
303         (match_complex_constant): Make sure to clear the typespec.
304
305 2011-03-29  Thomas Koenig  <tkoenig@gcc.gnu.org>
306
307         * frontend-passes.c (create_var):  Warn about creating an
308         array temporary if requested.
309
310 2011-03-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
311
312         PR fortran/47065
313         * frontend-passes.c (optimize_trim): Also follow references, except
314         when they are substring references or array references.
315
316 2011-03-27  Tobias Burnus  <burnus@net-b.de>
317
318         PR fortran/18918
319         * gfortran.h (gfc_isym_id): Rename GFC_ISYM_NUMIMAGES to
320         GFC_ISYM_NUM_IMAGES.
321         (gfc_fcoarray): Add GFC_FCOARRAY_LIB.
322         * intrinsic.c (add_functions): Update due to GFC_ISYM_NUM_IMAGES
323         rename.
324         * invoke.texi (-fcoarray=): Document "lib" argument.
325         * iresolve.c (gfc_resolve_this_image): Fix THIS IMAGE().
326         * libgfortran.h (libgfortran_stat_codes): Add comments.
327         * options.c (gfc_handle_coarray_option): Add -fcoarray=lib.
328         * simplify.c (gfc_simplify_num_images, gfc_simplify_this_image):
329         Handle GFC_FCOARRAY_LIB.
330         * trans.h (gfc_init_coarray_decl): New prototype.
331         (gfor_fndecl_caf_init, gfor_fndecl_caf_finalize,
332         gfor_fndecl_caf_critical, gfor_fndecl_caf_end_critical,
333         gfor_fndecl_caf_sync_all, gfor_fndecl_caf_sync_images,
334         gfor_fndecl_caf_error_stop, gfor_fndecl_caf_error_stop_str,
335         gfort_gvar_caf_num_images, gfort_gvar_caf_this_image):
336         New global variables.
337         * trans-decl.c: Declare several CAF functions (cf. above).
338         (gfc_build_builtin_function_decls): Initialize those.
339         (gfc_init_coarray_decl): New function.
340         (create_main_function): Call CAF init/finalize functions.
341         * trans-intrinsic.c (trans_this_image, trans_num_images): New.
342         (gfc_conv_intrinsic_function): Call those.
343         * trans-stmt.c (gfc_trans_stop, gfc_trans_sync, gfc_trans_critical):
344         Add code for GFC_FCOARRAY_LIB.
345
346 2011-03-26  Janus Weil  <janus@gcc.gnu.org>
347
348         PR fortran/48291
349         * class.c (get_unique_hashed_string): Adjust maximum allowable length
350         for unique type string.
351
352 2011-03-25  Kai Tietz  <ktietz@redhat.com>
353
354         * scanner.c (preprocessor_line): Use filename_cmp
355         instead of strcmp.
356
357 2011-03-25  Tobias Burnus  <burnus@net-b.de>
358
359         PR fortran/48174
360         PR fortran/45304
361         * trans-types.c (gfc_get_function_type): Don't use varargs if the
362         procedure is known to have no arguments.
363
364 2010-03-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
365
366         PR fortran/22572
367         * gfortran.h (gfc_option_t) : Add
368         flag_aggressive_function_elimination.
369         (gfc_dep_compare_functions):  Add prototype.
370         * lang.opt: Add faggressive-function-elimination.
371         * invoke.texi: Document -faggressive-function-elimination.
372         * frontend_passes (expr_array):  New static variable.
373         (expr_size):  Likewise.
374         (expr_count):  Likewise.
375         (current_code):  Likewise.
376         (current_ns):  Likewise.
377         (gfc_run_passes):  Allocate and free space for expressions.
378         (cfe_register_funcs):  New function.
379         (create_var):  New function.
380         (cfc_expr_0):  New function.
381         (cfe_code):  New function.
382         (optimize_namespace):  Invoke gfc_code_walker with cfe_code
383         and cfe_expr_0.
384         * dependency.c (gfc_dep_compare_functions):  New function.
385         (gfc_dep_compare_expr):  Use it.
386         * options.c (gfc_init_options):  Handle
387         flag_aggressive_function_elimination.
388         (gfc_handle_option):  Likewise.
389
390 2011-03-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
391
392         * arith.c (arith_power): Plug memory leak.
393
394 2011-03-12  Janus Weil  <janus@gcc.gnu.org>
395
396         PR fortran/48059
397         * trans-expr.c (gfc_apply_interface_mapping_to_expr): Replace base type
398         for polymorphic arguments.
399
400 2011-03-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
401
402         PR fortran/48054
403         * intrinsic.texi: Clarify doc of logarithm functions.
404
405 2011-03-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
406
407         PR fortran/47552
408         * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Fix type of
409         the string length variable.
410
411 2011-03-11  Janus Weil  <janus@gcc.gnu.org>
412
413         PR fortran/47768
414         * module.c (ab_attribute,attr_bits): Add AB_PROC_POINTER_COMP.
415         (mio_symbol_attribute): Handle attribute 'proc_pointer_comp'.
416
417 2011-03-06  Paul Thomas  <pault@gcc.gnu.org>
418             Jerry DeLisle  <jvdelisle@gcc.gnu.org>
419
420         PR fortran/47850
421         * expr.c (gfc_is_constant_expr): Only use gfc_constant_ac if
422         the expression has an iterator.  Otherwise, iterate through the
423         array, checking for constant expressions for each element.
424
425 2011-03-04  Janne Blomqvist  <jb@gcc.gnu.org>
426
427         PR libfortran/47802
428         * intrinsic.texi: Update CTIME and FDATE documentation.
429
430 2011-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
431
432         * invoke.texi (Option Summary, Fortran Dialect Options)
433         (Preprocessing Options, Runtime Options, Code Gen Options):
434         Fix vertical list spacing by using @itemx for additinoal
435         items, empty line before @table.  Fix typos.
436
437 2011-02-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
438
439         PR fortran/47894
440         * intrinsic.texi: Fix doc of the VERIFY intrinsic.
441
442 2011-02-26  Tobias Burnus  <burnus@net-b.de>
443
444         PR fortran/47846
445         * trans-stmt.c (gfc_trans_allocate): Fix allocation with
446         type-spec of deferred-length strings.
447
448 2011-02-26  Tobias Burnus  <burnus@net-b.de>
449
450         PR fortran/47886
451         * openmp.c (gfc_resolve_omp_directive): Resolve if()
452         condition of OpenMP's task.
453
454 2011-02-26  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
455
456         PR fortran/47894
457         * intrinsic.texi: Fix doc of the VERIFY intrinsic.
458
459 2011-02-24  Tobias Burnus  <burnus@net-b.de>
460
461         PR fortran/47872
462         * intrinsic.texi (ALLOCATED, ATAN, BESSEL_JN, BESSEL_YN): Add
463         multitable for linebreak between different syntax variants.
464
465 2011-02-24  Richard Guenther  <rguenther@suse.de>
466
467         PR fortran/47839
468         * f95-lang.c (pushdecl): For externs in non-global scope push
469         a copy of the decl into the BLOCK.
470
471 2011-02-23  Mikael Morin  <mikael@gcc.gnu.org>
472
473         PR fortran/40850
474         * trans.c (gfc_prepend_expr_to_block): New function.
475         * trans.h (gfc_prepend_expr_to_block): Declare.
476         * trans-array.c (gfc_conv_array_parameter): Replace
477         gfc_add_expr_to_block with gfc_prepend_expr_to_block.
478
479 2011-02-22  Paul Thomas  <pault@gcc.gnu.org>
480
481         PR fortran/45743
482         * trans-decl.c (gfc_get_extern_function_decl): Don't use the
483         gsymbol backend_decl if the procedure has a formal argument
484         that is a procedure.
485
486 2011-02-22  Tobias Burnus  <burnus@net-b.de>
487
488         PR fortran/41359
489         * trans-stmt.c (gfc_trans_if_1): Use correct line for
490         expressions in the if condition.
491
492 2011-02-20  Tobias Burnus  <burnus@net-b.de>
493
494         PR fortran/47797
495         * trans-decl.c (gfc_trans_deferred_vars): Use gfc_set_backend_locus and
496         gfc_restore_backend_locus to have better debug locations.
497         * trans-array.c (gfc_trans_deferred_array): Ditto.
498
499 2011-02-20  Paul Thomas  <pault@gcc.gnu.org>
500
501         PR fortran/45077
502         PR fortran/44945
503         * trans-types.c (gfc_get_derived_type): Remove code that looks
504         for decls in gsym and add call to gfc_get_module_backend_decl.
505         * trans.h : Add prototype for gfc_get_module_backend_decl.
506         * trans-decl.c (gfc_get_module_backend_decl): New function.
507         (gfc_get_symbol_decl): Call it.
508
509 2011-02-19  Paul Thomas  <pault@gcc.gnu.org>
510
511         PR fortran/47348
512         * trans-array.c (get_array_ctor_all_strlen): Move up in file.
513         (get_array_ctor_var_strlen): Add block dummy and add call to
514         get_array_ctor_all_strlen instead of giving up on substrings.
515         Call gcc_unreachable for default case.
516         (get_array_ctor_strlen): Add extra argument to in call to
517         get_array_ctor_var_strlen.
518
519 2011-02-18  Janus Weil  <janus@gcc.gnu.org>
520
521         PR fortran/47789
522         * primary.c (gfc_match_structure_constructor): Handle empty parent
523         types.
524
525 2011-02-18  Tobias Burnus
526
527         PR fortran/47775
528         * trans-expr.c (arrayfunc_assign_needs_temporary): Use
529         esym to check whether the specific procedure returns an
530         allocatable or pointer.
531
532 2011-02-18  Michael Matz  <matz@suse.de>
533
534         PR fortran/45586
535         * gfortran.h (struct gfc_component): Add norestrict_decl member.
536         * trans.h (struct lang_type): Add nonrestricted_type member.
537         * trans-expr.c (gfc_conv_component_ref): Search fields with correct
538         parent type.
539         * trans-types.c (mirror_fields, gfc_nonrestricted_type): New.
540         (gfc_sym_type): Use it.
541
542 2011-02-18  Janus Weil  <janus@gcc.gnu.org>
543
544         PR fortran/47768
545         * resolve.c (resolve_transfer): Reject variables with procedure pointer
546         components.
547
548 2011-02-18  Janus Weil  <janus@gcc.gnu.org>
549
550         PR fortran/47767
551         * gfortran.h (gfc_check_access): Removed prototype.
552         (gfc_check_symbol_access): Added prototype.
553         * module.c (gfc_check_access): Renamed to 'check_access', made static.
554         (gfc_check_symbol_access): New function, basically a shortcut for
555         'check_access'.
556         (write_dt_extensions,write_symbol0,write_generic,write_symtree): Use
557         'gfc_check_symbol_access'.
558         (write_operator,write_module): Renamed 'gfc_check_access'.
559         * resolve.c (resolve_fl_procedure,resolve_fl_derived,
560         resolve_fl_namelist,resolve_symbol,resolve_fntype): Use
561         'gfc_check_symbol_access'.
562
563 2011-02-16  Janus Weil  <janus@gcc.gnu.org>
564
565         PR fortran/47745
566         * class.c (gfc_build_class_symbol): Set 'class_ok' attribute.
567         * decl.c (build_sym,attr_decl1): Move setting of 'class_ok' into
568         'gfc_build_class_symbol'.
569         (gfc_match_decl_type_spec): Reject unlimited polymorphism.
570         * interface.c (matching_typebound_op): Check for 'class_ok' attribute.
571         * match.c (select_type_set_tmp): Move setting of 'class_ok' into
572         'gfc_build_class_symbol'.
573         * primary.c (gfc_variable_attr): Check for 'class_ok' attribute.
574
575 2011-02-15  Steven G. Kargl  <kargl@gcc.gnu.org>
576
577         PR fortran/47633
578         . simplify.c (gfc_simplify_compiler_version): Fix off-by-one issue.
579
580 2011-02-14  Janus Weil  <janus@gcc.gnu.org>
581
582         PR fortran/47730
583         * parse.c (gfc_build_block_ns): Commit 'block@' symbol.
584
585 2011-02-14  Janus Weil  <janus@gcc.gnu.org>
586
587         PR fortran/47728
588         * class.c (gfc_build_class_symbol): Give a fatal error on polymorphic
589         arrays.
590         * primary.c (gfc_match_varspec): Avoid ICE for invalid class
591         declaration.
592
593 2011-02-14  Janus Weil  <janus@gcc.gnu.org>
594
595         PR fortran/47349
596         * interface.c (get_expr_storage_size): Handle derived-type components.
597
598 2011-02-13  Tobias Burnus  <burnus@net-b.de>
599
600         PR fortran/47569
601         * interface.c (compare_parameter): Avoid ICE with
602         character components.
603
604 2011-02-12  Janus Weil  <janus@gcc.gnu.org>
605
606         * class.c (gfc_build_class_symbol): Reject polymorphic arrays.
607         * decl.c (build_sym,build_struct,attr_decl1): Use return value of
608         'gfc_build_class_symbol'.
609
610 2011-02-12  Michael Matz  <matz@suse.de>
611             Janus Weil  <janus@gcc.gnu.org>
612             Tobias Burnus  <burnus@net-b.de>
613
614         PR fortran/45586
615         * trans-expr.c (conv_parent_component_references): Avoid unintendent
616         skipping of parent compounds.
617
618 2011-02-11  Tobias Burnus  <burnus@net-b.de>
619
620         PR fortran/47550
621         * resolve.c (resolve_formal_arglist): PURE with VALUE
622         and no INTENT: Add -std= diagnostics.
623
624 2011-02-09  Janus Weil  <janus@gcc.gnu.org>
625
626         PR fortran/47352
627         * resolve.c (resolve_procedure_interface): If interface has a result
628         variable, copy the typespec and set result pointer to self.
629
630 2011-02-09  Janus Weil  <janus@gcc.gnu.org>
631
632         PR fortran/47463
633         * resolve.c (resolve_typebound_subroutine): Remove erroneous line.
634
635 2011-02-09  Janus Weil  <janus@gcc.gnu.org>
636
637         PR fortran/47637
638         * trans-decl.c (init_intent_out_dt): Handle CLASS arguments.
639
640 2011-02-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
641
642         * io.c (match_io_element): Do not set dt if not inquire.
643
644 2011-02-08  Janus Weil  <janus@gcc.gnu.org>
645
646         PR fortran/45290
647         * expr.c (gfc_check_assign_symbol): Reject pointers as pointer
648         initialization target.
649
650 2011-02-07  Janne Blomqvist  <jb@gcc.gnu.org>
651             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
652
653         * gfortran.texi (Thread-safety): texinfo styling fixes.
654         * intrinsic.texi: Likewise.
655
656 2011-02-06  Janne Blomqvist  <jb@gcc.gnu.org>
657
658         * gfortran.texi (Compiler Characteristics): Add reference to
659         thread-safety section.
660
661 2011-02-06  Janne Blomqvist  <jb@gcc.gnu.org>
662
663         * gfortran.texi (Thread-safety): New section.
664         * intrinsic.texi (EXECUTE_COMMAND_LINE): Mention thread-safety.
665         (GETENV): Likewise.
666         (GET_ENVIRONMENT_VARIABLE): Likewise.
667         (SYSTEM): Likewise.
668
669 2011-02-06  Paul Thomas  <pault@gcc.gnu.org>
670
671         PR fortran/47592
672         * trans-stmt.c (gfc_trans_allocate): For deferred character
673         length allocations with SOURCE, store to the values and string
674         length to avoid calculating twice.  Replace gfc_start_block
675         with gfc_init_block to avoid unnecessary contexts and to keep
676         declarations of temporaries where they should be. Tidy up the
677         code a bit.
678
679 2011-02-05  Janne Blomqvist  <jb@gcc.gnu.org>
680
681         PR fortran/42434
682         * intrinsic.texi (SYSTEM_CLOCK): Update documentation.
683
684 2011-02-02  Janus Weil  <janus@gcc.gnu.org>
685             Paul Thomas  <pault@gcc.gnu.org>
686
687         PR fortran/47082
688         * trans-expr.c (gfc_trans_class_init_assign): Add call to
689         gfc_get_derived_type.
690         * module.c (read_cleanup): Do not use unique_symtrees for vtabs
691         or vtypes.
692
693 2011-02-02  Janus Weil  <janus@gcc.gnu.org>
694
695         PR fortran/47572
696         * resolve.c (resolve_fl_variable): Handle polymorphic allocatables.
697
698 2011-02-01  Janus Weil  <janus@gcc.gnu.org>
699
700         PR fortran/47565
701         * trans-expr.c (gfc_conv_structure): Handle constructors for procedure
702         pointer components with allocatable result.
703
704 2011-01-31  Janus Weil  <janus@gcc.gnu.org>
705
706         PR fortran/47455
707         * trans-expr.c (gfc_conv_procedure_call): Handle procedure pointers
708         with pointer or allocatable result.
709
710 2011-01-31  Paul Thomas  <pault@gcc.gnu.org>
711
712         PR fortran/47519
713         * trans-stmt.c (gfc_trans_allocate): Improve handling of
714         deferred character lengths with SOURCE.
715         * iresolve.c (gfc_resolve_repeat): Calculate character
716         length from source length and ncopies.
717         * dump-parse-tree.c (show_code_node): Show MOLD and SOURCE
718         expressions for ALLOCATE.
719
720 2011-01-31  Janus Weil  <janus@gcc.gnu.org>
721
722         PR fortran/47463
723         * resolve.c (resolve_typebound_subroutine): Bug fix for the case of
724         an argument of a typebound assignment being a component.
725
726 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
727
728         * gfortranspec.c (add_arg_libgfortran) [HAVE_LD_STATIC_DYNAMIC] Use
729         LD_STATIC_OPTION, LD_DYNAMIC_OPTION.
730
731 2011-01-31  Tobias Burnus  <burnus@net-b.de>
732
733         PR fortran/47042
734         * resolve.c (resolve_fl_procedure): Reject stmt functions
735         with pointer/allocatable attribute.
736
737 2011-01-31  Tobias Burnus  <burnus@net-b.de>
738
739         PR fortran/47042
740         * interface.c (gfc_procedure_use): Add explicit interface check for
741         pointer/allocatable functions.
742
743 2011-01-30  Paul Thomas  <pault@gcc.gnu.org>
744
745         PR fortran/47523
746         * trans-expr.c (gfc_trans_assignment_1): If the rhs is an op
747         expr and is assigned to a deferred character length scalar,
748         make sure that the function is called before reallocation,
749         so that the length is available. Include procedure pointer
750         and procedure pointer component rhs as well.
751
752         PR fortran/45170
753         PR fortran/35810
754         PR fortran/47350
755         * gfortran.dg/allocatable_function_5.f90: New test not added by
756         mistake on 2011-01-28.
757
758 2011-01-29  Tobias Burnus  <burnus@net-b.de>
759
760         PR fortran/47531
761         * check.c (gfc_check_shape): Support kind argument in SHAPE.
762         * intrinsic.c (add_functions): Ditto.
763         * resolve.c (gfc_resolve_shape): Ditto.
764         * simplify.c (gfc_simplify_shape): Ditto.
765         * intrinsic.h (gfc_check_shape, gfc_resolve_shape,
766         gfc_simplify_shape): Update prototypes.
767         * intrinisc.text (SHAPE): Document kind argument.
768
769 2011-01-28  Tobias Burnus  <burnus@net-b.de>
770
771         PR fortran/47507
772         * resolve.c (resolve_formal_arglist): Allow arguments with VALUE
773         attribute also without INTENT.
774
775 2011-01-28  Tobias Burnus  <burnus@net-b.de>
776
777         * gfortran.texi (Fortran 2003 status): Mention support for
778         nonconstant namelist variables.
779
780 2011-01-28  Paul Thomas  <pault@gcc.gnu.org>
781             Tobias Burnus  <burnus@gcc.gnu.org>
782
783         PR fortran/45170
784         PR fortran/35810
785         PR fortran/47350
786         * interface.c (compare_actual_formal): An allocatable or pointer
787         deferred length actual is only allowed if the formal argument
788         is also deferred length. Clean up whitespace.
789         * trans-expr.c (gfc_conv_procedure_call): Pass string length for
790         deferred character length formal arguments by reference. Do the
791         same for function results.
792         (gfc_trans_pointer_assignment): Do not do runtime check of lhs
793         and rhs character lengths, if deferred length lhs.  In this case
794         set the lhs character length to that of the rhs.
795         (gfc_conv_string_parameter): Remove assert that string length is
796         an integer type.
797         (is_scalar_reallocatable_lhs): New function.
798         (alloc_scalar_allocatable_for_assignment): New function.
799         (gfc_trans_assignment_1): Call above new function. If the rhs is
800         a deferred character length itself, makes ure that the function
801         is called before reallocation, so that the length is available.
802         (gfc_trans_asssignment): Remove error about assignment to
803         deferred length character variables.
804         * gfortran.texi : Update entry about (re)allocation on
805         assignment.
806         * trans-stmt.c (gfc_trans_allocate): Add code to handle deferred
807         length character variables.
808         * module.c (mio_typespec): Transfer deferred characteristic.
809         * trans-types.c (gfc_get_function_type): New code to generate
810         hidden typelist, so that those character lengths that are
811         passed by reference get the right type.
812         * resolve.c (resolve_contained_fntype): Supress error for
813         deferred character length functions.
814         (resolve_function, resolve_fl_procedure) The same.
815         (check_symbols): Remove the error that support for
816         entity with deferred type parameter is not yet implemented.
817         (resolve_fl_derived): The same.
818         match.c (alloc_opt_list): Allow MOLD for deferred length object.
819         * trans-decl.c (gfc_get_symbol_decl): For deferred character
820         length dummies, generate a local variable for string length.
821         (create_function_arglist): Hidden length can be a pointer.
822         (gfc_trans_deferred_vars): For deferred character length
823         results and dummies, assign the string length to the local
824         variable from the hidden argument on entry and the other way
825         round on exit, as appropriate.
826
827 2011-01-27  Tobias Burnus  <burnus@net-b.de>
828
829         PR fortran/47474
830         * trans-decl.c (gfc_generate_function_code): Fix init
831         of allocatable result variable with allocatable components.
832
833 2011-01-27  Tobias Burnus  <burnus@net-b.de>
834
835         PR fortran/47472
836         * options.c (gfc_handle_module_path_options): Save
837         module path without trailing slash as include path.
838
839 2011-01-25  Tobias Burnus  <burnus@net-b.de>
840
841         PR fortran/47448
842         * interface.c (gfc_check_operator_interface): Fix
843         defined-assignment check.
844
845 2011-01-23  Tobias Burnus  <burnus@net-b.de>
846
847         PR fortran/47421
848         * trans-decl.c (gfc_trans_deferred_vars): Do not nullify
849         scalar allocatable dummy arguments.
850
851 2011-01-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
852
853         PR fortran/38536
854         * resolve.c (gfc_iso_c_func_interface):  For C_LOC,
855         check for array sections followed by component references
856         which are illegal.  Also check for coindexed arguments.
857
858 2011-01-22  Tobias Burnus  <burnus@net-b.de>
859
860         PR fortran/47399
861         * primary.c (gfc_match_varspec): Relax gcc_assert to allow for
862         PARAMETER TBP.
863
864 2011-01-21  Tobias Burnus  <burnus@net-b.de>
865
866         PR fortran/47394
867         * error.c (gfc_error_now, gfc_fatal_error, gfc_error_check):
868         Use defined instead of magic number exit status codes.
869         * scanner.c (include_line, gfc_new_file): Ditto.
870
871 2011-01-21  Tobias Burnus  <burnus@net-b.de>
872
873         PR fortran/47377
874         * expr.c (gfc_check_pointer_assign): Reject expr data-targets
875         without pointer attribute.
876
877 2011-01-18  Janus Weil  <janus@gcc.gnu.org>
878
879         PR fortran/47240
880         * resolve.c (expression_rank): Fix rank of procedure poiner components.
881         * trans-expr.c (gfc_conv_procedure_call): Take care of procedure
882         pointer components as actual arguments.
883
884 2011-01-17  Jakub Jelinek  <jakub@redhat.com>
885
886         PR fortran/47331
887         * gfortran.h (struct gfc_omp_saved_state): New type.
888         (gfc_omp_save_and_clear_state, gfc_omp_restore_state): New prototypes.
889         * resolve.c (resolve_global_procedure): Call it around gfc_resolve
890         call.
891         * openmp.c (gfc_omp_save_and_clear_state, gfc_omp_restore_state): New
892         functions.
893
894 2011-01-17  Tobias Burnus  <burnus@net-b.de>
895
896         PR fortran/47327
897         * invoke.texi (Options to request or suppress errors
898         and warnings): Fix cross link.
899
900 2011-01-15  Tobias Burnus  <burnus@net-b.de>
901
902         * gfortran.texi: Update Fortran 2003 Status section.
903
904         PR fortran/47177
905         * invoke.texi: Add missing "-E" to the -dM example.
906
907 2011-01-13  Tobias Burnus  <burnus@net-b.de>
908
909         PR fortran/47268
910         * intrinsic.texi (get_command_argument, get_environment_variable):
911         Mark arguments as optional in the Arguments section.
912
913 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
914             Tobias Burnus  <burnus@net-b.de>
915
916         PR fortran/47260
917         * trans-decl.c (gfc_get_extern_function_decl,
918         build_function_decl): Set TREE_PUBLIC/TREE_EXTERNAL before
919         calling decl_attributes.
920
921 2011-01-13  Tobias Burnus  <burnus@net-b.de>
922             Mikael Morin  <mikael@gcc.gnu.org>
923
924         PR fortran/45848
925         PR fortran/47204
926         * gfortran.h (gfc_code): Move union ext's case_list into
927         the struct block.
928         * dump-parse-tree.c (show_code_node): Adapt by prefixing case_list
929         by "block.".
930         * frontend-passes.c (gfc_code_walker): Ditto.
931         * match.c (gfc_match_goto, gfc_match_call, gfc_match_case,
932         gfc_match_type_is, gfc_match_class_is): Ditto.
933         * resolve.c (resolve_select, resolve_select_type): Ditto.
934         * st.c (gfc_free_statement): Ditto.
935         * trans-stmt.c (gfc_trans_integer_select, gfc_trans_logical_select,
936         gfc_trans_character_select): Ditto.
937         * parse.c (resolve_all_program_units): For error recovery, avoid
938         segfault is proc_name is NULL.
939
940 2011-01-11  Paul Thomas  <pault@gcc.gnu.org>
941
942         PR fortran/47051
943         * trans-array.c (gfc_alloc_allocatable_for_assignment): Change
944         to be standard compliant by testing for shape rather than size
945         before skipping reallocation. Improve comments.
946
947 2011-01-09  Janus Weil  <janus@gcc.gnu.org>
948
949         PR fortran/47224
950         * resolve.c (resolve_actual_arglist): Remove unneeded and buggy piece
951         of code.
952
953 2011-01-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
954
955         PR fortran/38536
956         * resolve.c (is_scalar_expr_ptr):  For a substring reference,
957         use gfc_dep_compare_expr to compare start and end expession.
958         Add FIXME for using gfc_deb_compare_expr elsewhere.
959
960 2011-01-09  Janus Weil  <janus@gcc.gnu.org>
961
962         PR fortran/46313
963         * class.c (get_unique_type_string): Make type name start with upper
964         case letter.
965
966 2011-01-08  Thomas Koenig  <tkoenig@gcc.gnu.org>
967
968         PR fortran/46405
969         * invoke.texi:  Mention -ffree-line-length-none and
970         -ffixed-line-length-none for preprocessing.
971
972 2011-01-08  Paul Thomas  <pault@gcc.gnu.org>
973
974         PR fortran/46896
975         * trans-expr.c (gfc_conv_procedure_call): With a non-copying
976         procedure argument (eg TRANSPOSE) use a temporary if there is
977         any chance of aliasing due to host or use association.
978         (arrayfunc_assign_needs_temporary): Correct logic for function
979         results and do not use a temporary for implicitly PURE
980         variables.  Use a temporary for Cray pointees.
981         * symbol.c (gfc_add_save): Explicit SAVE not compatible with
982         implicit pureness of containing procedure.
983         * decl.c (match_old_style_init, gfc_match_data): Where decl
984         would fail in PURE procedure, set implicit_pure to zero.
985         * gfortran.h : Add implicit_pure to structure symbol_attr and
986         add prototype for function gfc_implicit_pure.
987         * expr.c (gfc_check_pointer_assign, gfc_check_vardef_context):
988         Where decl would fail in PURE procedure, reset implicit_pure.
989         * io.c (match_vtag, gfc_match_open, gfc_match_close,
990         gfc_match_print, gfc_match_inquire, gfc_match_wait): The same.
991         * match.c (gfc_match_critical, gfc_match_stopcode,
992         sync_statement, gfc_match_allocate, gfc_match_deallocate): The
993         same.
994         * parse.c (decode_omp_directive): The same.
995         (parse_contained): If not PURE, set implicit pure attribute.
996         * resolve.c (resolve_formal_arglist, resolve_structure_cons,
997         resolve_function, resolve_ordinary_assign) : The same.
998         (gfc_implicit_pure): New function.
999         * module.c (mio_symbol_attribute): Introduce AB_IMPLICIT_PURE
1000         to ab_attribute enum and use it in this function.
1001
1002 2011-01-08  Thomas Koenig  <tkoenig@gcc.gnu.org>
1003
1004         PR fortran/45777
1005         * symbol.c (gfc_symbols_could_alias):  Strip gfc_ prefix,
1006         make static and move in front of its only caller, to ...
1007         * trans-array.c (symbols_could_alias): ... here.
1008         Pass information about pointer and target status as
1009         arguments.  Allocatable arrays don't alias anything
1010         unless they have the POINTER attribute.
1011         (gfc_could_be_alias):  Keep track of pointer and target
1012         status when following references.  Also check if typespecs
1013         of components match those of other components or symbols.
1014
1015 2011-01-07  Tobias Burnus  <burnus@net-b.de>
1016
1017         PR fortran/41580
1018         * class.c (gfc_build_class_symbol): Mark __vtab as attr.vtab.
1019         * intrinsic.c (add_functions): Use simplify functions for
1020         EXTENDS_TYPE_OF and SAME_TYPE_AS.
1021         * intrinsic.h (gfc_simplify_extends_type_of,
1022         gfc_simplify_same_type_as): New prototypes.
1023         * simplify.c (is_last_ref_vtab, gfc_simplify_extends_type_of,
1024         gfc_simplify_same_type_as): New functions.
1025
1026 2011-01-07  Janus Weil  <janus@gcc.gnu.org>
1027
1028         PR fortran/47189
1029         PR fortran/47194
1030         * gfortran.h (gfc_lval_expr_from_sym): Moved prototype.
1031         * class.c (gfc_class_null_initializer): Initialize _vptr to declared
1032         type.
1033         * expr.c (gfc_lval_expr_from_sym): Moved here from symbol.c.
1034         * resolve.c (resolve_deallocate_expr): _data component will be added
1035         at translation stage.
1036         * symbol.c (gfc_lval_expr_from_sym): Moved to expr.c.
1037         * trans-stmt.c (gfc_trans_deallocate): Reset _vptr to declared type.
1038
1039 2011-01-06  Daniel Franke  <franke.daniel@gmail.com>
1040
1041         PR fortran/33117
1042         PR fortran/46478
1043         * parse.c (parse_interface): Remove check for procedure types.
1044         * interface.c (check_interface0): Verify that procedures are
1045         either all SUBROUTINEs or all FUNCTIONs.
1046
1047 2011-01-05  Janus Weil  <janus@gcc.gnu.org>
1048
1049         PR fortran/47180
1050         * trans-expr.c (gfc_trans_class_assign): Bugfix for r168524 (make sure
1051         'vtab' is initialized).
1052
1053 2011-01-05  Janus Weil  <janus@gcc.gnu.org>
1054
1055         PR fortran/47180
1056         * trans-expr.c (gfc_trans_class_assign): For a polymorphic NULL pointer
1057         assignment, set the _vptr component to the declared type.
1058
1059 2011-01-05  Thomas Koenig  <tkoenig@gcc.gnu.org>
1060
1061         PR fortran/46017
1062         * resolve.c (resolve_allocate_deallocate): Follow references to
1063         check for duplicate occurence of allocation/deallocation objects.
1064
1065 2011-01-05  Janus Weil  <janus@gcc.gnu.org>
1066
1067         PR fortran/47024
1068         * trans-decl.c (gfc_trans_deferred_vars): Initialize the _vpr component
1069         of polymorphic allocatables according to their declared type.
1070
1071 2011-01-04  Janus Weil  <janus@gcc.gnu.org>
1072
1073         PR fortran/46448
1074         * class.c (gfc_find_derived_vtab): Set the module field for the copying
1075         routine to make sure it receives module name mangling.
1076
1077 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
1078
1079         * gfortranspec.c (lang_specific_driver): Update copyright notice
1080         dates.
1081
1082 2011-01-03  Janus Weil  <janus@gcc.gnu.org>
1083
1084         * intrinsic.texi (LEADZ): Fix example.
1085
1086 2011-01-02  Janus Weil  <janus@gcc.gnu.org>
1087
1088         PR fortran/46408
1089         * class.c (gfc_find_derived_vtab): Use EXEC_INIT_ASSIGN for __copy_
1090         routine.
1091
1092 \f
1093 Copyright (C) 2011 Free Software Foundation, Inc.
1094
1095 Copying and distribution of this file, with or without modification,
1096 are permitted in any medium without royalty provided the copyright
1097 notice and this notice are preserved.