OSDN Git Service

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