OSDN Git Service

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