OSDN Git Service

PR debug/36060
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
1 2008-04-26  George Helffrich <george@gcc.gnu.org>
2
3         PR fortran/35892
4         PR fortran/35154
5         * trans-common.c (create_common):  Add decl to function
6         chain (if inside one) to preserve identifier scope in debug output.
7
8 2008-04-25  Jan Hubicka  <jh@suse.cz>
9
10         * trans-decl.c (trans_function_start): Update.
11
12 2008-04-25  Tobias Burnus  <burnus@net-b.de>
13             Daniel Franke <franke.daniel@gmail.com>
14
15         PR fortran/35156
16         * gfortranspec.c (lang_specific_driver): Deprecate
17         -M option; fix ICE when "-M" is last argument and
18         make "-M<dir>" work.
19         * options.c (gfc_handle_module_path_options): 
20         Use -J instead of -M in error messages.
21         * invoke.texi: Mark -M as depecated.
22
23 2008-04-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
24             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
25
26         PR fortran/35994
27         * trans-instrinsic.c (gfc_conv_intrinsic_minmaxloc): Correctly adjust
28         loop counter offset.
29
30 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
31
32         * trans-expr.c (gfc_conv_structure): Don't set TREE_INVARIANT.
33         * trans-array.c (gfc_build_null_descriptor): Don't set TREE_INVARIANT.
34         (gfc_trans_array_constructor_value): Don't set TREE_INVARIANT.
35         (gfc_build_constant_array_constructor): Don't set TREE_INVARIANT.
36         (gfc_conv_array_initializer): Don't set TREE_INVARIANT.
37         * trans-common.c (get_init_field): Don't set TREE_INVARIANT.
38         (create_common): Don't set TREE_INVARIANT.
39         * trans-stmt.c (gfc_trans_character_select): Don't set TREE_INVARIANT.
40         * trans-decl.c (gfc_generate_function_code): Don't set TREE_INVARIANT.
41
42 2008-04-21  Steve Ellcey  <sje@cup.hp.com>
43
44         * f95-lang.c (gfc_init_decl_processing): use ptr_mode instead of Pmode.
45
46 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
47
48         PR fortran/35019
49         * gfortranspec.c (lookup_option): Properly handle separated arguments
50         in -J option, print missing argument message when necessary.
51
52 2008-04-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
53
54         PR fortran/35882
55         * scanner.c (skip_fixed_comments): Update continue_line when comment is
56         detected. (gfc_next_char_literal): Likewise.
57
58 2008-04-19  Paul Thomas  <pault@gcc.gnu.org>
59
60         PR fortran/35944
61         PR fortran/35946
62         PR fortran/35947
63         * trans_array.c (gfc_trans_array_constructor): Temporarily
64         realign loop, if loop->from is not zero, before creating
65         the temporary array and provide an offset.
66
67         PR fortran/35959
68         * trans-decl.c (gfc_init_default_dt): Add gfc_ prefix to name
69         and allow for NULL body.  Change all references from
70         init_default_dt to gfc_init_default_dt.
71         * trans.h : Add prototype for gfc_init_default_dt.
72         * trans-array.c (gfc_trans_deferred_vars): After nullification
73         call gfc_init_default_dt for derived types with allocatable
74         components.
75
76 2008-04-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
77
78         PR fortran/35892
79         * trans-common.c (create_common): Revert patch causing regression.
80
81 2008-04-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
82
83         PR fortran/35724
84         * iresolve.c (gfc_resolve_eoshift): Check for NULL symtree in test for
85         optional argument attribute.
86         
87 2008-04-16  Paul Thomas  <pault@gcc.gnu.org>
88
89         PR fortran/35932
90         * trans-intrinsic.c (gfc_conv_intrinsic_char): Even though KIND
91         is not used, the argument must be converted.
92
93 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
94
95         PR target/35662
96         * f95-lang.c (gfc_init_builtin_functions): Make sure
97         BUILT_IN_SINCOS{,F,L} types aren't varargs.
98
99 2008-04-15  Paul Thomas  <pault@gcc.gnu.org>
100
101         PR fortran/35864
102         * expr.c (scalarize_intrinsic_call): Reorder identification of
103         array argument so that if one is not found a segfault does not
104         occur.  Return FAILURE if all scalar arguments.
105
106 2008-04-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
107             Tobias Burnus  <burnus@net-b.de>
108
109         PR fortran/35882
110         * options.c (gfc_init_options): Set the default maximum continuation
111         lines to 255 for both free and fixed form source for warnings.
112         (gfc_handle_option): Set -std=f95 fixed form max continuations to 19 and
113         the -std=f95 free form max continuations to 39 for warnings.
114         * scanner.c (gfc_next_char_literal): Adjust the current_line number only
115         if it is less than the current locus.
116
117 2008-04-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
118
119         PR fortran/25829 28655
120         * io.c (io_tag): Add new tags for decimal, encoding, asynchronous,
121         round, sign, and id. (match_open_element): Match new tags.
122         (gfc_resolve_open): Resolve new tags. (gfc_match_open): Enable encoding
123         for DEFAULT only. Update error messages. (match_dt_element): Fix match
124         tag for asynchronous. Update error messages. (gfc_free_inquire): Free
125         new expressions. (match_inquire_element): Match new tags.
126         (gfc_match_inquire): Add constraint for ID and PENDING.
127         (gfc_resolve_inquire): Resolve new tags.
128         * trans-io.c (gfc_trans_inquire): Clean up whitespace and fix setting of
129         mask for ID parameter.
130         * ioparm.def: Fix order of parameters for pending, round, and sign.
131         NOTE: These must line up with the definitions in libgfortran/io/io.h. or
132         things don't work.
133
134 2008-04-06  Paul Thomas  <pault@gcc.gnu.org>
135
136         PR fortran/35780
137         * expr.c (scalarize_intrinsic_call): Identify which argument is
138         an array and use that as the template.
139         (check_init_expr): Remove tests that first argument is an array
140         in the call to scalarize_intrinsic_call.
141
142 2008-04-06  Tobias Schlüter  <tobi@gcc.gnu.org>
143
144         PR fortran/35832
145         * io.c (io_tag): Add field 'value'.  Split 'spec' field in
146         existing io_tags.
147         (match_etag, match_vtag, match_ltag): Split parsing in two steps
148         to give better error messages.
149
150 2008-04-06  Tobias Burnus  <burnus@net-b.de>
151
152         * io.c (check_io_constraints): Add constrains. ID= requires
153         asynchronous= and asynchronous= must be init expression.
154
155 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
156
157         * f95-lang.c: Set LANG_HOOKS_NAME to "GNU Fortran".
158
159 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
160
161         * dump-parse-tree.c: Use fprintf, fputs and fputc instead of
162         gfc_status and gfc_status_char. Remove gfc_ prefix of the gfc_show_*
163         functions and make them static. Add new gfc_dump_parse_tree
164         function.
165         * gfortran.h (gfc_option_t): Rename verbose into dump_parse_tree.
166         (gfc_status, gfc_status_char): Delete prototypes.
167         * error.c (gfc_status, gfc_status_char): Remove functions.
168         * scanner.c (gfc_new_file): Use printf instead of gfc_status.
169         * options.c (gfc_init_options): Rename verbose into dump_parse_tree.
170         (gfc_handle_module_path_options): Use gfc_fatal_error instead of
171         gfc_status and exit.
172         (gfc_handle_option): Rename verbose into dump_parse_tree.
173         * parse.c (gfc_parse_file): Use gfc_dump_parse_tree.
174
175 2008-04-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
176             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
177
178         PR fortran/25829 28655
179         * dump-parse-tree.c (gfc_show_code_node): Show new I/O parameters.
180         * gfortran.h (gfc_statement): Add ST_WAIT enumerator.
181         (gfc_open): Add pointers for decimal, encoding, round, sign,
182         asynchronous. (gfc_inquire): Add pointers for asynchronous, decimal,
183         encoding, pending, round, sign, size, id.
184         (gfc_wait): New typedef struct. (gfc_dt): Add pointers for id, pos,
185         asynchronous, blank, decimal, delim, pad, round, sign.
186         (gfc_exec_op): Add EXEC_WAIT enumerator. (gfc_code): Add pointer for
187         wait. (gfc_free_wait), (gfc_resolve_wait): New function prototypes.
188         * trans-stmt.h (gfc_trans_wait): New function prototype.
189         * trans.c (gfc_trans_code): Add case for EXEC_WAIT.
190         * io.c (io_tag): Add new tags for DECIMAL, ENCODING, ROUND, SIGN,
191         ASYCHRONOUS, ID. (match_open_element): Add matchers for new tags.
192         (gfc_free_open): Free new pointers. (gfc_resolve_open): Resolve new
193         tags. (gfc_resolve_open): Remove comment around check for allowed
194         values and ASYNCHRONOUS, update it.  Likewise for DECIMAL, ENCODING,
195         ROUND, and SIGN. (match_dt_element): Add matching for new tags.
196         (gfc_free_wait): New function. (gfc_resolve_wait): New function.
197         (match_wait_element): New function. (gfc_match_wait): New function.
198         * resolve.c (gfc_resolve_blocks): Add case for EXEC_WAIT.
199         (resolve_code): Add case for EXEC_WAIT. 
200         * st.c (gfc_free_statement): Add case for EXEC_WAIT.
201         * trans-io.c (ioparam_type): Add IOPARM_ptype_wait. (gfc_st_parameter):
202         Add "wait" entry. (iocall): Add IOCALL_WAIT enumerator.
203         (gfc_build_io_library_fndecls): Add function declaration for st_wait.
204         (gfc_trans_open): Add mask bits for new I/O tags.
205         (gfc_trans_inquire): Add mask bits for new I/O tags.
206         (gfc_trans_wait): New translation function.
207         (build_dt): Add mask bits for new I/O tags.
208         * match.c (gfc_match_if) Add matcher for "wait".
209         * match.h (gfc_match_wait): Prototype for new function.
210         * ioparm.def: Add new I/O parameter definitions.
211         * parse.c (decode_statement): Add match for "wait" statement.
212         (next_statement): Add case for ST_WAIT. (gfc_ascii_statement): Same.
213
214 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
215
216         PR fortran/35786
217         * openmp.c (resolve_omp_clauses): Diagnose if a clause symbol
218         isn't a variable.
219
220 2008-04-03  Tom Tromey  <tromey@redhat.com>
221
222         * Make-lang.in (fortran_OBJS): New variable.
223
224 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
225
226         * f95-lang.c (insert_block): Kill.
227
228 2008-04-01  George Helffrich <george@gcc.gnu.org>
229
230         PR fortran/35154, fortran/23057
231         * trans-common.c (create_common):  Add decl to function
232         chain to preserve identifier scope in debug output.
233
234 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
235
236         * gfortran.texi: Include gpl_v3.texi instead of gpl.texi
237         * Make-lang.in (GFORTRAN_TEXI): Include gpl_v3.texi instead of
238         gpl.texi.
239
240 2008-03-30  Paul Thomas  <pault@gcc.gnu.org>
241
242         PR fortran/35740
243         * resolve.c (resolve_function, resolve_call): If the procedure
244         is elemental do not look for noncopying intrinsics.
245
246 2008-03-29  Paul Thomas  <pault@gcc.gnu.org>
247
248         PR fortran/35698
249         * trans-array.c (gfc_array_init_size): Set 'size' zero if
250         negative in one dimension.
251
252         PR fortran/35702
253         * trans-expr.c (gfc_trans_string_copy): Only assign a char
254         directly if the lhs and rhs types are the same.
255
256 2008-03-28  Daniel Franke  <franke.daniel@gmail.com>
257             Paul Richard Thomas <paul.richard.thomas@gmail.com>
258
259         PR fortran/34714
260         * primary.c (match_variable): Improved matching of function 
261         result variables.
262         * resolve.c (resolve_allocate_deallocate): Removed checks if
263         the actual argument for STAT is a variable.
264
265 2008-03-28  Tobias Burnus  <burnus@net-b.de>
266
267         * symbol.c (gfc_get_default_type): Fix error message; option
268         -fallow_leading_underscore should be -fallow-leading-underscore
269
270 2008-03-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
271
272         PR fortran/35724
273         * iresolve.c (gfc_resolve_cshift): Check for NULL symtree in test for
274         optional argument attribute.
275
276 2008-03-27  Tom Tromey  <tromey@redhat.com>
277
278         * Make-lang.in: Revert automatic dependency patch.
279
280 2008-03-25  Tom Tromey  <tromey@redhat.com>
281
282         * Make-lang.in: Remove .o targets.
283         (fortran_OBJS): New variable.
284         (fortran/gfortranspec.o): Move to fortran/.  Reduce to variable
285         setting.
286         (GFORTRAN_D_OBJS): Update.
287         (GFORTRAN_TRANS_DEPS): Remove.
288
289 2008-03-24  Paul Thomas  <pault@gcc.gnu.org>
290
291         PR fortran/34813
292         * resolve.c (resolve_structure_cons): It is an error to assign
293         NULL to anything other than a pointer or allocatable component.
294
295         PR fortran/33295
296         * resolve.c (resolve_symbol): If the symbol is a derived type,
297         resolve the derived type.  If the symbol is a derived type
298         function, ensure that the derived type is visible in the same
299         namespace as the function.
300
301 2008-03-23  Tobias Schlüter  <tobi@gcc.gnu.org>
302
303         * trans.h: Use fold_build in build1_v, build2_v and build3_v
304         macros.
305         * trans-openmp.c (gfc_trans_omp_critical, gfc_trans_omp_single):
306         Don't use build2_v macro.
307
308 2008-03-19  Daniel Franke  <franke.daniel@gmail.com>
309
310         PR fortran/35152
311         * interface.c (gfc_procedure_use): Check for keyworded arguments in
312         procedures without explicit interfaces.
313
314 2008-03-16  Paul Thomas  <pault@gcc.gnu.org>
315
316         PR fortran/35470
317         * resolve.c (check_assumed_size_reference):  Only visit the
318         first reference and look directly at the highest dimension.
319
320 2008-03-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
321
322         PR fortran/35184
323         * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
324         assert.
325
326 2008-03-15  Daniel Franke  <franke.daniel@gmail.com>
327
328         PR fortran/35584
329         * resolve.c (resolve_branch): Less strict and pessimistic warning
330         message.
331
332 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
333
334         * f95-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
335         (gfc_be_parse_file): Call clear_binding_stack from here.
336         (gfc_clear_binding_stack): Rename to clear_binding_stack.
337                 
338 2008-03-09  Paul Thomas  <pault@gcc.gnu.org>
339
340         PR fortran/35474
341         * module.c (mio_symtree_ref): After providing a symbol for a
342         missing equivalence member, resolve and NULL the fixups.
343
344 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
345
346         * invoke.texi (Error and Warning Options): Document
347         -Wline-truncation.
348
349 2008-03-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
350
351         PR fortran/34956
352         * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
353         checking bounds of absent optional arguments.
354
355 2008-03-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
356
357         PR fortran/33197
358         * intrinsic.c (add_functions): Add simplification routines for
359         ERF, DERF, ERFC and DERFC.
360         * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
361         extensions into Fortran 2008 features.
362         * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
363         prototypes.
364         * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
365
366 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
367
368         PR fortran/33197
369         * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
370         ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
371         ERFC_SCALED, LOG_GAMMA and HYPOT.
372         * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
373         gfc_resolve_hypot): New prototypes.
374         * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
375         ACOSH, ASINH and ATANH available.
376         * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
377         * lang.opt: Add -std=f2008 option.
378         * libgfortran.h: Define GFC_STD_F2008.
379         * lang-specs.h: Add .f08 and .F08 file suffixes.
380         * iresolve.c (gfc_resolve_hypot): New function.
381         * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
382         * check.c (gfc_check_hypot): New function.
383         * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
384         * options.c (set_default_std_flags): Allow Fortran 2008 by default.
385         (form_from_filename): Add .f08 suffix.
386         (gfc_handle_option): Handle -std=f2008 option.
387         * simplify.c (gfc_simplify_hypot): New function.
388         * gfortran.texi: Document Fortran 2008 status and file extensions.
389         * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
390         as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
391         ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
392         * invoke.texi: Document the new -std=f2008 option.
393
394 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
395
396         * gfortranspec.c (lang_specific_driver): Update copyright notice
397         dates.
398
399 2008-02-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
400
401         PR fortran/35059
402         * expr.c (find_array_element): Modify traversing the constructor to
403         avoid trying to access NULL memory pointed to by next for the
404         last element. (find_array_section): Exit while loop if cons->next is
405         NULL.
406         * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
407         (gfc_conv_function_call): Same.
408         * decl.c (gfc_match_implicit): Same.
409         * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
410
411 2008-02-28  Daniel Franke  <franke.daniel@gmail.com>
412
413         PR fortran/31463
414         PR fortran/33950
415         PR fortran/34296
416         * lang.opt: Added -Wreturn-type.
417         * options.c (gfc_handle_option): Recognize -Wreturn-type.
418         * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
419         where the result value is not set.
420         (gfc_generate_function_code): Likewise.
421         (generate_local_decl): Emit warnings for funtions whose RESULT
422         variable is not set.
423
424 2008-02-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
425
426         PR fortran/34868
427         * trans-expr.c (gfc_conv_variable): Don't build indirect
428         references when explicit interface is mandated.
429         * resolve.c (resolve_formal_arglist): Set attr.always_explicit
430         on the result symbol as well as the procedure symbol.
431
432 2008-02-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
433
434         PR fortran/33387
435         * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
436         gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
437         gfor_fndecl_math_exponent16.
438         * f95-lang.c (build_builtin_fntypes): Add new function types.
439         (gfc_init_builtin_functions): Add new builtins for nextafter,
440         frexp, ldexp, fabs, scalbn and inf.
441         * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
442         (gfc_resolve_scale): Don't convert type of second argument.
443         (gfc_resolve_set_exponent): Likewise.
444         (gfc_resolve_size): Don't add hidden arguments.
445         * trans-decl.c: Remove gfor_fndecl_math_exponent4,
446         gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
447         gfor_fndecl_math_exponent16.
448         * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
449         for scalbn, fraction, nearest, rrspacing, set_exponent and
450         spacing.
451         (gfc_conv_intrinsic_exponent): Directly call frexp.
452         (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
453         gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
454         gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
455         functions.
456         (gfc_conv_intrinsic_function): Use the new functions above.
457
458 2008-02-26  Tobias Burnus  <burnus@net-b.de>
459
460         PR fortran/35033
461         * interface.c (check_operator_interface): Show better line for error
462         messages; fix constrains for user-defined assignment operators.
463         (gfc_extend_assign): Fix constrains for user-defined assignment
464         operators.
465
466 2008-02-26  Tom Tromey  <tromey@redhat.com>
467
468         * trans-io.c (set_error_locus): Remove old location code.
469         * trans-decl.c (gfc_set_decl_location): Remove old location code.
470         * f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
471         * scanner.c (gfc_gobble_whitespace): Remove old location code.
472         (get_file): Likewise.
473         (preprocessor_line): Likewise.
474         (load_file): Likewise.
475         (gfc_new_file): Likewise.
476         * trans.c (gfc_trans_runtime_check): Remove old location code.
477         (gfc_get_backend_locus): Likewise.
478         (gfc_set_backend_locus): Likewise.
479         * data.c (gfc_assign_data_value): Remove old location code.
480         * error.c (show_locus): Remove old location code.
481         * gfortran.h (gfc_linebuf): Remove old location code.
482         (gfc_linebuf_linenum): Remove old-location variant.
483
484 2008-02-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
485
486         PR fortran/34729
487         * trans-const.c (gfc_build_string_const): Don't call gettext.
488         (gfc_build_localized_string_const): New function.
489         * trans-const.h (gfc_build_localized_string_const): New prototype.
490         * trans.c (gfc_trans_runtime_check): Use
491         gfc_build_localized_string_const instead of gfc_build_string_const.
492         (gfc_call_malloc): Likewise.
493         (gfc_allocate_with_status): Likewise.
494         (gfc_allocate_array_with_status): Likewise.
495         (gfc_deallocate_with_status): Likewise.
496         (gfc_call_realloc): Likewise.
497         * trans-io.c (gfc_trans_io_runtime_check): Likewise.
498
499 2008-02-24  Tobias Schlüter  <tobi@gcc.gnu.org>
500
501         * arith.c: Update copyright years.
502         * arith.h: Likewise.
503         * array.c: Likewise.
504         * bbt.c: Likewise.
505         * check.c: Likewise.
506         * data.c: Likewise.
507         * data.h: Likewise.
508         * decl.c: Likewise.
509         * dependency.c: Likewise.
510         * dependency.h: Likewise.
511         * dump-parse-tree.c: Likewise.
512         * error.c: Likewise.
513         * expr.c: Likewise.
514         * gfc-internals.texi: Likewise.
515         * gfortran.h: Likewise.
516         * gfortran.texi: Likewise.
517         * gfortranspec.c: Likewise.
518         * interface.c: Likewise.
519         * intrinsic.c: Likewise.
520         * intrinsic.h: Likewise.
521         * intrinsic.texi: Likewise.
522         * invoke.texi: Likewise.
523         * io.c: Likewise.
524         * iresolve.c: Likewise.
525         * iso-c-binding.def: Likewise.
526         * iso-fortran-env.def: Likewise.
527         * lang-specs.h: Likewise.
528         * lang.opt: Likewise.
529         * libgfortran.h: Likewise.
530         * match.c: Likewise.
531         * match.h: Likewise.
532         * matchexp.c: Likewise.
533         * misc.c: Likewise.
534         * module.c: Likewise.
535         * openmp.c: Likewise.
536         * options.c: Likewise.
537         * parse.c: Likewise.
538         * parse.h: Likewise.
539         * primary.c: Likewise.
540         * resolve.c: Likewise.
541         * scanner.c: Likewise.
542         * simplify.c: Likewise.
543         * st.c: Likewise.
544         * symbol.c: Likewise.
545         * target-memory.c: Likewise.
546         * target-memory.h: Likewise.
547         * trans-array.h: Likewise.
548         * trans-const.h: Likewise.
549         * trans-stmt.h: Likewise.
550         * trans-types.c: Likewise.
551         * trans-types.h: Likewise.
552         * types.def: Likewise.
553
554 2008-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
555
556         PR fortran/35223
557         * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
558         (gfc_simplify_ibset): Remove call to range_check.
559         (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
560         (gfc_simplify_real): Add call gfc_clear_ts to initialize the
561         temporary gfc_typspec variable.
562
563 2008-02-24  Tobias Schlüter  <tobi@gcc.gnu.org>
564
565         * trans-array.c (gfc_conv_descriptor_data_get,
566         gfc_conv_descriptor_data_set_internal,
567         gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
568         gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
569         gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
570         gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
571         gfc_conv_array_transpose, gfc_grow_array,
572         gfc_trans_array_constructor_subarray,
573         gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
574         gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
575         gfc_conv_array_initializer, gfc_trans_array_bounds,
576         gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
577         gfc_get_dataptr_offset, gfc_conv_array_parameter,
578         gfc_trans_dealloc_allocated, get_full_array_size,
579         gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
580         instead of buildN.
581         * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
582         gfc_conv_component_ref, gfc_conv_cst_int_power,
583         gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
584         * trans-common.c (create_common): Likewise.
585         * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
586         Likewise.
587         * trans-const.c (gfc_conv_constant_to_tree): Likewise.
588         * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
589         gfc_trans_integer_select, gfc_trans_character_select,
590         gfc_trans_forall_loop, compute_overall_iter_number,
591         gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
592         gfc_trans_deallocate): Likewise.
593         * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
594         gfc_allocate_with_status, gfc_allocate_array_with_status,
595         gfc_deallocate_with_status): Likewise.
596         * f95-lang.c (gfc_truthvalue_conversion): Likewise.
597         * trans-io.c (set_parameter_const, set_parameter_value,
598         set_parameter_ref, set_string, set_internal_unit, io_result,
599         set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
600         * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
601         gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
602         gfc_generate_function_code): Likewise.
603         * convert.c (convert): Likewise.
604         * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
605         build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
606         gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
607         gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
608         gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
609         gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
610         gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
611         gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
612         gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
613         gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
614         gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
615         gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
616         gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
617         gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
618         gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
619         gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
620         gfc_conv_intrinsic_repeat): Likewise.
621
622 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
623
624         PR target/25477
625         * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
626         * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
627         * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
628         gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
629         * trans-decl.c: Likewise.
630
631 2008-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
632
633         PR fortran/35059
634         * expr.c (find_array_element): Modify traversing the constructor to
635         avoid trying to access NULL memory pointed to by next for the
636         last element. (find_array_section): Exit while loop if cons->next is
637         NULL.
638
639 2008-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
640
641         PR fortran/34907
642         * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
643         structure.
644         (gfc_resolve_aint): Likewise.
645         (gfc_resolve_anint): Likewise.
646         (gfc_resolve_besn): Likewise.
647         (gfc_resolve_cshift): Likewise.
648         (gfc_resolve_ctime): Likewise.
649         (gfc_resolve_eoshift): Likewise.
650         (gfc_resolve_index_func): Likewise.
651         (gfc_resolve_isatty): Likewise.
652         (gfc_resolve_malloc): Likewise.
653         (gfc_resolve_rrspacing): Likewise.
654         (gfc_resolve_scale): Likewise.
655         (gfc_resolve_set_exponent): Likewise.
656         (gfc_resolve_spacing): Likewise.
657         (gfc_resolve_spacing): Likewise.
658         (gfc_resolve_fgetc): Likewise.
659         (gfc_resolve_fputc): Likewise.
660         (gfc_resolve_ftell): Likewise.
661         (gfc_resolve_ttynam): Likewise.
662         (gfc_resolve_alarm_sub): Likewise.
663         (gfc_resolve_mvbits): Likewise.
664         (gfc_resolve_getarg): Likewise.
665         (gfc_resolve_signal_sub): Likewise.
666         (gfc_resolve_exit): Likewise.
667         (gfc_resolve_flush): Likewise.
668         (gfc_resolve_free): Likewise.
669         (gfc_resolve_ctime_sub): Likewise.
670         (gfc_resolve_fgetc_sub): Likewise.
671         (gfc_resolve_fputc_sub): Likewise.
672         (gfc_resolve_fseek_sub): Likewise.
673         (gfc_resolve_ftell_sub): Likewise.
674         (gfc_resolve_ttynam_sub): Likewise.
675
676 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
677
678         * gfc-internals.texi: Fix typos and markup nits.
679         * gfortran.texi: Likewise.
680         * intrinsic.texi: Likewise.
681
682 2008-02-21  Richard Guenther  <rguenther@suse.de>
683
684         * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
685         as unary PAREN_EXPR for real and complex typed expressions.
686         (gfc_conv_unary_op): Fold the built tree.
687
688 2008-02-20  Tobias Burnus  <burnus@net-b.de>
689
690         PR fortran/34997
691         * match.c (gfc_match_name): Improve error message for '$'.
692
693 2008-02-19  Daniel Franke  <franke.daniel@gmail.com>
694
695         PR fortran/35030
696         * expr.c (gfc_check_pointer_assign): Add type and kind information
697         to type-mismatch message.
698         (gfc_check_assign): Unify error messages.
699
700 2008-02-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
701
702         PR fortran/34952
703         * gfortran.texi: Create new section for unimplemented extensions.
704         Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
705         Remove "smaller projects" list. Fix a few typos.
706
707 2008-02-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
708
709         * intrinsic.texi: Rename INDEX node to avoid clashing with
710         index.html on case-insensitive systems.
711
712 2008-02-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
713
714         PR fortran/35150
715         * trans-expr.c (gfc_conv_function_call): Force evaluation of
716         se->expr.
717
718 2008-02-10  Daniel Franke  <franke.daniel@gmail.com>
719
720         PR fortran/35019
721         * lang.opt: Allow '-J<dir>' next to '-J <dir>', 
722         likewise '-I <dir>' and '-I<dir>'.
723
724 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
725
726         PR other/35107
727         * Make-lang.in (f951): Add $(GMPLIBS).
728
729 2008-02-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
730
731         PR fortran/35037
732         * trans-common.c (build_field): Mark fields as volatile when needed.
733
734 2008-02-05  Tobias Burnus  <burnus@net-b.de>
735
736         PR fortran/35093
737         * data.c (gfc_assign_data_value): Only free "size" if
738         it has not already been freed.
739
740 2008-02-05  Paul Thomas  <pault@gcc.gnu.org>
741
742         PR fortran/34945
743         * array.c (match_array_element_spec): Remove check for negative
744         array size.
745         (gfc_resolve_array_spec): Add check for negative size.
746
747 2008-02-05  Paul Thomas  <pault@gcc.gnu.org>
748
749         PR fortran/32315
750         * data.c (gfc_assign_data_value): Add bounds check for array
751         references.
752
753 2008-02-04  Daniel Franke  <franke.daniel@gmail.com>
754
755         * resolve.c (resolve_where): Fix typo.
756         (gfc_resolve_where_code_in_forall): Likewise.
757
758 2008-02-03  Paul Thomas  <pault@gcc.gnu.org>
759
760         PR fortran/32760
761         * resolve.c (resolve_allocate_deallocate): New function.
762         (resolve_code): Call it for allocate and deallocate.
763         * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
764         the checking of the STAT tag and put in above new function.
765         * primary,c (match_variable): Do not fix flavor of host
766         associated symbols yet if the type is not known.
767
768 2008-01-31  Paul Thomas  <pault@gcc.gnu.org>
769
770         PR fortran/34910
771         * expr.c (gfc_check_assign): It is an error to assign
772         to a sibling procedure.
773
774 2008-01-30  Paul Thomas  <pault@gcc.gnu.org>
775
776         PR fortran/34975
777         * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
778         delete_symtree to gfc_delete_symtree.
779         * gfortran.h : Add prototype for gfc_delete_symtree.
780         * module.c (load_generic_interfaces): Transfer symbol to a
781         unique symtree and delete old symtree, instead of renaming.
782         (read_module): The rsym and the found symbol are the same, so
783         the found symtree can be deleted.
784
785         PR fortran/34429
786         * decl.c (match_char_spec): Remove the constraint on deferred
787         matching of functions and free the length expression.
788         delete_symtree to gfc_delete_symtree.
789         (gfc_match_type_spec): Whitespace.
790         (gfc_match_function_decl): Defer characteristic association for
791         all types except BT_UNKNOWN.
792         * parse.c (decode_specification_statement): Only derived type
793         function matching is delayed to the end of specification.
794
795 2008-01-28  Tobias Burnus  <burnus@net-b.de>
796
797         PR libfortran/34980
798         * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
799
800 2008-01-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
801
802         PR fortran/34990
803         * array.c (gfc_check_constructor_type): Revert clearing the expression.
804
805 2008-01-26  Tobias Burnus  <burnus@net-b.de>
806
807         PR fortran/34848
808         * trans-expr.c (gfc_conv_function_call): Don't call
809         gfc_add_interface_mapping if the expression is NULL.
810
811 2008-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
812
813         PR fortran/31610
814         * trans-array.c (gfc_trans_create_temp_array): Remove call to
815         gcc_assert (integer_zerop (loop->from[n])).
816
817 2008-01-25  Daniel Franke  <franke.daniel@gmail.com>
818
819         PR fortran/34661
820         * resolve.c (resolve_where): Added check if user-defined assignment 
821         operator is an elemental subroutine.
822         (gfc_resolve_where_code_in_forall): Likewise.
823
824 2008-01-24  Daniel Franke  <franke.daniel@gmail.com>
825
826         PR fortran/33375
827         PR fortran/34858
828         * gfortran.h: Revert changes from 2008-01-17.
829         * match.c: Likewise.
830         * symbol.c: Likewise.
831         (gfc_undo_symbols): Undo namespace changes related to common blocks.
832
833 2008-01-24  Daniel Franke  <franke.daniel@gmail.com>
834
835         PR fortran/34202
836         * data.c (formalize_structure_cons): Skip formalization on
837         empty structures.
838
839 2008-01-24  Daniel Franke  <franke.daniel@gmail.com>
840
841         * gfortran.texi (OpenMP): Extended existing documentation.
842         (contributors): Added major contributors of 2008 that were
843         not listed yet.
844         (proposed extensions): Removed implemented items.
845
846 2008-01-24  Paul Thomas  <pault@gcc.gnu.org>
847
848         PR fortran/34872
849         * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS  is
850         seen, check for a statement label and, if present, delete it
851         and set the locus to the start of the statement.
852
853 2008-01-22  Paul Thomas  <pault@gcc.gnu.org>
854
855         PR fortran/34875
856         * trans-io.c (gfc_trans_transfer): If the array reference in a
857         read has a vector subscript, use gfc_conv_subref_array_arg to
858         copy back the temporary.
859
860 2008-01-22  Tobias Burnus  <burnus@net-b.de>
861
862         PR fortran/34848
863         * interface.c (compare_actual_formal): Fix adding type
864         to missing_arg_type for absent optional arguments.
865
866 2008-01-22  Tobias Burnus  <burnus@net-b.de>
867
868         PR fortran/34907
869         * parse.c (parse_spec): Change = into ==.
870
871 2008-01-22  Daniel Franke  <franke.daniel@gmail.com>
872
873         PR fortran/34915
874         * expr.c (check_elemental): Fix check for valid data types.
875
876 2008-01-22  Tobias Burnus  <burnus@net-b.de>
877
878         PR fortran/34899
879         * scanner.c (load_line): Support <tab><digit> continuation lines.
880         * invoke.texi (-Wtabs): Document this.
881
882 2008-01-22  Paul Thomas  <pault@gcc.gnu.org>
883
884         PR fortran/34896
885         * module.c (read_module): Set use_rename attribute.
886
887 2007-01-21  Tobias Burnus  <burnus@net-b.de>
888
889         PR fortran/34901
890         * interface.c (compare_parameter): Improved error message
891         for arguments of same type and mismatched kinds.
892
893 2008-01-20  Paul Thomas  <pault@gcc.gnu.org>
894
895         PR fortran/34861
896         * resolve.c (resolve_entries): Do not do an array bounds check
897         if the result symbols are the same.
898
899         PR fortran/34854
900         * module.c (read_module) : Hide the symtree of the previous
901         version of the symbol if this symbol is renamed.
902
903 2008-01-20  Paul Thomas  <pault@gcc.gnu.org>
904
905         PR fortran/34784
906         * array.c (gfc_check_constructor_type): Clear the expression ts
907         so that the checking starts from the deepest level of array
908         constructor.
909         * primary.c (match_varspec): If an unknown type is changed to
910         default character and the attempt to match a substring fails,
911         change it back to unknown.
912
913         PR fortran/34785
914         * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
915         NULL for an array constructor, use the cl.length expression to
916         build it.
917         (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
918         a tree assignment.
919
920 2008-01-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
921
922         PR fortran/34817
923         PR fortran/34838
924         * iresolve.c (gfc_resolve_all):  Remove conversion of mask
925         argument to kind=1 by removing call to resolve_mask_arg().
926         (gfc_resolve_any):  Likewise.
927
928 2008-01-19  Tobias Burnus  <burnus@net-b.de>
929
930         PR fortran/34760
931         * primary.c (match_variable): Handle FL_UNKNOWN without
932         uneducated guessing.
933         (match_variable): Improve error message.
934
935 2008-01-18  Tobias Burnus  <burnus@net-b.de>
936
937         PR fortran/32616
938         * interface.c (get_expr_storage_size): Return storage size
939         for array element designators.
940         (compare_actual_formal): Reject unequal string sizes for
941         assumed-shape dummy arguments. And fix error message for
942         array-sections with vector subscripts.
943
944 2008-01-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
945
946         PR fortran/34556
947         * simplify.c (is_constant_array_expr): New static function that returns
948         true if the given expression is an array and is constant.
949         (gfc_simplify_reshape): Use new function.
950
951 2008-01-17  H.J. Lu  <hongjiu.lu@intel.com>
952
953         PR fortran/33375
954         * symbol.c (free_common_tree): Renamed to ...
955         (gfc_free_common_tree): This.  Remove static.
956         (gfc_free_namespace): Updated.
957
958         * gfortran.h (gfc_free_common_tree): New.
959
960         * match.c (gfc_match_common): Call gfc_free_common_tree () with
961         gfc_current_ns->common_root and set gfc_current_ns->common_root
962         to NULL on syntax error.
963
964 2008-01-18  Richard Sandiford  <rsandifo@nildram.co.uk>
965
966         PR fortran/34686
967         * trans-expr.c (gfc_conv_function_call): Use proper
968         type for returned character pointers.
969
970 2008-01-17  Paul Thomas  <pault@gcc.gnu.org>
971
972         PR fortran/34429
973         PR fortran/34431
974         PR fortran/34471
975         * decl.c : Remove gfc_function_kind_locus and
976         gfc_function_type_locus. Add gfc_matching_function.
977         (match_char_length): If matching a function and the length
978         does not match, return MATCH_YES and try again later.
979         (gfc_match_kind_spec): The same.
980         (match_char_kind): The same.
981         (gfc_match_type_spec): The same for numeric and derived types.
982         (match_prefix): Rename as gfc_match_prefix.
983         (gfc_match_function_decl): Except for function valued character
984         lengths, defer applying kind, type and charlen info until the
985         end of specification block.
986         gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
987         parse.c (decode_specification_statement): New function.
988         (decode_statement): Call it when a function has kind = -1. Set
989         and reset gfc_matching function, as function statement is being
990         matched.
991         (match_deferred_characteristics): Simplify with a single call
992         to gfc_match_prefix. Do appropriate error handling. In any
993         case, make sure that kind = -1 is reset or corrected.
994         (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
995         Throw an error if kind = -1 after last specification statement.
996         parse.h : Prototype for gfc_match_prefix.
997
998 2008-01-16  Tobias Burnus  <burnus@net-b.de>
999
1000         PR fortran/34796
1001         * interface.c (compare_parameter): Allow AS_DEFERRED array
1002         elements and reject attr.pointer array elemenents.
1003         (get_expr_storage_size): Return storage size of elements of
1004         assumed-shape and pointer arrays.
1005
1006 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
1007
1008         * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
1009         for flag_tree_parallelize_loops.
1010
1011 2008-01-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
1012
1013         PR libfortran/34671
1014         * iresolve.c (gfc_resolve_all):  Call resolve_mask_arg.
1015         (gfc_resolve_any):  Likewise.
1016         (gfc_resolve_count):  Likewise.  Don't append kind of
1017         argument to function name.
1018
1019 2008-01-13  Tobias Burnus  <burnus@net-b.de>
1020
1021         PR fortran/34665
1022         * resolve.c (resolve_actual_arglist): For expressions,
1023         also check for assume-sized arrays.
1024         * interface.c (compare_parameter): Move F2003 character checks
1025         here, print error messages here, reject elements of
1026         assumed-shape array as argument to dummy arrays.
1027         (compare_actual_formal): Update for the changes above.
1028
1029 2008-01-13  Tobias Burnus  <burnus@net-b.de>
1030
1031         PR fortran/34763
1032         * decl.c (contained_procedure): Only check directly preceeding state.
1033
1034 2008-01-13  Tobias Burnus  <burnus@net-b.de>
1035
1036         PR fortran/34759
1037         * check.c (gfc_check_shape): Accept array ranges of
1038         assumed-size arrays.
1039
1040 2008-01-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1041
1042         PR fortran/34432
1043         * match.c (gfc_match_name): Don't error if leading character is a '(',
1044         just return MATCH_NO.
1045
1046 2008-01-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1047
1048         PR fortran/34722
1049         * trans-io.c (create_dummy_iostat): Commit the symbol.
1050
1051 2008-01-11  Paul Thomas  <pault@gcc.gnu.org>
1052
1053         PR fortran/34537
1054         * simplify.c (gfc_simplify_transfer): Return NULL if the size
1055         of the element is unavailable and only assign character length
1056         to the result, if 'mold' is constant.
1057
1058 2008-01-10  Paul Thomas  <pault@gcc.gnu.org>
1059
1060         PR fortran/34396
1061         * trans-array.c (gfc_trans_array_ctor_element):  Use gfc_trans_string_copy
1062         to assign strings and perform bounds checks on the string length.
1063         (get_array_ctor_strlen): Remove bounds checking.
1064         (gfc_trans_array_constructor): Initialize string length checking.
1065         * trans-array.h : Add prototype for gfc_trans_string_copy.
1066
1067 2008-01-08  Richard Guenther  <rguenther@suse.de>
1068
1069         PR fortran/34706
1070         PR tree-optimization/34683
1071         * trans-types.c (gfc_get_array_type_bounds): Use an array type
1072         with known size for accesses if that is known.
1073
1074 2008-01-08  Paul Thomas  <pault@gcc.gnu.org>
1075
1076         PR fortran/34476
1077         * expr.c (find_array_element): Check that the array bounds are
1078         constant before using them.  Use lower, as well as upper bound.
1079         (check_restricted): Allow implied index variable.
1080
1081 2008-01-08  Paul Thomas  <pault@gcc.gnu.org>
1082
1083         PR fortran/34681
1084         * trans_array.c (gfc_trans_deferred_array): Do not null the
1085         data pointer on entering scope, nor deallocate it on leaving
1086         scope, if the symbol has the 'save' attribute.
1087
1088         PR fortran/34704
1089         * trans_decl.c (gfc_finish_var_decl): Derived types with
1090         allocatable components and an initializer must be TREE_STATIC.
1091
1092 2008-01-07  Paul Thomas  <pault@gcc.gnu.org>
1093
1094         PR fortran/34672
1095         * module.c (write_generic): Rewrite completely.
1096         (write_module): Change call to write_generic.
1097
1098 2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1099
1100         PR fortran/34659
1101         * scanner.c (load_line): Do not count ' ' as printable when checking for
1102         continuations.
1103
1104 2008-01-06  Paul Thomas  <pault@gcc.gnu.org>
1105
1106         PR fortran/34545
1107         * module.c (load_needed): If the namespace has no proc_name
1108         give it the module symbol.
1109
1110 2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1111
1112         PR fortran/34387
1113         * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
1114         the dummy variable expression, test for NULL, and pass the variable
1115         address to the called function.
1116
1117 2007-01-06  Tobias Burnus  <burnus@net-b.de>
1118
1119         PR fortran/34658
1120         * match.c (gfc_match_common): Remove blank common in
1121         DATA BLOCK warning.
1122         * resolve.c (resolve_common_vars): New function.
1123         (resolve_common_blocks): Move checks to resolve_common_vars
1124         and invoke that function.
1125         (resolve_types): Call resolve_common_vars for blank commons.
1126
1127 2008-01-06  Tobias Burnus  <burnus@net-b.de>
1128
1129         PR fortran/34655
1130         * resolve.c (resolve_equivalence_derived): Reject derived types with
1131         default initialization if equivalenced with COMMON variable.
1132
1133 2008-01-06  Tobias Burnus  <burnus@net-b.de>
1134
1135         PR fortran/34654
1136         * io.c (check_io_constraints): Disallow unformatted I/O for
1137         internal units.
1138
1139 2008-01-06  Tobias Burnus  <burnus@net-b.de>
1140
1141         PR fortran/34660
1142         * resolve.c (resolve_formal_arglist): Reject dummy procedure in
1143         ELEMENTAL functions.
1144
1145 2008-01-06  Tobias Burnus  <burnus@net-b.de>
1146
1147         PR fortran/34662
1148         * interface.c (compare_actual_formal): Reject parameter
1149         actual to intent(out) dummy.
1150
1151 2008-01-04  Tobias Burnus  <burnus@net-b.de>
1152
1153         PR fortran/34557
1154         * primary.c (match_varspec): Gobble whitespace before
1155         checking for '('.