* ChangeLog: Forgotten ChangeLog entry for previous commit.
[gcc.git] / gcc / fortran / ChangeLog
1 2006-10-31 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2
3 PR fortran/29067
4 * decl.c (gfc_set_constant_character_len): NULL-terminate the
5 character constant string.
6 * data.c (create_character_intializer): Likewise.
7 * expr.c (gfc_simplify_expr): NULL-terminate the substring
8 character constant.
9 * primary.c (match_hollerith_constant): NULL-terminate the
10 character constant string.
11
12 2006-10-31 Paul Thomas <pault@gcc.gnu.org>
13
14 PR fortran/29387
15 * trans-intrinsic.c (gfc_conv_intrinsic_len): Rearrange to have
16 a specific case for EXPR_VARIABLE and, in default, build an ss
17 to call gfc_conv_expr_descriptor for array expressions..
18
19 PR fortran/29490
20 * trans-expr.c (gfc_set_interface_mapping_bounds): In the case
21 that GFC_TYPE_ARRAY_LBOUND is not available, use descriptor
22 values for it and GFC_TYPE_ARRAY_UBOUND.
23
24 PR fortran/29641
25 * trans-types.c (gfc_get_derived_type): If the derived type
26 namespace has neither a parent nor a proc_name, set NULL for
27 the search namespace.
28
29 2006-10-30 Tobias Burnus <burnus@net-b.de>
30
31 PR fortran/29452
32 * io.c (check_io_constraints): Fix keyword string comparison.
33
34 2006-10-30 Andrew Pinski <pinskia@gmail.com>
35
36 PR fortran/29410
37 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer):
38 Change over to create VIEW_CONVERT_EXPR instead of using an
39 ADDR_EXPR, a cast and then an indirect reference
40
41 2006-10-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
42
43 * trans-intrinsic.c (gfc_conv_intrinsic_loc): Make LOC return a
44 signed integer node.
45
46 2006-10-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
47
48 PR fortran/17741
49 * decl.c (get_proc_name): Bump current namespace refs count.
50
51 2006-10-29 Jakub Jelinek <jakub@redhat.com>
52
53 PR fortran/29629
54 * trans-openmp.c (gfc_trans_omp_array_reduction): Set attr.flavor
55 of init_val_sym and outer_sym to FL_VARIABLE.
56
57 2006-10-29 Kazu Hirata <kazu@codesourcery.com>
58
59 * intrinsic.texi: Fix a typo.
60
61 2006-10-27 Steven G. Kargl <kargl@gcc.gnu.org>
62
63 * gfortran.h: Remove GFC_MPFR_TOO_OLD.
64 * arith.c (arctangent2): Remove function
65 (gfc_check_real_range): Remove subnormal kludge.
66 * arith.h: Remove arctangent2 prototype.
67 * simplify.c: (gfc_simplify_atan2): Remove use of arctangent2.
68 (gfc_simplify_exponent, gfc_simplify_log, gfc_simplify_nearest,
69 gfc_simplify_rrspacing, gfc_simplify_spacing): Remove mpfr kludges.
70
71 2006-10-28 Tobias Burnus <burnus@net-b.de>
72
73 PR fortran/28224
74 * io.c (check_io_constraints): Allow namelists
75 for internal files for Fortran 2003.
76
77 2006-10-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
78
79 PR fortran/27954
80 * decl.c (gfc_free_data_all): New function to free all data structures
81 after errors in DATA statements and declarations.
82 (top_var_list): Use new function.(top_val_list): Use new function.
83 (gfc_match_data_decl): Use new function.
84 * misc.c (gfc_typename): Fixed incorrect function name in error text.
85
86 2006-10-24 Erik Edelmann <eedelman@gcc.gnu.org>
87
88 PR fortran/29393
89 * expr.c (simplify_parameter_variable): Keep rank of original
90 expression.
91
92 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
93
94 * Make-lang.in (f951$(exeext)): Depend on and link with attribs.o.
95 * trans.h (builtin_function): Rename to gfc_builtin_function.
96 Change the signature.
97 * 95-lang.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
98 gfc_builtin_function.
99 (builtin_function): Rename to gfc_builtin_function. Move common
100 code to builtin_function.
101 (gfc_define_builtin): Replace calls to builtin_function with
102 gfc_define_builtin.
103
104 2006-10-22 Francois-Xavier Coudert <coudert@clipper.ens.fr>
105
106 PR fortran/26025
107 * lang.opt: Add -fexternal-blas and -fblas-matmul-limit options.
108 * options.c (gfc_init_options): Initialize new flags.
109 (gfc_handle_option): Handle new flags.
110 * gfortran.h (gfc_option): Add flag_external_blas and
111 blas_matmul_limit flags.
112 * trans-expr.c (gfc_conv_function_call): Use new argument
113 append_args, appending it at the end of the argument list
114 built for a function call.
115 * trans-stmt.c (gfc_trans_call): Use NULL_TREE for the new
116 append_args argument to gfc_trans_call.
117 * trans.h (gfc_conv_function_call): Update prototype.
118 * trans-decl.c (gfc_build_intrinsic_function_decls): Add
119 prototypes for BLAS ?gemm routines.
120 * trans-intrinsic.c (gfc_conv_intrinsic_funcall): Generate the
121 extra arguments given to the library matmul function, and give
122 them to gfc_conv_function_call.
123 * invoke.texi: Add documentation for -fexternal-blas and
124 -fblas-matmul-limit.
125
126 2006-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
127
128 * Make-lang.in (F95_LIBS): Delete.
129 * f951$(exeext): Use $(LIBS) instead of $(F95_LIBS).
130 * config-lang.in (need_gmp): Delete.
131
132 2006-10-19 Brooks Moses <bmoses@stanford.edu>
133
134 * invoke.texi: Fixed "denormal" typo.
135
136 2006-10-19 Paul Thomas <pault@gcc.gnu.org>
137
138 PR fortran/29216
139 PR fortran/29314
140 * gfortran.h : Add EXEC_INIT_ASSIGN.
141 * dump-parse-tree.c (gfc_show_code_node): The same.
142 * trans-openmp.c (gfc_trans_omp_array_reduction): Set new
143 argument for gfc_trans_assignment to false.
144 * trans-stmt.c (gfc_trans_forall_1): The same.
145 * trans-expr.c (gfc_conv_function_call, gfc_trans_assign,
146 gfc_trans_arrayfunc_assign, gfc_trans_assignment): The
147 same. In the latter function, use the new flag to stop
148 the checking of the lhs for deallocation.
149 (gfc_trans_init_assign): New function.
150 * trans-stmt.h : Add prototype for gfc_trans_init_assign.
151 * trans.c (gfc_trans_code): Implement EXEC_INIT_ASSIGN.
152 * trans.h : Add new boolean argument to the prototype of
153 gfc_trans_assignment.
154 * resolve.c (resolve_allocate_exp): Replace EXEC_ASSIGN by
155 EXEC_INIT_ASSIGN.
156 (resolve_code): EXEC_INIT_ASSIGN does not need resolution.
157 (apply_default_init): New function.
158 (resolve_symbol): Call it for derived types that become
159 defined but which do not already have an initialization
160 expression..
161 * st.c (gfc_free_statement): Include EXEC_INIT_ASSIGN.
162
163 2006-10-16 Tobias Burnus <burnus@net-b.de>
164
165 * primary.c: Revert 'significand'-to-'significant' comment change.
166 * invoke.texi (Warning Options): Minor cleanup for
167 -Wimplicit-interface.
168
169 2006-10-17 Paul Thomas <pault@gcc.gnu.org>
170
171 PR fortran/20541
172 * trans-array.c (gfc_trans_array_bounds): Test for and set
173 negative stride of a non-constant bound array to zero.
174
175 PR fortran/29392
176 * data.c (create_character_intializer): Copy and simplify
177 the expressions for the start and end of a sub-string
178 reference.
179
180 2006-10-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
181
182 * io.c (gfc_match_close): Ensure that status is terminated by
183 a NULL element.
184
185 2006-10-16 Tobias Burnus <burnus@net-b.de>
186
187 * trans-stmt.c: Fix a typo
188 * invoke.texi: Fix typos
189 * resolve.c: Fix a comment typo
190 * trans-decl.c: Fix a comment typo
191 * primary.c: Fix a comment typo
192
193 2006-10-15 Steven G. Kargl <kargl@gcc.gnu.org>
194
195 PR fortran/29403
196 * io.c (match_io): Check for a default-char-expr for PRINT format.
197
198 2006-10-15 Bernhard Fischer <aldot@gcc.gnu.org>
199
200 PR fortran/24767
201 * lang.opt (Wunused-labels): Remove.
202 * options.c: Remove references to gfc_option.warn_unused_labels.
203 * gfortran.h: Remove variable warn_unused_labels.
204 * resolve.c (warn_unused_fortran_label) : Use warn_unused_label
205 instead of gfc_option.warn_unused_labels.
206 * invoke.texi: Remove documentation of -Wunused-labels.
207
208 2006-10-14 Tobias Burnus <burnus@net-b.de>
209
210 * gfortran.texi: Add link to GFortran apps
211 * intrinsic.texi: Updated documentation of ACCESS and CHMOD
212
213 2006-10-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
214
215 PR fortran/19261
216 * scanner.c (load_line): Add checks for illegal use of '&' and issue
217 warnings. Issue errors with -pedantic.
218
219 2006-10-14 Paul Thomas <pault@gcc.gnu.org>
220
221 PR fortran/29371
222 * trans-expr.c (gfc_trans_pointer_assignment): Add the expression
223 for the assignment of null to the data field to se->pre, rather
224 than block.
225
226 2006-10-14 Kazu Hirata <kazu@codesourcery.com>
227
228 * intrinsic.texi: Fix typos.
229 * trans-array.c: Fix a comment typo.
230
231 2006-10-13 Brooks Moses <bmoses@stanford.edu>
232
233 * intrinsic.texi (STAT): Reverted a format in example code to
234 octal; noted this in accompanying string.
235
236 2006-10-13 Paul Thomas <pault@gcc.gnu.org>
237
238 PR fortran/29373
239 * decl.c (get_proc_name, gfc_match_function_decl): Add
240 attr.implicit_type to conditions that throw error for
241 existing explicit interface and that allow new type-
242 spec to be applied.
243
244 PR fortran/29407
245 * resolve.c (resolve_fl_namelist): Do not check for
246 namelist/procedure conflict, if the symbol corresponds
247 to a good local variable declaration.
248
249 PR fortran/27701
250 * decl.c (get_proc_name): Replace the detection of a declared
251 procedure by the presence of a formal argument list by the
252 attributes of the symbol and the presence of an explicit
253 interface.
254
255 PR fortran/29232
256 * resolve.c (resolve_fl_variable): See if the host association
257 of a derived type is blocked by the presence of another type I
258 object in the current namespace.
259
260 PR fortran/29364
261 * resolve.c (resolve_fl_derived): Check for the presence of
262 the derived type for a derived type component.
263
264 PR fortran/24398
265 * module.c (gfc_use_module): Check that the first words in a
266 module file are 'GFORTRAN module'.
267
268 PR fortran/29422
269 * resolve.c (resolve_transfer): Test functions for suitability
270 for IO, as well as variables.
271
272 PR fortran/29428
273 * trans-expr.c (gfc_trans_scalar_assign): Remove nullify of
274 rhs expression.
275
276 2006-10-13 Francois-Xavier Coudert <coudert@clipper.ens.fr>
277
278 PR fortran/29391
279 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Generate correct
280 code for LBOUND and UBOUND intrinsics.
281
282 2006-10-13 Francois-Xavier Coudert <coudert@clipper.ens.fr>
283
284 PR fortran/21435
285 * io.c (compare_to_allowed_values): New function.
286 (gfc_match_open): Add checks for constant values of specifiers.
287 (gfc_match_close): Add checks for constant values of the STATUS
288 specifier.
289
290 2006-10-12 Brooks Moses <bmoses@stanford.edu>
291
292 * intrinsic.texi (STAT): Fixed a format typo in sample code.
293
294 2006-10-12 Brooks Moses <bmoses@stanford.edu>
295
296 * intrinsic.texi (STAT): Shortened lines in sample code.
297
298 2006-10-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
299
300 * gfortran.h (gfc_show_actual_arglist, gfc_show_array_ref,
301 gfc_show_array_spec, gfc_show_attr, gfc_show_code,
302 gfc_show_components, gfc_show_constructor, gfc_show_equiv,
303 gfc_show_expr, gfc_show_namelist, gfc_show_ref, gfc_show_symbol,
304 gfc_show_typespec): Add prototypes.
305 * dump-parse-tree.c (gfc_show_actual_arglist, gfc_show_array_ref,
306 gfc_show_array_spec, gfc_show_attr, gfc_show_code,
307 gfc_show_components, gfc_show_constructor, gfc_show_equiv,
308 gfc_show_expr, gfc_show_namelist, gfc_show_ref, gfc_show_symbol,
309 gfc_show_typespec): Remove 'static' from declaration.
310
311 2006-10-10 Brooks Moses <bmoses@stanford.edu>
312
313 * invoke.texi, gfortran.texi: Corrected erronous dashes.
314
315 2006-10-10 Brooks Moses <bmoses@stanford.edu>
316
317 * Make-lang.in: Added "fortran.pdf", "gfortran.pdf" target
318 support.
319
320 2006-10-10 Daniel Franke <franke.daniel@gmail.com>
321
322 * intrinsic.texi: added documentation for FSTAT, GETARG,GET_COMMAND,
323 GET_COMMAND_ARGUMENT, GETENV, GET_ENVIRONMENT_VARIABLE, IAND, IARGC,
324 LSTAT and STAT, removed the reference to PR19292 from ACCESS, CHMOD,
325 GMTIME, LSHIFT, LTIME, RSHIFT.
326
327 2006-10-10 Brooks Moses <bmoses@stanford.edu>
328
329 * gfortran.texi (Standards): Update to current status.
330
331 2006-10-09 Brooks Moses <bmoses@stanford.edu>
332
333 * Make-lang.in: Added intrinsic.texi to GFORTRAN_TEXI
334 dependences.
335
336 2006-10-09 Brooks Moses <bmoses@stanford.edu>
337
338 * intrinsic.texi (MOVE_ALLOC): changed "Options" to "Standards".
339
340 2006-10-09 Steven G. Kargl <kargl@gcc.gnu.org>
341
342 * gfortran.h: Define GFC_MPFR_TOO_OLD via mpfr version info.
343 * arith.c (arctangent, gfc_check_real_range): Use it.
344 * simplify.c (gfc_simplify_atan2, gfc_simplify_exponent,
345 gfc_simplify_log, gfc_simplify_nearest): Use it.
346
347 PR fortran/15441
348 PR fortran/29312
349 * iresolve.c (gfc_resolve_rrspacing): Give rrspacing library
350 routine hidden precision argument.
351 (gfc_resolve_spacing): Give spacing library routine hidden
352 precision, emin - 1, and tiny(x) arguments.
353 * simplify.c (gfc_simplify_nearest): Remove explicit subnormalization.
354 (gfc_simplify_rrspacing): Implement formula from Fortran 95 standard.
355 (gfc_simplify_spacing): Implement formula from Fortran 2003 standard.
356 * trans-intrinsic.c (gfc_intrinsic_map_t) Declare rrspacing and
357 spacing via LIBF_FUNCTION
358 (prepare_arg_info, call_builtin_clz, gfc_conv_intrinsic_spacing,
359 gfc_conv_intrinsic_rrspacing): Remove functions.
360 (gfc_conv_intrinsic_function): Remove calls to
361 gfc_conv_intrinsic_spacing and gfc_conv_intrinsic_rrspacing.
362 * f95-lang.c (gfc_init_builtin_functions): Remove __builtin_clz,
363 __builtin_clzl and __builtin_clzll
364
365 2006-10-09 Richard Henderson <rth@redhat.com>
366
367 Revert emutls patch.
368
369 2006-10-09 Francois-Xavier Coudert <coudert@clipper.ens.fr>
370
371 * intrinsic.c (add_sym_0s, add_sym_1s, add_sym_2s, add_sym_3s,
372 add_sym_4s, add_sym_5s, add_functions): Use macro ACTUAL_NO,
373 ACTUAL_YES, NOT_ELEMENTAL and ELEMENTAL instead of constants
374 0 and 1 as second and third arguments to add_sym* functions.
375
376 2006-10-08 Erik Edelmann <edelmann@gcc.gnu.org>
377 Paul Thomas <pault@gcc.gnu.org>
378
379 PR fortran/20541
380 * interface.c (gfc_compare_derived_types): Add comparison of
381 the allocatable field.
382 * intrinsic.c (add_subroutines): Add MOVE_ALLOC.
383 * trans-expr.c (gfc_conv_aliased_arg, gfc_trans_subarray_assign,
384 gfc_trans_subcomponent_assign, gfc_conv_string_parameter,
385 gfc_trans_scalar_assign): Add extra arguments l_is_temp
386 and r_is_var to references to latter function.
387 (gfc_conv_function_call): Add enum for types of argument and
388 an associated variable parm_kind. Deallocate components of
389 INTENT(OUT) and non-variable arrays.
390 (gfc_trans_subcomponent_assign): Add block to assign arrays
391 to allocatable components.
392 (gfc_trans_scalar_assign): Add block to handle assignments of
393 derived types with allocatable components, using the above new
394 arguments to control allocation/deallocation of memory and the
395 copying of allocated arrays.
396 * trans-array.c (gfc_array_allocate): Remove old identification
397 of pointer and replace with that of an allocatable array. Add
398 nullify of structures with allocatable components.
399 (gfc_conv_array_initializer): Treat EXPR_NULL.
400 (gfc_conv_array_parameter): Deallocate allocatable components
401 of non-variable structures.
402 (gfc_trans_dealloc_allocated): Use second argument of library
403 deallocate to inhibit, without error, freeing NULL pointers.
404 (get_full_array_size): New function to return the size of a
405 full array.
406 (gfc_duplicate_allocatable): New function to allocate and copy
407 allocated data.
408 (structure_alloc_comps): New recursive function to deallocate,
409 nullify or copy allocatable components.
410 (gfc_nullify_alloc_comp, gfc_deallocate_alloc_comp,
411 gfc_copy_alloc_comp): New interface functions to call previous.
412 (gfc_trans_deferred_array): Add the code to nullify allocatable
413 components, when entering scope, and to deallocate them on
414 leaving. Do not call gfc_trans_static_array_pointer and return
415 for structures with allocatable components and default
416 initializers.
417 * symbol.c (gfc_set_component_attr): Set allocatable field.
418 (gfc_get_component_attr): Set the allocatable attribute.
419 * intrinsic.h : Prototype for gfc_check_move_alloc.
420 * decl.c (build_struct): Apply TR15581 constraints for
421 allocatable components.
422 (variable_decl): Default initializer is always NULL for
423 allocatable components.
424 (match_attr_spec): Allow, or not, allocatable components,
425 according to the standard in force.
426 * trans-array.h : Prototypes for gfc_nullify_alloc_comp,
427 gfc_deallocate_alloc_comp, gfc_copy_alloc_comp and
428 gfc_duplicate_allocatable.
429 * gfortran.texi : Add mention of TR15581 extensions.
430 * gfortran.h : Add attribute alloc_comp, add
431 gfc_components field allocatable and add the prototype
432 for gfc_expr_to_initialize.
433 * trans-stmt.c (generate_loop_for_temp_to_lhs,
434 generate_loop_for_rhs_to_temp, gfc_trans_where_assign,
435 gfc_trans_where_3): Add extra arguments to calls to
436 gfc_trans_scalar_assign and set appropriately.
437 (gfc_trans_allocate): Nullify allocatable components.
438 (gfc_trans_deallocate): Deallocate to ultimate allocatable
439 components but stop at ultimate pointer components.
440 * module.c (mio_symbol_attribute, mio_symbol_attribute,
441 mio_component): Add module support for allocatable
442 components.
443 * trans-types.c (gfc_get_derived_type): Treat allocatable
444 components.
445 * trans.h : Add two boolean arguments to
446 gfc_trans_scalar_assign.
447 * resolve.c (resolve_structure_cons): Check conformance of
448 constructor element and the component.
449 (resolve_allocate_expr): Add expression to nullify the
450 constructor expression for allocatable components.
451 (resolve_transfer): Inhibit I/O of derived types with
452 allocatable components.
453 (resolve_fl_derived): Skip check of bounds of allocatable
454 components.
455 * trans-decl.c (gfc_get_symbol_decl): Add derived types
456 with allocatable components to deferred variable.
457 (gfc_trans_deferred_vars): Make calls for derived types
458 with allocatable components to gfc_trans_deferred_array.
459 (gfc_generate_function_code): Nullify allocatable
460 component function result on entry.
461 * parse.c (parse_derived): Set symbol attr.allocatable if
462 allocatable components are present.
463 * check.c (gfc_check_allocated): Enforce attr.allocatable
464 for intrinsic arguments.
465 (gfc_check_move_alloc): Check arguments of move_alloc.
466 * primary.c (gfc_variable_attr): Set allocatable attribute.
467 * intrinsic.texi : Add index entry and section for
468 for move_alloc.
469
470 2006-10-08 Paul Thomas <pault@gcc.gnu.org>
471
472 PR fortran/29115
473 * resolve.c (resolve_structure_cons): It is an error if the
474 pointer component elements of a derived type constructor are
475 not pointer or target.
476
477
478 PR fortran/29211
479 * trans-stmt.c (generate_loop_for_temp_to_lhs,
480 generate_loop_for_rhs_to_temp): Provide a string length for
481 the temporary by copying that of the other side of the scalar
482 assignment.
483
484 2006-10-08 Tobias Burnus <burnus@net-b.de>
485
486 PR fortran/28585
487 * intrinsic.c (add_functions): Add new_line Fortran 2003 intrinsic.
488 * intrinsic.h: Add gfc_simplify_new_line and gfc_check_new_line
489 prototypes.
490 * check.c (gfc_check_new_line): New function.
491 * simplify.c (gfc_simplify_new_line): New function.
492 * intrinsic.texi: Document new_line intrinsic.
493
494 2006-10-07 Francois-Xavier Coudert <coudert@clipper.ens.fr>
495
496 PR fortran/16580
497 PR fortran/29288
498 * gcc/fortran/intrinsic.c (add_sym): Define the actual_ok when a
499 gfc_intrinsic_sym structure is filled.
500 (gfc_intrinsic_actual_ok): New function.
501 (add_sym_0s, add_sym_1s, add_sym_2s, add_sym_3s, add_sym_4s,
502 add_sym_5s): Intrinsic subroutines are not allowed as actual
503 arguments, so we remove argument actual_ok.
504 (add_functions): Correct the values for actual_ok of all intrinsics.
505 Add comments for gfc_check_access_func and gfc_resolve_index_func.
506 (add_subroutines): Remove the actual_ok argument, which was never used.
507 * gcc/fortran/intrinsic.h (gfc_intrinsic_actual_ok): New prototype.
508 * gcc/fortran/gfortran.h (gfc_resolve_index_func): New prototype.
509 * gcc/fortran/resolve.c (resolve_actual_arglist): Check whether
510 an intrinsic used as an argument list is allowed there.
511 * gcc/fortran/iresolve.c (gfc_resolve_index_func): New function.
512 (gfc_resolve_len): Change intrinsic function name to agree with
513 libgfortran.
514 * gcc/fortran/trans-decl.c (gfc_get_extern_function_decl): Add
515 new case, because some specific intrinsics take 3 arguments.
516 * gcc/fortran/intrinsic.texi: DIMAG is a GNU extension.
517
518 2006-10-06 Jakub Jelinek <jakub@redhat.com>
519
520 PR fortran/28415
521 * trans-decl.c (gfc_finish_var_decl): With -fno-automatic, don't
522 make artificial variables or pointer to variable automatic array
523 TREE_STATIC.
524
525 * scanner.c (skip_free_comments): Return bool instead of void.
526 (gfc_next_char_literal): Don't return ' ' if & is missing after
527 !$omp or !$. Use skip_{free,fixed}_comments directly instead
528 of gfc_skip_comments.
529
530 2006-10-04 Brooks Moses <bmoses@stanford.edu>
531
532 * gfortran.texi: (Current Status): update and rewrite to reflect
533 actual status more accurately.
534
535 2006-10-04 Brooks Moses <bmoses@stanford.edu>
536
537 * gfortran.texi: Consistently refer to the compiler as "GNU
538 Fortran".
539 * intrinsic.texi: Ditto.
540 * invoke.texi: Ditto.
541
542 2006-10-04 Richard Henderson <rth@redhat.com>
543 Jakub Jelinek <jakub@redhat.com>
544
545 * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
546 and __emutls_register_common.
547 * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
548 * trans-common.c (build_common_decl): Don't check have_tls.
549 * trans-decl.c (gfc_finish_var_decl): Likewise.
550 * types.def (BT_WORD, BT_FN_PTR_PTR): New.
551 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
552
553 2006-10-04 Paul Thomas <pault@gcc.gnu.org>
554
555 PR fortran/29343
556 * resolve.c (resolve_allocate_expr): Exclude derived types from
557 search for dependences between allocated variables and the
558 specification expressions for other allocations in the same
559 statement.
560
561 2006-10-04 Paul Thomas <pault@gcc.gnu.org>
562
563 PR fortran/29098
564 * resolve.c (resolve_structure_cons): Do not return FAILURE if
565 component expression is NULL.
566
567 2006-10-03 Paul Thomas <pault@gcc.gnu.org>
568
569 PR fortran/20779
570 PR fortran/20891
571 * resolve.c (find_sym_in_expr): New function that returns true
572 if a symbol is found in an expression.
573 (resolve_allocate_expr): Check whether the STAT variable is
574 itself allocated in the same statement. Use the call above to
575 check whether any of the allocated arrays are used in array
576 specifications in the same statement.
577
578 2006-10-03 Steven G. Kargl <kargl@gcc.gnu.org>
579
580 * arith.c (gfc_check_real_range): Use correct exponent range for
581 subnormal numbers.
582
583 2006-10-03 Paul Thomas <pault@gcc.gnu.org>
584
585 PR fortran/29284
586 PR fortran/29321
587 PR fortran/29322
588 * trans-expr.c (gfc_conv_function_call): Check the expression
589 and the formal symbol are present when testing the actual
590 argument.
591
592 PR fortran/25091
593 PR fortran/25092
594 * resolve.c (resolve_entries): It is an error if the entries
595 of an array-valued function do not have the same shape.
596
597 2006-10-03 Francois-Xavier Coudert <coudert@clipper.ens.fr>
598
599 PR middle-end/27478
600 * trans-decl.c (gfc_get_fake_result_decl): Mark var as
601 TREE_ADDRESSABLE.
602
603 2006-10-02 Jerry DeLisle <jvdelisle@gcc.gnu.org>
604
605 PR fortran/19262
606 * gfortran.h (gfc_option_t): Add max_continue_fixed and
607 max_continue_free.
608 * options.c (gfc_init_options): Initialize fixed form and free form
609 consecutive continuation line limits.
610 * scanner.c (gfc_scanner_init_1): Initialize continue_line
611 and continue_count. (gfc_next_char_literal): Count the number of
612 continuation lines in the current statement and warn if limit
613 is exceeded.
614
615 2006-10-02 Jerry DeLisle <jvdelisle@gcc.gnu.org>
616
617 PR fortran/19260
618 * scanner.c (gfc_next_char_literal): Add check for missing '&'
619 and warn if in_string, otherwise return ' '.
620
621 2006-10-02 Francois-Xavier Coudert <coudert@clipper.ens.fr>
622
623 PR fortran/29210
624 * primary.c (match_sym_complex_part): Named constants as real or
625 imaginary part of complex a named constant are only allowed in
626 Fortran 2003.
627
628 2006-10-01 Brooks Moses <bmoses@stanford.edu>
629
630 * gfortran.texi: Corrected references to MALLOC intrinsic.
631 * invoke.texi: Minor cleanup and clarification to the Dialect
632 Options section.
633
634 2006-09-30 Brooks Moses <bmoses@stanford.edu>
635
636 * invoke.texi: Add mention of BOZ constants and integer
637 overflow to -fno-range-check.
638 * gfortran.texi: Add mention of -fno-range-check to
639 section on BOZ contants.
640
641 2006-09-30 Bernhard Fischer <aldot@gcc.gnu.org>
642
643 * resolve.c: Fix commentary typo. Fix whitespace.
644
645 2006-09-28 Steven G. Kargl <kargl@gcc.gnu.org>
646
647 fortran/29147
648 * arith.c (gfc_check_integer_range): Disable range checking via
649 -fno-range-check.
650
651 2006-09-28 Steven G. Kargl <kargl@gcc.gnu.org>
652
653 * arith.c: Change conditional test for inclusion of arctangent().
654 (gfc_check_real_range): Change conditional test for use of
655 mpfr_subnormalize.
656 * simplify.c (gfc_simplify_atan2): Fix conditional for use of
657 mpfr_atan2() instead of arctangent().
658 (gfc_simplify_exponent): Fix conditional for use of mpfr_get_exp().
659 (gfc_simplify_log): Fix conditional for use of mpfr_atan2() instead
660 of arctangent().
661 (gfc_simplify_nearest): Fix conditional for use of mpfr_nextafter().
662
663 2006-09-27 Steven G. Kargl <kargl@gcc.gnu.org>
664
665 * arith.c: Conditionally include arctangent2().
666 (gfc_check_real_range): Use mpfr_subnormalize in preference to local
667 hack.
668 * trans-intrinsic.c (gfc_get_intrinsic_lib_fndecl): Append
669 l for long double functions.
670 * simplify.c: Wrap Copyright to new line.
671 (gfc_simplify_atan2): Use mpfr_atan2 in preference to arctangent2().
672 (gfc_simplify_log): Ditto.
673
674
675 PR fortran/28276
676 * simplify.c (gfc_simplify_exponent): Use mpfr_get_exp in
677 preference to broken local hack.
678
679 PR fortran/27021
680 * simplify.c (gfc_simplify_nearest): Use mpfr_nexttoward and
681 mpfr_subnormalize to handle numbers near zero in preference to broken
682 local hack.
683
684 2006-09-26 Jakub Jelinek <jakub@redhat.com>
685
686 PR fortran/29097
687 * scanner.c (include_line): Handle conditional include.
688
689 2006-09-25 Tobias Schluter <tobias.schlueter@physik.uni-muenchen.de>
690
691 PR fortran/21203
692 * error.c (show_loci): No need to risk an ICE to output a
693 slightly nicer error message.
694
695 2006-09-19 Paul Thomas <pault@gcc.gnu.org>
696 Steven Bosscher <steven@gcc.gnu.org>
697
698 PR fortran/29101
699 * trans-stmt.c (gfc_trans_character_select): Store the label
700 from select_string and then clean up any temporaries from the
701 conversion of the select expression, before branching to the
702 selected case.
703
704 2006-09-18 Paul Thomas <pault@gcc.gnu.org>
705
706 PR fortran/28526
707 * primary.c (match_variable): If the compiler is in a module
708 specification block, an interface block or a contains section,
709 reset host_flag to force the changed symbols mechanism.
710
711 PR fortran/29101
712 * trans-stmt.c (gfc_trans_character_select): Add the post block
713 for the expression to the main block, after the call to
714 select_string and the last label.
715
716 2006-09-18 Paul Thomas <pault@gcc.gnu.org>
717
718 PR fortran/29060
719 * iresolve.c (resolve_spread): Build shape for result if the
720 source shape is available and dim and ncopies are constants.
721
722 2006-09-18 Tobias Schl\81üter <tobias.schlueter@physik.uni-muenchen.de>
723
724 PR fortran/28817
725 PR fortran/21918
726 * trans-decl.c (generate_local_decl): Change from 'warning' to
727 'gfc_warning' to have line numbers correctly reported.
728
729 2006-09-15 Paul Thomas <pault@gcc.gnu.org>
730
731 PR fortran/29051
732 * decl.c (match_old_style_init): Set the 'where' field of the
733 gfc_data structure 'newdata'.
734
735 * match.c (match_case_eos): Add a comprehensible error message.
736
737 2006-09-13 Wolfgang Gellerich <gellerich@de.ibm.com>
738
739 * trans-expr.c (gfc_add_interface_mapping): For characters, dereference
740 pointer if necessary and then perform the cast.
741
742 2006-09-11 Steven G. Kargl <kargl@gcc.gnu.org>
743
744 * intrinsic.c: Update Copyright date.
745 * intrinsic.h: Ditto.
746
747 2006-09-11 Paul Thomas <pault@gcc.gnu.org>
748
749 PR fortran/28890
750 * trans-expr.c (gfc_conv_function_call): Obtain the string length
751 of a dummy character(*) function from the symbol if it is not
752 already translated. For a call to a character(*) function, use
753 the passed, hidden string length argument, which is available
754 from the backend_decl of the formal argument.
755 * resolve.c (resolve_function): It is an error if a function call
756 to a character(*) function is other than a dummy procedure or
757 an intrinsic.
758
759 2006-09-10 Paul Thomas <pault@gcc.gnu.org>
760
761 PR fortran/28959
762 * trans-types.c (gfc_get_derived_type): Use the parent namespace of
763 the procedure if the type's own namespace does not have a parent.
764
765 2006-09-10 Paul Thomas <pault@gcc.gnu.org>
766
767 PR fortran/28923
768 * expr.c (find_array_section): Only use the array lower and upper
769 bounds for the start and end of the sections, where the expr is
770 NULL.
771
772 2006-09-10 Paul Thomas <pault@gcc.gnu.org>
773
774 PR fortran/28914
775 * trans-array.c (gfc_trans_array_constructor_value): Create a temporary
776 loop variable to hold the current loop variable in case it is modified
777 by the array constructor.
778
779 2006-09-07 Steven G. Kargl <kargls@comcast.net>
780
781 * gfortran.h (gfc_integer_info): Eliminate max_int.
782 * arith.c (gfc_arith_init_1): Remove initialization of max_int.
783 (gfc_arith_done_1): Remove clearing of max_int.
784 (gfc_check_integer_range): Fix range chekcing of overflow.
785 * simplify.c (gfc_simplify_not): Construct mask that was max_int.
786
787 2006-09-05 Paul Thomas <pault@gcc.gnu.org>
788
789 PR fortran/28908
790 * gfortran.h : Restore the gfc_dt_list structure and reference
791 to it in gfc_namespace.
792 * resolve.c (resolve_fl_derived): Restore the building of the
793 list of derived types for the current namespace. Modify the
794 restored code so that a check is made to see if the symbol is
795 already in the list.
796 (resolve_fntype): Make sure that the specification block
797 version of the derived type is used for a module function that
798 returns that type.
799 * symbol.c (gfc_free_dt_list): Restore.
800 (gfc_free_namespace): Restore call to previous.
801 * trans-types.c (copy_dt_decls_ifequal): Restore.
802 (gfc_get_derived_type): Restore all the paraphenalia for
803 association of derived types, including calls to previous.
804 Modify the restored code such that all derived types are built
805 if their symbols are found in the parent namespace; not just
806 non-module types. Add backend_decls to like derived types in
807 sibling namespaces, as well as that of the derived type.
808
809 2006-08-30 Kazu Hirata <kazu@codesourcery.com>
810
811 * match.c: Fix a comment typo.
812
813 2006-08-30 Paul Thomas <pault@gcc.gnu.org>
814
815 PR fortran/28885
816 * trans-expr.c (gfc_conv_aliased_arg): Ensure that the temp
817 declaration is retained for INTENT(OUT) arguments.
818
819 PR fortran/28873
820 PR fortran/20067
821 * resolve.c (resolve_generic_f): Make error message more
822 comprehensible.
823 (resolve_generic_s): Restructure search for specific procedures
824 to be similar to resolve_generic_f and change to similar error
825 message. Ensure that symbol reference is refreshed, in case
826 the search produces a NULL.
827 (resolve_specific_s): Restructure search, as above and as
828 resolve_specific_f. Ensure that symbol reference is refreshed,
829 in case the search produces a NULL.
830
831 PR fortran/25077
832 PR fortran/25102
833 * interface.c (check_operator_interface): Throw error if the
834 interface assignment tries to change intrinsic type assigments
835 or has less than two arguments. Also, it is an error if an
836 interface operator contains an alternate return.
837
838 PR fortran/24866
839 * parse.c (gfc_fixup_sibling_symbols): Do not modify the symbol
840 if it is a dummy in the contained namespace.
841
842 2006-08-29 Steven G. Kargl <kargls@comcast.net>
843
844 PR fortran/28866
845 * match.c: Wrap copyright.
846 (gfc_match_assignment): Return MATCH_NO for failed lvalue. Remove
847 gotos. Move error handling of FL_PARAMETER to ...
848 * gfc_match_if: Deal with MATCH_NO from above.
849 * primary.c: Wrap copyright.
850 (match_variable): ... here. Improve error messages.
851
852 2006-08-29 Paul Thomas <pault@gcc.gnu.org>
853
854 PR fortran/28788
855 * symbol.c (gfc_use_derived): Never eliminate the symbol,
856 following reassociation of use associated derived types.
857
858 2006-08-26 Steven G. Kargl <kargls@comcast.net>
859
860 * arith.h: Update Copyright dates. Fix whitespace.
861 * arith.c: Update Copyright dates. Fix whitespace. Fix comments.
862 (gfc_arith_done_1): Clean up pedantic_min_int and subnormal.
863
864 2006-08-26 Tobias Burnus <burnus@net-b.de>
865
866 * gfortran.texi: Note variable initialization causes SAVE attribute.
867 * intrinsic.texi: Clarify support for KIND=16 and KIND=10.
868 Mention -std=f2003. Cross reference INQUIRE from ACCESS intrinsic.
869 Add missing ) in ACOS.
870
871 2006-08-26 Daniel Franke <franke.daniel@gmail.com>
872
873 * intrinsic.texi: Update Copyright date. Added documentation
874 for ACOSH, AND, ASINH, ATANH, CHDIR, FGET, FGETC, FPUT, FPUTC,
875 GETCWD, OR and XOR intrinsics, removed inadvertently introduced
876 doc-stubs for EQV and NEQV, corrected some typographical errors.
877
878 2006-08-24 Daniel Franke <franke.daniel@gmail.com>,
879 Brooks Moses <bmoses@stanford.edu>
880
881 * intrinsic.texi: Added doc-stubs for undocumented intrinsics,
882 added a "See Also" section, renamed the "Options" section to
883 "Standard", improved the index, and made numerous minor
884 typo corrections and grammatical fixes.
885
886 2006-08-24 Paul Thomas <pault@gcc.gnu.org>
887
888 PR fortran/28788
889 * symbol.c (shift_types): Shift the derived type references in
890 formal namespaces.
891 (gfc_use_derived): Return if the derived type symbol is already
892 in another namspace. Add searches for the derived type in
893 sibling namespaces.
894
895 PR fortran/28771
896 * decl.c (add_init_expr_to_sym): Restore the original but
897 restricted to parameter arrays to fix a regression.
898
899 2006-08-23 Steven G. Kargl <kargls@comcast.net>
900
901 * gfortran.texi: Fix last commit where a "no" was deleted and
902 a grammatical error was introduced.
903
904 2006-08-23 Steven G. Kargl <kargls@comcast.net>
905
906 * gfortran.texi: Spell check. Add a few contributors to
907 Chapter 9. Expand the description of BOZ constant handling.
908
909 2006-08-20 Janne Blomqvist <jb@gcc.gnu.org>
910
911 PR fortran/25828
912 * gfortran.texi: Mention STREAM I/O among supported F2003
913 features.
914
915 2006-08-20 Paul Thomas <pault@gcc.gnu.org>
916
917 PR fortran/28601
918 PR fortran/28630
919 * gfortran.h : Eliminate gfc_dt_list structure and reference
920 to it in gfc_namespace.
921 * resolve.c (resolve_fl_derived): Remove the building of the
922 list of derived types for the current namespace.
923 * symbol.c (find_renamed_type): New function to find renamed
924 derived types by symbol name rather than symtree name.
925 (gfc_use_derived): Search parent namespace for identical
926 derived type and use it, even if local version is complete,
927 except in interface bodies. Ensure that renamed derived types
928 are found by call to find_renamed_type. Recurse for derived
929 type components.
930 (gfc_free_dt_list): Remove.
931 (gfc_free_namespace): Remove call to previous.
932 * trans-types.c (copy_dt_decls_ifequal): Remove.
933 (gfc_get_derived_type): Remove all the paraphenalia for
934 association of derived types, including calls to previous.
935 * match.c (gfc_match_allocate): Call gfc_use_derived to
936 associate any derived types that are being allocated.
937
938 PR fortran/20886
939 * resolve.c (resolve_actual_arglist): The passing of
940 a generic procedure name as an actual argument is an
941 error.
942
943 PR fortran/28735
944 * resolve.c (resolve_variable): Check for a symtree before
945 resolving references.
946
947 PR fortran/28762
948 * primary.c (match_variable): Return MATCH_NO if the symbol
949 is that of the program.
950
951 PR fortran/28425
952 * trans-expr.c (gfc_trans_subcomponent_assign): Translate
953 derived type component expressions other than another derived
954 type constructor.
955
956 PR fortran/28496
957 * expr.c (find_array_section): Correct errors in
958 the handling of a missing start value for the
959 index triplet in an array reference.
960
961 PR fortran/18111
962 * trans-decl.c (gfc_build_dummy_array_decl): Before resetting
963 reference to backend_decl, set it DECL_ARTIFICIAL.
964 (gfc_get_symbol_decl): Likewise for original dummy decl, when
965 a copy is made of an array.
966 (create_function_arglist): Likewise for the _entry paramter
967 in entry_masters.
968 (build_entry_thunks): Likewise for dummies in entry thunks.
969
970 PR fortran/28600
971 * trans-decl.c (gfc_get_symbol_decl): Ensure that the
972 DECL_CONTEXT of the length of a character dummy is the
973 same as that of the symbol declaration.
974
975 PR fortran/28771
976 * decl.c (add_init_expr_to_sym): Remove setting of charlen for
977 an initializer of an assumed charlen variable.
978
979 PR fortran/28660
980 * trans-decl.c (generate_expr_decls): New function.
981 (generate_dependency_declarations): New function.
982 (generate_local_decl): Call previous if not either a dummy or
983 a declaration in an entry master.
984
985 2006-08-19 Erik Edelmann <eedelman@gcc.gnu.org>
986
987 PR fortran/25217
988 * resolve.c (resolve_fl_variable): Set a default initializer for
989 derived types with INTENT(OUT) even if 'flag' is true.
990 * trans-expr.c (gfc_conv_function_call): Insert code to
991 reinitialize INTENT(OUT) arguments of derived type with default
992 initializers.
993
994 2006-08-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
995
996 PR fortran/25828
997 * gfortran.h: Add new pointer for stream position to st_inquire.
998 Rename gfc_large_io_int_kind to gfc_intio_kind.
999 * trans-types.c (gfc_init_kinds): use gfc_intio_kind.
1000 * io.c: Add new IO tag for file position going in and another for out.
1001 (match_dt_element): Match new tag_spos.
1002 (gfc_resolve_dt): Resolve new tag_spos.
1003 (gfc_free_inquire): Free inquire->strm_pos.
1004 (match_inquire_element): Match new tag_strm_out.
1005 (gfc_resolve_inquire): Resolve new tag_strm_out.
1006 * trans-io.c: Rename IOPARM_type_large_io_int to IOPARM_type_intio.
1007 (gfc_build_st_parameter): Same.
1008 (gfc_build_io_library_fndecls) Same. and add build pointer type pintio.
1009 (gfc_trans_inquire): Translate strm_pos for inquire.
1010 * ioparm.def: Reorder flags to accomodate addition of new inquire
1011 flag for strm_pos_out and add it in.
1012
1013 2006-08-06 Paul Thomas <pault@gcc.gnu.org>
1014
1015 PR fortran/28590
1016 * parse.c (parse_derived): Remove the test for sequence type
1017 components of a sequence type.
1018 * resolve.c (resolve_fl_derived): Put the test here so that
1019 pointer components are tested.
1020
1021 2006-08-05 Steven G. Kargl <kargls@comcast.nt>
1022
1023 PR fortran/28548
1024 * resolve.c(resolve_elemental_actual): Add flags.h to use -pedantic
1025 and exclude conversion functions in conditional. Change gfc_error
1026 to gfc_warning.
1027 (warn_unused_label) Rename to ...
1028 (warn_unused_fortran_label) avoid warn_unused_label in flags.h.
1029
1030 2006-07-30 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1031
1032 * intrinsic.c (add_functions): Add ACCESS, CHMOD, RSHIFT, LSHIFT.
1033 (add_subroutines): Add LTIME, GMTIME and CHMOD.
1034 * intrinsic.h (gfc_check_access_func, gfc_check_chmod,
1035 gfc_check_chmod_sub, gfc_check_ltime_gmtime, gfc_simplify_rshift,
1036 gfc_simplify_lshift, gfc_resolve_access, gfc_resolve_chmod,
1037 gfc_resolve_rshift, gfc_resolve_lshift, gfc_resolve_chmod_sub,
1038 gfc_resolve_gmtime, gfc_resolve_ltime): Add prototypes.
1039 * gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_ACCESS,
1040 GFC_ISYM_CHMOD, GFC_ISYM_LSHIFT, GFC_ISYM_RSHIFT.
1041 * iresolve.c (gfc_resolve_access, gfc_resolve_chmod,
1042 gfc_resolve_rshift, gfc_resolve_lshift, gfc_resolve_chmod_sub,
1043 gfc_resolve_gmtime, gfc_resolve_ltime): New functions.
1044 * check.c (gfc_check_access_func, gfc_check_chmod,
1045 gfc_check_chmod_sub, gfc_check_ltime_gmtime): New functions.
1046 * trans-intrinsic.c (gfc_conv_intrinsic_rlshift): New function.
1047 (gfc_conv_intrinsic_function): Add cases for the new GFC_ISYM_*.
1048
1049 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1050
1051 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
1052
1053 2006-07-26 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1054
1055 * intrinsic.c (add_functions): Add INT2, SHORT, INT8, LONG,
1056 LSTAT, MCLOCK and MCLOCK8 intrinsic functions.
1057 (add_subroutines): Add LSTAT intrinsic subroutine.
1058 * gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_INT2,
1059 GFC_ISYM_INT8, GFC_ISYM_LONG, GFC_ISYM_LSTAT, GFC_ISYM_MCLOCK
1060 and GFC_ISYM_MCLOCK8.
1061 * iresolve.c (gfc_resolve_int2, gfc_resolve_int8,
1062 gfc_resolve_long, gfc_resolve_lstat, gfc_resolve_mclock,
1063 gfc_resolve_mclock8, gfc_resolve_lstat_sub): New functions.
1064 * check.c (gfc_check_intconv): New function.
1065 * trans-intrinsic.c (gfc_conv_intrinsic_function): Add cases for
1066 the added GFC_ISYM_*.
1067 * simplify.c (gfc_simplify_intconv, gfc_simplify_int2,
1068 gfc_simplify_int8, gfc_simplify_long): New functions.
1069 * intrinsic.h (gfc_check_intconv, gfc_simplify_int2,
1070 gfc_simplify_int8, gfc_simplify_long, gfc_resolve_int2,
1071 gfc_resolve_int8, gfc_resolve_long, gfc_resolve_lstat,
1072 gfc_resolve_mclock, gfc_resolve_mclock8, gfc_resolve_lstat_sub):
1073 Add prototypes.
1074
1075 2006-07-24 Erik Edelmann <eedelman@gcc.gnu.org>
1076
1077 PR fortran/28416
1078 * trans-array.c (gfc_conv_array_parameter): Give special treatment for
1079 ALLOCATABLEs if they are themselves dummy variables.
1080
1081 2006-07-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1082
1083 PR fortran/25289
1084 * gfortran.h: Declare gfc_large_io_int_kind.
1085 * trans-types.c (gfc_init_kinds): Set gfc_large_io_int_kind
1086 to size 8 or 4.
1087 * trans-io.c (enum iofield_type): Add large_io_int type.
1088 (gfc_build_st_parameter): Same.
1089 (gfc_build_io_library_fndecls): Same.
1090 * ioparm_def: Use large_io_int to define rec.
1091
1092 2006-07-22 Steven Bosscher <steven@gcc.gnu.org>
1093
1094 PR fortran/28439
1095 * trans-stmt.c (gfc_trans_arithmetic_if): Evaluate the condition once.
1096
1097 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1098
1099 PR fortran/28390
1100 * trans-openmp.c (gfc_trans_omp_do): Look for LASTPRIVATE in
1101 code->exp.omp_clauses rather than in the 3rd function argument.
1102
1103 2006-07-16 Paul Thomas <pault@gcc.gnu.org>
1104
1105 PR fortran/28384
1106 * trans-common.c (translate_common): If common_segment is NULL
1107 emit error that common block does not exist.
1108
1109 PR fortran/20844
1110 * io.c (check_io_constraints): It is an error if an ADVANCE
1111 specifier appears without an explicit format.
1112
1113 PR fortran/28201
1114 * resolve.c (resolve_generic_s): For a use_associated function,
1115 do not search for an alternative symbol in the parent name
1116 space.
1117
1118 PR fortran/20893
1119 * resolve.c (resolve_elemental_actual): New function t combine
1120 all the checks of elemental procedure actual arguments. In
1121 addition, check of array valued optional args(this PR) has
1122 been added.
1123 (resolve_function, resolve_call): Remove parts that treated
1124 elemental procedure actual arguments and call the above.
1125
1126 2006-07-14 Steven G. Kargl <kargls@comcast.net>
1127
1128 * trans-expr.c (gfc_trans_string_copy): Evaluate the string lengths
1129
1130 006-07-13 Paul Thomas <pault@gcc.gnu.org>
1131
1132 PR fortran/28353
1133 * trans-expr.c (gfc_conv_aliased_arg): Missing formal arg means
1134 that intent is INOUT (fixes regression).
1135
1136 PR fortran/25097
1137 * check.c (check_present): The only permitted reference is a
1138 full array reference.
1139
1140 PR fortran/20903
1141 * decl.c (variable_decl): Add error if a derived type is not
1142 from the current namespace if the namespace is an interface
1143 body.
1144
1145 2006-07-12 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1146
1147 PR fortran/28163
1148 * trans-expr.c (gfc_trans_string_copy): Generate inline code
1149 to perform string copying instead of calling a library function.
1150 * trans-decl.c (gfc_build_intrinsic_function_decls): Don't build
1151 decl for copy_string.
1152 * trans.h (gfor_fndecl_copy_string): Remove prototype.
1153
1154 2006-07-11 Feng Wang <fengwang@nudt.edu.cn>
1155
1156 PR fortran/28213
1157 * trans-io.c (transfer_expr): Deal with Hollerith constants used in
1158 I/O list.
1159
1160 2006-07-07 Kazu Hirata <kazu@codesourcery.com>
1161
1162 * intrinsic.texi: Fix typos.
1163
1164 2006-07-07 Paul Thomas <pault@gcc.gnu.org>
1165
1166 PR fortran/28237
1167 PR fortran/23420
1168 * io.c (resolve_tag): Any integer that is not an assigned
1169 variable is an error.
1170
1171 2006-07-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1172
1173 PR fortran/28129
1174 * trans-array.c (gfc_trans_array_bound_check): Add a locus
1175 argument, and use it in the error messages.
1176 (gfc_conv_array_index_offset): Donc perform bounds checking on
1177 the last dimension of assumed-size arrays.
1178
1179 2006-07-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1180
1181 PR fortran/27874
1182 * trans-stmt.c (compute_inner_temp_size): Don't perform bounds
1183 checking when calculating the bounds of scalarization.
1184
1185 2006-07-05 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1186
1187 PR fortran/20892
1188 * interface.c (gfc_match_interface): Don't allow dummy procedures
1189 to have a generic interface.
1190
1191 2006-07-04 Paul Thomas <pault@gcc.gnu.org>
1192
1193 PR fortran/28174
1194 * trans-array.c (gfc_conv_expr_descriptor): When building temp,
1195 ensure that the substring reference uses a new charlen.
1196 * trans-expr.c (gfc_conv_aliased_arg): Add the formal intent to
1197 the argument list, lift the treatment of missing string lengths
1198 from the above and implement the use of the intent.
1199 (gfc_conv_function_call): Add the extra argument to the call to
1200 the above.
1201
1202 PR fortran/28167
1203 * trans-array.c (get_array_ctor_var_strlen): Treat a constant
1204 substring reference.
1205 * array.c (gfc_resolve_character_array_constructor): Remove
1206 static attribute and add the gfc_ prefix, make use of element
1207 charlens for the expression and pick up constant string lengths
1208 for expressions that are not themselves constant.
1209 * gfortran.h : resolve_character_array_constructor prototype
1210 added.
1211 * resolve.c (gfc_resolve_expr): Call resolve_character_array_
1212 constructor again after expanding the constructor, to ensure
1213 that the character length is passed to the expression.
1214
1215 2006-07-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1216 Daniel Franke <franke.daniel@gmail.com>
1217
1218 * intrinsic.c (add_subroutines): Add ITIME and IDATE.
1219 * intrinsic.h (gfc_check_itime_idate,gfc_resolve_idate,
1220 fc_resolve_itime): New protos.
1221 * iresolve.c (gfc_resolve_itime, gfc_resolve_idate): New functions.
1222 * check.c (gfc_check_itime_idate): New function.
1223 * intrinsic.texi: Document the new intrinsics.
1224
1225 2006-07-03 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1226
1227 * intrinsics/date_and_time.c (itime0,idate0,itime_i4,itime_i8,
1228 idate_i4,idate_i8): New functions.
1229
1230
1231 2006-07-03 Asher Langton <langton2@llnl.gov>
1232
1233 * decl.c (match_old_style_init): Add data attribute to symbol.
1234
1235 2006-07-03 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1236
1237 * iresolve.c (gfc_resolve_cpu_time, gfc_resolve_random_number):
1238 Remove ATTRIBUTE_UNUSED for used argument.
1239
1240 2006-07-03 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1241
1242 * intrinsic.texi: Document new intrinsics.
1243
1244 2006-07-01 Tobias Schl\81üter <tobias.schlueter@physik.uni-muenchen.de>
1245
1246 PR fortran/19259
1247 * parse.c (next_free): Error out on line starting with semicolon.
1248 (next_fixed): Fix formatting. Error out on line starting with
1249 semicolon.
1250
1251 2006-06-30 Kazu Hirata <kazu@codesourcery.com>
1252
1253 * check.c: Fix a comment typo.
1254
1255 2006-06-25 Paul Thomas <pault@gcc.gnu.org>
1256
1257 PR fortran/25056
1258 * interface.c (compare_actual_formal): Signal an error if the formal
1259 argument is a pure procedure and the actual is not pure.
1260
1261 PR fortran/27554
1262 * resolve.c (resolve_actual_arglist): If the type of procedure
1263 passed as an actual argument is not already declared, see if it is
1264 an intrinsic.
1265
1266 PR fortran/25073
1267 * resolve.c (resolve_select): Use bits 1 and 2 of a new int to
1268 keep track of the appearance of constant logical case expressions.
1269 Signal an error is either value appears more than once.
1270
1271 PR fortran/20874
1272 * resolve.c (resolve_fl_procedure): Signal an error if an elemental
1273 function is not scalar valued.
1274
1275 PR fortran/20867
1276 * match.c (recursive_stmt_fcn): Perform implicit typing of variables.
1277
1278 PR fortran/22038
1279 * match.c (match_forall_iterator): Mark new variables as
1280 FL_UNKNOWN if the match fails.
1281
1282 PR fortran/28119
1283 * match.c (gfc_match_forall): Remove extraneous call to
1284 gfc_match_eos.
1285
1286 PR fortran/25072
1287 * resolve.c (resolve_code, resolve_function): Rework
1288 forall_flag scheme so that it is set and has a value of
1289 2, when the code->expr (ie. the forall mask) is resolved.
1290 This is used to change "block" to "mask" in the non-PURE
1291 error message.
1292
1293 2006-06-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1294
1295 PR fortran/28081
1296 * resolve.c (resolve_substring): Don't issue out-of-bounds
1297 error messages when the range has zero size.
1298
1299 2006-06-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1300
1301 PR fortran/23862
1302 * lang-specs.h (f95-cpp-input): Pass -ffree-form to f951 unless
1303 -ffixed-form is explicitly specified.
1304
1305 2006-06-24 Paul Thomas <pault@gcc.gnu.org>
1306
1307 PR fortran/28118
1308 * trans-array.c (gfc_conv_expr_descriptor): When building temp,
1309 use the substring reference to calculate the length if the
1310 expression does not have a charlen.
1311
1312 2006-06-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1313
1314 PR fortran/28094
1315 * trans-intrinsic.c (gfc_conv_intrinsic_mod): Support cases where
1316 there is no integer kind equal to the resulting real kind.
1317 * intrinsic.c (add_functions): MODULO is not allowed as an actual
1318 argument.
1319
1320 2006-06-23 Steven G. Kargl <kargls@comcast.net>
1321
1322 PR fortran/27981
1323 * match.c (gfc_match_if): Handle errors in assignment in simple if.
1324
1325 2006-06-22 Asher Langton <langton2@llnl.gov>
1326
1327 PR fortran/24748
1328 * primary.c (gfc_match_rvalue): Don't call match_substring for
1329 implicit non-character types.
1330
1331 2006-06-22 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1332
1333 PR libfortran/26769
1334 * iresolve.c (gfc_resolve_reshape): Call reshape_r4 and
1335 reshape_r8 instead of reshape_4 and reshape_8.
1336 (gfc_resolve_transpose): Likewise for transpose.
1337
1338 2006-06-21 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1339
1340 * trans-expr.c (gfc_conv_missing_dummy, gfc_conv_unary_op,
1341 gfc_conv_cst_int_power, gfc_conv_string_tmp,
1342 gfc_conv_function_call): Replace calls to convert on constant
1343 integer nodes by build_int_cst.
1344 * trans-stmt.c (gfc_trans_do): Likewise.
1345 * trans-io.c (set_internal_unit, transfer_namelist_element):
1346 Likewise.
1347 * trans-decl.c (build_entry_thunks): Likewise.
1348
1349 2006-06-20 Steven G. Kargl <kargls@comcast.net>
1350
1351 * simplify.c (gfc_simplify_rrspacing): Initialize and clear mpfr_t
1352 variable.
1353
1354 2006-06-20 Paul Thomas <pault@gcc.gnu.org>
1355
1356 PR fortran/25049
1357 PR fortran/25050
1358 * check.c (non_init_transformational): New function.
1359 (find_substring_ref): New function to signal use of disallowed
1360 transformational intrinsic in an initialization expression.
1361 (gfc_check_all_any): Call previous if initialization expr.
1362 (gfc_check_count): The same.
1363 (gfc_check_cshift): The same.
1364 (gfc_check_dot_product): The same.
1365 (gfc_check_eoshift): The same.
1366 (gfc_check_minloc_maxloc): The same.
1367 (gfc_check_minval_maxval): The same.
1368 (gfc_check_gfc_check_product_sum): The same.
1369 (gfc_check_pack): The same.
1370 (gfc_check_spread): The same.
1371 (gfc_check_transpose): The same.
1372 (gfc_check_unpack): The same.
1373
1374 PR fortran/18769
1375 *intrinsic.c (add_functions): Add gfc_simplify_transfer.
1376 *intrinsic.h : Add prototype for gfc_simplify_transfer.
1377 *simplify.c (gfc_simplify_transfer) : New function to act as
1378 placeholder for eventual implementation. Emit error for now.
1379
1380 PR fortran/16206
1381 * expr.c (find_array_element): Eliminate condition on length of
1382 offset. Add bounds checking. Rearrange exit. Return try and
1383 put gfc_constructor result as an argument.
1384 (find_array_section): New function.
1385 (find_substring_ref): New function.
1386 (simplify_const_ref): Add calls to previous.
1387 (simplify_parameter_variable): Return on NULL expr.
1388 (gfc_simplify_expr): Only call gfc_expand_constructor for full
1389 arrays.
1390
1391 PR fortran/20876
1392 * match.c (gfc_match_forall): Add missing locus to gfc_code.
1393
1394 2006-06-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1395
1396 PR fortran/26801
1397 * trans-intrinsic.c (gfc_conv_associated): Use pre and post blocks
1398 of the scalarization expression.
1399
1400 2006-06-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1401
1402 PR fortran/19310
1403 PR fortran/19904
1404 * arith.c (gfc_range_check): Return ARITH_OK if -fno-range-check. Add
1405 return of ARITH_NAN, ARITH_UNDERFLOW, and ARITH_OVERFLOW.
1406 (gfc_arith_divide): If -fno-range-check allow mpfr to divide by zero.
1407 * gfortran.h (gfc_option_t): Add new flag.
1408 * invoke.texi: Document new flag.
1409 * lang.opt: Add option -frange-check.
1410 * options.c (gfc_init_options): Initialize new flag.
1411 (gfc_handle_options): Set flag if invoked.
1412 * simplify.c (range_check): Add error messages for
1413 overflow, underflow, and other errors.
1414 * trans-const.c (gfc_conv_mpfr_to_tree): Build NaN and Inf from mpfr
1415 result.
1416
1417 2006-06-17 Karl Berry <karl@gnu.org>
1418
1419 * gfortran.texi (@dircategory): Use "Software development"
1420 instead of "Programming", following the Free Software Directory.
1421
1422 2006-06-16 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1423
1424 PR fortran/27965
1425 * trans-array.c (gfc_conv_ss_startstride): Correct the runtime
1426 conditions for bounds-checking. Check for nonzero stride.
1427 Don't check the last dimension of assumed-size arrays. Fix the
1428 dimension displayed in the error message.
1429
1430 2006-06-15 Thomas Koenig <Thomas.Koenig@online.de>
1431
1432 * trans-array.h (gfc_trans_create_temp_array): Add bool
1433 argument.
1434 * trans-arrray.c (gfc_trans_create_temp_array): Add extra
1435 argument "function" to show if we are translating a function.
1436 If we are translating a function, perform checks whether
1437 the size along any argument is negative. In that case,
1438 allocate size 0.
1439 (gfc_trans_allocate_storage): Add function argument (as
1440 false) to gfc_trans_create_temp_array call.
1441 * trans-expr.c (gfc_conv_function_call): Add function
1442 argument (as true) to gfc_trans_create_temp_array call.
1443 * trans-stmt.c (gfc_conv_elemental_dependencies): Add
1444 function argument (as false) to gfc_trans_create_temp_array
1445 call.
1446 * trans-intrinsic.c: Likewise.
1447
1448 2006-06-10 Paul Thomas <pault@gcc.gnu.org>
1449
1450 PR fortran/24558
1451 PR fortran/20877
1452 PR fortran/25047
1453 * decl.c (get_proc_name): Add new argument to flag that a
1454 module function entry is being treated. If true, correct
1455 error condition, add symtree to module namespace and add
1456 a module procedure.
1457 (gfc_match_function_decl, gfc_match_entry,
1458 gfc_match_subroutine): Use the new argument in calls to
1459 get_proc_name.
1460 * resolve.c (resolve_entries): ENTRY symbol reference to
1461 to master entry namespace if a module function.
1462 * trans-decl.c (gfc_create_module_variable): Return if
1463 the symbol is an entry.
1464 * trans-exp.c (gfc_conv_variable): Check that parent_decl
1465 is not NULL.
1466
1467 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1468
1469 PR fortran/27916
1470 * trans-openmp.c (gfc_omp_clause_default_ctor): New function.
1471 * trans.h (gfc_omp_clause_default_ctor): New prototype.
1472 * f95-lang.c (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Define.
1473
1474 2006-06-08 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1475
1476 PR fortran/27958
1477 * trans-expr.c (gfc_conv_substring): If the substring start is
1478 greater than its end, the length of the substring is zero, and
1479 not negative.
1480 (gfc_trans_string_copy): Don't generate a call to
1481 _gfortran_copy_string when destination length is zero.
1482
1483 2006-06-08 Asher Langton <langton2@llnl.gov>
1484
1485 PR fortran/27786
1486 * trans-array.c (gfc_conv_array_ref): Eliminate bounds checking
1487 for assumed-size Cray pointees.
1488
1489 2006-06-08 Steven G. Kargl <kargls@comcat.net>
1490
1491 * intrinsic.c (add_subroutine): Make make_noreturn() conditional on
1492 the appropriate symbol name.
1493
1494 2006-06-07 Paul Thomas <pault@gcc.gnu.org>
1495
1496 PR fortran/23091
1497 * resolve.c (resolve_fl_variable): Error if an automatic
1498 object has the SAVE attribute.
1499
1500 PR fortran/24168
1501 * expr.c (simplify_intrinsic_op): Transfer the rank and
1502 the locus to the simplified expression.
1503
1504 PR fortran/25090
1505 PR fortran/25058
1506 * gfortran.h : Add int entry_id to gfc_symbol.
1507 * resolve.c : Add static variables current_entry_id and
1508 specification_expr.
1509 (resolve_variable): During code resolution, check if a
1510 reference to a dummy variable in an executable expression
1511 is preceded by its appearance as a parameter in an entry.
1512 Likewise check its specification expressions.
1513 (resolve_code): Update current_entry_id on EXEC_ENTRY.
1514 (resolve_charlen, resolve_fl_variable): Set and reset
1515 specifiaction_expr.
1516 (is_non_constant_shape_array): Do not return on detection
1517 of a variable but continue to resolve all the expressions.
1518 (resolve_codes): set current_entry_id to an out of range
1519 value.
1520
1521 2006-06-06 Mike Stump <mrs@apple.com>
1522
1523 * Make-lang.in: Rename to htmldir to build_htmldir to avoid
1524 installing during build.
1525
1526 2006-06-06 Paul Thomas <pault@gcc.gnu.org>
1527
1528 PR fortran/27897
1529 * match.c (gfc_match_common): Fix code typo. Remove
1530 sym->name, since sym is NULL, and replace with name.
1531
1532 2006-06-05 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1533
1534 PR libfortran/27895
1535 * resolve.c (compute_last_value_for_triplet): New function.
1536 (check_dimension): Correctly handle zero-sized array sections.
1537 Add checking on last element of array sections.
1538
1539 2006-06-05 Steven G. Kargl <kargls@comcast.net>
1540
1541 * data.c (gfc_assign_data_value): Fix comment typo. Remove
1542 a spurious return.
1543
1544 2006-06-05 Paul Thomas <pault@gcc.gnu.org>
1545
1546 PR fortran/14067
1547 * data.c (create_character_intializer): Add warning message
1548 for truncated string.
1549
1550 PR fortran/16943
1551 * symbol.c : Include flags.h.
1552 (gfc_add_type): If a procedure and types are the same do not
1553 throw an error unless standard is less than gnu or pedantic.
1554
1555 PR fortran/20839
1556 * parse.c (parse_do_block): Error if named block do construct
1557 does not have a named enddo.
1558
1559 PR fortran/27655
1560 * check.c (gfc_check_associated): Pick up EXPR_NULL for pointer
1561 as well as target and put error return at end of function.
1562
1563 2006-06-03 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1564
1565 * trans.c (gfc_msg_bounds, gfc_msg_fault, gfc_msg_wrong_return):
1566 Add strings for common runtime error messages.
1567 (gfc_trans_runtime_check): Add a locus argument, use a string
1568 and not a string tree for the message.
1569 * trans.h (gfc_trans_runtime_check): Change prototype accordingly.
1570 (gfc_msg_bounds, gfc_msg_fault, gfc_msg_wrong_return): Add proto.
1571 * trans-const.c (gfc_strconst_bounds, gfc_strconst_fault,
1572 gfc_strconst_wrong_return, gfc_strconst_current_filename): Remove.
1573 (gfc_init_constants): Likewise.
1574 * trans-const.h: Likewise.
1575 * trans-decl.c (gfc_build_builtin_function_decls): Call to
1576 _gfortran_runtime_error has only one argument, the message string.
1577 * trans-array.h (gfc_conv_array_ref): Add a symbol argument and a
1578 locus.
1579 * trans-array.c (gfc_trans_array_bound_check): Build precise
1580 error messages.
1581 (gfc_conv_array_ref): Use the new symbol argument and the locus
1582 to build more precise error messages.
1583 (gfc_conv_ss_startstride): More precise error messages.
1584 * trans-expr.c (gfc_conv_variable): Give symbol reference and
1585 locus to gfc_conv_array_ref.
1586 (gfc_conv_function_call): Use the new prototype for
1587 gfc_trans_runtime_check.
1588 * trans-stmt.c (gfc_trans_goto): Build more precise error message.
1589 * trans-io.c (set_string): Likewise.
1590 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Use new prototype
1591 for gfc_trans_runtime_check.
1592
1593 2006-06-01 Thomas Koenig <Thomas.Koenig@online.de>
1594
1595 PR fortran/27715
1596 * arith.c: Cast the characters from the strings to unsigned
1597 char to avoid values less than 0 for extended ASCII.
1598
1599 2006-06-01 Per Bothner <bothner@bothner.com>
1600
1601 * data.c (gfc_assign_data_value): Handle USE_MAPPED_LOCATION.
1602 * scanner.c (gfc_gobble_whitespace): Likewise.
1603
1604 2006-06-01 Paul Thomas <pault@gcc.gnu.org>
1605
1606 PR fortran/25098
1607 PR fortran/25147
1608 * interface.c (compare_parameter): Return 1 if the actual arg
1609 is external and the formal is a procedure.
1610 (compare_actual_formal): If the actual argument is a variable
1611 and the formal a procedure, this an error. If a gsymbol exists
1612 for a procedure of the same name, this is not yet resolved and
1613 the error is cleared.
1614
1615 * trans-intrinsic.c (gfc_conv_associated): Make provision for
1616 zero array length or zero string length contingent on presence
1617 of target, for consistency with standard.
1618
1619 2006-05-30 Asher Langton <langton2@llnl.gov>
1620
1621 * symbol.c (check_conflict): Allow external, function, and
1622 subroutine attributes with Cray pointees.
1623 * trans-expr.c (gfc_conv_function_val): Translate Cray pointees
1624 that point to procedures.
1625 * gfortran.texi: Document new feature.
1626
1627 2006-05-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1628
1629 PR fortran/27634
1630 * io.c (check_format): Add error for missing period in format
1631 specifier unless -std=legacy.
1632 * gfortran.texi: Add description of expanded namelist read and
1633 missing period in format extensions.
1634
1635 2006-05-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1636
1637 PR fortran/19777
1638 * trans-array.c (gfc_conv_array_ref): Perform out-of-bounds
1639 checking for assumed-size arrrays for all but the last dimension.
1640
1641 2006-05-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1642
1643 * invoke.texi: Change -fpackderived into -fpack-derived.
1644
1645 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
1646
1647 * options.c, primary.c, resolve.c, trans-common.c: Fix typos
1648 in error messages.
1649
1650 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
1651
1652 * check.c, expr.c, resolve.c, trans-common.c,
1653 trans-intrinsic.c, trans-stmt.c, trans-types.c: Fix comment typos.
1654
1655 2006-05-27 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1656
1657 PR fortran/19777
1658 * trans-array.c (gfc_conv_array_ref): Don't perform out-of-bounds
1659 checking for assumed-size arrrays.
1660
1661 2006-05-27 Paul Thomas <pault@gcc.gnu.org>
1662
1663 * trans-intrinsic.c (gfc_conv_associated): If pointer in first
1664 arguments has zero array length of zero string length, return
1665 false.
1666
1667 2006-05-26 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1668
1669 PR fortran/27524
1670 * trans-array.c (gfc_trans_dummy_array_bias): Don't use stride as
1671 a temporary variable when -fbounds-check is enabled, since its
1672 value will be needed later.
1673
1674 2006-05-26 Thomas Koenig <Thomas.Koenig@online.de>
1675
1676 PR fortran/23151
1677 * io.c (match_io): print (1,*) is an error.
1678
1679 2006-05-26 Paul Thomas <pault@gcc.gnu.org>
1680
1681 PR fortran/27709
1682 * resolve.c (find_array_spec): Add gfc_symbol, derived, and
1683 use to track repeated component references.
1684
1685 PR fortran/27155
1686 PR fortran/27449
1687 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Use
1688 se->string_length throughout and use memcpy to populate the
1689 expression returned to the scalarizer.
1690 (gfc_size_in_bytes): New function.
1691
1692 2006-05-21 Paul Thomas <pault@gcc.gnu.org>
1693
1694 PR fortran/27613
1695 * primary.c (gfc_match_rvalue): Test if symbol represents a
1696 direct recursive function reference. Error if array valued,
1697 go to function0 otherwise.
1698
1699 2006-05-21 Paul Thomas <pault@gcc.gnu.org>
1700
1701 PR fortran/25746
1702 * interface.c (gfc_extend_assign): Use new EXEC_ASSIGN_CALL.
1703 * gfortran.h : Put EXEC_ASSIGN_CALL in enum.
1704 * trans-stmt.c (gfc_conv_elemental_dependencies): New function.
1705 (gfc_trans_call): Call it. Add new boolian argument to flag
1706 need for dependency checking. Assert intent OUT and IN for arg1
1707 and arg2.
1708 (gfc_trans_forall_1): Use new code EXEC_ASSIGN_CALL.
1709 trans-stmt.h : Modify prototype of gfc_trans_call.
1710 trans.c (gfc_trans_code): Add call for EXEC_ASSIGN_CALL.
1711 st.c (gfc_free_statement): Free actual for EXEC_ASSIGN_CALL.
1712 * dependency.c (gfc_check_fncall_dependency): Don't check other
1713 against itself.
1714
1715 PR fortran/25090
1716 * resolve.c : Remove resolving_index_expr.
1717 (entry_parameter): Remove.
1718 (gfc_resolve_expr, resolve_charlen, resolve_fl_variable): Lift
1719 calls to entry_parameter and references to resolving_index_expr.
1720
1721 PR fortran/27584
1722 * check.c (gfc_check_associated): Replace NULL assert with an
1723 error message, since it is possible to generate bad code that
1724 has us fall through to here..
1725
1726 PR fortran/19015
1727 * iresolve.c (maxloc, minloc): If DIM is not present, pass the
1728 rank of ARRAY as the shape of the result. Otherwise, pass the
1729 shape of ARRAY, less the dimension DIM.
1730 (maxval, minval): The same, when DIM is present, otherwise no
1731 change.
1732
1733 2006-05-19 H.J. Lu <hongjiu.lu@intel.com>
1734
1735 PR fortran/27662
1736 * trans-array.c (gfc_conv_expr_descriptor): Don't zero the
1737 first stride to indicate a temporary.
1738 * trans-expr.c (gfc_conv_function_call): Likewise.
1739
1740 2006-05-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1741 Feng Wang <fengwang@nudt.edu.cn>
1742
1743 PR fortran/27552
1744 * dump-parse-tree.c (gfc_show_expr): Deal with Hollerith constants.
1745 * data.c (create_character_intializer): Set from_H flag if character is
1746 initialized by Hollerith constant.
1747
1748 2006-05-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1749
1750 PR fortran/26551
1751 * resolve.c (resolve_call, resolve_function): Issue an error
1752 if a function or subroutine call is recursive but the function or
1753 subroutine wasn't declared as such.
1754
1755 2006-05-07 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1756
1757 PR fortran/26551
1758 * gfortran.dg/recursive_check_1.f: New test.
1759
1760
1761 2006-05-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1762
1763 PR fortran/27320
1764 * dump-parse-tree.c (gfc_show_code_node): Try harder to find the
1765 called procedure name.
1766
1767 2006-05-17 Jakub Jelinek <jakub@redhat.com>
1768
1769 PR middle-end/27415
1770 * trans-openmp.c (gfc_trans_omp_parallel_do,
1771 gfc_trans_omp_parallel_sections, gfc_trans_omp_parallel_workshare): Set
1772 OMP_PARALLEL_COMBINED flag.
1773
1774 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
1775
1776 PR driver/26885
1777 * Make-lang.in (GFORTRAN_D_OBJS): Replace gcc.o with
1778 $(GCC_OBJS).
1779
1780 2006-05-15 Paul Thomas <pault@gcc.gnu.org>
1781
1782 PR fortran/25090
1783 * resolve.c: Static resolving_index_expr initialized.
1784 (entry_parameter): New function to emit errors for variables
1785 that are not entry parameters.
1786 (gfc_resolve_expr): Call entry_parameter, when resolving
1787 variables, if the namespace has entries and resolving_index_expr
1788 is set.
1789 (resolve_charlen): Set resolving_index_expr before the call to
1790 resolve_index_expr and reset it afterwards.
1791 (resolve_fl_variable): The same before and after the call to
1792 is_non_constant_shape_array, which ultimately makes a call to
1793 gfc_resolve_expr.
1794
1795 PR fortran/25082
1796 * resolve.c (resolve_code): Add error condition that the return
1797 expression must be scalar.
1798
1799 PR fortran/27411
1800 * matchexp.c (gfc_get_parentheses): New function.
1801 (match_primary): Remove inline code and call above.
1802 * gfortran.h: Provide prototype for gfc_get_parentheses.
1803 * resolve.c (resolve_array_ref): Call the above, when start is a
1804 derived type variable array reference.
1805
1806 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1807
1808 PR fortran/27446
1809 * trans-openmp.c (gfc_trans_omp_array_reduction): Ensure
1810 OMP_CLAUSE_REDUCTION_{INIT,MERGE} are set to BIND_EXPR.
1811
1812 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
1813
1814 * Make-lang.in (fortran/options.o): Depend on $(TARGET_H).
1815
1816 2006-05-11 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1817
1818 PR fortran/27553
1819 * parse.c (next_free): Return instead of calling decode_statement
1820 upon error.
1821
1822 2005-05-10 Thomas Koenig <Thomas.Koenig@online.de>
1823
1824 PR fortran/27470
1825 * trans-array.c(gfc_array_allocate): If ref->next exists
1826 that is if there is a statement like ALLOCATE(foo%bar(2)),
1827 F95 rules require that bar should be a pointer.
1828
1829 2006-05-10 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1830
1831 PR fortran/20460
1832 * resolve.c (gfc_resolve_index): Make REAL array indices a
1833 GFC_STD_LEGACY feature.
1834
1835 2006-05-10 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1836
1837 PR fortran/24549
1838 * parse.c (reject_statement): Clear gfc_new_block.
1839
1840 2006-05-09 Steven G. Kargl <kargls@comcast.net>
1841
1842 * invoke.texi: Missed file in previous commit. Update
1843 description of -fall-intrinsics
1844
1845 2006-05-07 Steven Boscher <steven@gcc.gnu.org>
1846
1847 PR fortran/27378
1848 * parse.c (next_statement): Add check to avoid an ICE when
1849 gfc_current_locus.lb is not set.
1850
1851 2006-05-07 Tobias Schl\81üter <tobias.schlueter@physik.uni-muenchen.de>
1852
1853 PR fortran/27457
1854 * match.c (match_case_eos): Error out on garbage following
1855 CASE(...).
1856
1857 2006-05-07 Paul Thomas <pault@gcc.gnu.org>
1858
1859 PR fortran/24813
1860 * trans-array.c (get_array_ctor_strlen): Remove static attribute.
1861 * trans.h: Add prototype for get_array_ctor_strlen.
1862 * trans-intrinsic.c (gfc_conv_intrinsic_len): Switch on EXPR_ARRAY
1863 and call get_array_ctor_strlen.
1864
1865 2006-05-05 Steven G. Kargl <kargls@comcast.net>
1866
1867 * invoke.texi: Update description of -fall-intrinsics
1868 * options.c (gfc_post_options): Disable -Wnonstd-intrinsics if
1869 -fall-intrinsics is used.
1870 (gfc_handle_option): Permit -Wno-nonstd-intrinsics.
1871
1872 2006-05-04 Tobias Schl\81üter <tobias.schlueter@physik.uni-muenchen.de>
1873
1874 * simplify.c (ascii_table): Fix wrong entry.
1875
1876 2006-05-02 Steven G. Kargl <kargls@comcast.net>
1877
1878 PR fortran/26896
1879 * lang.opt: Fix -Wtab description
1880
1881 PR fortran/20248
1882 * lang.opt: New flag -fall-intrinsics.
1883 * invoke.texi: Document option.
1884 * gfortran.h (options_t): New member flag_all_intrinsics.
1885 * options.c (gfc_init_options, gfc_handle_option): Set new option.
1886 sort nearby misplaced options.
1887 * intrinsic.c (add_sym, make_generic, make_alias): Use it.
1888
1889 2006-05-02 Paul Thomas <pault@gcc.gnu.org>
1890
1891 PR fortran/27269
1892 * module.c: Add static flag in_load_equiv.
1893 (mio_expr_ref): Return if no symtree and in_load_equiv.
1894 (load_equiv): If any of the equivalence members have no symtree, free
1895 the equivalence and the associated expressions.
1896
1897 PR fortran/27324
1898 * trans-common.c (gfc_trans_common): Invert the order of calls to
1899 finish equivalences and gfc_commit_symbols.
1900
1901 2006-04-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1902
1903 PR fortran/25681
1904 * simplify.c (simplify_len): Character variables with constant
1905 length can be simplified.
1906
1907 2006-04-29 H.J. Lu <hongjiu.lu@intel.com>
1908
1909 PR fortran/27351
1910 * trans-array.c (gfc_conv_array_transpose): Move gcc_assert
1911 before gfc_conv_expr_descriptor.
1912
1913 2006-04-23 Paul Thomas <pault@gcc.gnu.org>
1914
1915 PR fortran/25099
1916 * resolve.c (resolve_call): Check conformity of elemental
1917 subroutine actual arguments.
1918
1919 2006-04-22 Jakub Jelinek <jakub@redhat.com>
1920
1921 PR fortran/26769
1922 * iresolve.c (gfc_resolve_reshape): Use reshape_r16 for real(16).
1923 (gfc_resolve_transpose): Use transpose_r16 for real(16).
1924
1925 2006-04-21 Paul Thomas <pault@gcc.gnu.org>
1926
1927 PR fortran/27122
1928 * resolve.c (resolve_function): Remove general restriction on auto
1929 character length function interfaces.
1930 (gfc_resolve_uops): Check restrictions on defined operator
1931 procedures.
1932 (resolve_types): Call the check for defined operators.
1933
1934 PR fortran/27113
1935 * trans-array.c (gfc_trans_array_constructor_subarray): Remove
1936 redundant gfc_todo_error.
1937 (get_array_ctor_var_strlen): Remove typo in enum.
1938
1939 2006-04-18 Bernhard Fischer <aldot@gcc.gnu.org>
1940
1941 * parse.c (next_free): Use consistent error string between
1942 free-form and fixed-form for illegal statement label of zero.
1943 (next_fixed): Use consistent warning string between free-form
1944 and fixed-form for statement labels for empty statements.
1945
1946 2006-04-18 Steve Ellcey <sje@cup.hp.com>
1947
1948 * trans-io.c (gfc_build_io_library_fndecls): Align pad.
1949
1950 2006-04-16 Thomas Koenig <Thomas.Koenig@online.de>
1951
1952 PR fortran/26017
1953 * trans-array.c(gfc_array_init_size): Introduce or_expr
1954 which is true if the size along any dimension
1955 is negative. Create a temporary variable with base
1956 name size. If or_expr is true, set the temporary to 0,
1957 to the normal size otherwise.
1958
1959 2006-04-16 Paul Thomas <pault@gcc.gnu.org>
1960
1961 PR fortran/26822
1962 * intrinsic.c (add_functions): Mark LOGICAL as elemental.
1963
1964 PR fortran/26787
1965 * expr.c (gfc_check_assign): Extend scope of error to include
1966 assignments to a procedure in the main program or, from a
1967 module or internal procedure that is not that represented by
1968 the lhs symbol. Use VARIABLE rather than l-value in message.
1969
1970 PR fortran/27096
1971 * trans-array.c (gfc_trans_deferred_array): If the backend_decl
1972 is not a descriptor, dereference and then test and use the type.
1973
1974 PR fortran/25597
1975 * trans-decl.c (gfc_trans_deferred_vars): Check if an array
1976 result, is also automatic character length. If so, process
1977 the character length.
1978
1979 PR fortran/18003
1980 PR fortran/25669
1981 PR fortran/26834
1982 * trans_intrinsic.c (gfc_walk_intrinsic_bound): Set
1983 data.info.dimen for bound intrinsics.
1984 * trans_array.c (gfc_conv_ss_startstride): Pick out LBOUND and
1985 UBOUND intrinsics and supply their shape information to the ss
1986 and the loop.
1987
1988 PR fortran/27124
1989 * trans_expr.c (gfc_trans_function_call): Add a new block, post,
1990 in to which all the argument post blocks are put. Add this block
1991 to se->pre after a byref call or to se->post, otherwise.
1992
1993 2006-04-14 Roger Sayle <roger@eyesopen.com>
1994
1995 * trans-io.c (set_string): Use fold_build2 and build_int_cst instead
1996 of build2 and convert to construct "x < 0" rather than "x <= -1".
1997
1998 2006-04-13 Richard Henderson <rth@redhat.com>
1999
2000 * trans-openmp.c (gfc_trans_omp_sections): Adjust for changed
2001 number of operands to OMP_SECTIONS.
2002
2003 2006-04-08 Kazu Hirata <kazu@codesourcery.com>
2004
2005 * gfortran.texi: Fix typos. Follow spelling conventions.
2006 * resolve.c, trans-expr.c, trans-stmt.c: Fix comment typos.
2007 Follow spelling conventions.
2008
2009 2006-04-05 Roger Sayle <roger@eyesopen.com>
2010
2011 * dependency.c (get_no_elements): Delete function.
2012 (get_deps): Delete function.
2013 (transform_sections): Delete function.
2014 (gfc_check_section_vs_section): Significant rewrite.
2015
2016 2006-04-04 H.J. Lu <hongjiu.lu@intel.com>
2017
2018 PR fortran/25619
2019 * trans-array.c (gfc_conv_expr_descriptor): Only dereference
2020 character pointer when copying temporary.
2021
2022 PR fortran/23634
2023 * trans-array.c (gfc_conv_expr_descriptor): Properly copy
2024 temporary character with non constant size.
2025
2026 2006-04-03 Paul Thomas <pault@gcc.gnu.org>
2027
2028 PR fortran/26891
2029 * trans.h: Prototype for gfc_conv_missing_dummy.
2030 * trans-expr (gfc_conv_missing_dummy): New function
2031 (gfc_conv_function_call): Call it and tidy up some of the code.
2032 * trans-intrinsic (gfc_conv_intrinsic_function_args): The same.
2033
2034 PR fortran/26976
2035 * array.c (gfc_array_dimen_size): If available, return shape[dimen].
2036 * resolve.c (resolve_function): If available, use the argument
2037 shape for the function expression.
2038 * iresolve.c (gfc_resolve_transfer): Set shape[0] = size.
2039
2040 2006-04-02 Erik Edelmann <eedelman@gcc.gnu.org>
2041
2042 * trans-array.c (gfc_trans_dealloc_allocated): Take a
2043 tree representation of the array to be deallocated as argument
2044 instead of its gfc_symbol.
2045 (gfc_trans_deferred_array): Update call to
2046 gfc_trans_dealloc_allocated.
2047 * trans-array.h (gfc_trans_dealloc_allocated): Update
2048 prototype.
2049 * trans-expr.c (gfc_conv_function_call): Update call to
2050 gfc_trans_dealloc_allocated, get indirect reference to dummy
2051 arguments.
2052
2053 2006-04-01 Roger Sayle <roger@eyesopen.com>
2054
2055 PR fortran/25270
2056 * trans-array.c (gfc_trans_allocate_array_storage): In array index
2057 calculations use gfc_index_zero_node and gfc_index_one_node instead
2058 of integer_zero_node and integer_one_node respectively.
2059 (gfc_conv_array_transpose): Likewise.
2060 (gfc_conv_ss_startstride): Likewise.
2061 (gfc_trans_dummy_array_bias): Likewise.
2062
2063 2006-04-01 Roger Sayle <roger@eyesopen.com>
2064
2065 * dependency.c (gfc_is_inside_range): Delete.
2066 (gfc_check_element_vs_section): Significant rewrite.
2067
2068 2006-04-01 Roger Sayle <roger@eyesopen.com>
2069
2070 * dependency.c (gfc_dep_compare_expr): Strip parentheses and unary
2071 plus operators when comparing expressions. Handle comparisons of
2072 the form "X+C vs. X", "X vs. X+C", "X-C vs. X" and "X vs. X-C" where
2073 C is an integer constant. Handle comparisons of the form "P+Q vs.
2074 R+S" and "P-Q vs. R-S". Handle comparisons of integral extensions
2075 specially (increasing functions) so extend(A) > extend(B), when A>B.
2076 (gfc_check_element_vs_element): Move test later, so that we ignore
2077 the fact that "A < B" or "A > B" when A or B contains a forall index.
2078
2079 2006-03-31 Asher Langton <langton2@llnl.gov>
2080
2081 PR fortran/25358
2082 * expr.c (gfc_check_assign): Allow cray pointee to be assumes-size.
2083
2084 2006-03-30 Paul Thomas <paulthomas2@wanadoo.fr>
2085 Bud Davis <bdavis9659@sbcglobal.net>
2086
2087 PR 21130
2088 * module.c (load_needed): Traverse entire tree before returning.
2089
2090 2006-03-30 Roger Sayle <roger@eyesopen.com>
2091
2092 PR middle-end/22375
2093 * trans.c (gfc_trans_runtime_check): Promote the arguments of
2094 __builtin_expect to the correct types, and the result back to
2095 boolean_type_node.
2096
2097 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
2098
2099 * Make-lang.in: Rename docdir to gcc_docdir.
2100
2101 2006-03-28 Steven G. Kargl <kargls@comcast.net>
2102
2103 * intrinsic.texi: s/floor/float in previous commit.
2104
2105 2006-03-28 Paul Thomas <pault@gcc.gnu.org>
2106
2107 PR fortran/26779
2108 * resolve.c (resolve_fl_procedure): Do not check the access of
2109 derived types for internal procedures.
2110
2111 2006-03-27 Jakub Jelinek <jakub@redhat.com>
2112
2113 * io.c (check_io_constraints): Don't look at
2114 dt->advance->value.charater.string, unless it is a CHARACTER
2115 constant.
2116
2117 * f95-lang.c (gfc_get_alias_set): New function.
2118 (LANG_HOOKS_GET_ALIAS_SET): Define.
2119
2120 2006-03-25 Steven G. Kargl <kargls@comcast.net>
2121
2122 PR fortran/26816
2123 * intrinsic.c (add_functions): Allow FLOAT to accept all integer kinds.
2124 * intrinsic.texi: Document FLOAT.
2125
2126 2006-03-25 Thomas Koenig <Thomas.Koenig@online.de>
2127
2128 PR fortran/26769
2129 * iresolve.c (gfc_resolve_reshape): Remove doubling of
2130 kind for complex. For real(kind=10), call reshape_r10.
2131 (gfc_resolve_transpose): For real(kind=10), call
2132 transpose_r10.
2133
2134 2006-03-25 Roger Sayle <roger@eyesopen.com>
2135
2136 * dependency.c (gfc_check_dependency): Improve handling of pointers;
2137 Two variables of different types can't have a dependency, and two
2138 variables with the same symbol are equal, even if pointers.
2139
2140 2006-03-24 Roger Sayle <roger@eyesopen.com>
2141
2142 * gfortran.h (gfc_symbol): Add a new "forall_index" bit field.
2143 * match.c (match_forall_iterator): Set forall_index field on
2144 the iteration variable's symbol.
2145 * dependency.c (contains_forall_index_p): New function to
2146 traverse a gfc_expr to check whether it contains a variable
2147 with forall_index set in it's symbol.
2148 (gfc_check_element_vs_element): Return GFC_DEP_EQUAL for scalar
2149 constant expressions that don't variables used as FORALL indices.
2150
2151 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2152
2153 PR driver/22600
2154 * error.c (gfc_fatal_error): Return ICE_EXIT_CODE instead of 4.
2155
2156 2006-03-22 Thomas Koenig <Thomas.Koenig@online.de>
2157
2158 PR fortran/19303
2159 * gfortran.h (gfc_option_t): Add record_marker.
2160 * lang.opt: Add -frecord-marker=4 and -frecord-marker=8.
2161 * trans-decl.c: Add gfor_fndecl_set_record_marker.
2162 (gfc_build_builtin_function_decls): Set
2163 gfor_fndecl_set_record_marker.
2164 (gfc_generate_function_code): If we are in the main program
2165 and -frecord-marker was provided, call set_record_marker.
2166 * options.c (gfc_handle_option): Add handling for
2167 -frecord-marker=4 and -frecord-marker=8.
2168 * invoke.texi: Document -frecord-marker.
2169
2170 2006-03-22 Paul Thomas <pault@gcc.gnu.org>
2171
2172 PR fortran/17298
2173 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): New
2174 function to implement array valued TRANSFER intrinsic.
2175 (gfc_conv_intrinsic_function): Call the new function if TRANSFER
2176 and non-null se->ss.
2177 (gfc_walk_intrinsic_function): Treat TRANSFER as one of the
2178 special cases by calling gfc_walk_intrinsic_libfunc directly.
2179
2180 2006-03-21 Toon Moene <toon@moene.indiv.nluug.nl>
2181
2182 * options.c (gfc_init_options): Initialize
2183 flag_argument_noalias to 3.
2184
2185 2006-03-20 Thomas Koenig <Thomas.Koenig@online.de>
2186
2187 PR fortran/20935
2188 * iresolve.c (gfc_resolve_maxloc): If mask is scalar,
2189 prefix the function name with an "s". If the mask is scalar
2190 or if its kind is smaller than gfc_default_logical_kind,
2191 coerce it to default kind.
2192 (gfc_resolve_maxval): Likewise.
2193 (gfc_resolve_minloc): Likewise.
2194 (gfc_resolve_minval): Likewise.
2195 (gfc_resolve_product): Likewise.
2196 (gfc_resolve_sum): Likewise.
2197
2198 2006-03-19 Paul Thomas <pault@gcc.gnu.org>
2199
2200 PR fortran/26741
2201 *expr.c (external_spec_function): Permit elemental functions.
2202
2203 PR fortran/26716
2204 *interface.c (compare_actual_formal): Detect call for procedure
2205 usage and require rank checking, in this case, for assumed shape
2206 and deferred shape arrays.
2207 (gfc_procedure_use): Revert to pre-PR25070 call to
2208 compare_actual_formal that does not require rank checking..
2209
2210 2006-03-16 Roger Sayle <roger@eyesopen.com>
2211
2212 * gfortran.h (gfc_equiv_info): Add length field.
2213 * trans-common.c (copy_equiv_list_to_ns): Set the length field.
2214 * dependency.c (gfc_are_equivalenced_arrays): Use both the offset
2215 and length fields to determine whether the two equivalenced symbols
2216 overlap in memory.
2217
2218 2006-03-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2219
2220 PR fortran/19101
2221 * gfortran.h: Add warn_ampersand.
2222 * invoke.texi: Add documentation for new option.
2223 * lang.opt: Add Wampersand.
2224 * options.c (gfc_init_options): Initialize warn_ampersand.
2225 (gfc_post_options): Set the warn if pedantic.
2226 (set_Wall): Set warn_ampersand.
2227 (gfc_handle_option: Add Wampersand for itself, -std=f95, and -std=f2003.
2228 * scanner.c (gfc_next_char_literal): Add test for missing '&' in
2229 continued character constant and give warning if missing.
2230
2231 2006-03-14 Steven G. Kargl <kargls@comcast.net>
2232
2233 PR 18537
2234 * gfortran.h: Wrap Copyright line.
2235 (gfc_option_t): add warn_tabs member.
2236 * lang.opt: Update Coyright year. Add the Wtabs.
2237 * invoke.texi: Document -Wtabs.
2238 * scanner.c (gfc_gobble_whitespace): Use warn_tabs. Add linenum to
2239 suppress multiple warnings.
2240 (load_line): Use warn_tabs. Add linenum, current_line, seen_comment
2241 to suppress multiple warnings.
2242 * options.c (gfc_init_options): Initialize warn_tabs.
2243 (set_Wall): set warn_tabs for -Wall.
2244 (gfc_post_options): Adjust flag_tabs depending on -pedantic.
2245 (gfc_handle_option): Process command-line option -W[no-]tabs
2246
2247 2006-03-13 Paul Thomas <pault@gcc.gnu.org>
2248
2249 PR fortran/25378
2250 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Set the initial position to zero and
2251 modify the condition for updating it, to implement the F2003 requirement for all(mask)
2252 is false.
2253
2254 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2255
2256 * trans-openmp.c (gfc_trans_omp_variable): Handle references
2257 to parent result.
2258 * trans-expr.c (gfc_conv_variable): Remove useless setting
2259 of parent_flag, formatting.
2260
2261 * trans-decl.c (gfc_get_fake_result_decl): Re-add setting of
2262 GFC_DECL_RESULT flag.
2263
2264 2003-03-11 Roger Sayle <roger@eyesopen.com>
2265
2266 * dependency.c (gfc_dep_compare_expr) <EXPR_OP>: Allow unary and
2267 binary operators to compare equal if their operands are equal.
2268 <EXPR_FUNCTION>: Allow "constant" intrinsic conversion functions
2269 to compare equal, if their operands are equal.
2270
2271 2006-03-11 Erik Edelmann <eedelman@gcc.gnu.org>
2272
2273 * symbol.c (check_conflict): Allow allocatable function results,
2274 except for elemental functions.
2275 * trans-array.c (gfc_trans_allocate_temp_array): Rename to ...
2276 (gfc_trans_create_temp_array): ... this, and add new argument
2277 callee_alloc.
2278 (gfc_trans_array_constructor, gfc_conv_loop_setup): Update call
2279 to gfc_trans_allocate_temp_array.
2280 * trans-array.h (gfc_trans_allocate_temp_array): Update prototype.
2281 * trans-expr.c (gfc_conv_function_call): Use new arg of
2282 gfc_trans_create_temp_array avoid pre-allocation of temporary
2283 result variables of pointer AND allocatable functions.
2284 (gfc_trans_arrayfunc_assign): Return NULL for allocatable
2285 functions.
2286 * resolve.c (resolve_symbol): Copy value of 'allocatable' attribute
2287 from sym->result to sym.
2288
2289 2006-03-09 Erik Edelmann <eedelman@gcc.gnu.org>
2290
2291 * trans-expr.c (gfc_add_interface_mapping): Copy 'allocatable'
2292 attribute from sym to new_sym. Call build_fold_indirect_ref()
2293 for allocatable arguments.
2294
2295 2006-03-09 Paul Thomas <pault@gcc.gnu.org>
2296
2297 PR fortran/26257
2298 * trans-array.c (gfc_conv_expr_descriptor): Exclude calculation of
2299 the offset and data when se->data_not_needed is set.
2300 * trans.h: Include the data_not_need bit in gfc_se.
2301 * trans-intrinsic.c (gfc_conv_intrinsic_size): Set it for SIZE.
2302
2303 2006-03-06 Paul Thomas <pault@gcc.gnu.org>
2304 Erik Edelmann <eedelman@gcc.gnu.org>
2305
2306 * trans-array.c (gfc_trans_dealloc_allocated): New function.
2307 (gfc_trans_deferred_array): Use it, instead of inline code.
2308 * trans-array.h: Prototype for gfc_trans_dealloc_allocated().
2309 * trans-expr.c (gfc_conv_function_call): Deallocate allocated
2310 ALLOCATABLE, INTENT(OUT) arguments upon procedure entry.
2311
2312 2006-03-06 Paul Thomas <pault@gcc.gnu.org>
2313
2314 PR fortran/26107
2315 * resolve.c (resolve_function): Add name after test for pureness.
2316
2317 PR fortran/19546
2318 * trans-expr.c (gfc_conv_variable): Detect reference to parent result,
2319 store current_function_decl, replace with parent, whilst calls are
2320 made to gfc_get_fake_result_decl, and restore afterwards. Signal this
2321 to gfc_get_fake_result_decl with a new argument, parent_flag.
2322 * trans-stmt.c (gfc_trans_return): gfc_get_fake_result_decl 2nd arg
2323 is set to zero.
2324 * trans.h: Add parent_flag to gfc_get_fake_result_decl prototype.
2325 * trans-decl.c (gfc_get_fake_result_decl): On parent_flag, being set,
2326 add decl to parent function. Replace refs to current_fake_result_decl
2327 with refs to this_result_decl.
2328 (gfc_generate_function_code): Null parent_fake_result_decl before the
2329 translation of code for contained procedures. Set parent_flag to zero
2330 in call to gfc_get_fake_result_decl.
2331 * trans-intrinsic.c (gfc_conv_intrinsic_len): The same.
2332
2333 2006-03-05 Steven G. Kargl <kargls@comcast.net>
2334
2335 * simplify.c (gfc_simplify_verify): Fix return when SET=''.
2336
2337 2006-03-05 Erik Edelmann <eedelman@gcc.gnu.org>
2338
2339 PR fortran/16136
2340 * symbol.c (conf_std): New macro.
2341 (check_conflict): Use it to allow ALLOCATABLE dummy
2342 arguments for F2003.
2343 * trans-expr.c (gfc_conv_function_call): Pass the
2344 address of the array descriptor when dummy argument is
2345 ALLOCATABLE.
2346 * interface.c (compare_allocatable): New function.
2347 (compare_actual_formal): Use it.
2348 * resolve.c (resolve_deallocate_expr,
2349 resolve_allocate_expr): Check that INTENT(IN) variables
2350 aren't (de)allocated.
2351 * gfortran.texi (Fortran 2003 status): List ALLOCATABLE
2352 dummy arguments as supported.
2353
2354 2006-03-03 Roger Sayle <roger@eyesopen.com>
2355
2356 * dependency.c (gfc_check_element_vs_element): Revert last change.
2357
2358 2006-03-03 Roger Sayle <roger@eyesopen.com>
2359
2360 * dependency.c (gfc_check_element_vs_element): Consider two
2361 unordered scalar subscripts as (potentially) equal.
2362
2363 2006-03-03 Roger Sayle <roger@eyesopen.com>
2364
2365 * dependency.c (gfc_check_dependency): Call gfc_dep_resolver to
2366 check whether two array references have a dependency.
2367 (gfc_check_element_vs_element): Assume lref and rref must be
2368 REF_ARRAYs. If gfc_dep_compare_expr returns -2, assume these
2369 references could potentially overlap.
2370 (gfc_dep_resolver): Whitespace and comment tweaks. Assume a
2371 dependency if the references have different depths. Rewrite
2372 final term to clarrify we only have a dependency for overlaps.
2373
2374 2006-03-03 Thomas Koenig <Thomas.Koenig@online.de>
2375
2376 PR fortran/25031
2377 * trans-array.h: Adjust gfc_array_allocate prototype.
2378 * trans-array.c (gfc_array_allocate): Change type of
2379 gfc_array_allocatate to bool. Function returns true if
2380 it operates on an array. Change second argument to gfc_expr.
2381 Find last reference in chain.
2382 If the function operates on an allocatable array, emit call to
2383 allocate_array() or allocate64_array().
2384 * trans-stmt.c (gfc_trans_allocate): Code to follow to last
2385 reference has been moved to gfc_array_allocate.
2386 * trans.h: Add declaration for gfor_fndecl_allocate_array and
2387 gfor_fndecl_allocate64_array.
2388 (gfc_build_builtin_function_decls): Add gfor_fndecl_allocate_array
2389 and gfor_fndecl_allocate64_array.
2390
2391 2006-03-01 Roger Sayle <roger@eyesopen.com>
2392
2393 * trans-stmt.c (generate_loop_for_temp_to_lhs): Add an additional
2394 INVERT argument to invert the sense of the WHEREMASK argument.
2395 Remove unneeded code to AND together a list of masks.
2396 (generate_loop_for_rhs_to_temp): Likewise.
2397 (gfc_trans_assign_need_temp): Likewise.
2398 (gfc_trans_forall_1): Likewise.
2399 (gfc_evaluate_where_mask): Likewise, add a new INVERT argument
2400 to specify the sense of the MASK argument.
2401 (gfc_trans_where_assign): Likewise.
2402 (gfc_trans_where_2): Likewise. Restructure code that decides
2403 whether we need to allocate zero, one or two temporary masks.
2404 If this is a top-level WHERE (i.e. the incoming MASK is NULL),
2405 we only need to allocate at most one temporary mask, and can
2406 invert it's sense to provide the complementary pending execution
2407 mask. Only calculate the size of the required temporary arrays
2408 if we need any.
2409 (gfc_trans_where): Update call to gfc_trans_where_2.
2410
2411 2006-03-01 Paul Thomas <pault@gcc.gnu.org>
2412
2413 * iresolve.c (gfc_resolve_dot_product): Remove any difference in
2414 treatment of logical types.
2415 * trans-intrinsic.c (gfc_conv_intrinsic_dot_product): New function.
2416
2417 PR fortran/26393
2418 * trans-decl.c (gfc_get_symbol_decl): Extend condition that symbols
2419 must be referenced to include unreferenced symbols in an interface
2420 body.
2421
2422 PR fortran/20938
2423 * trans-array.c (gfc_conv_resolve_dependencies): Add call to
2424 gfc_are_equivalenced_arrays.
2425 * symbol.c (gfc_free_equiv_infos, gfc_free_equiv_lists): New
2426 functions. (gfc_free_namespace): Call them.
2427 * trans-common.c (copy_equiv_list_to_ns): New function.
2428 (add_equivalences): Call it.
2429 * gfortran.h: Add equiv_lists to gfc_namespace and define
2430 gfc_equiv_list and gfc_equiv_info.
2431 * dependency.c (gfc_are_equivalenced_arrays): New function.
2432 (gfc_check_dependency): Call it.
2433 * dependency.h: Prototype for gfc_are_equivalenced_arrays.
2434
2435 2006-03-01 Roger Sayle <roger@eyesopen.com>
2436
2437 * dependency.c (gfc_is_same_range): Compare the stride, lower and
2438 upper bounds when testing array reference ranges for equality.
2439 (gfc_check_dependency): Fix indentation whitespace.
2440 (gfc_check_element_vs_element): Likewise.
2441 (gfc_dep_resolver): Likewise.
2442
2443 2006-02-28 Thomas Koenig <Thomas.Koenig@online.de>
2444
2445 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc):
2446 If the mask expression exists and has rank 0, enclose the
2447 generated loop in an "if (mask)". Put the default
2448 initialization into the else branch.
2449
2450 2006-02-25 Thomas Koenig <Thomas.Koenig@online.de>
2451
2452 PR fortran/23092
2453 * trans-intrinsic.c (gfc_conv_intrinsic_arith): If the
2454 mask expression exists and has rank 0, enclose the generated
2455 loop in an "if (mask)".
2456 * (gfc_conv_intrinsic_minmaxloc): Likewise.
2457
2458 2006-02-24 Paul Thomas <pault@gcc.gnu.org>
2459
2460 PR fortran/26409
2461 * resolve.c (resolve_contained_functions, resolve_types,
2462 gfc_resolve): Revert patch of 2006-02-19.
2463
2464 2006-02-24 Paul Thomas <pault@gcc.gnu.org>
2465
2466 PR fortran/24519
2467 * dependency.c (gfc_is_same_range): Correct typo.
2468 (gfc_check_section_vs_section): Call gfc_is_same_range.
2469
2470 PR fortran/25395
2471 * trans-common.c (add_equivalences): Add a new flag that is set when
2472 an equivalence is seen that prevents more from being reset until the
2473 start of a new traversal of the list, thus ensuring completion of
2474 all the equivalences.
2475
2476 2006-02-23 Erik Edelmann <eedelman@gcc.gnu.org>
2477
2478 * module.c (read_module): Remove redundant code lines.
2479
2480 2006-02-20 Rafael \81Ávila de Esp\81índola <rafael.espindola@gmail.com>
2481 * Make-lang.in (FORTRAN): Remove
2482 (.PHONY): Remove F95 and f95. Add fortran
2483
2484 2006-02-20 Roger Sayle <roger@eyesopen.com>
2485
2486 * trans-stmt.c (gfc_trans_where_2): Avoid updating unused current
2487 execution mask for empty WHERE/ELSEWHERE clauses. Don't allocate
2488 temporary mask arrays if they won't be used.
2489
2490 2006-02-20 Roger Sayle <roger@eyesopen.com>
2491
2492 * trans-stmt.c (gfc_trans_where_assign): Remove code to handle
2493 traversing a linked list of MASKs. The MASK is now always a
2494 single element requiring no ANDing during the assignment.
2495
2496 2006-02-19 Thomas Koenig <Thomas.Koenig@online.de>
2497
2498 * gfortran.texi: Document environment variables which
2499 influence runtime behavior.
2500
2501 2006-02-19 H.J. Lu <hongjiu.lu@intel.com>
2502
2503 * resolve.c (resolve_contained_functions): Call resolve_entries
2504 first.
2505 (resolve_types): Remove calls to resolve_entries and
2506 resolve_contained_functions.
2507 (gfc_resolve): Call resolve_contained_functions.
2508
2509 2006-02-19 Erik Edelmann <eedelman@gcc.gnu.org>
2510
2511 PR fortran/26201
2512 * intrinsic.c (gfc_convert_type_warn): Call
2513 gfc_intrinsic_symbol() on the newly created symbol.
2514
2515 2006-02-19 Paul Thomas <pault@gcc.gnu.org>
2516
2517 PR fortran/25054
2518 * resolve.c (is_non_constant_shape_array): New function.
2519 (resolve_fl_variable): Remove code for the new function and call it.
2520 (resolve_fl_namelist): New function. Add test for namelist array
2521 with non-constant shape, using is_non_constant_shape_array.
2522 (resolve_symbol): Remove code for resolve_fl_namelist and call it.
2523
2524 PR fortran/25089
2525 * match.c (match_namelist): Increment the refs field of an accepted
2526 namelist object symbol.
2527 * resolve.c (resolve_fl_namelist): Test namelist objects for a conflict
2528 with contained or module procedures.
2529
2530 2006-02-18 Roger Sayle <roger@eyesopen.com>
2531
2532 * trans-stmt.c (struct temporary_list): Delete.
2533 (gfc_trans_where_2): Major reorganization. Remove no longer needed
2534 TEMP argument. Allocate and deallocate the control mask and
2535 pending control mask locally.
2536 (gfc_trans_forall_1): Delete TEMP local variable, and update
2537 call to gfc_trans_where_2. No need to deallocate arrays after.
2538 (gfc_evaluate_where_mask): Major reorganization. Change return
2539 type to void. Pass in parent execution mask, MASK, and two
2540 already allocated mask arrays CMASK and PMASK. On return
2541 CMASK := MASK & COND, PMASK := MASK & !COND. MASK, CMASK and
2542 CMASK may all be NULL, or refer to the same temporary arrays.
2543 (gfc_trans_where): Update call to gfc_trans_where_2. We no
2544 longer need a TEMP variable or to deallocate temporary arrays
2545 allocated by gfc_trans_where_2.
2546
2547 2006-02-18 Danny Smith <dannysmith@users.sourceforeg.net>
2548
2549 * gfortran.h (gfc_add_attribute): Change uint to unsigned int.
2550 * symbol.c (gfc_add_attribute): Likewise for definition.
2551 * resolve.c (resolve_global_procedure): Likewise for variable 'type'.
2552
2553 2006-02-17 Richard Sandiford <richard@codesourcery.com>
2554
2555 * trans-common.c: Include rtl.h earlier.
2556 * trans-decl.c: Likewise.
2557
2558 2006-02-16 Jakub Jelinek <jakub@redhat.com>
2559
2560 PR fortran/26224
2561 * parse.c (parse_omp_do, parse_omp_structured_block): Call
2562 gfc_commit_symbols and gfc_warning_check.
2563
2564 * openmp.c (resolve_omp_clauses): Add a dummy case label to workaround
2565 PR middle-end/26316.
2566
2567 2006-02-16 Paul Thomas <pault@gcc.gnu.org>
2568
2569 PR fortran/24557
2570 * trans-expr.c (gfc_add_interface_mapping): Use the actual argument
2571 for character(*) arrays, rather than casting to the type and kind
2572 parameters of the formal argument.
2573
2574 2006-02-15 Toon Moene <toon@moene.indiv.nluug.nl>
2575
2576 PR fortran/26054
2577 * options.c: Do not warn for Fortran 2003 features by default.
2578
2579 2006-02-15 Tobias Schl\81üter <tobias.schlueter@physik.uni-muenchen.de>
2580
2581 * check.c: Update copyright years.
2582
2583 * check.c (gfc_check_minloc_maxloc, check_reduction): Don't call
2584 dim_range_check on not-present optional dim argument.
2585
2586 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2587
2588 PR libgomp/25938
2589 PR libgomp/25984
2590 * Make-lang.in (install-finclude-dir): New goal.
2591 (fortran.install-common): Depend on install-finclude-dir.
2592 * lang-specs.h: If not -nostdinc, add -I finclude.
2593
2594 2006-02-14 Thomas Koenig <Thomas.Koenig@online.de>
2595
2596 PR fortran/25045
2597 * check.c (dim_check): Perform all checks if dim is optional.
2598 (gfc_check_minloc_maxloc): Use dim_check and dim_rank_check
2599 to check dim argument.
2600 (check_reduction): Likewise.
2601
2602 2006-02-14 Tobias Schl\81üter <tobias.schlueter@physik.uni-muenchen.de>
2603
2604 PR fortran/26277
2605 * io.c (match_ltag): Mark label as referenced.
2606
2607 2006-02-14 Jakub Jelinek <jakub@redhat.com>
2608 Richard Henderson <rth@redhat.com>
2609 Diego Novillo <dnovillo@redhat.com>
2610
2611 * invoke.texi: Document -fopenmp.
2612 * gfortran.texi (Extensions): Document OpenMP.
2613
2614 Backport from gomp-20050608-branch
2615 * trans-openmp.c: Call build_omp_clause instead of
2616 make_node when creating OMP_CLAUSE_* trees.
2617 (gfc_trans_omp_reduction_list): Remove argument 'code'.
2618 Adjust all callers.
2619
2620 * trans.h (build4_v): Define.
2621 * trans-openmp.c: Call build4_v to create OMP_PARALLEL nodes.
2622 Call build3_v to create OMP_SECTIONS nodes.
2623
2624 PR fortran/25162
2625 * openmp.c (gfc_match_omp_variable_list): Call gfc_set_sym_referenced
2626 on all symbols added to the variable list.
2627
2628 * openmp.c (gfc_match_omp_clauses): Fix check for non-INTRINSIC
2629 procedure symbol in REDUCTION.
2630
2631 * trans-openmp.c (gfc_trans_omp_array_reduction): Use gfc_add
2632 for MINUS_EXPR OMP_CLAUSE_REDUCTION_CODE.
2633
2634 * trans-openmp.c (gfc_trans_omp_do): Add PBLOCK argument. If PBLOCK
2635 is non-NULL, evaluate INIT/COND/INCR and chunk size expressions in
2636 that statement block.
2637 (gfc_trans_omp_parallel_do): Pass non-NULL PBLOCK to gfc_trans_omp_do
2638 for non-ordered non-static combined loops.
2639 (gfc_trans_omp_directive): Pass NULL PBLOCK to gfc_trans_omp_do.
2640
2641 * openmp.c: Include target.h and toplev.h.
2642 (gfc_match_omp_threadprivate): Emit diagnostic if target does
2643 not support TLS.
2644 * Make-lang.in (fortran/openmp.o): Add dependencies on
2645 target.h and toplev.h.
2646
2647 * trans-decl.c (gfc_get_fake_result_decl): Set GFC_DECL_RESULT.
2648 * trans-openmp.c (gfc_omp_privatize_by_reference): Make
2649 DECL_ARTIFICIAL vars predetermined shared except GFC_DECL_RESULT.
2650 (gfc_omp_disregard_value_expr): Handle GFC_DECL_RESULT.
2651 (gfc_trans_omp_variable): New function.
2652 (gfc_trans_omp_variable_list, gfc_trans_omp_reduction_list): Use it.
2653 * trans.h (GFC_DECL_RESULT): Define.
2654
2655 * trans-openmp.c (gfc_omp_firstprivatize_type_sizes): New function.
2656 * f95-lang.c (LANG_HOOKS_OMP_FIRSTPRIVATIZE_TYPE_SIZES): Define.
2657 * trans.h (gfc_omp_firstprivatize_type_sizes): New prototype.
2658
2659 * trans-openmp.c (gfc_omp_privatize_by_reference): Return
2660 true if a pointer has GFC_DECL_SAVED_DESCRIPTOR set.
2661 (gfc_trans_omp_array_reduction, gfc_trans_omp_reduction_list): New
2662 functions.
2663 (gfc_trans_omp_clauses): Add WHERE argument. Call
2664 gfc_trans_omp_reduction_list rather than gfc_trans_omp_variable_list
2665 for reductions.
2666 (gfc_trans_omp_do, gfc_trans_omp_parallel, gfc_trans_omp_parallel_do,
2667 gfc_trans_omp_parallel_sections, gfc_trans_omp_parallel_workshare,
2668 gfc_trans_omp_sections, gfc_trans_omp_single): Adjust
2669 gfc_trans_omp_clauses callers.
2670
2671 * openmp.c (omp_current_do_code): New var.
2672 (gfc_resolve_omp_do_blocks): New function.
2673 (gfc_resolve_omp_parallel_blocks): Call it.
2674 (gfc_resolve_do_iterator): Add CODE argument. Don't propagate
2675 predetermination if argument is !$omp do or !$omp parallel do
2676 iteration variable.
2677 * resolve.c (resolve_code): Call gfc_resolve_omp_do_blocks
2678 for EXEC_OMP_DO. Adjust gfc_resolve_do_iterator caller.
2679 * fortran.h (gfc_resolve_omp_do_blocks): New prototype.
2680 (gfc_resolve_do_iterator): Add CODE argument.
2681
2682 * trans.h (gfc_omp_predetermined_sharing,
2683 gfc_omp_disregard_value_expr, gfc_omp_private_debug_clause): New
2684 prototypes.
2685 (GFC_DECL_COMMON_OR_EQUIV, GFC_DECL_CRAY_POINTEE): Define.
2686 * trans-openmp.c (gfc_omp_predetermined_sharing,
2687 gfc_omp_disregard_value_expr, gfc_omp_private_debug_clause): New
2688 functions.
2689 * trans-common.c (build_equiv_decl, build_common_decl,
2690 create_common): Set GFC_DECL_COMMON_OR_EQUIV flag on the decls.
2691 * trans-decl.c (gfc_finish_cray_pointee): Set GFC_DECL_CRAY_POINTEE
2692 on the decl.
2693 * f95-lang.c (LANG_HOOKS_OMP_PREDETERMINED_SHARING,
2694 LANG_HOOKS_OMP_DISREGARD_VALUE_EXPR,
2695 LANG_HOOKS_OMP_PRIVATE_DEBUG_CLAUSE): Define.
2696
2697 * openmp.c (resolve_omp_clauses): Remove extraneous comma.
2698
2699 * symbol.c (check_conflict): Add conflict between cray_pointee and
2700 threadprivate.
2701 * openmp.c (gfc_match_omp_threadprivate): Fail if
2702 gfc_add_threadprivate returned FAILURE.
2703 (resolve_omp_clauses): Diagnose Cray pointees in SHARED,
2704 {,FIRST,LAST}PRIVATE and REDUCTION clauses and Cray pointers in
2705 {FIRST,LAST}PRIVATE and REDUCTION clauses.
2706
2707 * resolve.c (omp_workshare_flag): New variable.
2708 (resolve_function): Diagnose use of non-ELEMENTAL user defined
2709 function in WORKSHARE construct.
2710 (resolve_code): Cleanup forall_save use. Make sure omp_workshare_flag
2711 is set to correct value in different contexts.
2712
2713 * openmp.c (resolve_omp_clauses): Replace %s with '%s' when printing
2714 variable name.
2715 (resolve_omp_atomic): Likewise.
2716
2717 PR fortran/24493
2718 * scanner.c (skip_free_comments): Set at_bol at the beginning of the
2719 loop, not before it.
2720 (skip_fixed_comments): Handle ! comments in the middle of line here
2721 as well.
2722 (gfc_skip_comments): Use skip_fixed_comments for FIXED_FORM even if
2723 not at BOL.
2724 (gfc_next_char_literal): Fix expected canonicalized *$omp string.
2725
2726 * trans-openmp.c (gfc_trans_omp_do): Use make_node and explicit
2727 initialization to build OMP_FOR instead of build.
2728
2729 * trans-decl.c (gfc_gimplify_function): Invoke
2730 diagnose_omp_structured_block_errors.
2731
2732 * trans-openmp.c (gfc_trans_omp_master): Use OMP_MASTER.
2733 (gfc_trans_omp_ordered): Use OMP_ORDERED.
2734
2735 * gfortran.h (gfc_resolve_do_iterator, gfc_resolve_blocks,
2736 gfc_resolve_omp_parallel_blocks): New prototypes.
2737 * resolve.c (resolve_blocks): Renamed to...
2738 (gfc_resolve_blocks): ... this. Remove static.
2739 (gfc_resolve_forall): Adjust caller.
2740 (resolve_code): Only call gfc_resolve_blocks if code->block != 0
2741 and not for EXEC_OMP_PARALLEL* directives. Call
2742 gfc_resolve_omp_parallel_blocks for EXEC_OMP_PARALLEL* directives.
2743 Call gfc_resolve_do_iterator if resolved successfully EXEC_DO
2744 iterator.
2745 * openmp.c: Include pointer-set.h.
2746 (omp_current_ctx): New variable.
2747 (gfc_resolve_omp_parallel_blocks, gfc_resolve_do_iterator): New
2748 functions.
2749 * Make-lang.in (fortran/openmp.o): Depend on pointer-set.h.
2750
2751 * openmp.c (gfc_match_omp_clauses): For max/min/iand/ior/ieor,
2752 look up symbol if it exists, use its name instead and, if it is not
2753 INTRINSIC, issue diagnostics.
2754
2755 * parse.c (parse_omp_do): Handle implied end do properly.
2756 (parse_executable): If parse_omp_do returned ST_IMPLIED_ENDDO,
2757 return it instead of continuing.
2758
2759 * trans-openmp.c (gfc_trans_omp_critical): Update for changed
2760 operand numbering.
2761 (gfc_trans_omp_do, gfc_trans_omp_parallel, gfc_trans_omp_parallel_do,
2762 gfc_trans_omp_parallel_sections, gfc_trans_omp_parallel_workshare,
2763 gfc_trans_omp_sections, gfc_trans_omp_single): Likewise.
2764
2765 * trans.h (gfc_omp_privatize_by_reference): New prototype.
2766 * f95-lang.c (LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE): Redefine
2767 to gfc_omp_privatize_by_reference.
2768 * trans-openmp.c (gfc_omp_privatize_by_reference): New function.
2769
2770 * trans-stmt.h (gfc_trans_omp_directive): Add comment.
2771
2772 * openmp.c (gfc_match_omp_variable_list): Add ALLOW_COMMON argument.
2773 Disallow COMMON matching if it is set.
2774 (gfc_match_omp_clauses, gfc_match_omp_flush): Adjust all callers.
2775 (resolve_omp_clauses): Show locus in error messages. Check that
2776 variable types in reduction clauses are appropriate for reduction
2777 operators.
2778
2779 * resolve.c (resolve_symbol): Don't error if a threadprivate module
2780 variable isn't SAVEd.
2781
2782 * trans-openmp.c (gfc_trans_omp_do): Put count into BLOCK, not BODY.
2783 Fix typo in condition. Fix DOVAR initialization.
2784
2785 * openmp.c (gfc_match_omp_clauses): Match min/iand/ior/ieor
2786 rather than .min. etc.
2787
2788 * trans-openmpc.c (omp_not_yet): Remove.
2789 (gfc_trans_omp_parallel_do): Keep listprivate clause on parallel.
2790 Force creation of BIND_EXPR around the workshare construct.
2791 (gfc_trans_omp_parallel_sections): Likewise.
2792 (gfc_trans_omp_parallel_workshare): Likewise.
2793
2794 * types.def (BT_I16, BT_FN_I16_VPTR_I16,
2795 BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
2796
2797 * trans-openmp.c (gfc_trans_omp_clauses): Create OMP_CLAUSE_DEFAULT.
2798 (gfc_trans_omp_code): New function.
2799 (gfc_trans_omp_do): Use it, remove omp_not_yet uses.
2800 (gfc_trans_omp_parallel, gfc_trans_omp_single): Likewise.
2801 (gfc_trans_omp_sections): Likewise. Only treat empty last section
2802 specially if lastprivate clause is present.
2803 * f95-lang.c (gfc_init_builtin_functions): Create BUILT_IN_TRAP
2804 builtin.
2805
2806 * trans-openmp.c (gfc_trans_omp_variable_list): Update for
2807 OMP_CLAUSE_DECL name change.
2808 (gfc_trans_omp_do): Likewise.
2809
2810 * trans-openmp.c (gfc_trans_omp_clauses): Create OMP_CLAUSE_REDUCTION
2811 clauses.
2812 (gfc_trans_omp_atomic): Build OMP_ATOMIC instead of expanding
2813 sync builtins directly.
2814 (gfc_trans_omp_single): Build OMP_SINGLE statement.
2815
2816 * trans-openmp.c (gfc_trans_add_clause): New.
2817 (gfc_trans_omp_variable_list): Take a tree code and build the clause
2818 node here. Link it to the head of a list.
2819 (gfc_trans_omp_clauses): Update to match.
2820 (gfc_trans_omp_do): Use gfc_trans_add_clause.
2821
2822 * trans-openmp.c (gfc_trans_omp_clauses): Change second argument to
2823 gfc_omp_clauses *. Use gfc_evaluate_now instead of creating
2824 temporaries by hand.
2825 (gfc_trans_omp_atomic, gfc_trans_omp_critical): Use buildN_v macros.
2826 (gfc_trans_omp_do): New function.
2827 (gfc_trans_omp_master): Dont' check for gfc_trans_code returning NULL.
2828 (gfc_trans_omp_parallel): Adjust gfc_trans_omp_clauses caller.
2829 Use buildN_v macros.
2830 (gfc_trans_omp_parallel_do, gfc_trans_omp_parallel_sections,
2831 gfc_trans_omp_parallel_workshare, gfc_trans_omp_sections,
2832 gfc_trans_omp_single, gfc_trans_omp_workshare): New functions.
2833 (gfc_trans_omp_directive): Use them.
2834 * parse.c (parse_omp_do): Allow new_st.op == EXEC_NOP.
2835 * openmp.c (resolve_omp_clauses): Check for list items present
2836 in multiple clauses.
2837 (resolve_omp_do): Check that iteration variable is not THREADPRIVATE
2838 and is not present in any clause variable lists other than PRIVATE
2839 or LASTPRIVATE.
2840
2841 * gfortran.h (symbol_attribute): Add threadprivate bit.
2842 (gfc_common_head): Add threadprivate member, change use_assoc
2843 and saved into char to save space.
2844 (gfc_add_threadprivate): New prototype.
2845 * symbol.c (check_conflict): Handle threadprivate.
2846 (gfc_add_threadprivate): New function.
2847 (gfc_copy_attr): Copy threadprivate.
2848 * trans-openmp.c (gfc_trans_omp_clauses): Avoid creating a temporary
2849 if IF or NUM_THREADS is constant. Create OMP_CLAUSE_SCHEDULE and
2850 OMP_CLAUSE_ORDERED.
2851 * resolve.c (resolve_symbol): Complain if a THREADPRIVATE symbol
2852 outside a module and not in COMMON has is not SAVEd.
2853 (resolve_equivalence): Ensure THREADPRIVATE objects don't get
2854 EQUIVALENCEd.
2855 * trans-common.c: Include target.h and rtl.h.
2856 (build_common_decl): Set DECL_TLS_MODEL if THREADPRIVATE.
2857 * trans-decl.c: Include rtl.h.
2858 (gfc_finish_var_decl): Set DECL_TLS_MODEL if THREADPRIVATE.
2859 * dump-parse-tree.c (gfc_show_attr): Handle THREADPRIVATE.
2860 * Make-lang.in (fortran/trans-decl.o): Depend on $(RTL_H).
2861 (fortran/trans-common.o): Depend on $(RTL_H) and $(TARGET_H).
2862 * openmp.c (gfc_match_omp_variable_list): Ensure COMMON block
2863 is from current namespace.
2864 (gfc_match_omp_threadprivate): Rewrite.
2865 (resolve_omp_clauses): Check some clause restrictions.
2866 * module.c (ab_attribute): Add AB_THREADPRIVATE.
2867 (attr_bits): Add THREADPRIVATE.
2868 (mio_symbol_attribute, mio_symbol_attribute): Handle threadprivate.
2869 (load_commons, write_common, write_blank_common): Adjust for type
2870 change of saved, store/load threadprivate bit from the integer
2871 as well.
2872
2873 * types.def (BT_FN_UINT_UINT): New.
2874 (BT_FN_VOID_UINT_UINT): Remove.
2875
2876 * trans-openmp.c (gfc_trans_omp_clauses, gfc_trans_omp_barrier,
2877 gfc_trans_omp_critical, gfc_trans_omp_flush, gfc_trans_omp_master,
2878 gfc_trans_omp_ordered, gfc_trans_omp_parallel): New functions.
2879 (gfc_trans_omp_directive): Use them.
2880
2881 * openmp.c (expr_references_sym): Add SE argument, don't look
2882 into SE tree.
2883 (is_conversion): New function.
2884 (resolve_omp_atomic): Adjust expr_references_sym callers. Handle
2885 promoted expressions.
2886 * trans-openmp.c (gfc_trans_omp_atomic): New function.
2887 (gfc_trans_omp_directive): Call it.
2888
2889 * f95-lang.c (builtin_type_for_size): New function.
2890 (gfc_init_builtin_functions): Initialize synchronization and
2891 OpenMP builtins.
2892 * types.def: New file.
2893 * Make-lang.in (f95-lang.o): Depend on $(BUILTINS_DEF) and
2894 fortran/types.def.
2895
2896 * trans-openmp.c: Rename GOMP_* tree codes into OMP_*.
2897
2898 * dump-parse-tree.c (show_symtree): Don't crash if ns->proc_name
2899 is NULL.
2900
2901 * dump-parse-tree.c (gfc_show_namelist, gfc_show_omp_node): New
2902 functions.
2903 (gfc_show_code_node): Call gfc_show_omp_node for EXEC_OMP_* nodes.
2904
2905 * parse.c (parse_omp_do): Call pop_state before next_statement.
2906 * openmp.c (expr_references_sym, resolve_omp_atomic, resolve_omp_do):
2907 New functions.
2908 (gfc_resolve_omp_directive): Call them.
2909 * match.c (match_exit_cycle): Issue error if EXIT or CYCLE statement
2910 leaves an OpenMP structured block or if EXIT terminates !$omp do
2911 loop.
2912
2913 * Make-lang.in (F95_PARSER_OBJS): Add fortran/openmp.o.
2914 (F95_OBJS): Add fortran/trans-openmp.o.
2915 (fortran/trans-openmp.o): Depend on $(GFORTRAN_TRANS_DEPS).
2916 * lang.opt: Add -fopenmp option.
2917 * options.c (gfc_init_options): Initialize it.
2918 (gfc_handle_option): Handle it.
2919 * gfortran.h (ST_OMP_ATOMIC, ST_OMP_BARRIER, ST_OMP_CRITICAL,
2920 ST_OMP_END_CRITICAL, ST_OMP_END_DO, ST_OMP_END_MASTER,
2921 ST_OMP_END_ORDERED, ST_OMP_END_PARALLEL, ST_OMP_END_PARALLEL_DO,
2922 ST_OMP_END_PARALLEL_SECTIONS, ST_OMP_END_PARALLEL_WORKSHARE,
2923 ST_OMP_END_SECTIONS, ST_OMP_END_SINGLE, ST_OMP_END_WORKSHARE,
2924 ST_OMP_DO, ST_OMP_FLUSH, ST_OMP_MASTER, ST_OMP_ORDERED,
2925 ST_OMP_PARALLEL, ST_OMP_PARALLEL_DO, ST_OMP_PARALLEL_SECTIONS,
2926 ST_OMP_PARALLEL_WORKSHARE, ST_OMP_SECTIONS, ST_OMP_SECTION,
2927 ST_OMP_SINGLE, ST_OMP_THREADPRIVATE, ST_OMP_WORKSHARE): New
2928 statement codes.
2929 (OMP_LIST_PRIVATE, OMP_LIST_FIRSTPRIVATE, OMP_LIST_LASTPRIVATE,
2930 OMP_LIST_COPYPRIVATE, OMP_LIST_SHARED, OMP_LIST_COPYIN,
2931 OMP_LIST_PLUS, OMP_LIST_REDUCTION_FIRST, OMP_LIST_MULT,
2932 OMP_LIST_SUB, OMP_LIST_AND, OMP_LIST_OR, OMP_LIST_EQV,
2933 OMP_LIST_NEQV, OMP_LIST_MAX, OMP_LIST_MIN, OMP_LIST_IAND,
2934 OMP_LIST_IOR, OMP_LIST_IEOR, OMP_LIST_REDUCTION_LAST, OMP_LIST_NUM):
2935 New OpenMP variable list types.
2936 (gfc_omp_clauses): New typedef.
2937 (gfc_get_omp_clauses): Define.
2938 (EXEC_OMP_CRITICAL, EXEC_OMP_DO, EXEC_OMP_FLUSH, EXEC_OMP_MASTER,
2939 EXEC_OMP_ORDERED, EXEC_OMP_PARALLEL, EXEC_OMP_PARALLEL_DO,
2940 EXEC_OMP_PARALLEL_SECTIONS, EXEC_OMP_PARALLEL_WORKSHARE,
2941 EXEC_OMP_SECTIONS, EXEC_OMP_SINGLE, EXEC_OMP_WORKSHARE,
2942 EXEC_OMP_ATOMIC, EXEC_OMP_BARRIER, EXEC_OMP_END_NOWAIT,
2943 EXEC_OMP_END_SINGLE): New OpenMP gfc_exec_op codes.
2944 (struct gfc_code): Add omp_clauses, omp_name, omp_namelist
2945 and omp_bool fields to ext union.
2946 (flag_openmp): Declare.
2947 (gfc_free_omp_clauses, gfc_resolve_omp_directive): New prototypes.
2948 * scanner.c (openmp_flag, openmp_locus): New variables.
2949 (skip_free_comments, skip_fixed_comments, gfc_next_char_literal):
2950 Handle OpenMP directive lines and conditional compilation magic
2951 comments.
2952 * parse.h (COMP_OMP_STRUCTURED_BLOCK): New compile state.
2953 * parse.c (decode_omp_directive, parse_omp_do, parse_omp_atomic,
2954 parse_omp_structured_block): New functions.
2955 (next_free, next_fixed): Parse OpenMP directives.
2956 (case_executable, case_exec_markers, case_decl): Add ST_OMP_*
2957 codes.
2958 (gfc_ascii_statement): Handle ST_OMP_* codes.
2959 (parse_executable): Rearrange the loop slightly, so that
2960 parse_omp_do can return next_statement.
2961 * match.h (gfc_match_omp_eos, gfc_match_omp_atomic,
2962 gfc_match_omp_barrier, gfc_match_omp_critical, gfc_match_omp_do,
2963 gfc_match_omp_flush, gfc_match_omp_master, gfc_match_omp_ordered,
2964 gfc_match_omp_parallel, gfc_match_omp_parallel_do,
2965 gfc_match_omp_parallel_sections, gfc_match_omp_parallel_workshare,
2966 gfc_match_omp_sections, gfc_match_omp_single,
2967 gfc_match_omp_threadprivate, gfc_match_omp_workshare,
2968 gfc_match_omp_end_nowait, gfc_match_omp_end_single): New prototypes.
2969 * resolve.c (resolve_blocks): Ignore EXEC_OMP_* block directives.
2970 (resolve_code): Call gfc_resolve_omp_directive on EXEC_OMP_*
2971 directives.
2972 * trans.c (gfc_trans_code): Call gfc_trans_omp_directive for
2973 EXEC_OMP_* directives.
2974 * st.c (gfc_free_statement): Handle EXEC_OMP_* statement freeing.
2975 * trans-stmt.h (gfc_trans_omp_directive): New prototype.
2976 * openmp.c: New file.
2977 * trans-openmp.c: New file.
2978
2979 2006-02-13 Andrew Pinski <pinskia@physics.uc.edu>
2980 Jakub Jelinek <jakub@redhat.com>
2981
2982 PR fortran/26246
2983 * trans-decl.c (gfc_get_symbol_decl, gfc_get_fake_result_decl): Use
2984 gfc_add_decl_to_function rather than gfc_finish_var_decl on length.
2985
2986 2006-02-13 Paul Thomas <pault@gcc.gnu.org>
2987
2988 PR fortran/26074
2989 PR fortran/25103
2990 * resolve.c (resolve_symbol): Extend the requirement that module
2991 arrays have constant bounds to those in the main program. At the
2992 same time simplify the array bounds, to avoiding trapping parameter
2993 array references, and exclude automatic character length from main
2994 and modules. Rearrange resolve_symbol and resolve_derived to put as
2995 each flavor together, as much as is possible and move all specific
2996 code for flavors FL_VARIABLE, FL_PROCEDURE and FL_PARAMETER into new
2997 functions.
2998 (resolve_fl_var_and_proc, resolve_fl_variable, resolve_fl_procedure):
2999 New functions to do work of resolve_symbol.
3000 (resolve_index_expr): New function that is called from resolved_symbol
3001 and is extracted from resolve_charlen.
3002 (resolve_charlen): Call this new function.
3003 (resolve_fl_derived): Renamed resolve_derived to be consistent with
3004 the naming of the new functions for the other flavours. Change the
3005 charlen checking so that the style is consistent with other similar
3006 checks. Add the generation of the gfc_dt_list, removed from resolve_
3007 symbol.
3008
3009 PR fortran/20861
3010 * resolve.c (resolve_actual_arglist): Prevent internal procedures
3011 from being dummy arguments.
3012
3013 PR fortran/20871
3014 * resolve.c (resolve_actual_arglist): Prevent pure but non-intrinsic
3015 procedures from being dummy arguments.
3016
3017 PR fortran/25083
3018 * resolve.c (check_data_variable): Add test that data variable is in
3019 COMMON.
3020
3021 PR fortran/25088
3022 * resolve.c (resolve_call): Add test that the subroutine does not
3023 have a type.
3024
3025 2006-02-12 Erik Edelmann <eedelman@gcc.gnu.org>
3026
3027 PR fortran/25806
3028 * trans-array.c (gfc_trans_allocate_array_storage): New argument
3029 dealloc; free the temporary only if dealloc is true.
3030 (gfc_trans_allocate_temp_array): New argument bool dealloc, to be
3031 passed onwards to gfc_trans_allocate_array_storage.
3032 (gfc_trans_array_constructor, gfc_conv_loop_setup): Update call to
3033 gfc_trans_allocate_temp_array.
3034 * trans-array.h (gfc_trans_allocate_temp_array): Update function
3035 prototype.
3036 * trans-expr.c (gfc_conv_function_call): Set new argument 'dealloc'
3037 to gfc_trans_allocate_temp_array to false in case of functions
3038 returning pointers.
3039 (gfc_trans_arrayfunc_assign): Return NULL for functions returning
3040 pointers.
3041
3042 2006-02-10 Steven G. Kargl <kargls@comcast.net>
3043
3044 PR fortran/20858
3045 *decl.c (variable_decl): Improve error message. Remove initialization
3046 typespec. Wrap long line.
3047 *expr.c (gfc_check_pointer_assign): Permit checking of type, kind type,
3048 and rank.
3049 *simplify.c (gfc_simplify_null): Ensure type, kind type, and rank
3050 are set.
3051
3052
3053 2006-02-10 Tobias Schl\81üter <tobias.schlueter@physik.uni-muenchen.de>
3054
3055 PR fortran/14771
3056 * arith.c (eval_intrinsic): Accept INTRINSIC_PARENTHESES.
3057 * expr.c (check_intrinsic_op): Likewise.
3058 * module.c (mio_expr): Likewise.
3059
3060 2006-02-09 Tobias Schl\81üter <tobias.schlueter@physik.uni-muenchen.de>
3061
3062 * dump-parse-tree.c: Update copyright years.
3063 * matchexp.c: Likewise.
3064 * module.c: Likewise.
3065
3066 PR fortran/14771
3067 * gfortran.h (gfc_intrinsic_op): Add INTRINSIC_PARENTHESES.
3068 * dump-parse-tree (gfc_show_expr): Handle INTRINSIC_PARENTHESES.
3069 * expr.c (simplify_intrinsic_op): Treat INTRINSIC_PARENTHESES as
3070 if it were INTRINSIC_UPLUS.
3071 * resolve.c (resolve_operator): Handle INTRINSIC_PARENTHESES.
3072 * match.c (intrinsic_operators): Add INTRINSIC_PARENTHESES.
3073 * matchexp.c (match_primary): Record parentheses surrounding
3074 numeric expressions.
3075 * module.c (intrinsics): Add INTRINSIC_PARENTHESES for module
3076 dumping.
3077 * trans-expr.c (gfc_conv_expr_op): Handle INTRINSIC_PARENTHESES.
3078
3079 2006-02-09 Paul Thomas <pault@gcc.gnu.org>
3080
3081 PR fortran/26038
3082 * trans-stmt.c (gfc_trans_allocate): Provide assumed character length
3083 scalar with missing backend_decl for the hidden dummy charlen.
3084
3085 PR fortran/25059
3086 * interface.c (gfc_extend_assign): Remove detection of non-PURE
3087 subroutine in assignment interface, with gfc_error, and put it in
3088 * resolve.c (resolve_code).
3089
3090 PR fortran/25070
3091 * interface.c (gfc_procedure_use): Flag rank checking for non-
3092 elemental, contained or interface procedures in call to
3093 (compare_actual_formal), where ranks are checked for assumed
3094 shape arrays..
3095
3096 2006-02-08 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3097
3098 PR libfortran/25425
3099 * trans-decl.c (gfc_generate_function_code): Add new argument,
3100 pedantic, to set_std call.
3101
3102 2006-02-06 Thomas Koenig <Thomas.Koenig@online.de>
3103
3104 PR libfortran/23815
3105 * gfortran.texi: Document the GFORTRAN_CONVERT_UNIT environment
3106 variable.
3107 * invoke.texi: Mention the "Runtime" chapter.
3108 Document the -fconvert= option.
3109 * gfortran.h: Add options_convert.
3110 * lang.opt: Add fconvert=little-endian, fconvert=big-endian,
3111 fconvert=native and fconvert=swap.
3112 * trans-decl.c (top level): Add gfor_fndecl_set_convert.
3113 (gfc_build_builtin_function_decls): Set gfor_fndecl_set_convert.
3114 (gfc_generate_function_code): If -fconvert was specified,
3115 and this is the main program, add a call to set_convert().
3116 * options.c: Handle the -fconvert options.
3117
3118 2006-02-06 Roger Sayle <roger@eyesopen.com>
3119
3120 * trans-stmt.c (gfc_evaluate_where_mask): Allow the NMASK argument
3121 to be NULL to indicate that the not mask isn't required.
3122 (gfc_trans_where_2): Remove PMASK argument. Avoid calculating the
3123 pending mask for the last clause of a WHERE chain. Update recursive
3124 call.
3125 (gfc_trans_forall_1): Update call to gfc_trans_where_2.
3126 (gfc_trans_where): Likewise.
3127
3128 2006-02-06 Jakub Jelinek <jakub@redhat.com>
3129
3130 Backport from gomp-20050608-branch
3131 * trans-decl.c (create_function_arglist): Handle dummy functions.
3132
3133 * trans-decl.c (gfc_get_symbol_decl): Revert explicit setting of
3134 TYPE_SIZE_UNIT.
3135 (gfc_trans_vla_type_sizes): Also "gimplify"
3136 GFC_TYPE_ARRAY_DATAPTR_TYPE for GFC_DESCRIPTOR_TYPE_P types.
3137 * trans-array.c (gfc_trans_deferred_array): Call
3138 gfc_trans_vla_type_sizes.
3139
3140 * trans-decl.c (saved_function_decls, saved_parent_function_decls):
3141 Remove unnecessary initialization.
3142 (create_function_arglist): Make sure __result has complete type.
3143 (gfc_get_fake_result_decl): Change current_fake_result_decl into
3144 a tree chain. For entry master, create a separate variable
3145 for each result name. For BT_CHARACTER results, call
3146 gfc_finish_var_decl on length even if it has been already created,
3147 but not pushdecl'ed.
3148 (gfc_trans_vla_type_sizes): For function/entry result, adjust
3149 result value type, not the FUNCTION_TYPE.
3150 (gfc_generate_function_code): Adjust for current_fake_result_decl
3151 changes.
3152 (gfc_trans_deferred_vars): Likewise. Call gfc_trans_vla_type_sizes
3153 even on result if it is assumed-length character.
3154
3155 * trans-decl.c (gfc_trans_dummy_character): Add SYM argument.
3156 Call gfc_trans_vla_type_sizes.
3157 (gfc_trans_auto_character_variable): Call gfc_trans_vla_type_sizes.
3158 (gfc_trans_vla_one_sizepos, gfc_trans_vla_type_sizes_1,
3159 gfc_trans_vla_type_sizes): New functions.
3160 (gfc_trans_deferred_vars): Adjust gfc_trans_dummy_character
3161 callers. Call gfc_trans_vla_type_sizes on assumed-length
3162 character parameters.
3163 * trans-array.c (gfc_trans_array_bounds,
3164 gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias): Call
3165 gfc_trans_vla_type_sizes.
3166 * trans.h (gfc_trans_vla_type_sizes): New prototype.
3167
3168 * trans-decl.c (gfc_build_qualified_array): For non-assumed-size
3169 arrays without constant size, create also an index var for
3170 GFC_TYPE_ARRAY_SIZE (type). If the type is incomplete, complete
3171 it as 0..size-1.
3172 (gfc_create_string_length): Don't call gfc_defer_symbol_init
3173 if just creating DECL_ARGUMENTS.
3174 (gfc_get_symbol_decl): Call gfc_finish_var_decl and
3175 gfc_defer_symbol_init even if ts.cl->backend_decl is already
3176 set to a VAR_DECL that doesn't have DECL_CONTEXT yet.
3177 (create_function_arglist): Rework, so that hidden length
3178 arguments for CHARACTER parameters are created together with
3179 the parameters. Resolve ts.cl->backend_decl for CHARACTER
3180 parameters. If the argument is a non-constant length array
3181 or CHARACTER, ensure PARM_DECL has different type than
3182 its DECL_ARG_TYPE.
3183 (generate_local_decl): Call gfc_get_symbol_decl even
3184 for non-referenced non-constant length CHARACTER parameters
3185 after optionally issuing warnings.
3186 * trans-array.c (gfc_trans_array_bounds): Set last stride
3187 to GFC_TYPE_ARRAY_SIZE (type) to initialize it as well.
3188 (gfc_trans_dummy_array_bias): Initialize GFC_TYPE_ARRAY_SIZE (type)
3189 variable as well.
3190
3191 * trans-expr.c (gfc_conv_expr_val): Fix comment typo.
3192
3193 * trans-stmt.c (gfc_trans_simple_do): Fix comment.
3194
3195 2006-02-04 Roger Sayle <roger@eyesopen.com>
3196
3197 * dependency.c (gfc_check_dependency): Remove unused vars and nvars
3198 arguments. Replace with an "identical" argument. A full array
3199 reference to the same symbol is a dependency if identical is true.
3200 * dependency.h (gfc_check_dependency): Update prototype.
3201 * trans-array.h (gfc_check_dependency): Delete duplicate prototype.
3202 * trans-stmt.c: #include dependency.h for gfc_check_dependency.
3203 (gfc_trans_forall_1): Update calls to gfc_check_dependency.
3204 (gfc_trans_where_2): Likewise. Remove unneeded variables.
3205 (gfc_trans_where_3): New function for simple non-dependent WHEREs.
3206 (gfc_trans_where): Call gfc_trans_where_3 to translate simple
3207 F90-style WHERE statements without internal dependencies.
3208 * Make-lang.in (trans-stmt.o): Depend upon dependency.h.
3209
3210 2006-02-05 H.J. Lu <hongjiu.lu@intel.com>
3211
3212 PR fortran/26041
3213 PR fortran/26064
3214 * resolve.c (resolve_types): New function.
3215 (resolve_codes): Likewise.
3216 (gfc_resolve): Use them.
3217
3218 2006-02-05 Roger Sayle <roger@eyesopen.com>
3219
3220 * trans-stmt.c (gfc_evaluate_where_mask): Use LOGICAL*1 for WHERE
3221 masks instead of LOGICAL*4.
3222
3223 2006-02-05 Jakub Jelinek <jakub@redhat.com>
3224
3225 * resolve.c (resolve_symbol): Initialize constructor_expr to NULL.
3226
3227 2006-02-04 Thomas Koenig <Thomas.Koenig@online.de>
3228
3229 PR fortran/25075
3230 check.c (identical_dimen_shape): New function.
3231 (check_dot_product): Use identical_dimen_shape() to check sizes
3232 for dot_product.
3233 (gfc_check_matmul): Likewise.
3234 (gfc_check_merge): Check conformance between tsource and fsource
3235 and between tsource and mask.
3236 (gfc_check_pack): Check conformance between array and mask.
3237
3238 2006-02-03 Steven G. Kargl <kargls@comcast>
3239 Paul Thomas <pault@gcc.gnu.org>
3240
3241 PR fortran/20845
3242 * resolve.c (resolve_symbol): Default initialization of derived type
3243 component reguires the SAVE attribute.
3244
3245 2006-02-02 Steven G. Kargl <kargls@comcast>
3246
3247 PR fortran/24958
3248 match.c (gfc_match_nullify): Free the list from head not tail.
3249
3250 PR fortran/25072
3251 * match.c (match_forall_header): Fix internal error caused by bogus
3252 gfc_epxr pointers.
3253
3254
3255 2006-01-31 Thomas Koenig <Thomas.Koenig@online.de>
3256
3257 PR fortran/26039
3258 expr.c (gfc_check_conformance): Reorder error message
3259 to avoid plural.
3260 check.c(gfc_check_minloc_maxloc): Call gfc_check_conformance
3261 for checking arguments array and mask.
3262 (check_reduction): Likewise.
3263
3264 2006-01-30 Erik Edelmann <eedelman@gcc.gnu.org>
3265
3266 PR fortran/24266
3267 * trans-io.c (set_internal_unit): Check the rank of the
3268 expression node itself instead of its symbol.
3269
3270 2006-01-29 Paul Thomas <pault@gcc.gnu.org>
3271
3272 PR fortran/18578
3273 PR fortran/18579
3274 PR fortran/20857
3275 PR fortran/20885
3276 * interface.c (compare_actual_formal): Error for INTENT(OUT or INOUT)
3277 if actual argument is not a variable.
3278
3279 2006-01-28 Paul Thomas <pault@gcc.gnu.org>
3280
3281 PR fortran/17911
3282 * expr.c (gfc_check_assign, gfc_check_pointer_assign): Emit error if
3283 the lvalue is a use associated procedure.
3284
3285 PR fortran/20895
3286 PR fortran/25030
3287 * expr.c (gfc_check_pointer_assign): Emit error if lvalue and rvalue
3288 character lengths are not the same. Use gfc_dep_compare_expr for the
3289 comparison.
3290 * gfortran.h: Add prototype for gfc_dep_compare_expr.
3291 * dependency.h: Remove prototype for gfc_dep_compare_expr.
3292
3293 2006-01-27 Paul Thomas <pault@gcc.gnu.org>
3294
3295 PR fortran/25964
3296 * resolve.c (resolve_function): Add GFC_ISYM_LOC to the list of
3297 generic_ids exempted from assumed size checking.
3298
3299 2006-01-27 Jakub Jelinek <jakub@redhat.com>
3300
3301 PR fortran/25324
3302 * Make-lang.in (fortran/scanner.o): Depend on toplev.h.
3303 * lang.opt (fpreprocessed): New option.
3304 * scanner.c: Include toplev.h.
3305 (gfc_src_file, gfc_src_preprocessor_lines): New variables.
3306 (preprocessor_line): Unescape filename if there were any
3307 backslashes.
3308 (load_file): If initial and gfc_src_file is not NULL,
3309 use it rather than opening the file. If gfc_src_preprocessor_lines
3310 has non-NULL elements, pass it to preprocessor_line.
3311 (unescape_filename, gfc_read_orig_filename): New functions.
3312 * gfortran.h (gfc_option_t): Add flag_preprocessed.
3313 (gfc_read_orig_filename): New prototype.
3314 * options.c (gfc_init_options): Clear flag_preprocessed.
3315 (gfc_post_options): If flag_preprocessed, call
3316 gfc_read_orig_filename.
3317 (gfc_handle_option): Handle OPT_fpreprocessed.
3318 * lang-specs.h: Pass -fpreprocessed to f951 if preprocessing
3319 sources.
3320
3321 2006-01-27 Erik Edelmann <eedelman@gcc.gnu.org>
3322
3323 * symbol.c (free_old_symbol): Fix confusing comment, and add code
3324 to free old_symbol->formal.
3325
3326 2006-01-26 Paul Thomas <pault@gcc.gnu.org>
3327
3328 PR fortran/25964
3329 * resolve.c (resolve_function): Exclude statement functions from
3330 global reference checking.
3331
3332 PR fortran/25084
3333 PR fortran/20852
3334 PR fortran/25085
3335 PR fortran/25086
3336 * resolve.c (resolve_function): Declare a gfc_symbol to replace the
3337 references through the symtree to the symbol associated with the
3338 function expresion. Give error on reference to an assumed character
3339 length function is defined in an interface or an external function
3340 that is not a dummy argument.
3341 (resolve_symbol): Give error if an assumed character length function
3342 is array-valued, pointer-valued, pure or recursive. Emit warning
3343 that character(*) value functions are obsolescent in F95.
3344
3345 PR fortran/25416
3346 * trans-expr.c (gfc_conv_function_call): The above patch to resolve.c
3347 prevents any assumed character length function call from getting here
3348 except intrinsics such as SPREAD. In this case, ensure that no
3349 segfault occurs from referencing non-existent charlen->length->
3350 expr_type and provide a backend_decl for the charlen from the charlen
3351 of the first actual argument.
3352
3353 Cure temp name confusion.
3354 * trans-expr.c (gfc_get_interface_mapping_array): Change name of
3355 temporary from "parm" to "ifm" to avoid clash with temp coming from
3356 trans-array.c.
3357
3358 2006-01-25 Erik Edelmann <eedelman@gcc.gnu.org>
3359
3360 PR fortran/25716
3361 * symbol.c (free_old_symbol): New function.
3362 (gfc_commit_symbols): Use it.
3363 (gfc_commit_symbol): New function.
3364 (gfc_use_derived): Use it.
3365 * gfortran.h: Add prototype for gfc_commit_symbol.
3366 * intrinsic.c (gfc_find_function): Search in 'conversion'
3367 if not found in 'functions'.
3368 (gfc_convert_type_warn): Add a symtree to the new
3369 expression node, and commit the new symtree->n.sym.
3370 * resolve.c (gfc_resolve_index): Make sure typespec is
3371 properly initialized.
3372
3373 2006-01-23 Paul Thomas <pault@gcc.gnu.org>
3374
3375 PR fortran/25901
3376 * decl.c (get_proc_name): Replace subroutine and function attributes
3377 in "already defined" test by the formal arglist pointer being non-NULL.
3378
3379 Fix regression in testing of admissability of attributes.
3380 * symbol.c (gfc_add_attribute): If the current_attr has non-zero
3381 intent, do not do the check for a dummy being used.
3382 * decl.c (attr_decl1): Add current_attr.intent as the third argument
3383 in the call to gfc_add_attribute.
3384 * gfortran.h: Add the third argument to the prototype for
3385 gfc_add_attribute.
3386
3387 2006-01-21 Joseph S. Myers <joseph@codesourcery.com>
3388
3389 * gfortranspec.c (lang_specific_driver): Update copyright notice
3390 date.
3391
3392 2006-01-21 Paul Thomas <pault@gcc.gnu.org>
3393
3394 PR fortran/25124
3395 PR fortran/25625
3396 * decl.c (get_proc_name): If there is an existing
3397 symbol in the encompassing namespace, call errors
3398 if it is a procedure of the same name or the kind
3399 field is set, indicating a type declaration.
3400
3401 PR fortran/20881
3402 PR fortran/23308
3403 PR fortran/25538
3404 PR fortran/25710
3405 * decl.c (add_global_entry): New function to check
3406 for existing global symbol with this name and to
3407 create new one if none exists.
3408 (gfc_match_entry): Call add_global_entry before
3409 matching argument lists for subroutine and function
3410 entries.
3411 * gfortran.h: Prototype for existing function,
3412 global_used.
3413 * resolve.c (resolve_global_procedure): New function
3414 to check global symbols for procedures.
3415 (resolve_call, resolve_function): Calls to this
3416 new function for non-contained and non-module
3417 procedures.
3418 * match.c (match_common): Add check for existing
3419 global symbol, creat one if none exists and emit
3420 error if there is a clash.
3421 * parse.c (global_used): Remove static and use the
3422 gsymbol name rather than the new_block name, so that
3423 the function can be called from resolve.c.
3424 (parse_block_data, parse_module, add_global_procedure):
3425 Improve checks for existing gsymbols. Emit error if
3426 already defined or if references were to another type.
3427 Set defined flag.
3428
3429 PR fortran/PR24276
3430 * trans-expr.c (gfc_conv_aliased_arg): New function called by
3431 gfc_conv_function_call that coverts an expression for an aliased
3432 component reference to a derived type array into a temporary array
3433 of the same type as the component. The temporary is passed as an
3434 actual argument for the procedure call and is copied back to the
3435 derived type after the call.
3436 (is_aliased_array): New function that detects an array reference
3437 that is followed by a component reference.
3438 (gfc_conv_function_call): Detect an aliased actual argument with
3439 is_aliased_array and convert it to a temporary and back again
3440 using gfc_conv_aliased_arg.
3441
3442 2006-01-19 Tobias Schl\81üter <tobias.schlueter@physik.uni-muenchen.de>
3443
3444 * gfortranspec.c: Update copyright years.
3445 * trans.c: Likewise.
3446 * trans-array.c: Likewise.
3447 * trans-array.h: Likewise.
3448 * trans-decl.c: Likewise.
3449 * trans-stmt.c: Likewise.
3450 * trans-stmt.h: Likewise.
3451 * trans-types.c: Likewise.
3452
3453 2006-01-18 Tobias Schl\81üter <tobias.schlueter@physik.uni-muenchen.de>
3454
3455 PR fortran/18540
3456 PR fortran/18937
3457 * gfortran.h (BBT_HEADER): Move definition up.
3458 (gfc_st_label): Add BBT_HEADER, remove 'prev' and 'next'.
3459 * io.c (format_asterisk): Adapt initializer.
3460 * resolve.c (resolve_branch): Allow FORTRAN 66 cross-block GOTOs
3461 as extension.
3462 (warn_unused_label): Take gfc_st_label label as argument, adapt to
3463 new data structure.
3464 (gfc_resolve): Adapt call to warn_unused_label.
3465 * symbol.c (compare_st_labels): New function.
3466 (gfc_free_st_label, free_st_labels, gfc_get_st_label): Convert to
3467 using balanced binary tree.
3468 * decl.c (match_char_length, gfc_match_old_kind_spec): Do away
3469 with 'cnt'.
3470 (warn_unused_label): Adapt to binary tree.
3471 * match.c (gfc_match_small_literal_int): Only set cnt if non-NULL.
3472 * primary.c (match_kind_param): Do away with cnt.
3473
3474 2006-01-18 Paul Thomas <pault@gcc.gnu.org>
3475
3476 PR fortran/20869
3477 PR fortran/20875
3478 PR fortran/25024
3479 * symbol.c (check_conflict): Add pointer valued elemental
3480 functions and internal procedures with the external attribute
3481 to the list of conflicts.
3482 (gfc_add_attribute): New catch-all function to perform the
3483 checking of symbol attributes for attribute declaration
3484 statements.
3485 * decl.c (attr_decl1): Call gfc_add_attribute for each of -
3486 (gfc_match_external, gfc_match_intent, gfc_match_intrinsic,
3487 gfc_match_pointer, gfc_match_dimension, gfc_match_target):
3488 Remove spurious calls to checks in symbol.c. Set the
3489 attribute directly and use the call to attr_decl() for
3490 checking.
3491 * gfortran.h: Add prototype for gfc_add_attribute.
3492
3493 PR fortran/25785
3494 * resolve.c (resolve_function): Exclude PRESENT from assumed size
3495 argument checking. Replace strcmp's with comparisons with generic
3496 codes.
3497
3498 2006-01-16 Rafael \81Ávila de Esp\81índola <rafael.espindola@gmail.com>
3499
3500 * gfortranspec.c (lang_specific_spec_functions): Remove.
3501
3502 2006-01-16 Richard Guenther <rguenther@suse.de>
3503
3504 * trans-stmt.c (gfc_trans_if_1): Use fold_buildN and build_int_cst.
3505 (gfc_trans_arithmetic_if): Likewise.
3506 (gfc_trans_simple_do): Likewise.
3507 (gfc_trans_do): Likewise.
3508 (gfc_trans_do_while): Likewise.
3509 (gfc_trans_logical_select): Likewise.
3510 (gfc_trans_forall_loop): Likewise.
3511 (generate_loop_for_temp_to_lhs): Likewise.
3512 (generate_loop_for_rhs_to_temp): Likewise.
3513 (gfc_trans_allocate): Likewise.
3514 * trans.c (gfc_add_expr_to_block): Do not fold expr again.
3515
3516 2006-01-16 Richard Guenther <rguenther@suse.de>
3517
3518 * trans-expr.c (gfc_conv_function_call): Use fold_build2.
3519 * trans-stmt.c (gfc_trans_goto): Likewise. Use build_int_cst.
3520 * trans.c (gfc_trans_runtime_check): Don't fold the condition
3521 again.
3522
3523 2006-01-13 Steven G. Kargl <kargls@comcast.net>
3524
3525 PR fortran/25756
3526 * symbol.c (gfc_free_st_label): Give variable meaningful name. Remove
3527 unneeded parenthesis. Fix-up the head of the list (2 lines gleaned
3528 from g95).
3529
3530 2006-01-13 Diego Novillo <dnovillo@redhat.com>
3531
3532 * trans.c (gfc_add_expr_to_block): Do not fold tcc_statement
3533 nodes.
3534
3535 2006-01-11 Tobias Schl\81üter <tobias.schlueter@physik.uni-muenchen.de>
3536
3537 * parse.c (next_fixed): Remove superfluous string concatenation.
3538
3539 2006-01-11 Bernhard Fischer <rep.nop@aon.at>
3540
3541 PR fortran/25486
3542 * scanner.c (load_line): use maxlen to determine the line-length used
3543 for padding lines in fixed form.
3544
3545 2006-01-11 Paul Thomas <pault@gcc.gnu.org>
3546
3547 PR fortran/25730
3548 * trans-types.c (copy_dt_decls_ifequal): Copy backend decl for
3549 character lengths.
3550
3551 2006-01-09 Andrew Pinski <pinskia@physics.uc.edu>
3552
3553 fortran/24936
3554 * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Use fold_convert
3555 to avoid type mismatch.
3556
3557 2006-01-09 Andrew Pinski <pinskia@physics.uc.edu>
3558
3559 PR fortran/21977
3560 * trans-decl.c (gfc_generate_function_code): Move the NULLing of
3561 current_fake_result_decl down to below generate_local_vars.
3562
3563 2006-01-09 Feng Wang <fengwang@nudt.edu.cn>
3564
3565 PR fortran/12456
3566 * trans-expr.c (gfc_to_single_character): New function that converts
3567 string to single character if its length is 1.
3568 (gfc_build_compare_string):New function that compare string and handle
3569 single character specially.
3570 (gfc_conv_expr_op): Use gfc_build_compare_string.
3571 (gfc_trans_string_copy): Use gfc_to_single_character.
3572 * trans-intrinsic.c (gfc_conv_intrinsic_strcmp): Use
3573 gfc_build_compare_string.
3574 * trans.h (gfc_build_compare_string): Add prototype.
3575
3576 2006-01-09 Feng Wang <fengwang@nudt.edu.cn>
3577
3578 * simplify.c (gfc_simplify_char): Use UCHAR_MAX instead of literal
3579 constant.
3580 (gfc_simplify_ichar): Get the result from unsinged char and in the
3581 range 0 to UCHAR_MAX instead of CHAR_MIN to CHAR_MAX.
3582
3583 2006-01-08 Erik Edelmann <eedelman@gcc.gnu.org>
3584
3585 PR fortran/25093
3586 * resolve.c (resolve_fntype): Check that PUBLIC functions
3587 aren't of PRIVATE type.
3588
3589 2006-01-07 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
3590
3591 * decl.c (gfc_match_function_decl): Correctly error out in case of
3592 omitted function argument list.
3593
3594 2006-01-07 Paul Thomas <pault@gcc.gnu.org>
3595
3596 PR fortran/22146
3597 * trans-array.c (gfc_reverse_ss): Remove static attribute.
3598 (gfc_walk_elemental_function_args): Replace gfc_expr * argument for
3599 the function call with the corresponding gfc_actual_arglist*. Change
3600 code accordingly.
3601 (gfc_walk_function_expr): Call to gfc_walk_elemental_function_args
3602 now requires the actual argument list instead of the expression for
3603 the function call.
3604 * trans-array.h: Modify the prototype for gfc_walk_elemental_function_args
3605 and provide a prototype for gfc_reverse_ss.
3606 * trans-stmt.h (gfc_trans_call): Add the scalarization code for the case
3607 where an elemental subroutine has array valued actual arguments.
3608
3609 PR fortran/25029
3610 PR fortran/21256
3611 PR fortran/20868
3612 PR fortran/20870
3613 * resolve.c (check_assumed_size_reference): New function to check for upper
3614 bound in assumed size array references.
3615 (resolve_assumed_size_actual): New function to do a very restricted scan
3616 of actual argument expressions of those procedures for which incomplete
3617 assumed size array references are not allowed.
3618 (resolve_function, resolve_call): Switch off assumed size checking of
3619 actual arguments, except for elemental procedures and intrinsic
3620 inquiry functions, in some circumstances.
3621 (resolve_variable): Call check_assumed_size_reference.
3622
3623 2006-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
3624
3625 PR fortran/24268
3626 * io.c (next_char_not_space): New function that returns the next
3627 character that is not white space.
3628 (format_lex): Use the new function to skip whitespace within
3629 a format string.
3630
3631 2006-01-05 Erik Edelmann <eedelman@gcc.gnu.org>
3632
3633 PR fortran/23675
3634 * expr.c (gfc_expr_set_symbols_referenced): New function.
3635 * gfortran.h: Add a function prototype for it.
3636 * resolve.c (resolve_function): Use it for
3637 use associated character functions lengths.
3638 * expr.c, gfortran.h, resolve.c: Updated copyright years.
3639
3640 2006-01-03 Steven G. Kargl <kargls@comcast.net>
3641
3642 PR fortran/25101
3643 * resolve.c (resolve_forall_iterators): Check for scalar variables;
3644 Check stride is nonzero.
3645
3646 2006-01-02 Steven G. Kargl <kargls@comcast.net>
3647
3648 PR fortran/24640
3649 * parse.c (next_free): Check for whitespace after the label.
3650 * match.c (gfc_match_small_literal_int): Initialize cnt variable.
3651
3652 2006-01-01 Steven G. Kargl <kargls@comcast.net>
3653
3654 * ChangeLog: Split previous years into ...
3655 * ChangeLog-2002: here.
3656 * ChangeLog-2003: here.
3657 * ChangeLog-2004: here.
3658 * ChangeLog-2005: here.