OSDN Git Service

PR fortran/34729
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
1 2008-02-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2
3         PR fortran/34729
4         * trans-const.c (gfc_build_string_const): Don't call gettext.
5         (gfc_build_localized_string_const): New function.
6         * trans-const.h (gfc_build_localized_string_const): New prototype.
7         * trans.c (gfc_trans_runtime_check): Use
8         gfc_build_localized_string_const instead of gfc_build_string_const.
9         (gfc_call_malloc): Likewise.
10         (gfc_allocate_with_status): Likewise.
11         (gfc_allocate_array_with_status): Likewise.
12         (gfc_deallocate_with_status): Likewise.
13         (gfc_call_realloc): Likewise.
14         * trans-io.c (gfc_trans_io_runtime_check): Likewise.
15
16 2008-02-24  Tobias Schlüter  <tobi@gcc.gnu.org>
17
18         * arith.c: Update copyright years.
19         * arith.h: Likewise.
20         * array.c: Likewise.
21         * bbt.c: Likewise.
22         * check.c: Likewise.
23         * data.c: Likewise.
24         * data.h: Likewise.
25         * decl.c: Likewise.
26         * dependency.c: Likewise.
27         * dependency.h: Likewise.
28         * dump-parse-tree.c: Likewise.
29         * error.c: Likewise.
30         * expr.c: Likewise.
31         * gfc-internals.texi: Likewise.
32         * gfortran.h: Likewise.
33         * gfortran.texi: Likewise.
34         * gfortranspec.c: Likewise.
35         * interface.c: Likewise.
36         * intrinsic.c: Likewise.
37         * intrinsic.h: Likewise.
38         * intrinsic.texi: Likewise.
39         * invoke.texi: Likewise.
40         * io.c: Likewise.
41         * iresolve.c: Likewise.
42         * iso-c-binding.def: Likewise.
43         * iso-fortran-env.def: Likewise.
44         * lang-specs.h: Likewise.
45         * lang.opt: Likewise.
46         * libgfortran.h: Likewise.
47         * match.c: Likewise.
48         * match.h: Likewise.
49         * matchexp.c: Likewise.
50         * misc.c: Likewise.
51         * module.c: Likewise.
52         * openmp.c: Likewise.
53         * options.c: Likewise.
54         * parse.c: Likewise.
55         * parse.h: Likewise.
56         * primary.c: Likewise.
57         * resolve.c: Likewise.
58         * scanner.c: Likewise.
59         * simplify.c: Likewise.
60         * st.c: Likewise.
61         * symbol.c: Likewise.
62         * target-memory.c: Likewise.
63         * target-memory.h: Likewise.
64         * trans-array.h: Likewise.
65         * trans-const.h: Likewise.
66         * trans-stmt.h: Likewise.
67         * trans-types.c: Likewise.
68         * trans-types.h: Likewise.
69         * types.def: Likewise.
70
71 2008-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
72
73         PR fortran/35223
74         * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
75         (gfc_simplify_ibset): Remove call to range_check.
76         (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
77         (gfc_simplify_real): Add call gfc_clear_ts to initialize the
78         temporary gfc_typspec variable.
79
80 2008-02-24  Tobias Schlüter  <tobi@gcc.gnu.org>
81
82         * trans-array.c (gfc_conv_descriptor_data_get,
83         gfc_conv_descriptor_data_set_internal,
84         gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
85         gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
86         gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
87         gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
88         gfc_conv_array_transpose, gfc_grow_array,
89         gfc_trans_array_constructor_subarray,
90         gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
91         gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
92         gfc_conv_array_initializer, gfc_trans_array_bounds,
93         gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
94         gfc_get_dataptr_offset, gfc_conv_array_parameter,
95         gfc_trans_dealloc_allocated, get_full_array_size,
96         gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
97         instead of buildN.
98         * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
99         gfc_conv_component_ref, gfc_conv_cst_int_power,
100         gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
101         * trans-common.c (create_common): Likewise.
102         * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
103         Likewise.
104         * trans-const.c (gfc_conv_constant_to_tree): Likewise.
105         * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
106         gfc_trans_integer_select, gfc_trans_character_select,
107         gfc_trans_forall_loop, compute_overall_iter_number,
108         gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
109         gfc_trans_deallocate): Likewise.
110         * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
111         gfc_allocate_with_status, gfc_allocate_array_with_status,
112         gfc_deallocate_with_status): Likewise.
113         * f95-lang.c (gfc_truthvalue_conversion): Likewise.
114         * trans-io.c (set_parameter_const, set_parameter_value,
115         set_parameter_ref, set_string, set_internal_unit, io_result,
116         set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
117         * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
118         gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
119         gfc_generate_function_code): Likewise.
120         * convert.c (convert): Likewise.
121         * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
122         build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
123         gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
124         gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
125         gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
126         gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
127         gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
128         gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
129         gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
130         gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
131         gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
132         gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
133         gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
134         gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
135         gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
136         gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
137         gfc_conv_intrinsic_repeat): Likewise.
138
139 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
140
141         PR target/25477
142         * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
143         * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
144         * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
145         gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
146         * trans-decl.c: Likewise.
147
148 2008-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
149
150         PR fortran/35059
151         * expr.c (find_array_element): Modify traversing the constructor to
152         avoid trying to access NULL memory pointed to by next for the
153         last element. (find_array_section): Exit while loop if cons->next is
154         NULL.
155
156 2008-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
157
158         PR fortran/34907
159         * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
160         structure.
161         (gfc_resolve_aint): Likewise.
162         (gfc_resolve_anint): Likewise.
163         (gfc_resolve_besn): Likewise.
164         (gfc_resolve_cshift): Likewise.
165         (gfc_resolve_ctime): Likewise.
166         (gfc_resolve_eoshift): Likewise.
167         (gfc_resolve_index_func): Likewise.
168         (gfc_resolve_isatty): Likewise.
169         (gfc_resolve_malloc): Likewise.
170         (gfc_resolve_rrspacing): Likewise.
171         (gfc_resolve_scale): Likewise.
172         (gfc_resolve_set_exponent): Likewise.
173         (gfc_resolve_spacing): Likewise.
174         (gfc_resolve_spacing): Likewise.
175         (gfc_resolve_fgetc): Likewise.
176         (gfc_resolve_fputc): Likewise.
177         (gfc_resolve_ftell): Likewise.
178         (gfc_resolve_ttynam): Likewise.
179         (gfc_resolve_alarm_sub): Likewise.
180         (gfc_resolve_mvbits): Likewise.
181         (gfc_resolve_getarg): Likewise.
182         (gfc_resolve_signal_sub): Likewise.
183         (gfc_resolve_exit): Likewise.
184         (gfc_resolve_flush): Likewise.
185         (gfc_resolve_free): Likewise.
186         (gfc_resolve_ctime_sub): Likewise.
187         (gfc_resolve_fgetc_sub): Likewise.
188         (gfc_resolve_fputc_sub): Likewise.
189         (gfc_resolve_fseek_sub): Likewise.
190         (gfc_resolve_ftell_sub): Likewise.
191         (gfc_resolve_ttynam_sub): Likewise.
192
193 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
194
195         * gfc-internals.texi: Fix typos and markup nits.
196         * gfortran.texi: Likewise.
197         * intrinsic.texi: Likewise.
198
199 2008-02-21  Richard Guenther  <rguenther@suse.de>
200
201         * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
202         as unary PAREN_EXPR for real and complex typed expressions.
203         (gfc_conv_unary_op): Fold the built tree.
204
205 2008-02-20  Tobias Burnus  <burnus@net-b.de>
206
207         PR fortran/34997
208         * match.c (gfc_match_name): Improve error message for '$'.
209
210 2008-02-19  Daniel Franke  <franke.daniel@gmail.com>
211
212         PR fortran/35030
213         * expr.c (gfc_check_pointer_assign): Add type and kind information
214         to type-mismatch message.
215         (gfc_check_assign): Unify error messages.
216
217 2008-02-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
218
219         PR fortran/34952
220         * gfortran.texi: Create new section for unimplemented extensions.
221         Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
222         Remove "smaller projects" list. Fix a few typos.
223
224 2008-02-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
225
226         * intrinsic.texi: Rename INDEX node to avoid clashing with
227         index.html on case-insensitive systems.
228
229 2008-02-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
230
231         PR fortran/35150
232         * trans-expr.c (gfc_conv_function_call): Force evaluation of
233         se->expr.
234
235 2008-02-10  Daniel Franke  <franke.daniel@gmail.com>
236
237         PR fortran/35019
238         * lang.opt: Allow '-J<dir>' next to '-J <dir>', 
239         likewise '-I <dir>' and '-I<dir>'.
240
241 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
242
243         PR other/35107
244         * Make-lang.in (f951): Add $(GMPLIBS).
245
246 2008-02-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
247
248         PR fortran/35037
249         * trans-common.c (build_field): Mark fields as volatile when needed.
250
251 2008-02-05  Tobias Burnus  <burnus@net-b.de>
252
253         PR fortran/35093
254         * data.c (gfc_assign_data_value): Only free "size" if
255         it has not already been freed.
256
257 2008-02-05  Paul Thomas  <pault@gcc.gnu.org>
258
259         PR fortran/34945
260         * array.c (match_array_element_spec): Remove check for negative
261         array size.
262         (gfc_resolve_array_spec): Add check for negative size.
263
264 2008-02-05  Paul Thomas  <pault@gcc.gnu.org>
265
266         PR fortran/32315
267         * data.c (gfc_assign_data_value): Add bounds check for array
268         references.
269
270 2008-02-04  Daniel Franke  <franke.daniel@gmail.com>
271
272         * resolve.c (resolve_where): Fix typo.
273         (gfc_resolve_where_code_in_forall): Likewise.
274
275 2008-02-03  Paul Thomas  <pault@gcc.gnu.org>
276
277         PR fortran/32760
278         * resolve.c (resolve_allocate_deallocate): New function.
279         (resolve_code): Call it for allocate and deallocate.
280         * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
281         the checking of the STAT tag and put in above new function.
282         * primary,c (match_variable): Do not fix flavor of host
283         associated symbols yet if the type is not known.
284
285 2008-01-31  Paul Thomas  <pault@gcc.gnu.org>
286
287         PR fortran/34910
288         * expr.c (gfc_check_assign): It is an error to assign
289         to a sibling procedure.
290
291 2008-01-30  Paul Thomas  <pault@gcc.gnu.org>
292
293         PR fortran/34975
294         * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
295         delete_symtree to gfc_delete_symtree.
296         * gfortran.h : Add prototype for gfc_delete_symtree.
297         * module.c (load_generic_interfaces): Transfer symbol to a
298         unique symtree and delete old symtree, instead of renaming.
299         (read_module): The rsym and the found symbol are the same, so
300         the found symtree can be deleted.
301
302         PR fortran/34429
303         * decl.c (match_char_spec): Remove the constraint on deferred
304         matching of functions and free the length expression.
305         delete_symtree to gfc_delete_symtree.
306         (gfc_match_type_spec): Whitespace.
307         (gfc_match_function_decl): Defer characteristic association for
308         all types except BT_UNKNOWN.
309         * parse.c (decode_specification_statement): Only derived type
310         function matching is delayed to the end of specification.
311
312 2008-01-28  Tobias Burnus  <burnus@net-b.de>
313
314         PR libfortran/34980
315         * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
316
317 2008-01-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
318
319         PR fortran/34990
320         * array.c (gfc_check_constructor_type): Revert clearing the expression.
321
322 2008-01-26  Tobias Burnus  <burnus@net-b.de>
323
324         PR fortran/34848
325         * trans-expr.c (gfc_conv_function_call): Don't call
326         gfc_add_interface_mapping if the expression is NULL.
327
328 2008-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
329
330         PR fortran/31610
331         * trans-array.c (gfc_trans_create_temp_array): Remove call to
332         gcc_assert (integer_zerop (loop->from[n])).
333
334 2008-01-25  Daniel Franke  <franke.daniel@gmail.com>
335
336         PR fortran/34661
337         * resolve.c (resolve_where): Added check if user-defined assignment 
338         operator is an elemental subroutine.
339         (gfc_resolve_where_code_in_forall): Likewise.
340
341 2008-01-24  Daniel Franke  <franke.daniel@gmail.com>
342
343         PR fortran/33375
344         PR fortran/34858
345         * gfortran.h: Revert changes from 2008-01-17.
346         * match.c: Likewise.
347         * symbol.c: Likewise.
348         (gfc_undo_symbols): Undo namespace changes related to common blocks.
349
350 2008-01-24  Daniel Franke  <franke.daniel@gmail.com>
351
352         PR fortran/34202
353         * data.c (formalize_structure_cons): Skip formalization on
354         empty structures.
355
356 2008-01-24  Daniel Franke  <franke.daniel@gmail.com>
357
358         * gfortran.texi (OpenMP): Extended existing documentation.
359         (contributors): Added major contributors of 2008 that were
360         not listed yet.
361         (proposed extensions): Removed implemented items.
362
363 2008-01-24  Paul Thomas  <pault@gcc.gnu.org>
364
365         PR fortran/34872
366         * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS  is
367         seen, check for a statement label and, if present, delete it
368         and set the locus to the start of the statement.
369
370 2008-01-22  Paul Thomas  <pault@gcc.gnu.org>
371
372         PR fortran/34875
373         * trans-io.c (gfc_trans_transfer): If the array reference in a
374         read has a vector subscript, use gfc_conv_subref_array_arg to
375         copy back the temporary.
376
377 2008-01-22  Tobias Burnus  <burnus@net-b.de>
378
379         PR fortran/34848
380         * interface.c (compare_actual_formal): Fix adding type
381         to missing_arg_type for absent optional arguments.
382
383 2008-01-22  Tobias Burnus  <burnus@net-b.de>
384
385         PR fortran/34907
386         * parse.c (parse_spec): Change = into ==.
387
388 2008-01-22  Daniel Franke  <franke.daniel@gmail.com>
389
390         PR fortran/34915
391         * expr.c (check_elemental): Fix check for valid data types.
392
393 2008-01-22  Tobias Burnus  <burnus@net-b.de>
394
395         PR fortran/34899
396         * scanner.c (load_line): Support <tab><digit> continuation lines.
397         * invoke.texi (-Wtabs): Document this.
398
399 2008-01-22  Paul Thomas  <pault@gcc.gnu.org>
400
401         PR fortran/34896
402         * module.c (read_module): Set use_rename attribute.
403
404 2007-01-21  Tobias Burnus  <burnus@net-b.de>
405
406         PR fortran/34901
407         * interface.c (compare_parameter): Improved error message
408         for arguments of same type and mismatched kinds.
409
410 2008-01-20  Paul Thomas  <pault@gcc.gnu.org>
411
412         PR fortran/34861
413         * resolve.c (resolve_entries): Do not do an array bounds check
414         if the result symbols are the same.
415
416         PR fortran/34854
417         * module.c (read_module) : Hide the symtree of the previous
418         version of the symbol if this symbol is renamed.
419
420 2008-01-20  Paul Thomas  <pault@gcc.gnu.org>
421
422         PR fortran/34784
423         * array.c (gfc_check_constructor_type): Clear the expression ts
424         so that the checking starts from the deepest level of array
425         constructor.
426         * primary.c (match_varspec): If an unknown type is changed to
427         default character and the attempt to match a substring fails,
428         change it back to unknown.
429
430         PR fortran/34785
431         * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
432         NULL for an array constructor, use the cl.length expression to
433         build it.
434         (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
435         a tree assignment.
436
437 2008-01-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
438
439         PR fortran/34817
440         PR fortran/34838
441         * iresolve.c (gfc_resolve_all):  Remove conversion of mask
442         argument to kind=1 by removing call to resolve_mask_arg().
443         (gfc_resolve_any):  Likewise.
444
445 2008-01-19  Tobias Burnus  <burnus@net-b.de>
446
447         PR fortran/34760
448         * primary.c (match_variable): Handle FL_UNKNOWN without
449         uneducated guessing.
450         (match_variable): Improve error message.
451
452 2008-01-18  Tobias Burnus  <burnus@net-b.de>
453
454         PR fortran/32616
455         * interface.c (get_expr_storage_size): Return storage size
456         for array element designators.
457         (compare_actual_formal): Reject unequal string sizes for
458         assumed-shape dummy arguments. And fix error message for
459         array-sections with vector subscripts.
460
461 2008-01-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
462
463         PR fortran/34556
464         * simplify.c (is_constant_array_expr): New static function that returns
465         true if the given expression is an array and is constant.
466         (gfc_simplify_reshape): Use new function.
467
468 2008-01-17  H.J. Lu  <hongjiu.lu@intel.com>
469
470         PR fortran/33375
471         * symbol.c (free_common_tree): Renamed to ...
472         (gfc_free_common_tree): This.  Remove static.
473         (gfc_free_namespace): Updated.
474
475         * gfortran.h (gfc_free_common_tree): New.
476
477         * match.c (gfc_match_common): Call gfc_free_common_tree () with
478         gfc_current_ns->common_root and set gfc_current_ns->common_root
479         to NULL on syntax error.
480
481 2008-01-18  Richard Sandiford  <rsandifo@nildram.co.uk>
482
483         PR fortran/34686
484         * trans-expr.c (gfc_conv_function_call): Use proper
485         type for returned character pointers.
486
487 2008-01-17  Paul Thomas  <pault@gcc.gnu.org>
488
489         PR fortran/34429
490         PR fortran/34431
491         PR fortran/34471
492         * decl.c : Remove gfc_function_kind_locus and
493         gfc_function_type_locus. Add gfc_matching_function.
494         (match_char_length): If matching a function and the length
495         does not match, return MATCH_YES and try again later.
496         (gfc_match_kind_spec): The same.
497         (match_char_kind): The same.
498         (gfc_match_type_spec): The same for numeric and derived types.
499         (match_prefix): Rename as gfc_match_prefix.
500         (gfc_match_function_decl): Except for function valued character
501         lengths, defer applying kind, type and charlen info until the
502         end of specification block.
503         gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
504         parse.c (decode_specification_statement): New function.
505         (decode_statement): Call it when a function has kind = -1. Set
506         and reset gfc_matching function, as function statement is being
507         matched.
508         (match_deferred_characteristics): Simplify with a single call
509         to gfc_match_prefix. Do appropriate error handling. In any
510         case, make sure that kind = -1 is reset or corrected.
511         (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
512         Throw an error if kind = -1 after last specification statement.
513         parse.h : Prototype for gfc_match_prefix.
514
515 2008-01-16  Tobias Burnus  <burnus@net-b.de>
516
517         PR fortran/34796
518         * interface.c (compare_parameter): Allow AS_DEFERRED array
519         elements and reject attr.pointer array elemenents.
520         (get_expr_storage_size): Return storage size of elements of
521         assumed-shape and pointer arrays.
522
523 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
524
525         * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
526         for flag_tree_parallelize_loops.
527
528 2008-01-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
529
530         PR libfortran/34671
531         * iresolve.c (gfc_resolve_all):  Call resolve_mask_arg.
532         (gfc_resolve_any):  Likewise.
533         (gfc_resolve_count):  Likewise.  Don't append kind of
534         argument to function name.
535
536 2008-01-13  Tobias Burnus  <burnus@net-b.de>
537
538         PR fortran/34665
539         * resolve.c (resolve_actual_arglist): For expressions,
540         also check for assume-sized arrays.
541         * interface.c (compare_parameter): Move F2003 character checks
542         here, print error messages here, reject elements of
543         assumed-shape array as argument to dummy arrays.
544         (compare_actual_formal): Update for the changes above.
545
546 2008-01-13  Tobias Burnus  <burnus@net-b.de>
547
548         PR fortran/34763
549         * decl.c (contained_procedure): Only check directly preceeding state.
550
551 2008-01-13  Tobias Burnus  <burnus@net-b.de>
552
553         PR fortran/34759
554         * check.c (gfc_check_shape): Accept array ranges of
555         assumed-size arrays.
556
557 2008-01-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
558
559         PR fortran/34432
560         * match.c (gfc_match_name): Don't error if leading character is a '(',
561         just return MATCH_NO.
562
563 2008-01-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
564
565         PR fortran/34722
566         * trans-io.c (create_dummy_iostat): Commit the symbol.
567
568 2008-01-11  Paul Thomas  <pault@gcc.gnu.org>
569
570         PR fortran/34537
571         * simplify.c (gfc_simplify_transfer): Return NULL if the size
572         of the element is unavailable and only assign character length
573         to the result, if 'mold' is constant.
574
575 2008-01-10  Paul Thomas  <pault@gcc.gnu.org>
576
577         PR fortran/34396
578         * trans-array.c (gfc_trans_array_ctor_element):  Use gfc_trans_string_copy
579         to assign strings and perform bounds checks on the string length.
580         (get_array_ctor_strlen): Remove bounds checking.
581         (gfc_trans_array_constructor): Initialize string length checking.
582         * trans-array.h : Add prototype for gfc_trans_string_copy.
583
584 2008-01-08  Richard Guenther  <rguenther@suse.de>
585
586         PR fortran/34706
587         PR tree-optimization/34683
588         * trans-types.c (gfc_get_array_type_bounds): Use an array type
589         with known size for accesses if that is known.
590
591 2008-01-08  Paul Thomas  <pault@gcc.gnu.org>
592
593         PR fortran/34476
594         * expr.c (find_array_element): Check that the array bounds are
595         constant before using them.  Use lower, as well as upper bound.
596         (check_restricted): Allow implied index variable.
597
598 2008-01-08  Paul Thomas  <pault@gcc.gnu.org>
599
600         PR fortran/34681
601         * trans_array.c (gfc_trans_deferred_array): Do not null the
602         data pointer on entering scope, nor deallocate it on leaving
603         scope, if the symbol has the 'save' attribute.
604
605         PR fortran/34704
606         * trans_decl.c (gfc_finish_var_decl): Derived types with
607         allocatable components and an initializer must be TREE_STATIC.
608
609 2008-01-07  Paul Thomas  <pault@gcc.gnu.org>
610
611         PR fortran/34672
612         * module.c (write_generic): Rewrite completely.
613         (write_module): Change call to write_generic.
614
615 2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
616
617         PR fortran/34659
618         * scanner.c (load_line): Do not count ' ' as printable when checking for
619         continuations.
620
621 2008-01-06  Paul Thomas  <pault@gcc.gnu.org>
622
623         PR fortran/34545
624         * module.c (load_needed): If the namespace has no proc_name
625         give it the module symbol.
626
627 2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
628
629         PR fortran/34387
630         * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
631         the dummy variable expression, test for NULL, and pass the variable
632         address to the called function.
633
634 2007-01-06  Tobias Burnus  <burnus@net-b.de>
635
636         PR fortran/34658
637         * match.c (gfc_match_common): Remove blank common in
638         DATA BLOCK warning.
639         * resolve.c (resolve_common_vars): New function.
640         (resolve_common_blocks): Move checks to resolve_common_vars
641         and invoke that function.
642         (resolve_types): Call resolve_common_vars for blank commons.
643
644 2008-01-06  Tobias Burnus  <burnus@net-b.de>
645
646         PR fortran/34655
647         * resolve.c (resolve_equivalence_derived): Reject derived types with
648         default initialization if equivalenced with COMMON variable.
649
650 2008-01-06  Tobias Burnus  <burnus@net-b.de>
651
652         PR fortran/34654
653         * io.c (check_io_constraints): Disallow unformatted I/O for
654         internal units.
655
656 2008-01-06  Tobias Burnus  <burnus@net-b.de>
657
658         PR fortran/34660
659         * resolve.c (resolve_formal_arglist): Reject dummy procedure in
660         ELEMENTAL functions.
661
662 2008-01-06  Tobias Burnus  <burnus@net-b.de>
663
664         PR fortran/34662
665         * interface.c (compare_actual_formal): Reject parameter
666         actual to intent(out) dummy.
667
668 2008-01-04  Tobias Burnus  <burnus@net-b.de>
669
670         PR fortran/34557
671         * primary.c (match_varspec): Gobble whitespace before
672         checking for '('.