OSDN Git Service

2007-05-29 Daniel Franke <franke.daniel@gmail.com>
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
1 2007-05-29  Daniel Franke  <franke.daniel@gmail.com>
2
3         * gfortran.h: Renamed 'enum gfc_generic_isym_id' to 'enum gfc_isym_id',
4         added missing GFC_ISYM_* enumerators, ordered alphabetically.
5         (struct gfc_intrinsic_sym): Renamed 'generic_id' to 'id'.
6         (gfc_find_subroutine): New prototype.
7         * intrinsic.c (add_sym, add_sym_*): Added argument 'id' and changed all callers.
8         (find_subroutine): Renamed to 'gfc_find_subroutine', removed static.  
9         * dependency.c: Changed usage of isym->generic_id to isym->id.  
10         * openmp.c: Likewise.  
11         * resolve.c: Likewise.  
12         * trans-array.c: Likewise.  
13         * trans-expr.c: Likewise.  
14         * trans-intrinsic.c: Likewise.  
15         * trans-openmp.c: Likewise.
16
17 2007-05-28  Tobias Schlüter  <tobi@gcc.gnu.org>
18
19         * gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_SIZEOF.
20         * intrinsic.c (add_functions): Add stuff for SIZEOF intrinsic.
21         * intrinsic.h (gfc_check_sizeof): Add prototype of ...
22         * check.c (gfc_check_sizeof): .. new function.
23         * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): New function.
24         (gfc_conv_intrinsic_strcmp): Whitespace fix.
25         (gfc_conv_intrinsic_array_transfer): Remove double initialization,
26         use fold_build. where appropriate.
27         (gfc_conv_intrinsic_function): Add case for SIZEOF.
28         * intrinsic.texi: Add documentation for SIZEOF.
29
30 2007-05-28  Brooks Moses  <brooks.moses@codesourcery.com>
31
32         * trans-array.c (gfc_conv_expr_descriptor): Edit comment.
33
34 2007-05-28  Brooks Moses  <brooks.moses@codesourcery.com>
35
36         PR fortran/31972
37         * target-memory.c (gfc_target_expr_size): Add handling
38         for size of BT_HOLLERITH variables.
39         * check.c (gfc_check_transfer): Reject BT_HOLLERITH
40         variables in MOLD argument of TRANSFER.
41
42 2007-05-28  Brooks Moses  <brooks.moses@codesourcery.com>
43
44         * gfortran.h (gfc_expr): Remove from_H, add "representation"
45         struct.
46         * primary.c (match_hollerith_constant): Store the representation
47         of the Hollerith in representation, not in value.character.
48         * arith.c: Add dependency on target-memory.h.
49         (eval_intrinsic): Remove check for from_H.
50         (hollerith2representation): New function.
51         (gfc_hollerith2int): Determine value of the new constant.
52         (gfc_hollerith2real): Likewise.
53         (gfc_hollerith2complex): Likewise.
54         (gfc_hollerith2logical): Likewise.
55         (gfc_hollerith2character): Point both representation.string and
56         value.character.string at the value string.
57         * data.c (create_character_initializer): For BT_HOLLERITH
58         rvalues, get the value from the representation rather than
59         value.character.
60         * expr.c (free_expr0): Update handling of BT_HOLLERITH values
61         and values with representation.string.
62         (gfc_copy_expr): Likewise.
63         * intrinsic.c (do_simplify): Remove special treatement of
64         variables resulting from Hollerith constants.
65         * dump-parse-trees.c (gfc_show_expr): Update handling of
66         Holleriths.
67         * trans-const.c (gfc_conv_constant_to_tree): Replace from_H
68         check with check for representation.string; get Hollerith
69         representation from representation.string, not value.character.
70         * trans-expr.c (is_zero_initializer_p): Replace from_H check
71         with check for representation.string.
72         * trans-stmt.c (gfc_trans_integer_select): Use
73         gfc_conv_mpz_to_tree for case values, so as to avoid picking up
74         the memory representation if the case is given by a transfer
75         expression.
76         * target-memory.c (gfc_target_encode_expr): Use the known memory
77         representation rather than the value, if it exists.
78         (gfc_target_interpret_expr): Store the memory representation of
79         the interpreted expression as well as its value.
80         (interpret_integer): Move to gfc_interpret_integer, make
81         non-static.
82         (interpret_float): Move to gfc_interpret_float, make non-static.
83         (interpret_complex): Move to gfc_interpret_complex, make
84         non-static.
85         (interpret_logical): Move to gfc_interpret_logical, make
86         non-static.
87         (interpret_character): Move to gfc_interpret_character, make
88         non-static.
89         (interpret_derived): Move to gfc_interpret_derived, make
90         non-static.
91         * target-memory.h: Add prototypes for newly-exported
92         gfc_interpret_* functions.
93
94 2007-05-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
95
96         PR fortran/31812
97         * parse.c (next_statement): Warn for truncated lines if source is free
98         form.
99
100 2007-05-27 Paul Thomas  <pault@gcc.gnu.org>
101            Tobias Burnus  <burnus@net-b.de>
102
103         PR fortran/32088
104         * symbol.c (gfc_check_function_type): Copy dimensions of
105           result variable.
106         * resolve.c (resolve_contained_fntype): Improve symbol output in
107           the error message.
108
109 2007-05-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
110
111         PR fortran/31813
112         * io.c (check_format): Add warning for H specifier in format.
113         
114 2007-05-26  Tobias Burnus  <burnus@net-b.de>
115
116         * gfortran.texi: Document the GFORTRAN_ERROR_DUMPCORE and
117         GFORTRAN_ERROR_BACKTRACE environment variables.
118
119 2007-05-26  Paul Thomas  <pault@gcc.gnu.org>
120
121         PR fortran/31219
122         * trans.h : Add no_function_call bitfield to gfc_se structure.
123         Add stmtblock_t argument to prototype of get_array_ctor_strlen.
124         * trans-array.c (get_array_ctor_all_strlen): New function.
125         (get_array_ctor_strlen): Add new stmtblock_t argument and call
126         new function for character elements that are not constants,
127         arrays or variables.
128         (gfc_conv_array_parameter): Call get_array_ctor_strlen to get
129         good string length.
130         * trans-intrinsic (gfc_conv_intrinsic_len): Add new argument
131         to call of get_array_ctor_strlen.
132
133 2007-05-25  Kazu Hirata  <kazu@codesourcery.com>
134
135         * intrinsic.texi: Fix typos.
136
137 2007-05-25  Paul Thomas  <pault@gcc.gnu.org>
138
139         PR fortran/32047
140         * trans-expr.c (gfc_apply_interface_mapping_to_expr): Change
141         order in logic under EXPR_FUNCTION to handle functions with
142         no arguments.
143
144 2007-05-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
145
146         PR fortran/31716
147         * array.c (spec_dimen_size): Test for correct BT_INTEGER type. 
148
149 2007-05-23  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
150
151         PR fortran/32046
152         * trans-expr.c (gfc_trans_zero_assign): Convert the result of
153         TYPE_SIZE_UNIT into a signed type.
154         (gfc_trans_array_copy):  Likewise.
155         (gfc_trans_array_constructor_copy): Likewise.
156         * trans-array.c (gfc_trans_create_temp_array): Likewise.
157         (gfc_grow_array): Likewise.
158         (gfc_array_init_size): Likewise.
159         (gfc_duplicate_allocatable): Likewise.
160         * trans-stmt.c (allocate_temp_for_forall_nest_1): Likewise.
161
162 2007-05-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
163
164         PR fortran/18923
165         * resolve.c (resolve_function): Don't call resolve_global_procedure if
166         there is no name. Delete duplicated statement in ELSE clause.
167
168 2007-05-22 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
169
170         PR fortran/31627
171         * trans-array.c (gfc_trans_array_bound_check): Take extra argument to
172         indicate whether we should check the upper bound in that dimension.
173         (gfc_conv_array_index_offset): Check only the lower bound of the
174         last dimension for assumed-size arrays.
175         (gfc_conv_array_ref): Likewise.
176         (gfc_conv_ss_startstride): Likewise.
177
178 2007-05-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
179             Daniel Franke  <franke.daniel@gmail.com>
180
181         PR fortran/32002
182         * resolve.c (resolve_actual_arglist): Resolve actual argument after
183         being identified as variable.
184
185 2007-05-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
186
187         PR fortran/32027
188         * trans-stmt.c (gfc_trans_do): Fix the value of loop variable
189         when the loop ends.
190
191 2007-05-21  H.J. Lu  <hongjiu.lu@intel.com>
192
193         * trans-stmt.c (gfc_trans_do): Fix a typo in comment.
194
195 2007-05-21  Paul Thomas  <pault@gcc.gnu.org>
196
197         PR fortran/31867
198         PR fortran/31994
199         * trans-array.c (gfc_conv_expr_descriptor): Obtain the stored
200         offset for non-descriptor, source arrays and correct for stride
201         not equal to one before writing to field of output descriptor.
202
203 2007-05-20  Daniel Franke  <franke.daniel@gmail.com>
204
205         PR fortran/32001
206         * check.c (check_rest): Improved argument conformance check and 
207         fixed error message generation.
208
209 2007-05-19  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
210
211         PR fortran/30820
212         * Make-lang.in: Remove use of -Wno-error for expr.o, resolve.o,
213         simplify.o and trans-common.o.
214
215 2007-05-19  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
216
217         PR fortran/31974
218         * trans-array.c (gfc_trans_auto_array_allocation): Avoid
219         multiplication of mismatched types.
220
221 2007-05-18  Daniel Franke  <franke.daniel@gmail.com>
222
223         PR fortran/24633
224         * symbol.c (gfc_add_flavor): Add the NAME to error message if
225         available.
226
227 2007-05-15  Daniel Franke  <franke.daniel@gmail.com>
228
229         PR fortran/31919
230         PR fortran/31929
231         PR fortran/31930
232         * intrinsic.c (check_specific): Check elemental intrinsics for
233         rank and shape.
234         (add_functions): Fixed dummy argument names of BESJN and BESYN.
235         Fixed elemental status of MCLOCK and MCLOCK8.
236         * check.c (check_rest): Added check for array conformance.
237         (gfc_check_merge): Removed check for array conformance.
238         (gfc_check_besn): Removed check for scalarity.
239         * intrinsic.texi (CSHIFT, EOSHIFT): Fixed typos.
240         (BESJN, BESYN): Clarified documentation.
241
242 2007-05-17  Tobias Burnus  <burnus@net-b.de>
243
244         * gfortran.texi (GFORTRAN_CONVERT_UNIT): Improve documentation.
245
246 2007-05-16  Brooks Moses  <brooks.moses@codesourcery.com>
247
248         PR fortran/18769
249         PR fortran/30881
250         PR fortran/31194
251         PR fortran/31216
252         PR fortran/31427
253         * target-memory.c: New file.
254         * target-memory.h: New file.
255         * simplify.c: Add #include "target-memory.h".
256         (gfc_simplify_transfer): Implement constant-
257         folding for TRANSFER intrinsic.
258         * Make-lang.in: Add dependencies on new target-memory.* files.
259
260 2007-05-15  Paul Brook  <paul@codesourcery.com>
261
262         * trans-types.c (gfc_type_for_size): Handle signed TImode.
263
264 2007-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
265
266         PR fortran/30723
267         * trans.h (gfor_fndecl_internal_malloc, gfor_fndecl_internal_malloc64,
268         gfor_fndecl_internal_free): Remove prototypes.
269         (gfor_fndecl_os_error, gfc_call_free, gfc_call_malloc): Add prototypes.
270         * trans.c (gfc_call_malloc, gfc_call_free): New functions.
271         * f95-lang.c (gfc_init_builtin_functions): Add __builtin_free
272         and __builtin_malloc builtins.
273         * trans-decl.c (gfor_fndecl_internal_malloc,
274         gfor_fndecl_internal_malloc64, gfor_fndecl_internal_free): Remove.
275         (gfor_fndecl_os_error): Add.
276         (gfc_build_builtin_function_decls): Don't create internal_malloc,
277         internal_malloc64 and internal_free library function declaration.
278         Create os_error library call function declaration.
279         * trans-array.c (gfc_trans_allocate_array_storage,
280         gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
281         gfc_conv_array_parameter, gfc_duplicate_allocatable): Use
282         gfc_call_malloc and gfc_call_free instead of building calls to
283         internal_malloc and internal_free.
284         * trans-expr.c (gfc_conv_string_tmp): Likewise.
285         * trans-stmt.c (gfc_do_allocate, gfc_trans_assign_need_temp,
286         gfc_trans_pointer_assign_need_temp, gfc_trans_forall_1,
287         gfc_trans_where_2: Likewise.
288         * trans-intrinsic.c (gfc_conv_intrinsic_ctime,
289         gfc_conv_intrinsic_fdate, gfc_conv_intrinsic_ttynam,
290         gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_trim): Likewise.
291
292 2007-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
293
294         PR fortran/31725
295         * trans-expr.c (gfc_conv_substring): Evaluate substring bounds
296         only once.
297
298 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
299
300         * f95-lang.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
301         * trans-intrinsic.c (gfc_conv_intrinsic_ishft): Use unsigned_type_for
302         instead of gfc_unsigned_type.
303         * trans-stmt.c (gfc_trans_do): Use unsigned_type_for instead of
304         gfc_unsigned_type.
305         * trans-types.c (gfc_unsigned_type): Remove.
306         * trans-types.h (gfc_unsigned_type): Remove.
307
308 2007-05-12  Paul Thomas  <pault@gcc.gnu.org>
309
310         PR fortran/30746
311         * resolve.c (check_host_association): New function that detects
312         incorrect host association and corrects it.
313         (gfc_resolve_expr): Call the new function for variables and
314         functions.
315         * match.h : Remove prototype for gfc_match_rvalue.
316         * gfortran.h : Add prototype for gfc_match_rvalue.
317
318 2007-05-11 Paul Thomas <pault@gcc.gnu.org>
319
320         PR fortran/30876
321         * trans-expr.c (gfc_conv_function_call): Reduce indirection for
322         direct assignments of recursive array valued functions.
323         * primary.c (gfc_match_rvalue): Correct error for recursive
324         function calls such that directly recursive calls of scalar
325         function without an explicit result are disallowed.
326
327 2007-05-11 Paul Thomas <pault@gcc.gnu.org>
328
329         PR fortran/30878
330         * resolve.c (resolve_fl_namelist): It is not an error if the
331         namelist element is the result variable of the enclosing
332         function.  Search for the symbol in current and all parent
333         namespaces for a potential conflict.
334         * symbol.c (check_conflict): Remove the conflict between
335         'in_namelist' and 'FL_PROCEDURE' because the symbol info
336         is not available to exclude function result variables.
337         * trans-io.c (nml_get_addr_expr): Use the fake result decl
338         if the symbol is an implicit result variable.
339
340 2007-05-11  Paul Thomas  <pault@gcc.gnu.org>
341
342         PR fortran/31474
343         * decl.c (get_proc_name): If an entry has already been declared
344         as a module procedure, pick up the symbol and the symtree and
345         use them for the entry.
346
347 2007-05-08  Paul Thomas  <pault@gcc.gnu.org>
348
349         PR fortran/31630
350         * resolve.c (resolve_symbol): Remove the flagging mechanism from the
351         formal namespace resolution and instead check that the formal
352         namespace is not the current namespace.
353
354 2007-05-08  Paul Thomas  <pault@gcc.gnu.org>
355
356         PR fortran/31692
357         * trans-array.c (gfc_conv_array_parameter): Convert full array
358         references to the result of the procedure enclusing the call.
359
360 2007-05-08  Paul Thomas  <pault@gcc.gnu.org>
361
362         PR fortran/29397
363         PR fortran/29400
364         * decl.c (add_init_expr_to_sym): Expand a scalar initializer
365         for a parameter array into an array expression with the right
366         shape.
367         * array.c (spec_dimen_size): Remove static attribute.
368         * gfortran.h : Prototype for spec_dimen_size.
369
370 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
371
372         PR fortran/31399
373         * trans-stmt.c (gfc_trans_do): Handle large loop counts.
374
375 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
376
377         PR fortran/31764
378         * simplify.c (gfc_simplify_new_line): NEW_LINE can be simplified
379         even for non constant arguments.
380
381 2007-05-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
382             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
383
384         PR fortran/31201
385         * gfortran.h: Add runtime error codes from libgfortran.h. Define
386         MAX_UNIT_NUMBER.
387         * trans.c (gfc_trans_runtime_check): Update the format of runtime error
388         messages to match library runtime errors.  Use call to new library
389         function runtime_error_at().
390         * trans.h: Add prototype for new function gfc_trans_io_runtime_check.
391         Add declaration for library functions runtime_error_at and
392         generate_error.
393         * trans_io.c (gfc_trans_io_runtime_check): New function.
394         (set_parameter_value): Add error checking for UNIT numbers.
395         (set_parameter_ref): Initialize the users variable to zero. 
396         (gfc_trans_open): Move setting of unit number to after setting of common
397         flags so that runtime error trapping can be detected.
398         (gfc_trans_close): Likewise. (build_filepos): Likewise.
399         (gfc_trans_inquire): Likewise. (build_dt): Likewise.
400         * trans-decl.c: Add declarations for runtime_error_at and
401         generate_error. (gfc_build_builtin_function_decls): Build function
402         declarations for runtime_error_at and generate_error.
403
404 2007-05-06  Paul Thomas  <pault@gcc.gnu.org>
405
406         PR fortran/31540
407         * resolve.c (resolve_fl_procedure): Resolve constant character
408         lengths.
409
410 2007-05-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
411
412         PR fortran/31251
413         * decl.c (match_char_spec): Add check for invalid character lengths.
414
415 2007-05-04  Brooks Moses  <brooks.moses@codesourcery.com>
416
417         * intrinsic.texi (CMPLX): Document result kind.
418         (COMPLEX): Add documentation.
419
420 2007-05-04  Daniel Franke  <franke.daniel@gmail.com>
421
422         PR fortran/31760
423         * intrinsic.c (add_functions): Replaced calls to gfc_check_g77_math1
424         by gfc_check_fn_r to avoid checks for scalarity.
425         * check.c (gfc_check_besn): Removed check for scalarity.
426         (gfc_check_g77_math1): Removed.
427         * intrinsic.h (gfc_check_g77_math1): Removed.
428
429 2007-05-04  Daniel Franke  <franke.daniel@gmail.com>
430
431         * check.c (gfc_check_fseek_sub): Fixed typo.
432
433 2007-05-04  Daniel Franke  <franke.daniel@gmail.com>
434
435         PR fortran/22359
436         * intrinsic.c (add_subroutines): Added FSEEK.
437         * intrinsic.h (gfc_resolve_fseek_sub, gfc_check_fseek_sub): New.
438         * iresolve.c (gfc_resolve_fseek_sub): New.
439         * check.c (gfc_check_fseek_sub): New.
440         * intrinsic.texi (FSEEK): Updated.
441
442 2007-05-04  Tobias Burnus  <burnus@net-b.de>
443
444         PR fortran/31803
445         * expr.c (gfc_check_pointer_assign): Check for NULL pointer.
446
447 2007-05-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
448
449         PR fortran/31251
450         * simplify.c (gfc_simplify_len): Only simplify integer lengths.
451
452 2007-05-04  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
453
454         PR fortran/31781
455         * simplify.c (gfc_simplify_repeat): Don't put function call with
456         side effect in a gcc_assert().
457
458 2007-05-04  Tobias Burnus  <burnus@net-b.de>
459
460         PR fortran/25071
461         * interface.c (compare_actual_formal): Check character length.
462
463 2007-05-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
464
465         PR fortran/31732
466         * dependency.c (gfc_full_array_ref_p):  If the reference is
467         to a single element, check that the array has a single
468         element and that the correct element is referenced.
469
470 2007-05-01  Daniel Franke  <franke.daniel@gmail.com>
471
472         * intrinsic.c (add_functions): Fixed ELEMENTAL specifications.
473         (add_subroutines): Replaced magic numbers in function calls by
474         ELEMENTAL and NOT_ELEMENTAL respectively.
475         * intrinsic.texi (MVBITS): Changed class to elemental subroutine.
476         (RANDOM_NUMBER): Changed class to subroutine.
477         (HUGE, TINY): Changed class to inquiry function.
478
479 2007-04-30  Brooks Moses  <brooks.moses@codesourcery.com>
480
481         * trans-const.c (gfc_conv_mpz_to_tree): Use mpz_get_double_int.
482         (gfc_conv_tree_to_mpz): New function.
483         (gfc_conv_mpfr_to_tree): Use real_from_mpfr.
484         (gfc_conv_tree_to_mpfr): New function.
485         * trans-const.h: (gfc_conv_tree_to_mpz): New prototype.
486         (gfc_conv_tree_to_mpfr): New prototype.
487
488 2007-04-30  Daniel Franke  <franke.daniel@gmail.com>
489
490         * intrinsic.texi (IERRNO): Changed class to non-elemental function.
491         (LOG10): Removed COMPLEX as accepted argument type.
492         (NEW_LINE): Changed class from elemental to inquiry function.
493         (SIGN): Removed requirement of scalar arguments.
494         (SNGL): Changed class to elemental function.
495
496 2007-04-29  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
497
498         PR fortran/31591
499         * simplify.c (simplify_bound_dim): New function.
500         (simplify_bound): Use the above. Perform simplification of LBOUND
501         and UBOUND when DIM argument is not present.
502
503 2007-04-29  Daniel Franke  <franke.daniel@gmail.com>
504
505         * gfortran.texi: Cleaned up keyword index.
506         * invoke.texi: Likewise.
507         * intrinsic.texi: Likewise.
508                         
509 2007-04-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
510
511         PR fortran/31645
512         * scanner.c (load_file): Discard the byte order mark if one is
513         found on the first non-preprocessor line of a file.
514
515 2007-04-29  Paul Thomas  <pault@gcc.gnu.org>
516
517         PR fortran/31711
518         * trans-array.c (gfc_conv_resolve_dependencies): Create a temp
519         whenever a dependency is found.
520
521 2007-04-28  Tobias Schlüter  <tobi@gcc.gnu.org>
522
523         * options.c (gfc_handle_option): Ensure requested free form line
524         length is not too small.
525
526 2007-04-27  Brooks Moses  <brooks.moses@codesourcery.com>
527
528         * intrinsic.texi (Transfer): Improve documentation.
529
530 2007-04-27  Brooks Moses  <brooks.moses@codesourcery.com>
531
532         * gfortran.texi (Option Index): Add @samp as needed.
533
534 2007-04-27  Daniel Franke  <franke.daniel@gmail.com>
535
536         * gfortran.texi: Added node and menu entry for an option index.
537         * invoke.texi: Moved command line option related entries of the concept 
538         index to the option index.
539
540 2007-04-27  Daniel Franke  <franke.daniel@gmail.com>
541
542         * intrinsic.texi (AND, FPUT, FPUTC, MODULO, OR, SET_EXPONENT,
543         XOR): Fixed examples.
544
545 2007-04-27  Daniel Franke  <franke.daniel@gmail.com>
546
547         * intrinsic.texi (PRODUCT, RESHAPE, SPACING, SPREAD, SUM, 
548         SYSTEM_CLOCK, TRANSFER, UNPACK): New.
549         (DATE_AND_TIME, CPU_TIME, RRSPACING): Added cross references.
550
551 2007-04-26  Daniel Franke  <franke.daniel@gmail.com>
552
553         * intrinsic.texi (NULL, PACK, PRESENT, REPEAT, SCAN, SHAPE, 
554         SIZE, TRANSPOSE, TRIM, VERIFY): New.
555         (ADJUSTL, ADJUSTR, INDEX): Added cross references.
556         (INT, INT2, INT8, LONG): Enabled section header.
557
558 2007-04-25  Janne Blomqvist  <jb@gcc.gnu.org>
559
560         * module.c (module_char): Replace fgetc() with
561         getc(). 
562         (write_char): Replace fputc() with putc().
563         * scanner.c (load_line): Replace fgetc() with getc().
564         (gfc_read_orig_filename): Likewise.
565
566 2007-04-25  Tobias Burnus  <burnus@net-b.de>
567
568         PR fortran/31668
569         * error.c (error_print): Fix %% support.
570         * intrinsic.c (sort_actual): Improve error message.
571         * resolve.c (resolve_actual_arglist): Allow %VAL for
572         interfaces defined in the module declaration part.
573
574 2007-04-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
575
576         PR libfortran/31299
577         * intrinsic.texi (GETLOG): Update documentation to reflect
578         library changes.
579
580 2007-04-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
581
582         PR fortran/31587
583         * module.c (write_char): Add character to the MD5 buffer.
584         (read_md5_from_module_file): New function.
585         (gfc_dump_module): Compute MD5 for new module file. Call
586         read_md5_from_module_file. Only overwrite old module file
587         if the new MD5 is different.
588
589 2007-04-23  Paul Thomas  <pault@gcc.gnu.org>
590
591         PR fortran/31630
592         * resolve.c (resolve_symbol): Allow resolution of formal
593         namespaces nested within formal namespaces coming from modules.
594
595         PR fortran/31620
596         * trans-expr.c (gfc_trans_assignment): Make the call to
597         gfc_trans_zero_assign conditional on the lhs array ref being
598         the only reference.
599
600 2007-04-23  Tobias Burnus  <burnus@net-b.de>
601
602         * primary.c (match_integer_constant): Mention -fno-range-check
603         in the error message.
604
605 2007-04-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
606
607         PR fortran/31495
608         * scanner.c (load_line):  Remove check for comment after ampersand and
609         adjust tracking of ampersand.
610
611 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
612
613         * f95-lang.c (lang_tree_node): Use GENERIC_NEXT
614         instead of checking GIMPLE_STMT_P in chain_next.
615
616 2007-04-17  Tobias Schlüter  <tobi@gcc.gnu.org>
617
618         * trans-types.h (gfc_packed): New enum.
619         (gfc_get_nodesc_array_type): Change prototype to use new enum.
620         * trans-types.c (gfc_get_nodesc_array): Use gfc_packed for
621         argument packed.  Adapt all references to values accordingly.
622         (gfc_sym_type): Use enum values in call to gfc_get_nodesc_array.
623         (gfc_get_derived_type): Likewise.
624         * trans-array.c (gfc_build_constant_array_constructor): Likewise.
625         * trans-expr.c (gfc_get_interface_mapping_charlen): Changed packed
626         argument to type gfc_packed.
627         (gfc_add_interface_mapping): Use enum values in call to
628         gfc_get_interface_mapping.
629         * trans-decl.c (gfc_build_dummy_array_decl): Adapt to use enum
630         values when determining packing.
631
632         * trans-decl.c (gfc_finish_decl): Remove unused second argument
633         'init'.  Simplify code accordingly.  Remove calls to
634         gfc_fatal_error in favor of gcc_assert.
635         (create_function_arglist): Remove second argument from calls to
636         gfc_finish-decl.
637         (gfc_trans_dummy_character): Likewise.
638
639         * arith.h: Update copyright years.
640         * dependency.h: Likewise.
641         * gfortran.h: Likewise.
642         * lang-specs.h: Likewise.
643         * parse.h: Likewise.
644         * symbol.c: Likewise.
645         * trans.h: Likewise.
646         * trans.c: Likewise.
647         * trans-array.c: Likewise.
648         * trans-common.c: Likewise.
649         * trans-const.h: Likewise.
650         * trans-const.c: Likewise.
651         * trans-decl.c: Likewise.
652         * trans-expr.c: Likewise.
653         * trans-io.c: Likewise.
654         * trans-openmp.c: Likewise.
655         * trans-types.h: Likewise.
656         * types.def: Likewise.
657
658 2007-04-17  Tobias Schlüter  <tobi@gcc.gnu.org>
659
660         PR fortran/31144
661         * decl.c (gfc_sym_mangled_identifier): Use capital letters in name
662         mangling.
663         (gfc_sym_mangled_function_id): Likewise.
664
665 2007-04-15  Paul Thomas  <pault@gcc.gnu.org>
666
667         PR fortran/31204
668         * primary.c (check_for_implicit_index): New function to check
669         that a host associated variable is not an undeclared implied
670         do loop index.
671         (gfc_match_rvalue, match_variable): Use it and reset the
672         implied_index attribute.
673         * gfortran.h : Add the implied_index field to symbol_attribute.
674         * match.c (gfc_match_iterator): Mark the iterator variable
675         with the new attribute.
676         * decl.c (build_sym): Reset the new attribute.
677
678 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
679
680         * gfc-internals.texi: Fix typos.
681         * simplify.c: Fix a comment typo.
682
683 2007-04-14  Bernhard Fischer  <aldot@gcc.gnu.org>
684
685         * primary.c: Commentary typo fix; Add question about redundant (?)
686         set.
687
688 2007-04-14  Paul Thomas  <pault@gcc.gnu.org>
689
690         PR fortran/29507
691         PR fortran/31404
692         * expr.c (scalarize_intrinsic_call): New function to
693         scalarize elemental intrinsic functions in initialization
694         expressions.
695         (check_init_expr): Detect elemental intrinsic functions
696         in initalization expressions and call previous.
697
698 2007-04-13  Tobias Burnus  <burnus@net-b.de>
699
700         PR fortran/31559
701         * primary.c (match_variable): External functions
702         are no variables.
703
704 2007-04-13  Paul Thomas  <pault@gcc.gnu.org>
705
706         PR fortran/31550
707         * trans-types.c (copy_dt_decls_ifequal): Do not get pointer
708         derived type components.
709
710 2007-04-13  Tobias Schlüter  <tobi@gcc.gnu.org>
711
712         PR fortran/18937
713         * resolve.c: Include obstack.h and bitmap.h.  New variable
714         labels_obstack.
715         (code_stack): Add tail and reachable_labels fields.
716         (reachable_labels): New function.
717         (resolve_branch): Rework to use new fields in code_stack.
718         (resolve_code): Call reachable_labels.
719         (resolve_codes): Allocate and free labels_obstack.
720
721 2007-04-12  Tobias Schlüter  <tobi@gcc.gnu.org>
722
723         PR fortran/31250
724         * decl.c (match_char_spec): Move check for negative CHARACTER
725         length ...
726         * resolve.c (resolve_charlen): ... here.
727         (resolve_types): Resolve CHARACTER lengths earlier.
728
729 2007-04-12  Daniel Franke  <franke.daniel@gmail.com>
730
731         PR fortran/31234
732         * intrinsic.texi (RANDOM_SEED, RANDOM_NUMBER): New.
733
734 2007-04-12  Tobias Schlüter  <tobi@gcc.gnu.org>
735
736         PR fortran/31266
737         * primary.c (gfc_variable_attr): Don't copy string length if it
738         doesn't make sense.
739         * resolve.c (resolve_code): Clarify error message.
740
741         PR fortran/31471
742         * decl.c (gfc_match_end): Also check for construct name in END
743         FORALL and END WERE statements.
744         * match.c (match_case_eos): Use uppercase for statement name in
745         error message.
746         (match_elsewhere): Construct name may appear iff construct has a
747         name.
748
749         * trans-types.c: Update copyright years.  Reformat long comment
750         explaining array descriptor format.  Remove obsolete mention of
751         TYPE_SET.
752
753         * arith.c (gfc_arith_uplus): Rename to ...
754         (gfc_arith_identity): ... this.
755         (gfc_parentheses): New function.
756         (gfc_uplus): Adapt to renamed function.
757         * arith.h (gfc_parentheses): Add prototype.
758         * expr.c (gfc_copy_expr): Deal with INTRINSIC_PARENTHESES.
759         (simplifiy_intrinsic_op): Treat INTRINSIC_UPLUS separately from
760         INTRINSIC_PARENTHESES.
761
762 2007-04-12  Tobias Burnus  <burnus@net-b.de>
763
764         PR fortran/31472
765         * decl.c (match_attr_spec): Allow PRIVATE/PUBLIC
766         attribute in type definitions.
767         (gfc_match_private): Allow PRIVATE statement only
768         in specification part of modules.
769         (gfc_match_public): Ditto for PUBLIC.
770         (gfc_match_derived_decl): Allow PRIVATE/PUBLIC attribute only in
771         specificification part of modules.
772
773 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
774
775         PR fortran/31257
776         * intrinsic.c (add_functions): Add ref. to gfc_resolve_achar.
777         * intrinsic.h : Add prototype for gfc_resolve_achar.
778         * iresolve.c (gfc_resolve_achar): New function.
779
780 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
781
782         PR fortran/30880
783         * resolve.c (resolve_fl_variable): Set flag to 2 for automatic
784         arrays.  Make condition for automatic array error explicit.
785         If a dummy, no error on an INTENT(OUT) derived type.
786
787 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
788
789         PR fortran/30872
790         * expr.c (find_array_element): Correct arithmetic for rank > 1.
791
792 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
793
794         PR fortran/31222
795         * check.c (numeric_check): If an expresson has not got a type,
796         see if it is a symbol for which a default type applies.
797
798 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
799
800         PR fortran/31214
801         * trans-decl.c (gfc_get_symbol_decl): Allow unreferenced use
802         associated symbols.
803
804 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
805
806         PR fortran/31293
807         * symbol.c (gfc_check_function_type): New function.
808         * gfortran.h : Add prototype for previous.
809         * parse.c (parse_progunit): Call it after parsing specification
810         statements.
811
812 2007-04-05  Paul Thomas  <pault@gcc.gnu.org>
813
814         PR fortran/31483
815         * trans-expr.c (gfc_conv_function_call): Give a dummy
816         procedure the correct type if it has alternate returns.
817
818 2007-04-05  Paul Thomas  <pault@gcc.gnu.org>
819
820         PR fortran/31292
821         * decl.c (gfc_match_modproc): Go up to the top of the namespace
822         tree to find the module namespace for gfc_get_symbol.
823
824 2007-04-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
825
826         PR fortran/31304
827         * fortran/gfortran.h (gfc_charlen_int_kind): New prototype.
828         * fortran/trans-types.c (gfc_charlen_int_kind): New variable.
829         (gfc_init_types): Define gfc_charlen_int_kind. 
830         * fortran/trans.h (gfor_fndecl_string_repeat): Remove prototype.
831         * fortran/trans-decl.c (gfor_fndecl_string_repeat): Delete.
832         (gfc_build_intrinsic_function_decls): Don't set
833         gfor_fndecl_string_repeat.
834         * fortran/trans-intrinsic.c (gfc_conv_intrinsic_repeat): Rewrite
835         so that we don't have to call a library function.
836         * fortran/simplify.c (gfc_simplify_repeat): Perform the necessary
837         checks on the NCOPIES argument, and work with arbitrary size
838         arguments.
839
840 2007-03-31  Tobias Burnus  <burnus@net-b.de>
841
842         * intrinsic.c (add_functions): Fix name of dummy argument
843           for new_line and exit intrinsic.
844
845 2007-03-31  Paul Thomas  <pault@gcc.gnu.org>
846
847         PR fortran/31160
848         * gfortran.texi: Add a section for the %VAL, %REF and %LOC
849         extensions.
850
851 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
852
853         * trans-types.c (gfc_signed_or_unsigned_type): Remove.
854         (gfc_unsigned_type): Use get_signed_or_unsigned_type instead of
855         gfc_signed_or_unsigned_type.
856         (gfc_signed_type): Ditto.
857         * trans-types.h (gfc_signed_or_unsigned_type): Remove.
858         * f95-lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
859
860 2007-03-30  Tobias Schlüter  <tobi@gcc.gnu.org>
861
862         * symbol.c (gfc_find_gsymbol): Simplify, don't unconditionally
863         descend into all branches.
864
865 2007-03-29  Tobias Schlüter  <tobi@gcc.gnu.org>
866
867         * intrinsic.c (conv_name): Let gfc_get_string handle the format.
868         (find_conv): Compare pointers instead of calling strcmp.
869         (find_sym): Likewise, but ensure that the compared pointer is in
870         the global string table.
871
872 2007-03-28  Tobias Schlüter  <tobi@gcc.gnu.org>
873
874         * gfc-internals.texi: Fix output filename.  Merge type index into
875         concept index.  Start documentation of gfc_code structure.
876
877 2007-03-26  Brooks Moses  <brooks.moses@codesourcery.com>
878
879         * gfc-internals.texi: New file,
880         * Make-lang.in: Add rules to convert it to dvi, pdf, and info.
881
882 2007-03-26  Brooks Moses  <brooks.moses@codesourcery.com>
883  
884         * error.c (show_locus): Remove always-false test.
885
886 2007-03-26  Brooks Moses  <brooks.moses@codesourcery.com>
887
888         * lang.opt: Minor edits to descriptions.
889
890 2007-03-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
891
892         PR fortran/30877
893         * fortran/interface.c (check_operator_interface): Implement
894         the standard checks on user operators extending intrinsic operators.
895         * fortran/resolve.c (resolve_operator): If the ranks of operators
896         don't match, don't error out but try the user-defined ones first.
897
898 2007-03-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
899
900         PR fortran/30655
901         * expr.c (check_dimension): Fix logic of comparisons.
902
903 2007-03-24  Paul Thomas  <pault@gcc.gnu.org>
904
905         PR fortran/31215
906         * trans-expr.c (gfc_apply_interface_mapping_to_expr): Return
907         int result that is non-zero if the expression is the function
908         result.  Only the characteristics of the result expression
909         can be used in a procedure interface, so simplify LEN in situ
910         using its character length.
911
912         PR fortran/31209
913         PR fortran/31200
914         * trans-expr.c (gfc_conv_function_call): Do not use
915         gfc_conv_expr_reference for actual pointer function with formal
916         target because a temporary is created that does not transfer
917         the reference correctly.  Do not indirect formal pointer
918         functions since it is the function reference that is needed.
919
920 2007-03-24  Brooks Moses  <brooks.moses@codesourcery.com>
921
922         * gfortran.h: Edit comments on GFC_STD_*.
923
924 2007-03-23  Brooks Moses  <brooks.moses@codesourcery.com>
925
926         * invoke.texi: Misc. small typo fixes.
927         (-Wcharacter-truncation): Add.
928         (-Wnonstd-intrinsics): Correct spelling.
929         (-std=): Edit.
930         (-fintrinsic-modules-path): Add.
931
932 2007-03-23  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
933
934         PR fortran/30834
935         * arith.c (complex_pow): Rewrite to handle large power.
936         (gfc_arith_power): Handle large power in the real and integer
937         cases.
938
939 2007-03-22  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
940
941         PR fortran/31262
942         * trans-const.c (gfc_conv_mpz_to_tree): Allow integer constants
943         larger than twice the width of a HOST_WIDE_INT.
944
945 2006-03-22  Paul Thomas  <pault@gcc.gnu.org>
946
947         PR fortran/31193
948         * trans-intrinsic.c (gfc_size_in_bytes): Remove function.
949         (gfc_conv_intrinsic_array_transfer): Remove calls to previous.
950         Explicitly extract TREE_TYPEs for source and mold.  Use these
951         to calculate length of source and mold, except for characters,
952         where the se string_length is used.  For mold, the TREE_TYPE is
953         recalculated using gfc_get_character_type_len so that the
954         result is correctly cast for character literals and substrings.
955         Do not use gfc_typenode_for_spec for the final cast.
956
957 2007-03-22  Tobias Schlüter  <tobi@gcc.gnu.org>
958
959         PR fortran/20897
960         * decl.c (gfc_match_derived_decl): Reliably reject
961         'doubleprecision' and 'doublecomplex' as type names.
962
963 2007-03-19  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
964
965         PR fortran/31203
966         * trans-expr.c (gfc_trans_init_string_length): Length should
967         never be negative.
968         (gfc_conv_function_call): Likewise.
969
970 2007-03-18  Paul Thomas  <pault@gcc.gnu.org>
971
972         PR fortran/30531
973         PR fortran/31086
974         * symbo.c : Add gfc_derived_types.
975         (gfc_free_dt_list): Free derived type list gfc_derived_types.
976         (gfc_free_namespace): Remove call to gfc_free_dt_list.
977         (gfc_symbol_done_2): Call  gfc_free_dt_list.
978         * gfortran.h : Declare gfc_derived_types to be external. Remove
979         derived types field from gfc_namespace.
980         * resolve.c (resolve_fl_derived): Refer to gfc_derived types
981         rather than namespace derived_types.
982         (resolve_fntype): Remove special treatment for module
983         derived type functions.
984         * trans-types.c (gfc_get_derived_type): Remove search for like
985         derived types.  Finish by copying back end declaration to like
986         derived types in the derived type list gfc_derived_types.
987
988         2007-03-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
989
990         PR fortran/31120
991         * trans-expr.c (gfc_conv_powi): Make n argument unsigned hwi.
992         (gfc_conv_cst_int_power): Handle integer exponent with care,
993         since it might be too large for us.
994
995 2007-03-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
996
997         PR fortran/31184
998         * invoke.texi: Fix typo.
999
1000 2007-03-16  Tobias Burnus  <burnus@net-b.de>
1001
1002         * trans-decl.c (gfc_generate_function_code): Use all arguments of
1003           set_std.
1004
1005 2007-03-15  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1006
1007         * gfortran.h (gfc_option_t): Add flag_backtrace field.
1008         * lang.opt: Add -fbacktrace option.
1009         * invoke.texi: Document the new option.
1010         * trans-decl.c (gfc_build_builtin_function_decls): Add new
1011         option to the call to set_std.
1012         * options.c (gfc_init_options, gfc_handle_option): Handle the
1013         new option.
1014
1015 2007-03-15  Tobias Burnus  <burnus@gcc.gnu.org>
1016             Paul Thomas  <pault@gcc.gnu.org>
1017
1018         PR fortran/30922
1019         * decl.c (gfc_match_import): If the parent of the current name-
1020         space is null, try looking for an imported symbol in the parent
1021         of the proc_name interface.
1022         * resolve.c (resolve_fl_variable): Do not check for blocking of
1023         host association by a same symbol, if the symbol is in an
1024         interface body.
1025
1026 2007-03-15  Paul Thomas  <pault@gcc.gnu.org>
1027
1028         PR fortran/30879
1029         * decl.c (match_data_constant): Before going on to try to match
1030         a name, try to match a structure component.
1031
1032
1033         PR fortran/30870
1034         * resolve.c (resolve_actual_arglist): Do not reject a generic
1035         actual argument if it has a same name specific interface.
1036
1037         PR fortran/31163
1038         * trans-array.c (parse_interface): Do not nullify allocatable
1039         components if the symbol has the saved attribute.
1040
1041 2007-03-14  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1042
1043         * trans-array.c (gfc_trans_auto_array_allocation): Replace
1044         fold(convert()) by fold_convert().
1045         (gfc_duplicate_allocatable): Likewise.
1046         * trans-intrinsic.c (gfc_conv_intrinsic_dot_product): Use
1047         build_int_cst instead of converting an integer_zero_node
1048         to the final type.
1049
1050 2007-03-14  Jakub Jelinek  <jakub@redhat.com>
1051
1052         * module.c (mio_typespec): Don't look at ts->cl if not BT_CHARACTER.
1053
1054 2007-03-13  Brooks Moses  <brooks.moses@codesourcery.com>
1055
1056         PR fortran/30933
1057         PR fortran/30948
1058         PR fortran/30953
1059         * intrinsics.texi (CHDIR): Fix argument names, note
1060         that STATUS must be a default integer.
1061         (CTIME): Fix argument names, note that RESULT must
1062         be a default integer.
1063         (EXIT): Note that STATUS must be a default integer.
1064
1065 2007-03-13  Brooks Moses  <brooks.moses@codesourcery.com>
1066
1067         PR fortran/28068
1068         * intrinsic.texi: General whitespace cleanup, remove
1069         comment about missing intrinsics.
1070         (menu): Add lines for new entries listed below.
1071         (ACOSH): Mention specific function DACOSH, correct
1072         description phrasing.
1073         (ASINH): Mention specific function DASINH, correct
1074         description phrasing.
1075         (ATANH): Mention specific function DATANH, correct
1076         description phrasing.
1077         (COS): Add index entry for CCOS.
1078         (CPU_TIME): Correct "REAL" to "REAL(*)".
1079         (EXP): Add index entry for CEXP.
1080         (INT): Correct argument name to "A".
1081         (INT2): New entry.
1082         (INT8): New entry.
1083         (LONG): New entry.
1084         (MAX): Add index entries for specific variants.
1085         (MCLOCK): New entry.
1086         (MCLOCK8): New entry.
1087         (SECNDS): Adjust to a more standard form.
1088         (SECOND): New entry.
1089         (TIME): Add cross-reference to MCLOCK.
1090         (TIME8): Add cross-reference to MCLOCK8.
1091
1092 2007-03-11  Paul Thomas  <pault@gcc.gnu.org>
1093
1094         PR fortran/30883
1095         * parse.c (parse_interface): Use the default types from the
1096         formal namespace if a function or its result do not have a type
1097         after parsing the specification statements.
1098
1099 2007-03-08  Brooks Moses  <brooks.moses@codesourcery.com>
1100
1101         * intrinsic.texi: (ICHAR) Improve internal I/O note.
1102         (ACHAR): Reference it.
1103         (CHAR): Reference it.
1104         (IACHAR): Reference it.
1105
1106 2007-03-08  Brooks Moses  <brooks.moses@codesourcery.com>
1107
1108         * intrinsic.texi: (LINK) Document function form.
1109         (RENAME): Likewise.
1110         (SYMLNK): Likewise.
1111         (SYSTEM): Likewise.
1112         (UNLINK): Likewise.
1113
1114 2007-03-08  Brooks Moses  <brooks.moses@codesourcery.com>
1115
1116         * intrinsic.texi: minor typo fixes, removed prologue.
1117         (FSEEK): moved to correct place in alphabetical order.
1118
1119 2007-03-08  Daniel Franke  <franke.daniel@gmail.com>
1120
1121         PR fortran/30947
1122         * check.c (gfc_check_alarm_sub): Added check for default integer 
1123         kind of status argument.
1124         * iresolve.c (gfc_resolve_alarm_sub): Removed conversion of 
1125         status argument.
1126         * intrinsic.texi (ALARM): Extended documentation.
1127
1128 2007-03-08  Daniel Franke  <franke.daniel@gmail.com>
1129
1130         * intrinsic.texi (GERROR, ISATTY, TTYNAM): New.
1131         (ABORT, FLUSH, FNUM, IRAND, MALLOC, SIGNAL, SRAND): Fixed typo.
1132         * intrinsic.c (add_subroutines): Adjusted dummy argument names 
1133         of GERROR and TTYNAM.
1134
1135 2007-07-08  Tobias Burnus  <burnus@net-b.de>
1136
1137         * module.c (gfc_match_use): Support renaming of operators
1138         in USE statements.
1139         * gfortran.texi (Fortran 2003 Status): Document support of
1140         renaming of operators.
1141
1142 2007-07-08  Tobias Burnus  <burnus@net-b.de>
1143
1144         PR fortran/30973
1145         * module.c (read_module): Always import module name as symbol.
1146         (gfc_match_use): Disallow module name in the only clause of
1147         a use statement.
1148
1149 2007-03-08  Paul Thomas  <pault@gcc.gnu.org>
1150
1151         PR fortran/31011
1152         * expr.c (find_array_section): Correct arithmetic for section
1153         size.
1154
1155 2007-03-07  Brooks Moses  <brooks.moses@codesourcery.com>
1156
1157         * iresolve.c (gfc_resolve_ishftc): Correct s_kind value.
1158
1159 2007-03-06  Daniel Franke  <franke.daniel@gmail.com>
1160
1161         PR documentation/30950
1162         * intrinsic.texi (AND, CPU_TIME): Fix dummy argument names.
1163         (FREE): Fix call syntax.
1164
1165 2007-03-06  Brooks Moses  <brooks.moses@codesourcery.com>
1166
1167         * intrinsic.texi: Limit column widths to a total of .85.
1168
1169 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
1170
1171         * gfortran.texi (GFortran and G77): Rewrite completely.
1172
1173 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
1174
1175         * match.c (gfc_match_name): Expanded comment.
1176
1177 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
1178
1179         * gfortran.texi (Old-style kind specifications): Document
1180         special handling of old-style kind specifiers for COMPLEX.
1181         * decl.c (gfc_match_old_kind_spec): Document kind/bytesize
1182         assumptions for COMPLEX in comment.
1183
1184 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
1185
1186         PR 31050
1187         * gfortranspec.c (lang_specific_driver): Update program
1188         name and copyright date.
1189
1190 2007-03-03  Paul Thomas  <pault@gcc.gnu.org>
1191
1192         PR fortran/30882
1193         * check.c (dim_rank_check): The shape of subsections of
1194         assumed-size arrays is known.
1195
1196 2007-03-02  Paul Thomas  <pault@gcc.gnu.org>
1197             Tobias Burnus  <burnus@net-b.de>
1198
1199         PR fortran/30873
1200         * decl.c (gfc_match_entry): Remove erroneous entry result check.
1201
1202 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1203
1204         * Make-lang.in: Add install-pdf target as copied from
1205         automake v1.10 rules.
1206
1207 2007-03-01  Tobias Burnus  <burnus@net-b.de>
1208
1209         PR fortran/30865
1210         * trans-intrinsic.c (gfc_conv_intrinsic_size): Compare pointers.
1211
1212 2007-02-28  Tobias Burnus  <burnus@net-b.de>
1213             Paul Thomas  <pault@gcc.gnu.org>
1214
1215         PR fortran/30888
1216         PR fortran/30887
1217         * resolve.c (resolve_actual_arglist): Allow by-value
1218         arguments and non-default-kind for %VAL().
1219         * trans-expr.c (conv_arglist_function): Allow
1220         non-default-kind for %VAL().
1221
1222 2007-02-28  Tobias Burnus  <burnus@net-b.de>
1223
1224         PR fortran/30968
1225         * primary.c (next_string_char): Correct reading a character
1226         after the delimiter.
1227         (match_string_constant): Print warning message only once.
1228
1229 2007-02-27  Richard Guenther  <rguenther@suse.de>
1230
1231         * trans-array.c (structure_alloc_comps): Use correct type
1232         for null pointer constant.
1233
1234 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
1235
1236         * gfortran.texi: Standardize title page, remove version number
1237         from copyright page.
1238
1239 2007-02-26  Thomas Koenig  <Thomas.Koenig@online.de>
1240             Paul Thomas  <pault@gcc.gnu.org>
1241
1242         PR fortran/30865
1243         * trans-intrinsic.c (gfc_conv_intrinsic_size):
1244         If dim is an optional argument, check for its
1245         presence and call size0 or size1, respectively.
1246
1247 2007-02-23  Paul Thomas <pault@gcc.gnu.org>
1248
1249         PR fortran/30660
1250         * resolve.c (has_default_initializer): New function.
1251         (resolve_fl_variable): Call has_default_initializer to determine if
1252         the derived type has a default initializer to its ultimate
1253         components.
1254
1255
1256 2007-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1257
1258         * options.c (set_default_std_flags): New function to consolidate
1259         setting the flags.
1260         (gfc_init_options): Use new function.
1261         (gfc_handle_option): Use new function.
1262
1263 2007-02-22  Brooks Moses  <brooks.moses@codesourcery.com>
1264
1265         * gfortran.texi (Old-style kind specifications): Document
1266         special handling of old-style kind specifiers for COMPLEX.
1267         * decl.c (gfc_match_old_kind_spec): Documented kind/bytesize
1268         assumptions in comment.
1269
1270 2007-02-21  Bernhard Fischer  <aldot@gcc.gnu.org>
1271
1272         * parse.c (next_free): Gooble spaces after OpenMP sentinel.
1273
1274 2007-02-20  Thomas Koenig  <Thomas.Koenig@online.de>
1275
1276         PR fortran/30869
1277         * match.c (gfc_match_iterator): Remove conflict between
1278         loop variable and pointer.
1279
1280 2007-02-20  Tobias Burnus  <burnus@net-b.de>
1281
1282         PR fortran/30522
1283         * symbol.c (gfc_add_volatile): Allow to set VOLATILE
1284           attribute for host-associated variables.
1285         * gfortran.h (symbol_attribute): Save namespace
1286           where VOLATILE has been set.
1287         * trans-decl.c (gfc_finish_var_decl): Move variable
1288           declaration to the top.
1289
1290 2007-02-20  Tobias Burnus  <burnus@net-b.de>
1291
1292         PR fortran/30783
1293         * resolve.c (resolve_symbol): Add character dummy VALUE check.
1294
1295 2007-02-19  Thomas Koenig  <Thomas.Koenig@online.de>
1296
1297         PR libfortran/30533
1298         * fortran/iresolve.c (gfc_resolve_maxloc): Remove coercion of
1299         argument to default integer.
1300         (gfc_resolve_minloc): Likewise.
1301
1302 2007-02-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1303
1304         PR fortran/30681
1305         * options.c (gfc_init_options): Relax warning level for obsolescent.
1306         * match.c (match_arithmetic_if): Change to obsolescent from deleted.
1307         (gfc_match_if): Same.
1308
1309 2007-02-18  Roger Sayle  <roger@eyesopen.com>
1310
1311         * trans-array.c (gfc_build_constant_array_constructor): When the
1312         shape of the constructor is known, use that to construct the
1313         gfc_array_spec.
1314         (gfc_trans_constant_array_constructor): Initialize the "info"
1315         information for all of the dimensions of the array constructor.
1316         (constant_array_constructor_loop_size): New function.
1317         (gfc_trans_array_constructor): Use it to determine whether a
1318         loop is suitable for "constant array constructor" optimization.
1319
1320         * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Use fold_build2
1321         instead of build2, to avoid conditions like "(a != b) != 0".
1322
1323 2007-02-18  Roger Sayle  <roger@eyesopen.com>
1324             Paul Thomas <pault@gcc.gnu.org>
1325
1326         PR fortran/30400
1327         * match.c (match_forall_iterator): Use gfc_match_expr instead
1328         of gfc_match_variable to match the iterator variable.  Return
1329         MATCH_NO if not a variable.  Remove the reset of the symbol's
1330         flavor in cleanup.
1331
1332 2007-02-16  Tobias Burnus  <burnus@net-b.de>
1333
1334         PR fortran/30793
1335         * trans-decl.c (gfc_generate_function_code): Do not initialize
1336         pointers to derived components.
1337
1338 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
1339             Brooks Moses  <brooks.moses@codesourcery.com>
1340             Lee Millward  <lee.millward@codesourcery.com>
1341
1342         * trans-expr.c (gfc_conv_power_op): Use build_call_expr.
1343         (gfc_conv_string_tmp): Likewise.
1344         (gfc_conv_concat_op): Likewise.
1345         (gfc_build_compare_string): Likewise.
1346         (gfc_conv_function_call): Use build_call_list instead of build3.
1347
1348         * trans-array.c (gfc_trans_allocate_array_storage): Use
1349         build_call_expr.
1350         (gfc_grow_array): Likewise.
1351         (gfc_trans_array_ctor_element): Likewise.
1352         (gfc_trans_array_constructor_value): Likewise.
1353         (gfc_array_allocate): Likewise.
1354         (gfc_array_deallocate): Likewise.
1355         (gfc_trans_auto_array_allocation): Likewise.
1356         (gfc_trans_dummy_array_bias): Likewise.
1357         (gfc_conv_array_parameter): Likewise.
1358         (gfc_trans_dealloc_allocated): Likewise.
1359         (gfc_duplicate_allocatable): Likewise.
1360
1361         * trans-openmp.c (gfc_trans_omp_barrier): Use build_call_expr.
1362         (gfc_trans_omp_flush): Likewise.
1363
1364         * trans-stmt.c (gfc_conv_elementel_dependencies): Use build_call_expr.
1365         (gfc_trans_pause): Likewise.
1366         (gfc_trans_stop): Likewise.
1367         (gfc_trans_character_select): Likewise.
1368         (gfc_do_allocate): Likewise.
1369         (gfc_trans_assign_need_temp): Likewise.
1370         (gfc_trans_pointer_assign_need_temp): Likewise.
1371         (gfc_trans_forall_1): Likewise.
1372         (gfc_trans_where_2): Likewise.
1373         (gfc_trans_allocate): Likewise.
1374         (gfc_trans_deallocate): Likewise.
1375
1376         * trans.c (gfc_trans_runtime_check): Use build_call_expr.
1377
1378         * trans-io.c (gfc_trans_open): Use build_call_expr.
1379         (gfc_trans_close): Likewise.
1380         (build_filepos): Likewise.
1381         (gfc_trans_inquire): Likewise.
1382         (NML_FIRST_ARG): Delete.
1383         (NML_ADD_ARG): Delete.
1384         (transfer_namelist_element): Use build_call_expr.
1385         (build_dt): Likewise.
1386         (gfc_trans_dt_end): Likewise.
1387         (transfer_expr): Likewise.
1388         (transfer_array-desc): Likewise.
1389
1390         * trans-decl.c (gfc_generate_function_code): Use build_call_expr.
1391         (gfc_generate_constructors): Likewise.
1392
1393         * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Use build_call_expr.
1394         (gfc_conv_intrinsic_fdate): Likewise.
1395         (gfc_conv_intrinsic_ttynam): Likewise.
1396         (gfc_conv_intrinsic_array_transfer): Likewise.
1397         (gfc_conv_associated): Likewise.
1398         (gfc_conv_intrinsic_si_kind): Likewise.
1399         (gfc_conv_intrinsic_trim): Likewise.
1400         (gfc_conv_intrinsic_repeat: Likewise.
1401         (gfc_conv_intrinsic_iargc): Likewise.
1402
1403 2007-02-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1404
1405         PR fortran/30779
1406         * scanner.c (gfc_next_char_literal): Add check for end of file after
1407         call to advance_line.
1408
1409 2007-02-14  Steven G. Kargl  <kargl@gcc.gnu.org>
1410
1411         PR fortran/30799
1412         * primary.c (match_logical_constant): Return MATCH_ERROR on invalid
1413         kind.
1414
1415 2007-02-14  Steven G. Kargl  <kargl@gcc.gnu.org>
1416
1417         * misc.c (gfc_typename): Fix potential buffer overflow.
1418
1419 2007-02-13  Paul Thomas  <pault@gcc.gnu.org>
1420
1421         PR fortran/30554
1422         * module.c (read_module): Set pointer_info to referenced if the
1423         symbol has no namespace.
1424
1425 2007-02-12  Nick Clifton  <nickc@redhat.com>
1426
1427         * lang.opt: Add Warning attribute to warning options.
1428
1429 2007-02-11  Daniel Franke  <franke.daniel@gmail.com>
1430
1431         * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
1432         (SLEEP): Added section and documentation.
1433
1434 2007-02-11  Tobias Schlüter  <tobi@gcc.gnu.org>
1435
1436         PR fortran/30478
1437         * decl.c (add_init_expr_to_sym): Remove ENUM specific code.
1438         (variable_decl): Likewise.  Rewrap comment.
1439         (match_attr_spec): Remove ENUM specific code.
1440         (gfc_match_enum): Fix typo in error message.
1441         (enumerator_decl): New function.
1442         (gfc_match_enumerator_def): Use enumerator_decl instead of
1443         variable_decl.  Adapt code accordingly.
1444
1445 2007-02-11  Paul Thomas  <pault@gcc.gnu.org>
1446
1447         PR fortran/30554
1448         * module.c (find_symtree_for_symbol): New function to return
1449         a symtree that is not a "unique symtree" given a symbol.
1450         (read_module): Do not automatically set pointer_info to
1451         referenced because this inhibits the generation of a unique
1452         symtree.  Recycle the existing symtree if possible by calling
1453         find_symtree_for_symbol.
1454
1455         PR fortran/30319
1456         * decl.c (add_init_expr_to_sym): Make new charlen for an array
1457         constructor initializer.
1458
1459 2007-02-10  Richard Henderson  <rth@redhat.com>, Jakub Jelinek  <jakub@redhat.com>
1460
1461         * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
1462         and __emutls_register_common.
1463         * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
1464         * trans-common.c (build_common_decl): Don't check have_tls.
1465         * trans-decl.c (gfc_finish_var_decl): Likewise.
1466         * types.def (BT_WORD, BT_FN_PTR_PTR): New.
1467         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
1468
1469 2007-02-09  Tobias Burnus  <burnus@net-b.de>
1470
1471         PR fortran/30512
1472         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc,
1473           gfc_conv_intrinsic_minmaxval): Use HUGE-1 for most negative integer.
1474
1475 2007-02-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1476
1477         PR fortran/30720
1478         * trans-array.c (gfc_trans_create_temp_array): Remove use of the
1479         function argument. Always generate code for negative extent.
1480         Simplify said code.
1481         * trans-array.h (gfc_trans_create_temp_array): Change prototype.
1482         * trans-expr.c (gfc_conv_function_call): Remove use of last argument
1483         of gfc_trans_create_temp_array.
1484         * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Likewise.
1485         * trans-stmt.c (gfc_conv_elemental_dependencies): Likewise.
1486
1487 2007-02-08  Roger Sayle  <roger@eyesopen.com>
1488
1489         * trans-stmt.c (gfc_trans_forall_1): Optimize the cases where the
1490         mask expression is a compile-time constant (".true." or ".false.").
1491
1492 2007-02-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1493
1494         PR fortran/30611
1495         * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Evaluate
1496         arguments only once. Generate check that NCOPIES argument is not
1497         negative.
1498
1499 2007-02-04  Steven G. Kargl <kargl@gcc.gnu.org>
1500
1501         PR fortran/30605
1502         * fortran/invoke.texi: Update documentation.
1503         * fortran/options.c (gfc_post_options): Deal with tabs with -std=f2003
1504         and -pedantic.
1505
1506 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
1507
1508         * trans-array.c: Fix a comment typo.
1509
1510 2007-02-03  Paul Thomas  <pault@gcc.gnu.org>
1511
1512         PR fortran/30514
1513         * array.c (match_array_element_spec): If the length of an array is
1514         negative, adjust the upper limit to make it zero length.
1515
1516         PR fortran/30660
1517         * resolve.c (pure_function, resolve_function): Initialize name to
1518         null to clear up build warnings.
1519         (resolve_fl_variable): Look at components explicitly to check for
1520         default initializer, rather than using gfc_default_initializer.
1521
1522 2007-02-02  Steven G. Kargl <kargl@gcc.gnu.org>
1523
1524         PR fortran/30683
1525         * resolve.c (resolve_generic_f): Check for non-NULL sym.
1526
1527 2007-02-02  Roger Sayle  <roger@eyesopen.com>
1528
1529         * trans.c (gfc_build_array_ref): Use STRIP_TYPE_NOPS to eliminate
1530         NON_LVALUE_EXPR nodes and useless type conversions.
1531
1532 2007-02-02  Paul Thomas  <pault@gcc.gnu.org>
1533
1534         PR fortran/30284
1535         PR fortran/30626
1536         * trans-expr.c (gfc_conv_aliased_arg): Remove static attribute
1537         from function and make sure that substring lengths are
1538         translated.
1539         (is_aliased_array): Remove static attribute.
1540         * trans.c : Add prototypes for gfc_conv_aliased_arg and
1541         is_aliased_array.
1542         * trans-io.c (set_internal_unit): Add the post block to the
1543         arguments of the function.  Use is_aliased_array to check if
1544         temporary is needed; if so call gfc_conv_aliased_arg.
1545         (build_dt): Pass the post block to set_internal_unit and
1546         add to the block after all io activiy is done.
1547
1548 2007-02-01  Roger Sayle  <roger@eyesopen.com>
1549
1550         * trans-array.c (gfc_conv_expr_descriptor): We don't need to use
1551         a temporary array to pass a constant non-character array constructor.
1552         Generalize the descriptor generation code to handle scalarizer
1553         "info" without an array reference.
1554
1555 2007-02-01  Roger Sayle  <roger@eyesopen.com>
1556
1557         * dependency.c (gfc_check_dependency) <EXPR_ARRAY>: Implement
1558         dependency checking for array constructors.
1559
1560 2007-02-01  Roger Sayle  <roger@eyesopen.com>
1561
1562         * trans-stmt.c (compute_overall_iter_number): Document function
1563         arguments.  Generalize "unconditional forall nest with constant
1564         bounds" optimization to eliminate unconditional inner loops with
1565         constant bounds.
1566
1567 2007-01-31  Tobias Burnus  <burnus@net-b.de>
1568
1569         PR fortran/30520
1570         * interface.c (compare_actual_formal): Check conformance between
1571           actual and VOLATILE dummy arguments.
1572         * symbol.c (gfc_add_volatile): Allow setting of VOLATILE
1573           multiple times in different scopes.
1574         * decl.c (gfc_match_volatile): Search symbol in host association.
1575
1576 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
1577
1578         * simplify.c, trans-array.c: Fix comment typos.
1579
1580 2007-01-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1581
1582         * invoke.texi (Code Gen Options): Fix abbreviation typo.
1583         * intrinsic.texi (ACCESS, LSHIFT, RSHIFT): Fix typos.
1584
1585 2007-01-30  Steve Ellcey  <sje@cup.hp.com>
1586
1587         PR fortran/30432
1588         * trans-types.c (gfc_get_function_type): Do not add void_type_node
1589         to empty arg list.
1590         * trans-decl.c (create_function_arglist): Change assert.
1591
1592 2007-01-29  Paul Thomas  <pault@gcc.gnu.org>
1593
1594         PR fortran/30554
1595         * module.c (read_module): If a symbol is excluded by an ONLY
1596         clause, check to see if there is a symtree already loaded. If
1597         so, attach the symtree to the pointer_info.
1598
1599 2007-01-28  Thomas Koenig  <Thomas.Koenig@online.de>
1600
1601         PR libfortran/30389
1602         * gfortran.h: Remove gfc_simplify_init_1.
1603         * arith.h: Remove third argument from gfc_compare_string.
1604         * arith.c (gfc_compare_expression): Remove third argument
1605         from call to gfc_compare_string.
1606         (gfc_compare_string): Remove third argument xcoll_table.
1607         Remove use of xcoll_table.
1608         * misc.c (gfc_init_1): Remove call to gfc_simplify_init_1.
1609         * simplify.c (ascii_table): Remove.
1610         (xascii_table): Likewise.
1611         (gfc_simplify_achar): ICE if extract_int fails.  Remove use of
1612         ascii_table.  Warn if -Wsurprising and value < 0 or > 127.
1613         (gfc_simplify_char): ICE if extract_int fails. Error if
1614         value < 0 or value > 255.
1615         (gfc_simplify_iachar): Remove use of xascii_table.
1616         Char values outside of 0..255 are an ICE.
1617         (gfc_simplify_lge): Remove use of xascii_table.
1618         (gfc_simplify_lgt): Likewise.
1619         (gfc_simplify_lle): Likewise.
1620         (gfc_simplify_llt): Likewise.
1621         (invert_table): Remove.
1622         (gfc_simplify_init_1): Remove.
1623
1624 2007-01-27  Roger Sayle  <roger@eyesopen.com>
1625
1626         * trans-stmt.c (forall_info): Replace the next_nest and outer
1627         fields that previously implemented a doubly-linked list with a
1628         single prev_nest field (singly-linked list).
1629         (gfc_trans_nested_forall_loop): The nested_forall_info argument
1630         now denotes the innermost FORALL in the loop nest.
1631         (compute_overall_iter_number): Use prev_nest instead of next_nest.
1632         (gfc_trans_forall_1): Link/cons the new "info" to the head of the
1633         nested_forall_info linked list.  Free the current "info" when done.
1634
1635 2007-01-27  Paul Thomas  <pault@gcc.gnu.org>
1636
1637         PR fortran/30407
1638         * trans-expr.c (gfc_conv_operator_assign): New function.
1639         * trans.h : Add prototype for gfc_conv_operator_assign.
1640         * trans-stmt.c (gfc_trans_where_assign): Add a gfc_symbol for
1641         a potential operator assignment subroutine.  If it is non-NULL
1642         call gfc_conv_operator_assign instead of the first assignment.
1643         ( gfc_trans_where_2): In the case of an operator assignment,
1644         extract the argument expressions from the code for the
1645         subroutine call and pass the symbol to gfc_trans_where_assign.
1646         resolve.c (resolve_where, gfc_resolve_where_code_in_forall,
1647         gfc_resolve_forall_body): Resolve the subroutine call for
1648         operator assignments.
1649
1650 2007-01-26  Steven Bosscher  <stevenb.gcc@gmail.com>
1651             Steven G. Kargl <kargl@gcc.gnu.org>
1652
1653         PR fortran/30278
1654         * fortran/io.c (next_char): Deal with backslash escaped characters.
1655         Issue warnings in non -std=gnu cases.
1656         * fortran/primary.c (next_string_char): Issue warnings in non
1657
1658 2007-01-26  Tobias Burnus  <burnus@net-b.de>
1659
1660         * lang-specs.h: Add support for .f03 and .F03 extensions.
1661         * gfortran.texi: Document .f03 extension.
1662         * options.c (form_from_filename): Recognize .f03.
1663
1664 2007-01-25  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1665
1666         PR fortran/30437
1667         * lang.opt (Wall): Remove RejectNegative.
1668         * options.c (gfc_handle_option): Wall can be disabled.
1669         (set_Wall): Add a parameter for disabling Wall.
1670         
1671 2007-01-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1672
1673         PR fortran/30532
1674         * scanner.c (load_line): Remove check fot ctrl-z and don't gobble.
1675         
1676 2007-01-23  Paul Thomas  <pault@gcc.gnu.org>
1677
1678         PR fortran/30481
1679         * match.c (gfc_match_namelist): Add check for assumed size character
1680         in namelist and provide error if found.
1681
1682 2007-01-21  Brooks Moses  <brooks.moses@codesourcery.com>
1683
1684         * intrinsic.texi (ACHAR): Added cross-references.
1685         (CHAR): Put cross-references in alphabetical order.
1686         (IACHAR): Added cross-references.
1687         (ICHAR): Added cross-references.
1688
1689 2007-01-20  Brooks Moses  <brooks.moses@codesourcery.com>
1690
1691         * intrinsic.texi: Edited all "Syntax" examples to a consistent form.
1692         (MAXVAL): Corrected description of result characteristics.
1693         (MINVAL): Same.
1694         (UMASK): Added documentation.
1695
1696 2007-01-20  Steven G. Kargl  <kargl@gcc.gnu.org>
1697
1698         * openmp.c, matchexp.c, module.c, scanner.c, resolve.c, st.c,
1699         parse.c, primary.c, options.c, misc.c, simplify.c: Next installment
1700         in the massive whitespace patch.
1701
1702 2007-01-20  Roger Sayle  <roger@eyesopen.com>
1703
1704         * module.c (mio_array_ref): The dimen_type fields of an array ref
1705         are an enumerated type and can't be read/written directly with a
1706         call to mio_integer.  Instead loop over and cast each element.
1707
1708 2007-01-20  Roger Sayle  <roger@eyesopen.com>
1709
1710         * dependency.c (gfc_full_array_ref_p): Check that ref->next is NULL,
1711         i.e. that the ARRAY_REF doesn't mention components.
1712         * trans-array.c (gfc_constant_array_constructor_p): Export external
1713         function renamed from constant_array_constructor_p.
1714         (gfc_build_constant_array_constructor): Export.
1715         (gfc_trans_array_constructor): Update call to the renamed function
1716         constant_array_constructor_p.
1717         * trans-array.h (gfc_constant_array_constructor_p): Prototype here.
1718         (gfc_build_constant_array_constructor): Likewise.
1719         * trans-expr.c (gfc_build_memcpy_call): New helper function split
1720         out from gfc_trans_array_copy.
1721         (gfc_trans_array_copy): Use gfc_build_memcpy_call.
1722         (gfc_trans_array_constructor_copy): New function to optimize
1723         assigning an entire array from a constant array constructor.
1724         (gfc_trans_assignment): Call gfc_trans_array_constructor_copy
1725         when appropriate.
1726
1727 2007-01-20  Roger Sayle  <roger@eyesopen.com>
1728
1729         * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
1730         implementation for the SIGN intrinsic with integral operands.
1731         (gfc_conv_intrinsic_minmax): Fix whitespace.
1732
1733 2007-01-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1734
1735         * gfortran.h (gfc_options_t): Add flag_allow_leading_underscore.
1736         * lang.opt: Add -fallow-leading-underscore.
1737         * match.c (gfc_match_name): Allow leading underscore in symbol
1738         name if -fallow-leading-underscore is used.
1739         * symbol.c (gfc_get_default_type): Add special case for symbol
1740         names beginning with an underscore.
1741         * trans-decl.c (gfc_get_extern_function_decl,
1742         gfc_build_intrinsic_function_decls): Add _gfortran prefix to
1743         library symbols selected_int_kind, selected_real_kind and 
1744         all specifics.
1745         * options.c (gfc_init_options, gfc_handle_option): Handle the
1746         new -fallow-leading-underscore option.
1747
1748 2007-01-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1749
1750         PR fortran/30446
1751         * options.c (gfc_handle_module_path_options): Path used in -J
1752         option is now added to the module search path.
1753
1754 2007-01-20  Richard Guenther  <rguenther@suse.de>
1755
1756         PR fortran/30223
1757         * f95-lang.c (gfc_init_builtin_functions): Provide cbrt and
1758         cexpi builtins if we have TARGET_C99_FUNCTIONS.  Provide
1759         sincos builtins if the target has sincos.
1760
1761 2007-01-19  Brooks Moses  <brooks.moses@codesourcery.com>
1762
1763         * intrinsic.texi (MATMUL): Corrected a typo.
1764         (MAX): Separated @var arguments.
1765         (MIN): Separated @var arguments.
1766
1767 2007-01-19  Brooks Moses  <brooks.moses@codesourcery.com>
1768
1769         * intrinsic.texi: general whitespace cleanup.
1770         (menu): Added TIME8, removed UNMASK.
1771         (AINT): Clarified argument requirement.
1772         (ANINT): Clarified argument requirement.
1773         (CEILING): Clarified argument requirement.
1774         (CHAR): Clarified argument requirement.
1775         (CMPLX): Clarified argument requirement.
1776         (DCMPLX): Clarified argument requirement.
1777         (FGET): Line rewrapping.
1778         (FLOOR): Clarified argument requirement.
1779         (GMTIME): Added documentation.
1780         (IAND): Added cross-reference.
1781         (IBCLR): Added cross-reference.
1782         (IBSET): Added cross-reference.
1783         (IEOR): Added cross-reference.
1784         (INT): Collapsed examples, clarified argument requirement.
1785         (IOR): Added cross-references.
1786         (LEN_TRIM): Corrected result kind.
1787         (LINK): Added cross-reference.
1788         (LLT): Removed "documentation pending".
1789         (LOGICAL): Added documentation.
1790         (LSHIFT): Added documentation.
1791         (LTIME): Added documentation.
1792         (MATMUL): Added documentation.
1793         (MAX): Added documentation.
1794         (MAXLOC): Added documentation.
1795         (MAXVAL): Added documentation.
1796         (MERGE): Added documentation.
1797         (MIN): Added documentation.
1798         (MINLOC): Added documentation.
1799         (MINVAL): Added documentation.
1800         (MVBITS): Moved to correct place, added documentation.
1801         (NOT): Added documentation.
1802         (PERROR): Added documentation.
1803         (RAN): Moved to correct place, added documentation.
1804         (REAL): Clarified argument requirement.
1805         (RENAME): Added documentation.
1806         (RSHIFT): Clarified argument requirement.
1807         (SIGN): Corrected table specification.
1808         (SYMLNK): Added documentation.
1809         (SYSTEM): Added documentation.
1810         (TIME): Added documentation.
1811         (TIME8): Added section and documentation.
1812         (UNMASK): Removed erroneous section.
1813
1814 2007-01-18  H.J. Lu  <hongjiu.lu@intel.com>
1815
1816         * trans-stmt.c (compute_overall_iter_number): Fix a typo.
1817
1818 2007-01-18  Roger Sayle  <roger@eyesopen.com>
1819
1820         * trans-expr.c (copyable_array_p): Consider user derived types without
1821         allocatable components to be copyable.
1822
1823 2007-01-18  Roger Sayle  <roger@eyesopen.com>
1824
1825         * trans-stmt.c (compute_overall_iter_number): Enhance to precompute
1826         the number of interations in unconditional FORALL nests with constant
1827         bounds.
1828
1829 2007-01-18  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1830             Tobias Burnus  <burnus@net-b.de>
1831
1832         PR libfortran/29649
1833         * gfortran.h (gfc_option_t): Add flag_dump_core.
1834         * lang.opt: Add -fdump-core option.
1835         * invoke.texi: Document the new options.
1836         * trans-decl.c (gfc_build_builtin_function_decls): Add new
1837           options to the call to set_std.
1838         * options.c (gfc_init_options, gfc_handle_option): Set the
1839           new options.
1840
1841 2007-01-17  Paul Thomas  <pault@gcc.gnu.org>
1842
1843         PR fortran/30476
1844         * module.c (load_generic_interfaces): Make the marking of the
1845         symbol as ambiguous conditional on the module names being
1846         different.
1847         (write_generic): Ensure that the generic interface has a
1848         non-NULL module field.
1849
1850 2007-01-16  Roger Sayle  <roger@eyesopen.com>
1851
1852         PR fortran/30404
1853         * trans-stmt.c (forall_info): Remove pmask field.
1854         (gfc_trans_forall_loop): Remove NVAR argument, instead assume that
1855         NVAR covers all the interation variables in the current forall_info.
1856         Add an extra OUTER parameter, which specified the loop header in
1857         which to place mask index initializations.
1858         (gfc_trans_nested_forall_loop): Remove NEST_FLAG argument.
1859         Change the semantics of MASK_FLAG to only control the mask in the
1860         innermost loop.
1861         (compute_overall_iter_number): Optimize the trivial case of a
1862         top-level loop having a constant number of iterations.  Update
1863         call to gfc_trans_nested_forall_loop.  Calculate the number of
1864         times the inner loop will be executed, not to size of the 
1865         iteration space.
1866         (allocate_temp_for_forall_nest_1): Reuse SIZE as BYTESIZE when
1867         sizeof(type) == 1.  Tidy up.
1868         (gfc_trans_assign_need_temp): Remove NEST_FLAG argument from calls
1869         to gfc_trans_nested_forall_loop.
1870         (gfc_trans_pointer_assign_need_temp): Likewise.
1871         (gfc_trans_forall_1): Remove unused BYTESIZE, TMPVAR, SIZEVAR and
1872         LENVAR local variables.  Split mask allocation into a separate
1873         hunk/pass from mask population.  Use allocate_temp_for_forall_nest
1874         to allocate the FORALL mask with the correct size.  Update calls
1875         to gfc_trans_nested_forall_loop.
1876         (gfc_evaluate_where_mask): Update call to
1877         gfc_trans_nested_forall_loop.
1878         (gfc_trans_where_2): Likewise.
1879
1880 2007-01-15  Paul Thomas  <pault@gcc.gnu.org>
1881
1882         PR fortran/28172
1883         * trans-stmt.c (gfc_trans_call): If it does not have one, get
1884         a backend_decl for an alternate return.
1885
1886         PR fortran/29389
1887         * resolve.c (pure_function): Statement functions are pure. Note
1888         that this will have to recurse to comply fully with F95.
1889
1890         PR fortran/29712
1891         * resolve.c (resolve_function): Only a reference to the final
1892         dimension of an assumed size array is an error in an inquiry
1893         function.
1894
1895         PR fortran/30283
1896         * resolve.c (resolve_function): Make sure that the function
1897         expression has a type.
1898
1899 2007-01-14  Paul Thomas  <pault@gcc.gnu.org>
1900
1901         PR fortran/30410
1902         * trans-decl.c (gfc_sym_mangled_function_id): Module, external
1903         symbols must not have the module name prepended.
1904
1905 2007-01-11  Thomas Koenig  <Thomas.Koenig@online.de>
1906
1907         PR libfortran/30415
1908         * iresolve.c (gfc_resolve_maxloc): If the rank
1909         of the return array is nonzero and we process an
1910         integer array smaller than default kind, coerce
1911         the array to default integer.
1912         * iresolve.c (gfc_resolve_minloc): Likewise.
1913
1914 2007-01-11  Brooks Moses  <brooks.moses@codesourcery.com>
1915
1916         * simplify.c: Update copyright to 2007.
1917         * scanner.c: Same.
1918
1919 2007-01-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1920
1921         PR fortran/30430
1922         * scanner.c (gfc_release_include_path): Free gfc_option.module_dir
1923         only once!
1924
1925 2007-01-09  Brooks Moses  <brooks.moses@codesourcery.com>
1926
1927         * simplify.c (gfc_simplify_ibclr): Fix POS comparison.
1928         (gfc_simplify_ibset): Same.
1929
1930 2007-01-09  Brooks Moses  <brooks.moses@codesourcery.com>
1931
1932         PR 30381
1933         PR 30420
1934         * simplify.c (convert_mpz_to_unsigned): New function.
1935         (convert_mpz_to_signed): New function, largely based on
1936         twos_complement().
1937         (twos_complement): Removed.
1938         (gfc_simplify_ibclr): Add conversions to and from an
1939         unsigned representation before bit-twiddling.
1940         (gfc_simplify_ibset): Same.
1941         (gfc_simplify_ishftc): Add checks for overly large
1942         constant arguments, only check the third argument if
1943         it's present, carry over high bits into the result as
1944         appropriate, and perform the final conversion back to
1945         a signed representation using the correct sign bit.
1946         (gfc_simplify_not): Removed unnecessary masking.
1947
1948 2007-01-09  Paul Thomas  <pault@gcc.gnu.org>
1949
1950         PR fortran/30408
1951         * resolve.c (resolve_code): Use the code->expr character length
1952         directly to set length of llen.
1953
1954 2007-01-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1955
1956         PR fortran/30408
1957         * lang.opt: Add Wcharacter_truncation option.
1958         * options.c (gfc_init_options): Initialize
1959         gfc_option.warn_character_truncation to zero.
1960         (gfc_handle_option): Add case for OPT_Wcharacter_truncation.
1961
1962 2007-01-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1963
1964         * interface.c, intrinsic.c, gfortranspec.c, io.c, f95-lang.c,
1965         iresolve.c, match.c: Update Copyright years.  Whitespace.
1966
1967 2007-01-08  Richard Guenther  <rguenther@suse.de>
1968
1969         * trans-io.c (transfer_array_desc): Use build_int_cst instead
1970         of build_int_cstu.
1971
1972 2007-01-08  Roger Sayle  <roger@eyesopen.com>
1973
1974         * trans-array.c (constant_array_constructor_p): New function to
1975         determine whether an array constructor consists only of constant
1976         elements, and if so return it's size.
1977         (gfc_build_constant_array_constructor): Construct a statically
1978         initialized gfortran array for a given EXPR_ARRAY.
1979         (gfc_trans_constant_array_constructor): Efficiently scalarize
1980         a constant array constructor.
1981         (gfc_trans_array_constructor): Tidy up use of CONST_STRING.
1982         Special case scalarization of constant array constructors, all of
1983         whose elements are specified, using constant_array_constructor_p 
1984         and gfc_trans_constant_array_constructor.
1985         (gfc_conv_scalarized_array_ref): Check whetger info->offset is zero
1986         before adding it to index, to avoid creating a NON_LVALUE_EXPR.
1987
1988 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
1989
1990         gfortran.texi: Fix typos.
1991
1992 2007-01-07  Steven G. Kargl  <kargl@gcc.gnu.org>
1993
1994         * decl.c, dump-parse-tree.c, error.c, data.c, expr.c, dependency.c,
1995         convert.c: Update Copyright dates.  Fix whitespace.
1996
1997 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
1998
1999         * data.c (gfc_assign_data_value): Fix whitespace.
2000
2001 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
2002
2003         * trans-array.c (gfc_trans_create_temp_array, gfc_array_init_size):
2004         Commentary typo fix.
2005
2006 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
2007
2008         PR fortran/27698
2009         * match.c (gfc_match_name): Print diagnostics for invalid
2010         character in names.
2011
2012 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
2013
2014         * array.c: Fix whitespace in comment table.
2015
2016 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
2017
2018         * array.c, bbt.c, check.c: Update copyright years.  Whitespace.
2019
2020 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
2021
2022         * arith.c: Update copyright years.  Whitespace.
2023
2024 2007-01-05  Roger Sayle  <roger@eyesopen.com>
2025
2026         * trans-expr.c (gfc_trans_assignment_1): New subroutine to scalarize
2027         array assignments split out from gfc_trans_assignment.
2028         (gfc_trans_array_copy): New function to implement array to array
2029         copies via calls to __builtin_memcpy.
2030         (copyable_array_p): New helper function to identify an array of
2031         simple/POD types, that may be copied/assigned using memcpy.
2032         (gfc_trans_assignment): Use gfc_trans_array_copy to handle simple
2033         whole array assignments considered suitable by copyable_array_p.
2034         Invoke gfc_trans_assignment_1 to perform the fallback scalarization.
2035
2036 2007-01-05  Roger Sayle  <roger@eyesopen.com>
2037
2038         * trans-array.c (gfc_trans_array_constructor_value): Make the
2039         static const "data" array as TREE_READONLY.
2040         * trans-stmt.c (gfc_trans_character_select): Likewise.
2041
2042 2007-01-05  Roger Sayle  <roger@eyesopen.com>
2043
2044         * trans-array.c (gfc_conv_loop_setup): Test whether the loop
2045         stride is one, to avoid fold_build2 introducing a useless
2046         NON_LVALUE_EXPR node.
2047
2048 2007-01-05  Tobias Burnus  <burnus@net-b.de>
2049
2050         * symbol.c (check_conflict): Fix error message.
2051
2052 2007-01-05  Paul Thomas  <pault@gcc.gnu.org>
2053
2054         PR fortran/23232
2055         * decl.c (gfc_in_match_data, gfc_set_in_match_data): New
2056         functions to signal that a DATA statement is being matched.
2057         (gfc_match_data): Call gfc_set_in_match_data on entry and on
2058         exit.
2059         * gfortran.h : Add prototypes for above.
2060         * expr.c (check_init_expr): Avoid check on parameter or
2061         variable if gfc_in_match_data is true.
2062         (gfc_match_init_expr): Do not call error on non-reduction of
2063         expression if gfc_in_match_data is true.
2064
2065         PR fortran/27996
2066         PR fortran/27998
2067         * decl.c (gfc_set_constant_character_len): Add boolean arg to
2068         flag array constructor resolution.  Warn if string is being
2069         truncated.  Standard dependent error if string is padded. Set
2070         new arg to false for all three calls to
2071         gfc_set_constant_character_len.
2072         * match.h : Add boolean arg to prototype for
2073         gfc_set_constant_character_len.
2074         * gfortran.h : Add warn_character_truncation to gfc_options.
2075         * options.c (set_Wall): Set warn_character_truncation if -Wall
2076         is set.
2077         * resolve.c (resolve_code): Warn if rhs string in character
2078         assignment has to be truncated.
2079         * array.c (gfc_resolve_character_array_constructor): Set new
2080         argument to true for call to gfc_set_constant_character_len.
2081
2082 2007-01-05  Tobias Burnus  <burnus@net-b.de>
2083
2084         PR fortran/29624
2085         * interface.c (compare_parameter_intent): New function.
2086           (check_intents): Support pointer intents.
2087         * symbol.c (check_conflict): Support pointer intents,
2088           better conflict_std message.
2089         * expr.c (gfc_check_assign,gfc_check_pointer_assign):
2090           Support pointer intents.
2091         * resolve.c (resolve_deallocate_expr,resolve_allocate_expr):
2092           Support pointer intents.
2093
2094 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2095
2096         PR 30371
2097         * check.c (gfc_check_kill_sub): Add checks for non-scalar
2098         arguments.
2099
2100 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
2101
2102         * intrinsic.texi: Minor cleanup, reflowing overlong
2103         paragraphs, and correcting whitespace.
2104
2105 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
2106
2107         * intrinsic.texi (LBOUND): Add documentation.
2108         (LGE): Add documentation.
2109         (LGT): Add documentation.
2110         (LINK): Add documentation.
2111         (LLE): Add documentation.
2112         (LLT): Add documentation.
2113         (LNBLNK): Add documentation.
2114         (UBOUND): Add documentation.
2115         (UNLINK): Add documentation.
2116
2117 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
2118
2119         * intrinsic.texi (IAND): Clarify argument specifications.
2120         (IBCLR): Add documentation.
2121         (IBITS): Add documentation.
2122         (IBSET): Add documentation.
2123         (IEOR): Add documentation.
2124         (IERRNO): Add documentation.
2125         (INDEX): Add documentation.
2126         (IOR): Add documentation.
2127         (ISHFT): Add documentation.
2128         (ISHFTC): Add documentation.
2129         (KILL): Add documentation.
2130         (LEN_TRIM): Add documentation.
2131
2132 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
2133
2134         PR 30235
2135         * interface.c (compare_actual_formal): check for
2136         alternate returns when iterating over non-present
2137         arguments.
2138
2139 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
2140
2141         * invoke.texi: Update manpage copyright to include 2007.
2142
2143 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
2144
2145         * gfortran.texi: Update copyright to include 2007.
2146         * intrinsic.texi: Update copyright to include 2007.
2147         * invoke.texi: Update copyright to include 2007.
2148
2149 2007-01-02  Tobias Burnus  <burnus@net-b.de>
2150             Jakub Jelinek  <jakub@redhat.com>
2151
2152         PR fortran/30276
2153         * scanner.c (open_included_file): Revert patch.
2154           (gfc_open_included_file): Support absolute pathnames.
2155           (gfc_open_intrinsic_module): Support absolute pathnames.
2156
2157 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2158
2159         * gfortran.texi (GNU Fortran and GCC): Rewrite
2160
2161 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2162
2163         * gfortran.texi (Introduction): Lower "Part I:
2164         Introduction" to a chapter, renumber Parts II and III to
2165         Parts I and II.
2166         * intrinsic.texi (Introduction): Rename to "Introduction
2167         to Intrinsics" to avoid conflict with the new chapter.
2168
2169 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2170
2171         * intrinsic.texi (Introduction): Rewrite first paragraph.
2172
2173 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2174
2175         * invoke.texi (OpenMP): Added index entry.
2176         * gfortran.texi (title page): Removed erroneous '*'.
2177
2178 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2179
2180         * gfortran.texi (GFORTRAN_DEFAULT_RECL): Added units
2181         to description.
2182         (Extensions): Miscellaneous minor rewriting and copyediting.
2183         (BOZ-literal constants): Renamed from Hexadecimal constants.
2184         (Hollerith constants support): Added explanation and 
2185         suggestions for standard-conforming modern equivalents.
2186
2187 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2188
2189         * intrinsic.texi: Improvements to index entries; change
2190         @findex entries to @cindex entries.
2191         * invoke.texi: Standardize and improve index entries.
2192         * gfortran.texi: Fix @code in one index entry.
2193
2194 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2195
2196         * invoke.texi: Change @code-type macros to appropriate
2197         variants (@command, @option, etc.)
2198         * gfortran.texi: Same.
2199
2200 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2201
2202         * intrinsic.texi: Various minor cleanups.
2203
2204 2007-01-02  Steven G. Kargl  <kargls@comcast.net>
2205
2206         * trans-intrinsic.c (gfc_conv_intrinsic_ibits): Fix call to
2207         build_int_cst.
2208
2209 2007-01-02  Tobias Burnus  <burnus@net-b.de>
2210
2211         PR fortran/30276
2212         * scanner.c (open_included_file): Support full-path filenames.
2213
2214 2007-01-02  Paul Thomas  <pault@gcc.gnu.org>
2215
2216         PR fortran/20896
2217         * interface.c (check_sym_interfaces): Remove call to
2218         resolve_global_procedure.
2219         gfortran.h : Remove prototype for resolve_global_procedure.
2220         resolve.c (resolve_global_procedure): Add static attribute
2221         to function declaration.
2222
2223 2007-01-01  Steven G. Kargl  <kargls@comcast.net>
2224
2225         * ChangeLog: Copy to ...
2226         * ChangeLog-2006: here.