OSDN Git Service

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