OSDN Git Service

gcc/fortran:
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
1 2007-07-12  Daniel Franke  <franke.daniel@gmail.com>
2
3         PR fortran/31639
4         * decl.c (gfc_match_suffix): Removed surplus general error that hides
5         a more specific message.
6         * resolve.c (resolve_fl_variable): Reject illegal initializiers only
7         if not already done.
8         (resolve_fl_procedure): Added check for initializers of functions.
9
10 2007-07-12  Daniel Franke  <franke.daniel@gmail.com>
11
12         PR fortran/32704
13         * invoke.texi (-static-libgfortran): Document new option.
14
15 2007-07-12  Paul Thomas  <pault@gcc.gnu.org>
16
17         PR fortran/32634
18         PR fortran/32727
19         * module.c (write_generic): Restore patch of 2007-07-10 and use
20         symbol name if there are no use names. 
21
22 2007-07-12  Christopher D. Rickett  <crickett@lanl.gov>
23
24         PR fortran/32599
25         * decl.c (verify_c_interop_param): Require character string dummy
26         args to BIND(C) procedures to have length 1.
27         * resolve.c (resolve_fl_procedure): Modify parameter checking for
28         BIND(C) procedures.
29
30         PR fortran/32601
31         * resolve.c (gfc_iso_c_func_interface): Verify that a valid
32         expression is given as an argument to C_LOC and C_ASSOCIATED.
33         * trans-io.c (transfer_expr): Add argument for code block.  Add
34         standards check to determine if an error message should be
35         reported for printing C_PTR or C_FUNPTR.
36         (transfer_array_component): Update arguments to transfer_expr.
37         (gfc_trans_transfer): Ditto.
38
39         * symbol.c (gen_cptr_param): Fix whitespace.
40
41 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
42
43         PR fortran/32550
44         * trans.h (GFC_POINTER_TYPE_P): Define.
45         * trans-types.c (gfc_sym_type): Set it for types on attr->sym.pointer.
46         * trans-openmp.c (gfc_omp_privatize_by_reference): Return false
47         if GFC_POINTER_TYPE_P is set on the type.
48
49 2007-07-12  Richard Guenther  <rguenther@suse.de>
50
51         * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Convert
52         arguments to gfc_charlen_type_node.
53         * trans-io.c (gfc_convert_array_to_string): Convert type
54         size to gfc_array_index_type.
55
56 2007-07-12  Daniel Franke  <franke.daniel@gmail.com>
57
58         PR fortran/32634
59         PR fortran/32727
60         * module.c: Reverted Paul's patch from 2007-07-10.
61
62 2007-07-11  Richard Guenther  <rguenther@suse.de>
63
64         * trans-array.c (gfc_conv_array_parameter): Use correct
65         types for comparison.
66         * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Use
67         correct types for POINTER_PLUS_EXPR.
68         * trans-stmt.c (gfc_trans_forall_loop): Use correct type
69         for integer one constant.
70
71 2007-07-10  Paul Thomas  <pault@gcc.gnu.org>
72
73         PR fortran/32157
74         * resolve.c (is_external_proc): New function.  Adds test that
75         the symbol is not an intrinsic procedure.
76         * (resolve_function, resolve_call): Replace logical statements
77         with call to is_external_proc.
78
79         PR fortran/32689
80         * simplify.c (gfc_simplify_transfer): If mold has rank, the
81         result is an array.
82
83         PR fortran/32634
84         * module.c (write_generic): Write the local name of the
85         interface. 
86
87 2007-07-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
88
89         PR fortran/29459
90         * trans-array.c (gfc_trans_array_constructor): Mark offset field
91         with TREE_NO_WARNING.
92         * trans-decl.c (gfc_build_qualified_array): Mark lbound, ubound,
93         stride and size variables with TREE_NO_WARNING.
94
95 2007-07-09  Steven G. Kargl  <kargl@gcc.gnu.org>
96
97         * trans-decl.c (set_tree_decl_type_code): Remove function.
98         (generate_local_decl): Remove reference to set_tree_decl_type_code.
99
100 2007-07-09  Daniel Franke  <franke.daniel@gmail.com>
101
102         PR fortran/31129
103         * trans-decl.c (generate_local_decl) Emit a warning if an unused
104         parameter is found.
105
106 2007-07-08  Daniel Franke  <franke.daniel@gmail.com>
107
108         PR fortran/29876
109         * module.c (gfc_match_use): Do not set an non-existant 
110         intrinsic operator if a user-defined operator is found.
111
112 2007-07-08  Daniel Franke  <franke.daniel@gmail.com>
113
114         PR fortran/24784
115         PR fortran/28004
116         * trans-decl.c (generate_local_decl): Adjusted warning on unused 
117         dummy arguments, tell middle-end not to emit additional warnings.
118
119 2007-07-08  Daniel Franke  <franke.daniel@gmail.com>
120             Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
121
122         PR fortran/17711
123         * gfortran.h (gfc_intrinsic_op): Added INTRINSIC_EQ_OS,
124         INTRINSIC_NE_OS, INTRINSIC_GT_OS, INTRINSIC_GE_OS, 
125         INTRINSIC_LT_OS and INTRINSIC_LE_OS.
126         * arith.c (eval_intrinsic, eval_type_intrinsic0): Likewise.
127         * arith.h (gfc_eq, gfc_ne, gfc_gt, gfc_ge, gfc_lt, gfc_le):
128         Added gfc_intrinsic_op as third argument type.
129         * dump-parse-tree.c (gfc_show_expr): Account for new enum values.
130         * expr.c (simplify_intrinsic_op, check_intrinsic_op): Likewise.
131         * interface.c (check_operator_interface): Likewise.
132         (gfc_check_interfaces): Added cross-checks for FORTRAN 77 and 
133         Fortran 90 style operators using new enum values.
134         (gfc_extend_expr): Likewise.
135         (gfc_add_interface): Likewise.
136         * match.c (intrinsic_operators): Distinguish FORTRAN 77 style
137         operators from Fortran 90 style operators using new enum values.
138         * matchexp.c (match_level_4): Account for new enum values.
139         * module.c (mio_expr): Likewise.
140         * resolve.c (resolve_operator): Deal with new enum values, fix
141         inconsistent error messages.
142         * trans-expr.c (gfc_conv_expr_op): Account for new enum values.
143
144 2007-07-08  Tobias Burnus  <burnus@net-b.de>
145
146         PR fortran/32669
147         * interface.c (get_expr_storage_size): Properly obtain lower bound.
148         (compare_actual_formal): Add space before parenthesis.
149
150 2007-07-08  Daniel Franke  <franke.daniel@gmail.com>
151
152         PR fortran/25094
153         * resolve.c (resolve_fl_procedure): Added check for PRIVATE types 
154         in PUBLIC interfaces.
155
156 2007-07-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
157
158         PR fortran/32644
159         * decl.c (match_attr_spec): Don't return MATCH_ERROR if comma found and
160         gfc_match_bind_c does not return MATCH_YES.
161
162 2007-07-07  Kazu Hirata  <kazu@codesourcery.com>
163
164         * decl.c, gfortran.h, interface.c, module.c, resolve.c,
165         trans-array.c, trans-decl.c: Fix comment typos.  Follow
166         spelling conventions.
167         * intrinsic.texi: Fix typos.  Follow spelling conventions.
168
169 2007-05-06  Daniel Franke  <franke.daniel@gmail.com>
170
171         PR fortran/32633
172         * symbol.c (save_status): New.
173         * gfortran.h (save_status): Added external declaration.
174         (check_conflict): Check for conflicting explicite SAVE statements
175         only.
176         (gen_special_c_interop_ptr): Use SAVE_EXPLICIT constant.
177         * module.c (ab_attribute, attr_bits): Removed enumerator value 
178         AB_SAVE for save attribute.
179         (mio_symbol_attribute): Import/export the full SAVE status, 
180         removed usage of AB_SAVE.
181         * dump-parse-tree.c (gfc_show_attr): Dump full SAVE status.
182         * decl.c (add_init_expr_to_sym): Set SAVE_IMPLICIT only if not
183         already explicit.
184
185 2007-07-05  Daniel Franke  <franke.daniel@gmail.com>
186             Tobias Burnus  <burnus@net-b.de>
187
188         PR fortran/32359
189         * gfortran.h (symbol_attribute): Change save attribute into an enum.
190         * decl.c (add_init_expr_to_sym): Set it to SAVE_IMPLICIT.
191         * symbol.c (gfc_add_save): Check for SAVE_EXPLICIT.
192         * resolve.c (resolve_fl_variable): Check for SAVE_EXPLICIT.
193         (resolve_symbol): Allow OMP threadprivate with
194         initialization SAVEd and save_all variable.
195         * trans-decl.c (gfc_finish_var_decl): Remove obsolete sym->value check.
196
197 2007-07-05  Paul Thomas  <pault@gcc.gnu.org>
198
199         PR fortran/32526
200         * match.c (gfc_match_call): Check, in all cases, that a symbol
201         is neither generic nor a subroutine before trying to add it as
202         a subroutine.
203
204         PR fortran/32613
205         * match.c (gfc_match_do): Reset the implied_index attribute.
206
207 2007-07-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
208
209         PR fortran/31198
210         * trans-intrinsic.c (trans-intrinsic.c): Handle optional
211         arguments correctly for MIN and MAX intrinsics.
212
213 2007-07-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
214
215         PR fortran/32545
216         * io.c (check_format): Always call gfc_error for errors.
217         (check_format_string): Change type of this function to try and
218         return the result of check_format.
219         (check_io_constraints): Return MATCH_ERROR if check_format_string
220         returns FAILURE.
221
222 2007-07-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
223
224         PR fortran/32612
225         * decl.c (get_proc_name): Include attr->mod_proc in check for error.
226
227 2007-07-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
228
229         PR fortran/32432
230         * gfortran.h: Change type of gfc_assign_data_value from void to try.
231         * data.c (gfc_assign_data_value): Return FAILURE if error found.
232         * resolve.c (check_data_variable): If gfc_assign_data_value returns
233         failure, break out of loop and return failure.
234
235 2007-07-03  Christopher D. Rickett  <crickett@lanl.gov>
236
237         PR fortran/32579
238         * symbol.c (gen_cptr_param): Generate C_PTR and C_FUNPTR if necessary.
239         (build_formal_args): Pass intrinsic module symbol id to
240         gen_cptr_param.
241
242 2007-07-03  Tobias Burnus  <burnus@net-b.de>
243
244         PR fortran/25062
245         * resolve.c (resolve_common_blocks): New check function.
246         (resolve_types): Use it.
247
248 2007-07-03  Tobias Burnus  <burnus@net-b.de>
249
250         PR fortran/30940
251         * interface.c (get_sym_storage_size): New function.
252         (get_sym_storage_size): New function.
253         (compare_actual_formal): Enhance sequence association
254         support and improve checking.
255
256 2007-07-03  Janne Blomqvist  <jb@gcc.gnu.org>
257
258         * trans-decl.c (gfc_build_builtin_function_decls): Mark
259         internal_realloc as a malloc function.
260
261 2007-07-03  Tobias Burnus  <burnus@net-b.de>
262
263         PR fortran/20888
264         * resolve.c (resolve_operator): Check for NULL as operand.
265
266 2007-07-02  Tobias Burnus  <burnus@net-b.de>
267
268         * gfortran.texi (Fortran 2003): Add ISO Bind C.
269         * intrinsic.texi (C_ASSOCIATED,C_F_POINTER,C_F_PROCPOINTER,
270         C_FUNLOC,C_LOC): Document new ISO Bind C intrinsics.
271
272 2007-07-01  Christopher D. Rickett  <crickett@lanl.gov>
273
274         * interface.c (gfc_compare_derived_types): Special case for comparing
275         derived types across namespaces.
276         (gfc_compare_types): Deal with BT_VOID.
277         (compare_parameter): Use BT_VOID to accept ISO C Binding pointers.
278         * trans-expr.c (gfc_conv_function_call): Remove setting parm_kind
279         to SCALAR
280         (gfc_conv_initializer): Deal with ISO C Binding NULL_PTR and 
281         NULL_FUNPTR.
282         (gfc_conv_expr): Convert expressions for ISO C Binding derived types.
283         * symbol.c (gfc_set_default_type): BIND(C) variables should not be
284         Implicitly declared.
285         (check_conflict): Add BIND(C) and check for conflicts.
286         (gfc_add_explicit_interface): Whitespace.       
287         (gfc_add_is_bind_c): New function.  
288         (gfc_copy_attr): Use it.
289         (gfc_new_symbol): Initialize ISO C Binding objects.
290         (get_iso_c_binding_dt):  New function.
291         (verify_bind_c_derived_type): Ditto.
292         (gen_special_c_interop_ptr): Ditto.
293         (add_formal_arg): Ditto.
294         (gen_cptr_param): Ditto.
295         (gen_fptr_param): Ditto.
296         (gen_shape_param): Ditto.
297         (add_proc_interface): Ditto.
298         (build_formal_args): Ditto.
299         (generate_isocbinding_symbol):  Ditto.
300         (get_iso_c_sym):  Ditto.
301         * decl.c (num_idents_on_line, has_name_equals): New variables.
302         (verify_c_interop_param): New function.
303         (build_sym): Finish binding labels and deal with COMMON blocks.
304         (add_init_expr_to_sym): Check if the initialized expression is
305         an iso_c_binding named constants
306         (variable_decl): Set ISO C Binding type_spec components.
307         (gfc_match_kind_spec): Check match for C interoperable kind.
308         (match_char_spec): Fix comment. Chnage gfc_match_small_int
309         to gfc_match_small_int_expr.  Check for C interoperable kind.
310         (match_type_spec): Clear the current binding label.
311         (match_attr_spec): Add DECL_IS_BIND_C.  If BIND(C) is found, use it
312         to set attributes.
313         (set_binding_label): New function.
314         (set_com_block_bind_c): Ditto.
315         (verify_c_interop): Ditto.
316         (verify_com_block_vars_c_interop): Ditto.
317         (verify_bind_c_sym): Ditto.
318         (set_verify_bind_c_sym): Ditto.
319         (set_verify_bind_c_com_block): Ditto.
320         (get_bind_c_idents): Ditto.
321         (gfc_match_bind_c_stmt): Ditto.
322         (gfc_match_data_decl): Use num_idents_on_line.
323         (match_result): Deal with right paren in BIND(C).
324         (gfc_match_suffix): New function.
325         (gfc_match_function_decl): Use it.  Code is re-arranged to deal with
326         ISO C Binding result clauses.
327         (gfc_match_subroutine):  Deal with BIND(C).
328         (gfc_match_bind_c): New function.
329         (gfc_get_type_attr_spec): New function.  Code is re-arranged in and
330         taken from gfc_match_derived_decl.
331         (gfc_match_derived_decl): Add check for BIND(C).
332         * trans-common.c: Forward declare gfc_get_common.
333         (gfc_sym_mangled_common_id): Change arg from 'const char *name' to
334         'gfc_common_head *com'.  Check for ISO C Binding of the common block.
335         (build_common_decl): 'com->name' to 'com in SET_DECL_ASSEMBLER_NAME.
336         * gfortran.h: Add GFC_MAX_BINDING_LABEL_LEN
337         (bt): Add BT_VOID
338         (sym_flavor): Add FL_VOID.
339         (iso_fortran_env_symbol, iso_c_binding_symbol, intmod_id): New enum
340         (CInteropKind_t): New struct.
341         (c_interop_kinds_table): Use it.  Declare an array of structs.
342         (symbol_attribute): Add is_bind_c, is_c_interop, and is_iso_c
343         bitfields.
344         (gfc_typespec): Add is_c_interop; is_iso_c, and f90_type members.
345         (gfc_symbol): Add from_intmod, intmod_sym_id, binding_label, and
346         common_block members.
347         (gfc_common_head): Add binding_label and is_bind_c members.
348         (gfc_gsymbol): Add sym_name, mod_name, and binding_label members.
349         Add prototypes for get_c_kind, gfc_validate_c_kind, 
350         gfc_check_any_c_kind, gfc_add_is_bind_c, gfc_add_value,
351         verify_c_interop, verify_c_interop_param, verify_bind_c_sym,
352         verify_bind_c_derived_type, verify_com_block_vars_c_interop,
353         generate_isocbinding_symbol, get_iso_c_sym, gfc_iso_c_sub_interface
354         * iso-c-binding.def: New file. This file contains the definitions
355         of the types provided by the Fortran 2003 ISO_C_BINDING intrinsic
356         module.
357         * trans-const.c (gfc_conv_constant_to_tree): Deal with C_NULL_PTR
358          or C_NULL_FUNPTR expressions.
359         * expr.c (gfc_copy_expr): Add BT_VOID case.  For BT_CHARACTER, the
360         ISO C Binding requires a minimum string length of 1 for '\0'.  
361         * module.c (intmod_sym): New struct.
362         (pointer_info): Add binding_label member.
363         (write_atom): Set len to 0 for NULL pointers. Check for NULL p and *p.
364         (ab_attribute): Add AB_IS_BIND_C, AB_IS_C_INTEROP and AB_IS_ISO_C.
365         (attr_bits): Add "IS_BIND_C", "IS_C_INTEROP", and "IS_ISO_C".
366         (mio_symbol_attribute): Deal with ISO C Binding attributes.
367         (bt_types): Add "VOID".
368         (mio_typespec): Deal with ISO C Binding components.
369         (mio_namespace_ref): Add intmod variable. 
370         (mio_symbol): Check for symbols from an intrinsic module.
371         (load_commons): Check for BIND(C) common block.
372         (read_module): Read binding_label and use it.
373         (write_common): Add label.  Write BIND(C) info.
374         (write_blank_common): Blank commons are not BIND(C).  Explicitly
375         set is_bind_c=0.
376         (write_symbol): Deal with binding_label.
377         (sort_iso_c_rename_list): New function.
378         (import_iso_c_binding_module): Ditto.
379         (create_int_parameter): Add to args.
380         (use_iso_fortran_env_module): Adjust to deal with iso_c_binding
381         intrinsic module.
382         * trans-types.c (c_interop_kinds_table): new array of structs. 
383         (gfc_validate_c_kind): New function.
384         (gfc_check_any_c_kind): Ditto.
385         (get_real_kind_from_node): Ditto.
386         (get_int_kind_from_node): Ditto.
387         (get_int_kind_from_width): Ditto.
388         (get_int_kind_from_minimal_width): Ditto.
389         (init_c_interop_kinds): Ditto.
390         (gfc_init_kinds): call init_c_interop_kinds.
391         (gfc_typenode_for_spec): Adjust for BT_VOID and ISO C Binding pointers.
392         Adjust handling of BT_DERIVED.
393         (gfc_sym_type): Whitespace.
394         (gfc_get_derived_type):  Account for iso_c_binding derived types
395         * resolve.c (is_scalar_expr_ptr): New function.
396         (gfc_iso_c_func_interface): Ditto.
397         (resolve_function): Use gfc_iso_c_func_interface. 
398         (set_name_and_label): New function.
399         (gfc_iso_c_sub_interface): Ditto.
400         (resolve_specific_s0): Use gfc_iso_c_sub_interface.
401         (resolve_bind_c_comms): New function.
402         (resolve_bind_c_derived_types): Ditto.
403         (gfc_verify_binding_labels): Ditto.
404         (resolve_fl_procedure): Check for ISO C interoperability.
405         (resolve_symbol): Check C interoperability.
406         (resolve_types): Walk the namespace.  Check COMMON blocks.
407         * trans-decl.c (gfc_sym_mangled_identifier):  Prevent the mangling
408         of identifiers that have an assigned binding label.
409         (gfc_sym_mangled_function_id): Use the binding label rather than
410         the mangled name.
411         (gfc_finish_var_decl): Put variables that are BIND(C) into a common
412         segment of the object file, because this is what C would do.
413         (gfc_create_module_variable): Conver to proper types
414         (set_tree_decl_type_code): New function.
415         (generate_local_decl): Check dummy variables and derived types for
416         ISO C Binding attributes.
417         * match.c (gfc_match_small_int_expr): New function.
418         (gfc_match_name_C): Ditto.
419         (match_common_name): Deal with ISO C Binding in COMMON blocks
420         * trans-io.c (transfer_expr):  Deal with C_NULL_PTR or C_NULL_FUNPTR
421         expressions
422         * match.h: Add prototypes for gfc_match_small_int_expr,
423         gfc_match_name_C, match_common_name, set_com_block_bind_c,
424         set_binding_label, set_verify_bind_c_sym,
425         set_verify_bind_c_com_block, get_bind_c_idents,
426         gfc_match_bind_c_stmt, gfc_match_suffix, gfc_match_bind_c,
427         gfc_get_type_attr_spec
428         * parse.c (decode_statement): Use gfc_match_bind_c_stmt
429         (parse_derived): Init *derived_sym = NULL, and gfc_current_block
430         later for valiadation.
431         * primary.c (got_delim): Set ISO C Binding components of ts.
432         (match_logical_constant): Ditto.
433         (match_complex_constant): Ditto.
434         (match_complex_constant): Ditto.
435         (gfc_match_rvalue): Check for existence of at least one arg for
436         C_LOC, C_FUNLOC, and C_ASSOCIATED.
437         * misc.c (gfc_clear_ts): Clear ISO C Bindoing components in ts.
438         (get_c_kind): New function.
439
440 2007-07-01  Janne Blomqvist  <jb@gcc.gnu.org>
441
442         PR fortran/32239
443         * trans-expr.c (gfc_conv_power_op): Use builtin_powi for
444         real**int4 powers.
445         * f95-lang.c (gfc_init_builtin_functions): Add builtin_powi to the
446         builtins table.
447
448 2007-07-01  Janne Blomqvist  <jb@gcc.gnu.org>
449
450         * trans.h: Remove decls for 64-bit allocation functions.
451         * trans-array.c (gfc_grow_array): Always pick the standard realloc
452         function decl.
453         (gfc_array_allocate): Likewise.
454         * trans-decl.c: Remove trees for 64-bit allocation functions.
455         (gfc_build_builtin_function_decls): Don't build fndecls for 64-bit
456         allocations functions, use index_int_type for normal allocation
457         functions.
458
459 2007-06-30  Daniel Franke  <franke.daniel@gmail.com>
460
461         PR fortran/20373
462         * intrinsic.c (add_functions): Additional function types.
463         (gfc_convert_type_warn): Remove intrinsic-flag from
464         conversion functions.
465         * resolve.c (resolve_symbol): Added type checks to 
466         explicitly defined intrinsics.
467
468 2007-06-30  Tobias Burnus  <burnus@net-b.de>
469
470         PR fortran/32555
471         * io.c (check_format): Allow zero to precede the
472         P edit descriptor.
473
474 2007-06-30  Paul Thomas  <pault@gcc.gnu.org>
475
476         PR fortran/32472
477         * simplify.c (gfc_simplify_repeat): Add handling of character
478         literal for first argument.
479
480 2007-06-29  Daniel Franke  <franke.daniel@gmail.com>
481
482         * resolve.c (resolve_operator): Added check whether a user
483         defined operator is available.
484
485 2007-06-29  Daniel Franke <franke.daniel@gmail.com>
486
487         * openmp.c (resolve_omp_clauses): Adjust error message to
488         better reflect the actual requirement.
489
490 2007-06-29  Tobias Burnus  <burnus@net-b.de>
491
492         PR fortran/32483
493         * io.c (format_lex): Fix FMT_ZERO.
494         (check_format,check_format_string,gfc_match_format,
495         check_io_constraints) Additional checking for READ.
496
497 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
498
499         PR other/31400
500         * lang.opt (static-libgfortran): New option.
501         * gfortranspec.c (ADD_ARG_LIBGFORTRAN): New macro.
502         (Option): Add OPTION_static and OPTION_static_libgfortran.
503         (lookup_option): Handle the new -static-libgfortran option.
504         (lang_specific_driver): Check whether -static is passed.
505         Handle the new -static-libgfortran option.
506         * options.c (gfc_handle_option): If -static-libgfortran is
507         passed and isn't supported on this configuration, error out.
508
509 2007-06-27  Daniel Franke  <franke.daniel@gmail.com>
510
511         PR fortran/32467
512         * openmp.c (resolve_omp_clauses): Emit error on allocatable
513         components in COPYIN, COPYPRIVATE, FIRSTPRIVATE and LASTPRIVATE
514         clauses.
515
516 2007-06-25  Paul Thomas  <pault@gcc.gnu.org>
517
518         PR fortran/32464
519         * resolve.c (check_host_association): Return if the old symbol
520         is use associated.  Introduce retval to reduce the number of
521         evaluations of the first-order return value.
522
523         PR fortran/31494
524         * match.c (gfc_match_call): If a host associated symbol is not
525         a subroutine, build a new symtree/symbol in the current name
526         space.
527
528 2007-06-24  Tobias Burnus  <burnus@net-de>
529
530         PR fortran/32460
531         * interface.c (gfc_compare_derived_types): Add access check.
532         * symbol.c (gfc_find_component): Ditto.
533         (gfc_set_component_attr,gfc_get_component_attr) Copy access state.
534         * dump-parse-tree.c (gfc_show_components): Dump access state.
535         * gfortran.h (struct gfc_component): Add gfc_access.
536         * module.c (mio_component): Add access state.
537         * (gfc_match_structure_constructor): Check for private access state.
538
539 2007-06-24  Paul Thomas  <pault@gcc.gnu.org>
540
541         PR fortran/32298
542         PR fortran/31726
543         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Calculate
544         the offset between the loop counter and the position as
545         defined. Add the offset within the loop so that the mask acts
546         correctly.  Do not advance the location on the basis that it
547         is zero.
548
549 2007-06-22  Daniel Franke  <franke.daniel@gmail.com>
550
551         PR fortran/31473
552         * symbol.c (gfc_copy_attr): Emit errors for duplicate 
553         EXTERNAL/INTRINSIC statements.
554
555 2007-06-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
556
557         PR fortran/32360
558         * expr.c (gfc_check_assign): If the rvalue expression type is NULL_EXPR,
559         check to see if the lvalue has attribute pointer and data.  
560
561 2007-06-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
562
563         PR fortran/31162
564         * resolve.c (gfc_resolve_iterator_expr): Add check for REAL using
565         gfc_notify_standard. (gfc_resolve_iterator): Remove check.
566         (resolve_branch): Change "Obsolete" to "Deleted feature".
567         * io.c (resolve_tag): Ditto.
568         * match.c (gfc_match_pause, gfc_match_assign, gfc_match_goto): Ditto.
569
570 2007-06-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
571
572         PR fortran/32361
573         * match.c (gfc_match_common): If the symbol value expression type is
574         NULL_EXPR, don't error if previously initialized.
575
576 2007-06-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
577
578         PR fortran/25061
579         * decl.c (get_proc_name) Check symbol for generic interface
580         and issue an error.
581
582 2007-06-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
583         Richard Guenther  <rguenther@suse.de>
584
585         PR fortran/32140
586         * trans.c (gfc_build_addr_expr): Use the correct types.
587
588 2007-06-19  Paul Thomas  <pault@gcc.gnu.org>
589
590         PR fortran/20863
591         PR fortran/20882
592         * resolve.c (resolve_code): Use gfc_impure_variable as a
593         condition for rejecting derived types with pointers, in pure
594         procedures.
595         (gfc_impure_variable): Add test for dummy arguments of pure
596         procedures; any for functions and INTENT_IN for subroutines.
597
598         PR fortran/32236
599         * data.c (gfc_assign_data_value): Change the ICE on an array
600         reference initializer not being an array into an error and
601         clear init to prevent a repetition of the error.
602
603 2007-06-17  Janne Blomqvist  <jb@gcc.gnu.org>
604
605         * gfortran.texi: Add documentation for GFORTRAN_UNBUFFERED_n
606         environment variables. Fix documentation for
607         GFORTRAN_UNBUFFERED_ALL environment variable.
608
609 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
610
611         * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Use
612         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointer addition.
613         * trans-expr.c (gfc_trans_string_copy): Create
614         POINTER_PLUS_EXPR instead of a PLUS_EXPR
615         for pointer types.
616
617 2007-06-14  Paul Thomas  <pault@gcc.gnu.org>
618
619         PR fortran/32302
620         * trans-common.c (build_common_decl): If resizing of common
621         decl is needed, update the TREE_TYPE.
622
623 2007-06-13  Tobias Burnus  <burnus@net-b.de>
624
625         PR fortran/32323
626         * interface.c (has_vector_section): New.
627         (compare_actual_formal): Check for array sections with vector subscript.
628
629 2007-06-12  Dirk Mueller  <dmueller@suse.de>
630
631         * trans-stmt.c (gfc_trans_call): fix gcc_assert to
632         a comparison, not an assignment.
633
634 2007-06-12  Paul Thomas  <pault@gcc.gnu.org>
635
636         * trans-common.c (create_common): Initialize 'field_init'.
637
638 2007-06-12  Paul Thomas  <pault@gcc.gnu.org>
639
640         PR fortran/29786
641         PR fortran/30875
642         * trans-common.c (get_init_field): New function.
643         (create_common): Call get_init_field for overlapping
644         initializers in equivalence blocks.
645         * resolve.c (resolve_equivalence_derived, resolve_equivalence):
646         Remove constraints on initializers in equivalence blocks.
647         * target-memory.c (expr_to_char, gfc_merge_initializers):
648         New functions.
649         (encode_derived): Add the bit offset to the byte offset to get
650         the total offset to the field.
651         * target-memory.h : Add prototype for gfc_merge_initializers.
652
653 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
654
655         * trans-types.c (gfc_signed_type): Remove.
656         * trans-types.h (gfc_signed_type): Remove.
657         * f95-lang.c (LANG_HOOKS_SIGNED_TYPE): Remove.
658
659 2007-06-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
660
661         * trans-intrinsic.c: Revert Lee's 2007-06-04 patch.
662
663 2007-06-07  Steven G. Kargl  <kargl@gcc.gnu.org>
664             Jerry DeLisle  <jvdelisle@gcc.gnu.org>
665
666         PR fortran/32223
667         * match.c (gfc_match_special_char): New function.  Match special char.
668         Add handling '\0'.
669         * match.h: Add prototype.
670         * io.c (next_char): Use it.
671         * primary.c (next_string_char): Ditto.
672
673 2007-06-06  Steven G. Kargl  <kargl@gcc.gnu.org>
674
675         * decl.c: Miscellaneous whitespace fixes.
676         * expr.c: Likewise.
677         * gfortran.h: Likewise.
678         * interface.c : Likewise.
679         * io.c: Likewise.
680         * match.c: Likewise.
681         * match.h: Likewise.
682         * module.c: Likewise.
683         * parse.c: Likewise.
684         * resolve.c: Likewise.
685         * symbol.c: Likewise.
686         * trans-array.c: Likewise.
687         * trans-common.c: Likewise.
688         * trans-decl.c: Likewise.
689         * trans-intrinsic.c: Likewise.
690         * trans-io.c: Likewise.
691         * trans-stmt.c: Likewise.
692         * trans-types.c: Likewise.
693
694 2007-06-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
695
696         PR fortran/18923
697         * parse.c (decode_statement): Don't call gfc_undo_symbols on MATCH_ERROR
698         for ST_FUNCTION since it is called in reject_statement.
699         (parse_contained): If error, loop back after reject_statement and try
700         again.  Free the namespace if an error occured.
701
702 2007-06-04 Lee Millward <lee.millward@codesourcery.com>
703
704         * trans-intrinsic.c (gfc_conv_intrinsic_function_args): Adjust
705         to operate on a stack allocated array for the intrinsic arguments
706         instead of creating a TREE_LIST. Add two new parameters for the
707         array and the number of elements. Update all callers to allocate
708         an array of the correct length to pass in. Update comment.
709         (gfc_intrinsic_argument_list_length): New function.
710         (gfc_conv_intrinsic_mnimax): Call it.
711         (gfc_conv_intrinsic_merge): Likewise.
712         (gfc_conv_intrinsic_lib_function): Call it. Use new CALL_EXPR
713         constructors.
714         (gfc_conv_intrinsic_cmplx): Likewise.
715         (gfc_conv_intrinsic_ctime): Likewise.
716         (gfc_covn_intrinsic_fdate): Likewise.
717         (gfc_conv_intrinsic_ttynam): Likewise.
718         (gfc_conv_intrinsic_ishftc): Likewise.
719         (gfc_conv_intrinsic_index): Likewise.
720         (gfc_conv_intrinsic_scan): Likewise.
721         (gfc_conv_intrinsic_verify): Likewise.
722         (gfc_conv_intrinsic_trim): Likewise.
723         (gfc_conv_intrinsic_aint): Use new CALL_EXPR constructors.
724         (gfc_conv_intrinsic_exponent): Likewise.
725         (gfc_conv_intrinsic_bound): Likewise.
726         (gfc_conv_intrinsic_abs): Likewise.
727         (gfc_conv_intrinsic_mod): Likewise.
728         (gfc_conv_intrinsic_sign): Likewise.
729         (gfc_conv_intrinsic_len): Likewise.
730         (gfc_conv_intrinsic_adjust): Likewise.
731         (gfc_conv_intrinsic_si_kind): Likewise.
732
733 2007-06-04  Steve Ellcey  <sje@cup.hp.com>
734
735         * trans-array.c (gfc_conv_array_parameter): Initialize tmp.
736
737 2007-05-31  Richard Guenther  <rguenther@suse.de>
738
739         * trans-expr.c (gfc_conv_expr_op): Use zero constant
740         that matches the lse type.
741         (gfc_trans_string_copy): Use sizetype zero constant.
742         * intrinsic.c (add_functions): The sizeof intrinsic has
743         index type result.
744         * trans-types.c (gfc_get_dtype): Convert size to index
745         type before shifting.
746         * trans-array.c (gfc_trans_array_constructor_value): Use
747         index type for offset computation.
748         * trans-intrinsic.c (gfc_conv_associated): Use correct type
749         for zero constant.
750
751 2007-05-31  Paul Thomas  <pault@gcc.gnu.org>
752
753         PR fortran/32156
754         * trans-array.c (gfc_trans_array_constructor): Treat the case
755         where the ss expression charlen is missing.
756
757 22007-05-31  Paul Thomas  <pault@gcc.gnu.org>
758
759         PR fortran/32103
760         * module.c (mio_symtree_ref): If an equivalence group member
761         is not used, give it a hidden symbol and set the pointer_info.
762         (load_equiv): Only free the equivalence if none of the members
763         are used.
764
765 2007-05-29  Daniel Franke  <franke.daniel@gmail.com>
766
767         * gfortran.h: Renamed 'enum gfc_generic_isym_id' to 'enum gfc_isym_id',
768         added missing GFC_ISYM_* enumerators, ordered alphabetically.
769         (struct gfc_intrinsic_sym): Renamed 'generic_id' to 'id'.
770         (gfc_find_subroutine): New prototype.
771         * intrinsic.c (add_sym, add_sym_*): Added argument 'id' and changed all callers.
772         (find_subroutine): Renamed to 'gfc_find_subroutine', removed static.  
773         * dependency.c: Changed usage of isym->generic_id to isym->id.  
774         * openmp.c: Likewise.  
775         * resolve.c: Likewise.  
776         * trans-array.c: Likewise.  
777         * trans-expr.c: Likewise.  
778         * trans-intrinsic.c: Likewise.  
779         * trans-openmp.c: Likewise.
780
781 2007-05-28  Tobias Schlüter  <tobi@gcc.gnu.org>
782
783         * gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_SIZEOF.
784         * intrinsic.c (add_functions): Add stuff for SIZEOF intrinsic.
785         * intrinsic.h (gfc_check_sizeof): Add prototype of ...
786         * check.c (gfc_check_sizeof): .. new function.
787         * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): New function.
788         (gfc_conv_intrinsic_strcmp): Whitespace fix.
789         (gfc_conv_intrinsic_array_transfer): Remove double initialization,
790         use fold_build. where appropriate.
791         (gfc_conv_intrinsic_function): Add case for SIZEOF.
792         * intrinsic.texi: Add documentation for SIZEOF.
793
794 2007-05-28  Brooks Moses  <brooks.moses@codesourcery.com>
795
796         * trans-array.c (gfc_conv_expr_descriptor): Edit comment.
797
798 2007-05-28  Brooks Moses  <brooks.moses@codesourcery.com>
799
800         PR fortran/31972
801         * target-memory.c (gfc_target_expr_size): Add handling
802         for size of BT_HOLLERITH variables.
803         * check.c (gfc_check_transfer): Reject BT_HOLLERITH
804         variables in MOLD argument of TRANSFER.
805
806 2007-05-28  Brooks Moses  <brooks.moses@codesourcery.com>
807
808         * gfortran.h (gfc_expr): Remove from_H, add "representation"
809         struct.
810         * primary.c (match_hollerith_constant): Store the representation
811         of the Hollerith in representation, not in value.character.
812         * arith.c: Add dependency on target-memory.h.
813         (eval_intrinsic): Remove check for from_H.
814         (hollerith2representation): New function.
815         (gfc_hollerith2int): Determine value of the new constant.
816         (gfc_hollerith2real): Likewise.
817         (gfc_hollerith2complex): Likewise.
818         (gfc_hollerith2logical): Likewise.
819         (gfc_hollerith2character): Point both representation.string and
820         value.character.string at the value string.
821         * data.c (create_character_initializer): For BT_HOLLERITH
822         rvalues, get the value from the representation rather than
823         value.character.
824         * expr.c (free_expr0): Update handling of BT_HOLLERITH values
825         and values with representation.string.
826         (gfc_copy_expr): Likewise.
827         * intrinsic.c (do_simplify): Remove special treatement of
828         variables resulting from Hollerith constants.
829         * dump-parse-trees.c (gfc_show_expr): Update handling of
830         Holleriths.
831         * trans-const.c (gfc_conv_constant_to_tree): Replace from_H
832         check with check for representation.string; get Hollerith
833         representation from representation.string, not value.character.
834         * trans-expr.c (is_zero_initializer_p): Replace from_H check
835         with check for representation.string.
836         * trans-stmt.c (gfc_trans_integer_select): Use
837         gfc_conv_mpz_to_tree for case values, so as to avoid picking up
838         the memory representation if the case is given by a transfer
839         expression.
840         * target-memory.c (gfc_target_encode_expr): Use the known memory
841         representation rather than the value, if it exists.
842         (gfc_target_interpret_expr): Store the memory representation of
843         the interpreted expression as well as its value.
844         (interpret_integer): Move to gfc_interpret_integer, make
845         non-static.
846         (interpret_float): Move to gfc_interpret_float, make non-static.
847         (interpret_complex): Move to gfc_interpret_complex, make
848         non-static.
849         (interpret_logical): Move to gfc_interpret_logical, make
850         non-static.
851         (interpret_character): Move to gfc_interpret_character, make
852         non-static.
853         (interpret_derived): Move to gfc_interpret_derived, make
854         non-static.
855         * target-memory.h: Add prototypes for newly-exported
856         gfc_interpret_* functions.
857
858 2007-05-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
859
860         PR fortran/31812
861         * parse.c (next_statement): Warn for truncated lines if source is free
862         form.
863
864 2007-05-27 Paul Thomas  <pault@gcc.gnu.org>
865            Tobias Burnus  <burnus@net-b.de>
866
867         PR fortran/32088
868         * symbol.c (gfc_check_function_type): Copy dimensions of
869           result variable.
870         * resolve.c (resolve_contained_fntype): Improve symbol output in
871           the error message.
872
873 2007-05-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
874
875         PR fortran/31813
876         * io.c (check_format): Add warning for H specifier in format.
877         
878 2007-05-26  Tobias Burnus  <burnus@net-b.de>
879
880         * gfortran.texi: Document the GFORTRAN_ERROR_DUMPCORE and
881         GFORTRAN_ERROR_BACKTRACE environment variables.
882
883 2007-05-26  Paul Thomas  <pault@gcc.gnu.org>
884
885         PR fortran/31219
886         * trans.h : Add no_function_call bitfield to gfc_se structure.
887         Add stmtblock_t argument to prototype of get_array_ctor_strlen.
888         * trans-array.c (get_array_ctor_all_strlen): New function.
889         (get_array_ctor_strlen): Add new stmtblock_t argument and call
890         new function for character elements that are not constants,
891         arrays or variables.
892         (gfc_conv_array_parameter): Call get_array_ctor_strlen to get
893         good string length.
894         * trans-intrinsic (gfc_conv_intrinsic_len): Add new argument
895         to call of get_array_ctor_strlen.
896
897 2007-05-25  Kazu Hirata  <kazu@codesourcery.com>
898
899         * intrinsic.texi: Fix typos.
900
901 2007-05-25  Paul Thomas  <pault@gcc.gnu.org>
902
903         PR fortran/32047
904         * trans-expr.c (gfc_apply_interface_mapping_to_expr): Change
905         order in logic under EXPR_FUNCTION to handle functions with
906         no arguments.
907
908 2007-05-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
909
910         PR fortran/31716
911         * array.c (spec_dimen_size): Test for correct BT_INTEGER type. 
912
913 2007-05-23  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
914
915         PR fortran/32046
916         * trans-expr.c (gfc_trans_zero_assign): Convert the result of
917         TYPE_SIZE_UNIT into a signed type.
918         (gfc_trans_array_copy):  Likewise.
919         (gfc_trans_array_constructor_copy): Likewise.
920         * trans-array.c (gfc_trans_create_temp_array): Likewise.
921         (gfc_grow_array): Likewise.
922         (gfc_array_init_size): Likewise.
923         (gfc_duplicate_allocatable): Likewise.
924         * trans-stmt.c (allocate_temp_for_forall_nest_1): Likewise.
925
926 2007-05-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
927
928         PR fortran/18923
929         * resolve.c (resolve_function): Don't call resolve_global_procedure if
930         there is no name. Delete duplicated statement in ELSE clause.
931
932 2007-05-22 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
933
934         PR fortran/31627
935         * trans-array.c (gfc_trans_array_bound_check): Take extra argument to
936         indicate whether we should check the upper bound in that dimension.
937         (gfc_conv_array_index_offset): Check only the lower bound of the
938         last dimension for assumed-size arrays.
939         (gfc_conv_array_ref): Likewise.
940         (gfc_conv_ss_startstride): Likewise.
941
942 2007-05-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
943             Daniel Franke  <franke.daniel@gmail.com>
944
945         PR fortran/32002
946         * resolve.c (resolve_actual_arglist): Resolve actual argument after
947         being identified as variable.
948
949 2007-05-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
950
951         PR fortran/32027
952         * trans-stmt.c (gfc_trans_do): Fix the value of loop variable
953         when the loop ends.
954
955 2007-05-21  H.J. Lu  <hongjiu.lu@intel.com>
956
957         * trans-stmt.c (gfc_trans_do): Fix a typo in comment.
958
959 2007-05-21  Paul Thomas  <pault@gcc.gnu.org>
960
961         PR fortran/31867
962         PR fortran/31994
963         * trans-array.c (gfc_conv_expr_descriptor): Obtain the stored
964         offset for non-descriptor, source arrays and correct for stride
965         not equal to one before writing to field of output descriptor.
966
967 2007-05-20  Daniel Franke  <franke.daniel@gmail.com>
968
969         PR fortran/32001
970         * check.c (check_rest): Improved argument conformance check and 
971         fixed error message generation.
972
973 2007-05-19  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
974
975         PR fortran/30820
976         * Make-lang.in: Remove use of -Wno-error for expr.o, resolve.o,
977         simplify.o and trans-common.o.
978
979 2007-05-19  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
980
981         PR fortran/31974
982         * trans-array.c (gfc_trans_auto_array_allocation): Avoid
983         multiplication of mismatched types.
984
985 2007-05-18  Daniel Franke  <franke.daniel@gmail.com>
986
987         PR fortran/24633
988         * symbol.c (gfc_add_flavor): Add the NAME to error message if
989         available.
990
991 2007-05-15  Daniel Franke  <franke.daniel@gmail.com>
992
993         PR fortran/31919
994         PR fortran/31929
995         PR fortran/31930
996         * intrinsic.c (check_specific): Check elemental intrinsics for
997         rank and shape.
998         (add_functions): Fixed dummy argument names of BESJN and BESYN.
999         Fixed elemental status of MCLOCK and MCLOCK8.
1000         * check.c (check_rest): Added check for array conformance.
1001         (gfc_check_merge): Removed check for array conformance.
1002         (gfc_check_besn): Removed check for scalarity.
1003         * intrinsic.texi (CSHIFT, EOSHIFT): Fixed typos.
1004         (BESJN, BESYN): Clarified documentation.
1005
1006 2007-05-17  Tobias Burnus  <burnus@net-b.de>
1007
1008         * gfortran.texi (GFORTRAN_CONVERT_UNIT): Improve documentation.
1009
1010 2007-05-16  Brooks Moses  <brooks.moses@codesourcery.com>
1011
1012         PR fortran/18769
1013         PR fortran/30881
1014         PR fortran/31194
1015         PR fortran/31216
1016         PR fortran/31427
1017         * target-memory.c: New file.
1018         * target-memory.h: New file.
1019         * simplify.c: Add #include "target-memory.h".
1020         (gfc_simplify_transfer): Implement constant-
1021         folding for TRANSFER intrinsic.
1022         * Make-lang.in: Add dependencies on new target-memory.* files.
1023
1024 2007-05-15  Paul Brook  <paul@codesourcery.com>
1025
1026         * trans-types.c (gfc_type_for_size): Handle signed TImode.
1027
1028 2007-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1029
1030         PR fortran/30723
1031         * trans.h (gfor_fndecl_internal_malloc, gfor_fndecl_internal_malloc64,
1032         gfor_fndecl_internal_free): Remove prototypes.
1033         (gfor_fndecl_os_error, gfc_call_free, gfc_call_malloc): Add prototypes.
1034         * trans.c (gfc_call_malloc, gfc_call_free): New functions.
1035         * f95-lang.c (gfc_init_builtin_functions): Add __builtin_free
1036         and __builtin_malloc builtins.
1037         * trans-decl.c (gfor_fndecl_internal_malloc,
1038         gfor_fndecl_internal_malloc64, gfor_fndecl_internal_free): Remove.
1039         (gfor_fndecl_os_error): Add.
1040         (gfc_build_builtin_function_decls): Don't create internal_malloc,
1041         internal_malloc64 and internal_free library function declaration.
1042         Create os_error library call function declaration.
1043         * trans-array.c (gfc_trans_allocate_array_storage,
1044         gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
1045         gfc_conv_array_parameter, gfc_duplicate_allocatable): Use
1046         gfc_call_malloc and gfc_call_free instead of building calls to
1047         internal_malloc and internal_free.
1048         * trans-expr.c (gfc_conv_string_tmp): Likewise.
1049         * trans-stmt.c (gfc_do_allocate, gfc_trans_assign_need_temp,
1050         gfc_trans_pointer_assign_need_temp, gfc_trans_forall_1,
1051         gfc_trans_where_2: Likewise.
1052         * trans-intrinsic.c (gfc_conv_intrinsic_ctime,
1053         gfc_conv_intrinsic_fdate, gfc_conv_intrinsic_ttynam,
1054         gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_trim): Likewise.
1055
1056 2007-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1057
1058         PR fortran/31725
1059         * trans-expr.c (gfc_conv_substring): Evaluate substring bounds
1060         only once.
1061
1062 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
1063
1064         * f95-lang.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
1065         * trans-intrinsic.c (gfc_conv_intrinsic_ishft): Use unsigned_type_for
1066         instead of gfc_unsigned_type.
1067         * trans-stmt.c (gfc_trans_do): Use unsigned_type_for instead of
1068         gfc_unsigned_type.
1069         * trans-types.c (gfc_unsigned_type): Remove.
1070         * trans-types.h (gfc_unsigned_type): Remove.
1071
1072 2007-05-12  Paul Thomas  <pault@gcc.gnu.org>
1073
1074         PR fortran/30746
1075         * resolve.c (check_host_association): New function that detects
1076         incorrect host association and corrects it.
1077         (gfc_resolve_expr): Call the new function for variables and
1078         functions.
1079         * match.h : Remove prototype for gfc_match_rvalue.
1080         * gfortran.h : Add prototype for gfc_match_rvalue.
1081
1082 2007-05-11 Paul Thomas <pault@gcc.gnu.org>
1083
1084         PR fortran/30876
1085         * trans-expr.c (gfc_conv_function_call): Reduce indirection for
1086         direct assignments of recursive array valued functions.
1087         * primary.c (gfc_match_rvalue): Correct error for recursive
1088         function calls such that directly recursive calls of scalar
1089         function without an explicit result are disallowed.
1090
1091 2007-05-11 Paul Thomas <pault@gcc.gnu.org>
1092
1093         PR fortran/30878
1094         * resolve.c (resolve_fl_namelist): It is not an error if the
1095         namelist element is the result variable of the enclosing
1096         function.  Search for the symbol in current and all parent
1097         namespaces for a potential conflict.
1098         * symbol.c (check_conflict): Remove the conflict between
1099         'in_namelist' and 'FL_PROCEDURE' because the symbol info
1100         is not available to exclude function result variables.
1101         * trans-io.c (nml_get_addr_expr): Use the fake result decl
1102         if the symbol is an implicit result variable.
1103
1104 2007-05-11  Paul Thomas  <pault@gcc.gnu.org>
1105
1106         PR fortran/31474
1107         * decl.c (get_proc_name): If an entry has already been declared
1108         as a module procedure, pick up the symbol and the symtree and
1109         use them for the entry.
1110
1111 2007-05-08  Paul Thomas  <pault@gcc.gnu.org>
1112
1113         PR fortran/31630
1114         * resolve.c (resolve_symbol): Remove the flagging mechanism from the
1115         formal namespace resolution and instead check that the formal
1116         namespace is not the current namespace.
1117
1118 2007-05-08  Paul Thomas  <pault@gcc.gnu.org>
1119
1120         PR fortran/31692
1121         * trans-array.c (gfc_conv_array_parameter): Convert full array
1122         references to the result of the procedure enclusing the call.
1123
1124 2007-05-08  Paul Thomas  <pault@gcc.gnu.org>
1125
1126         PR fortran/29397
1127         PR fortran/29400
1128         * decl.c (add_init_expr_to_sym): Expand a scalar initializer
1129         for a parameter array into an array expression with the right
1130         shape.
1131         * array.c (spec_dimen_size): Remove static attribute.
1132         * gfortran.h : Prototype for spec_dimen_size.
1133
1134 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1135
1136         PR fortran/31399
1137         * trans-stmt.c (gfc_trans_do): Handle large loop counts.
1138
1139 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1140
1141         PR fortran/31764
1142         * simplify.c (gfc_simplify_new_line): NEW_LINE can be simplified
1143         even for non constant arguments.
1144
1145 2007-05-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1146             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1147
1148         PR fortran/31201
1149         * gfortran.h: Add runtime error codes from libgfortran.h. Define
1150         MAX_UNIT_NUMBER.
1151         * trans.c (gfc_trans_runtime_check): Update the format of runtime error
1152         messages to match library runtime errors.  Use call to new library
1153         function runtime_error_at().
1154         * trans.h: Add prototype for new function gfc_trans_io_runtime_check.
1155         Add declaration for library functions runtime_error_at and
1156         generate_error.
1157         * trans_io.c (gfc_trans_io_runtime_check): New function.
1158         (set_parameter_value): Add error checking for UNIT numbers.
1159         (set_parameter_ref): Initialize the users variable to zero. 
1160         (gfc_trans_open): Move setting of unit number to after setting of common
1161         flags so that runtime error trapping can be detected.
1162         (gfc_trans_close): Likewise. (build_filepos): Likewise.
1163         (gfc_trans_inquire): Likewise. (build_dt): Likewise.
1164         * trans-decl.c: Add declarations for runtime_error_at and
1165         generate_error. (gfc_build_builtin_function_decls): Build function
1166         declarations for runtime_error_at and generate_error.
1167
1168 2007-05-06  Paul Thomas  <pault@gcc.gnu.org>
1169
1170         PR fortran/31540
1171         * resolve.c (resolve_fl_procedure): Resolve constant character
1172         lengths.
1173
1174 2007-05-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1175
1176         PR fortran/31251
1177         * decl.c (match_char_spec): Add check for invalid character lengths.
1178
1179 2007-05-04  Brooks Moses  <brooks.moses@codesourcery.com>
1180
1181         * intrinsic.texi (CMPLX): Document result kind.
1182         (COMPLEX): Add documentation.
1183
1184 2007-05-04  Daniel Franke  <franke.daniel@gmail.com>
1185
1186         PR fortran/31760
1187         * intrinsic.c (add_functions): Replaced calls to gfc_check_g77_math1
1188         by gfc_check_fn_r to avoid checks for scalarity.
1189         * check.c (gfc_check_besn): Removed check for scalarity.
1190         (gfc_check_g77_math1): Removed.
1191         * intrinsic.h (gfc_check_g77_math1): Removed.
1192
1193 2007-05-04  Daniel Franke  <franke.daniel@gmail.com>
1194
1195         * check.c (gfc_check_fseek_sub): Fixed typo.
1196
1197 2007-05-04  Daniel Franke  <franke.daniel@gmail.com>
1198
1199         PR fortran/22359
1200         * intrinsic.c (add_subroutines): Added FSEEK.
1201         * intrinsic.h (gfc_resolve_fseek_sub, gfc_check_fseek_sub): New.
1202         * iresolve.c (gfc_resolve_fseek_sub): New.
1203         * check.c (gfc_check_fseek_sub): New.
1204         * intrinsic.texi (FSEEK): Updated.
1205
1206 2007-05-04  Tobias Burnus  <burnus@net-b.de>
1207
1208         PR fortran/31803
1209         * expr.c (gfc_check_pointer_assign): Check for NULL pointer.
1210
1211 2007-05-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1212
1213         PR fortran/31251
1214         * simplify.c (gfc_simplify_len): Only simplify integer lengths.
1215
1216 2007-05-04  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1217
1218         PR fortran/31781
1219         * simplify.c (gfc_simplify_repeat): Don't put function call with
1220         side effect in a gcc_assert().
1221
1222 2007-05-04  Tobias Burnus  <burnus@net-b.de>
1223
1224         PR fortran/25071
1225         * interface.c (compare_actual_formal): Check character length.
1226
1227 2007-05-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
1228
1229         PR fortran/31732
1230         * dependency.c (gfc_full_array_ref_p):  If the reference is
1231         to a single element, check that the array has a single
1232         element and that the correct element is referenced.
1233
1234 2007-05-01  Daniel Franke  <franke.daniel@gmail.com>
1235
1236         * intrinsic.c (add_functions): Fixed ELEMENTAL specifications.
1237         (add_subroutines): Replaced magic numbers in function calls by
1238         ELEMENTAL and NOT_ELEMENTAL respectively.
1239         * intrinsic.texi (MVBITS): Changed class to elemental subroutine.
1240         (RANDOM_NUMBER): Changed class to subroutine.
1241         (HUGE, TINY): Changed class to inquiry function.
1242
1243 2007-04-30  Brooks Moses  <brooks.moses@codesourcery.com>
1244
1245         * trans-const.c (gfc_conv_mpz_to_tree): Use mpz_get_double_int.
1246         (gfc_conv_tree_to_mpz): New function.
1247         (gfc_conv_mpfr_to_tree): Use real_from_mpfr.
1248         (gfc_conv_tree_to_mpfr): New function.
1249         * trans-const.h: (gfc_conv_tree_to_mpz): New prototype.
1250         (gfc_conv_tree_to_mpfr): New prototype.
1251
1252 2007-04-30  Daniel Franke  <franke.daniel@gmail.com>
1253
1254         * intrinsic.texi (IERRNO): Changed class to non-elemental function.
1255         (LOG10): Removed COMPLEX as accepted argument type.
1256         (NEW_LINE): Changed class from elemental to inquiry function.
1257         (SIGN): Removed requirement of scalar arguments.
1258         (SNGL): Changed class to elemental function.
1259
1260 2007-04-29  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1261
1262         PR fortran/31591
1263         * simplify.c (simplify_bound_dim): New function.
1264         (simplify_bound): Use the above. Perform simplification of LBOUND
1265         and UBOUND when DIM argument is not present.
1266
1267 2007-04-29  Daniel Franke  <franke.daniel@gmail.com>
1268
1269         * gfortran.texi: Cleaned up keyword index.
1270         * invoke.texi: Likewise.
1271         * intrinsic.texi: Likewise.
1272                         
1273 2007-04-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1274
1275         PR fortran/31645
1276         * scanner.c (load_file): Discard the byte order mark if one is
1277         found on the first non-preprocessor line of a file.
1278
1279 2007-04-29  Paul Thomas  <pault@gcc.gnu.org>
1280
1281         PR fortran/31711
1282         * trans-array.c (gfc_conv_resolve_dependencies): Create a temp
1283         whenever a dependency is found.
1284
1285 2007-04-28  Tobias Schlüter  <tobi@gcc.gnu.org>
1286
1287         * options.c (gfc_handle_option): Ensure requested free form line
1288         length is not too small.
1289
1290 2007-04-27  Brooks Moses  <brooks.moses@codesourcery.com>
1291
1292         * intrinsic.texi (Transfer): Improve documentation.
1293
1294 2007-04-27  Brooks Moses  <brooks.moses@codesourcery.com>
1295
1296         * gfortran.texi (Option Index): Add @samp as needed.
1297
1298 2007-04-27  Daniel Franke  <franke.daniel@gmail.com>
1299
1300         * gfortran.texi: Added node and menu entry for an option index.
1301         * invoke.texi: Moved command line option related entries of the concept 
1302         index to the option index.
1303
1304 2007-04-27  Daniel Franke  <franke.daniel@gmail.com>
1305
1306         * intrinsic.texi (AND, FPUT, FPUTC, MODULO, OR, SET_EXPONENT,
1307         XOR): Fixed examples.
1308
1309 2007-04-27  Daniel Franke  <franke.daniel@gmail.com>
1310
1311         * intrinsic.texi (PRODUCT, RESHAPE, SPACING, SPREAD, SUM, 
1312         SYSTEM_CLOCK, TRANSFER, UNPACK): New.
1313         (DATE_AND_TIME, CPU_TIME, RRSPACING): Added cross references.
1314
1315 2007-04-26  Daniel Franke  <franke.daniel@gmail.com>
1316
1317         * intrinsic.texi (NULL, PACK, PRESENT, REPEAT, SCAN, SHAPE, 
1318         SIZE, TRANSPOSE, TRIM, VERIFY): New.
1319         (ADJUSTL, ADJUSTR, INDEX): Added cross references.
1320         (INT, INT2, INT8, LONG): Enabled section header.
1321
1322 2007-04-25  Janne Blomqvist  <jb@gcc.gnu.org>
1323
1324         * module.c (module_char): Replace fgetc() with
1325         getc(). 
1326         (write_char): Replace fputc() with putc().
1327         * scanner.c (load_line): Replace fgetc() with getc().
1328         (gfc_read_orig_filename): Likewise.
1329
1330 2007-04-25  Tobias Burnus  <burnus@net-b.de>
1331
1332         PR fortran/31668
1333         * error.c (error_print): Fix %% support.
1334         * intrinsic.c (sort_actual): Improve error message.
1335         * resolve.c (resolve_actual_arglist): Allow %VAL for
1336         interfaces defined in the module declaration part.
1337
1338 2007-04-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1339
1340         PR libfortran/31299
1341         * intrinsic.texi (GETLOG): Update documentation to reflect
1342         library changes.
1343
1344 2007-04-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1345
1346         PR fortran/31587
1347         * module.c (write_char): Add character to the MD5 buffer.
1348         (read_md5_from_module_file): New function.
1349         (gfc_dump_module): Compute MD5 for new module file. Call
1350         read_md5_from_module_file. Only overwrite old module file
1351         if the new MD5 is different.
1352
1353 2007-04-23  Paul Thomas  <pault@gcc.gnu.org>
1354
1355         PR fortran/31630
1356         * resolve.c (resolve_symbol): Allow resolution of formal
1357         namespaces nested within formal namespaces coming from modules.
1358
1359         PR fortran/31620
1360         * trans-expr.c (gfc_trans_assignment): Make the call to
1361         gfc_trans_zero_assign conditional on the lhs array ref being
1362         the only reference.
1363
1364 2007-04-23  Tobias Burnus  <burnus@net-b.de>
1365
1366         * primary.c (match_integer_constant): Mention -fno-range-check
1367         in the error message.
1368
1369 2007-04-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1370
1371         PR fortran/31495
1372         * scanner.c (load_line):  Remove check for comment after ampersand and
1373         adjust tracking of ampersand.
1374
1375 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1376
1377         * f95-lang.c (lang_tree_node): Use GENERIC_NEXT
1378         instead of checking GIMPLE_STMT_P in chain_next.
1379
1380 2007-04-17  Tobias Schlüter  <tobi@gcc.gnu.org>
1381
1382         * trans-types.h (gfc_packed): New enum.
1383         (gfc_get_nodesc_array_type): Change prototype to use new enum.
1384         * trans-types.c (gfc_get_nodesc_array): Use gfc_packed for
1385         argument packed.  Adapt all references to values accordingly.
1386         (gfc_sym_type): Use enum values in call to gfc_get_nodesc_array.
1387         (gfc_get_derived_type): Likewise.
1388         * trans-array.c (gfc_build_constant_array_constructor): Likewise.
1389         * trans-expr.c (gfc_get_interface_mapping_charlen): Changed packed
1390         argument to type gfc_packed.
1391         (gfc_add_interface_mapping): Use enum values in call to
1392         gfc_get_interface_mapping.
1393         * trans-decl.c (gfc_build_dummy_array_decl): Adapt to use enum
1394         values when determining packing.
1395
1396         * trans-decl.c (gfc_finish_decl): Remove unused second argument
1397         'init'.  Simplify code accordingly.  Remove calls to
1398         gfc_fatal_error in favor of gcc_assert.
1399         (create_function_arglist): Remove second argument from calls to
1400         gfc_finish-decl.
1401         (gfc_trans_dummy_character): Likewise.
1402
1403         * arith.h: Update copyright years.
1404         * dependency.h: Likewise.
1405         * gfortran.h: Likewise.
1406         * lang-specs.h: Likewise.
1407         * parse.h: Likewise.
1408         * symbol.c: Likewise.
1409         * trans.h: Likewise.
1410         * trans.c: Likewise.
1411         * trans-array.c: Likewise.
1412         * trans-common.c: Likewise.
1413         * trans-const.h: Likewise.
1414         * trans-const.c: Likewise.
1415         * trans-decl.c: Likewise.
1416         * trans-expr.c: Likewise.
1417         * trans-io.c: Likewise.
1418         * trans-openmp.c: Likewise.
1419         * trans-types.h: Likewise.
1420         * types.def: Likewise.
1421
1422 2007-04-17  Tobias Schlüter  <tobi@gcc.gnu.org>
1423
1424         PR fortran/31144
1425         * decl.c (gfc_sym_mangled_identifier): Use capital letters in name
1426         mangling.
1427         (gfc_sym_mangled_function_id): Likewise.
1428
1429 2007-04-15  Paul Thomas  <pault@gcc.gnu.org>
1430
1431         PR fortran/31204
1432         * primary.c (check_for_implicit_index): New function to check
1433         that a host associated variable is not an undeclared implied
1434         do loop index.
1435         (gfc_match_rvalue, match_variable): Use it and reset the
1436         implied_index attribute.
1437         * gfortran.h : Add the implied_index field to symbol_attribute.
1438         * match.c (gfc_match_iterator): Mark the iterator variable
1439         with the new attribute.
1440         * decl.c (build_sym): Reset the new attribute.
1441
1442 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
1443
1444         * gfc-internals.texi: Fix typos.
1445         * simplify.c: Fix a comment typo.
1446
1447 2007-04-14  Bernhard Fischer  <aldot@gcc.gnu.org>
1448
1449         * primary.c: Commentary typo fix; Add question about redundant (?)
1450         set.
1451
1452 2007-04-14  Paul Thomas  <pault@gcc.gnu.org>
1453
1454         PR fortran/29507
1455         PR fortran/31404
1456         * expr.c (scalarize_intrinsic_call): New function to
1457         scalarize elemental intrinsic functions in initialization
1458         expressions.
1459         (check_init_expr): Detect elemental intrinsic functions
1460         in initalization expressions and call previous.
1461
1462 2007-04-13  Tobias Burnus  <burnus@net-b.de>
1463
1464         PR fortran/31559
1465         * primary.c (match_variable): External functions
1466         are no variables.
1467
1468 2007-04-13  Paul Thomas  <pault@gcc.gnu.org>
1469
1470         PR fortran/31550
1471         * trans-types.c (copy_dt_decls_ifequal): Do not get pointer
1472         derived type components.
1473
1474 2007-04-13  Tobias Schlüter  <tobi@gcc.gnu.org>
1475
1476         PR fortran/18937
1477         * resolve.c: Include obstack.h and bitmap.h.  New variable
1478         labels_obstack.
1479         (code_stack): Add tail and reachable_labels fields.
1480         (reachable_labels): New function.
1481         (resolve_branch): Rework to use new fields in code_stack.
1482         (resolve_code): Call reachable_labels.
1483         (resolve_codes): Allocate and free labels_obstack.
1484
1485 2007-04-12  Tobias Schlüter  <tobi@gcc.gnu.org>
1486
1487         PR fortran/31250
1488         * decl.c (match_char_spec): Move check for negative CHARACTER
1489         length ...
1490         * resolve.c (resolve_charlen): ... here.
1491         (resolve_types): Resolve CHARACTER lengths earlier.
1492
1493 2007-04-12  Daniel Franke  <franke.daniel@gmail.com>
1494
1495         PR fortran/31234
1496         * intrinsic.texi (RANDOM_SEED, RANDOM_NUMBER): New.
1497
1498 2007-04-12  Tobias Schlüter  <tobi@gcc.gnu.org>
1499
1500         PR fortran/31266
1501         * primary.c (gfc_variable_attr): Don't copy string length if it
1502         doesn't make sense.
1503         * resolve.c (resolve_code): Clarify error message.
1504
1505         PR fortran/31471
1506         * decl.c (gfc_match_end): Also check for construct name in END
1507         FORALL and END WERE statements.
1508         * match.c (match_case_eos): Use uppercase for statement name in
1509         error message.
1510         (match_elsewhere): Construct name may appear iff construct has a
1511         name.
1512
1513         * trans-types.c: Update copyright years.  Reformat long comment
1514         explaining array descriptor format.  Remove obsolete mention of
1515         TYPE_SET.
1516
1517         * arith.c (gfc_arith_uplus): Rename to ...
1518         (gfc_arith_identity): ... this.
1519         (gfc_parentheses): New function.
1520         (gfc_uplus): Adapt to renamed function.
1521         * arith.h (gfc_parentheses): Add prototype.
1522         * expr.c (gfc_copy_expr): Deal with INTRINSIC_PARENTHESES.
1523         (simplifiy_intrinsic_op): Treat INTRINSIC_UPLUS separately from
1524         INTRINSIC_PARENTHESES.
1525
1526 2007-04-12  Tobias Burnus  <burnus@net-b.de>
1527
1528         PR fortran/31472
1529         * decl.c (match_attr_spec): Allow PRIVATE/PUBLIC
1530         attribute in type definitions.
1531         (gfc_match_private): Allow PRIVATE statement only
1532         in specification part of modules.
1533         (gfc_match_public): Ditto for PUBLIC.
1534         (gfc_match_derived_decl): Allow PRIVATE/PUBLIC attribute only in
1535         specificification part of modules.
1536
1537 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
1538
1539         PR fortran/31257
1540         * intrinsic.c (add_functions): Add ref. to gfc_resolve_achar.
1541         * intrinsic.h : Add prototype for gfc_resolve_achar.
1542         * iresolve.c (gfc_resolve_achar): New function.
1543
1544 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
1545
1546         PR fortran/30880
1547         * resolve.c (resolve_fl_variable): Set flag to 2 for automatic
1548         arrays.  Make condition for automatic array error explicit.
1549         If a dummy, no error on an INTENT(OUT) derived type.
1550
1551 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
1552
1553         PR fortran/30872
1554         * expr.c (find_array_element): Correct arithmetic for rank > 1.
1555
1556 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
1557
1558         PR fortran/31222
1559         * check.c (numeric_check): If an expresson has not got a type,
1560         see if it is a symbol for which a default type applies.
1561
1562 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
1563
1564         PR fortran/31214
1565         * trans-decl.c (gfc_get_symbol_decl): Allow unreferenced use
1566         associated symbols.
1567
1568 2007-04-07  Paul Thomas  <pault@gcc.gnu.org>
1569
1570         PR fortran/31293
1571         * symbol.c (gfc_check_function_type): New function.
1572         * gfortran.h : Add prototype for previous.
1573         * parse.c (parse_progunit): Call it after parsing specification
1574         statements.
1575
1576 2007-04-05  Paul Thomas  <pault@gcc.gnu.org>
1577
1578         PR fortran/31483
1579         * trans-expr.c (gfc_conv_function_call): Give a dummy
1580         procedure the correct type if it has alternate returns.
1581
1582 2007-04-05  Paul Thomas  <pault@gcc.gnu.org>
1583
1584         PR fortran/31292
1585         * decl.c (gfc_match_modproc): Go up to the top of the namespace
1586         tree to find the module namespace for gfc_get_symbol.
1587
1588 2007-04-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1589
1590         PR fortran/31304
1591         * fortran/gfortran.h (gfc_charlen_int_kind): New prototype.
1592         * fortran/trans-types.c (gfc_charlen_int_kind): New variable.
1593         (gfc_init_types): Define gfc_charlen_int_kind. 
1594         * fortran/trans.h (gfor_fndecl_string_repeat): Remove prototype.
1595         * fortran/trans-decl.c (gfor_fndecl_string_repeat): Delete.
1596         (gfc_build_intrinsic_function_decls): Don't set
1597         gfor_fndecl_string_repeat.
1598         * fortran/trans-intrinsic.c (gfc_conv_intrinsic_repeat): Rewrite
1599         so that we don't have to call a library function.
1600         * fortran/simplify.c (gfc_simplify_repeat): Perform the necessary
1601         checks on the NCOPIES argument, and work with arbitrary size
1602         arguments.
1603
1604 2007-03-31  Tobias Burnus  <burnus@net-b.de>
1605
1606         * intrinsic.c (add_functions): Fix name of dummy argument
1607           for new_line and exit intrinsic.
1608
1609 2007-03-31  Paul Thomas  <pault@gcc.gnu.org>
1610
1611         PR fortran/31160
1612         * gfortran.texi: Add a section for the %VAL, %REF and %LOC
1613         extensions.
1614
1615 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
1616
1617         * trans-types.c (gfc_signed_or_unsigned_type): Remove.
1618         (gfc_unsigned_type): Use get_signed_or_unsigned_type instead of
1619         gfc_signed_or_unsigned_type.
1620         (gfc_signed_type): Ditto.
1621         * trans-types.h (gfc_signed_or_unsigned_type): Remove.
1622         * f95-lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
1623
1624 2007-03-30  Tobias Schlüter  <tobi@gcc.gnu.org>
1625
1626         * symbol.c (gfc_find_gsymbol): Simplify, don't unconditionally
1627         descend into all branches.
1628
1629 2007-03-29  Tobias Schlüter  <tobi@gcc.gnu.org>
1630
1631         * intrinsic.c (conv_name): Let gfc_get_string handle the format.
1632         (find_conv): Compare pointers instead of calling strcmp.
1633         (find_sym): Likewise, but ensure that the compared pointer is in
1634         the global string table.
1635
1636 2007-03-28  Tobias Schlüter  <tobi@gcc.gnu.org>
1637
1638         * gfc-internals.texi: Fix output filename.  Merge type index into
1639         concept index.  Start documentation of gfc_code structure.
1640
1641 2007-03-26  Brooks Moses  <brooks.moses@codesourcery.com>
1642
1643         * gfc-internals.texi: New file,
1644         * Make-lang.in: Add rules to convert it to dvi, pdf, and info.
1645
1646 2007-03-26  Brooks Moses  <brooks.moses@codesourcery.com>
1647  
1648         * error.c (show_locus): Remove always-false test.
1649
1650 2007-03-26  Brooks Moses  <brooks.moses@codesourcery.com>
1651
1652         * lang.opt: Minor edits to descriptions.
1653
1654 2007-03-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1655
1656         PR fortran/30877
1657         * fortran/interface.c (check_operator_interface): Implement
1658         the standard checks on user operators extending intrinsic operators.
1659         * fortran/resolve.c (resolve_operator): If the ranks of operators
1660         don't match, don't error out but try the user-defined ones first.
1661
1662 2007-03-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1663
1664         PR fortran/30655
1665         * expr.c (check_dimension): Fix logic of comparisons.
1666
1667 2007-03-24  Paul Thomas  <pault@gcc.gnu.org>
1668
1669         PR fortran/31215
1670         * trans-expr.c (gfc_apply_interface_mapping_to_expr): Return
1671         int result that is non-zero if the expression is the function
1672         result.  Only the characteristics of the result expression
1673         can be used in a procedure interface, so simplify LEN in situ
1674         using its character length.
1675
1676         PR fortran/31209
1677         PR fortran/31200
1678         * trans-expr.c (gfc_conv_function_call): Do not use
1679         gfc_conv_expr_reference for actual pointer function with formal
1680         target because a temporary is created that does not transfer
1681         the reference correctly.  Do not indirect formal pointer
1682         functions since it is the function reference that is needed.
1683
1684 2007-03-24  Brooks Moses  <brooks.moses@codesourcery.com>
1685
1686         * gfortran.h: Edit comments on GFC_STD_*.
1687
1688 2007-03-23  Brooks Moses  <brooks.moses@codesourcery.com>
1689
1690         * invoke.texi: Misc. small typo fixes.
1691         (-Wcharacter-truncation): Add.
1692         (-Wnonstd-intrinsics): Correct spelling.
1693         (-std=): Edit.
1694         (-fintrinsic-modules-path): Add.
1695
1696 2007-03-23  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1697
1698         PR fortran/30834
1699         * arith.c (complex_pow): Rewrite to handle large power.
1700         (gfc_arith_power): Handle large power in the real and integer
1701         cases.
1702
1703 2007-03-22  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1704
1705         PR fortran/31262
1706         * trans-const.c (gfc_conv_mpz_to_tree): Allow integer constants
1707         larger than twice the width of a HOST_WIDE_INT.
1708
1709 2006-03-22  Paul Thomas  <pault@gcc.gnu.org>
1710
1711         PR fortran/31193
1712         * trans-intrinsic.c (gfc_size_in_bytes): Remove function.
1713         (gfc_conv_intrinsic_array_transfer): Remove calls to previous.
1714         Explicitly extract TREE_TYPEs for source and mold.  Use these
1715         to calculate length of source and mold, except for characters,
1716         where the se string_length is used.  For mold, the TREE_TYPE is
1717         recalculated using gfc_get_character_type_len so that the
1718         result is correctly cast for character literals and substrings.
1719         Do not use gfc_typenode_for_spec for the final cast.
1720
1721 2007-03-22  Tobias Schlüter  <tobi@gcc.gnu.org>
1722
1723         PR fortran/20897
1724         * decl.c (gfc_match_derived_decl): Reliably reject
1725         'doubleprecision' and 'doublecomplex' as type names.
1726
1727 2007-03-19  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1728
1729         PR fortran/31203
1730         * trans-expr.c (gfc_trans_init_string_length): Length should
1731         never be negative.
1732         (gfc_conv_function_call): Likewise.
1733
1734 2007-03-18  Paul Thomas  <pault@gcc.gnu.org>
1735
1736         PR fortran/30531
1737         PR fortran/31086
1738         * symbo.c : Add gfc_derived_types.
1739         (gfc_free_dt_list): Free derived type list gfc_derived_types.
1740         (gfc_free_namespace): Remove call to gfc_free_dt_list.
1741         (gfc_symbol_done_2): Call  gfc_free_dt_list.
1742         * gfortran.h : Declare gfc_derived_types to be external. Remove
1743         derived types field from gfc_namespace.
1744         * resolve.c (resolve_fl_derived): Refer to gfc_derived types
1745         rather than namespace derived_types.
1746         (resolve_fntype): Remove special treatment for module
1747         derived type functions.
1748         * trans-types.c (gfc_get_derived_type): Remove search for like
1749         derived types.  Finish by copying back end declaration to like
1750         derived types in the derived type list gfc_derived_types.
1751
1752         2007-03-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1753
1754         PR fortran/31120
1755         * trans-expr.c (gfc_conv_powi): Make n argument unsigned hwi.
1756         (gfc_conv_cst_int_power): Handle integer exponent with care,
1757         since it might be too large for us.
1758
1759 2007-03-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1760
1761         PR fortran/31184
1762         * invoke.texi: Fix typo.
1763
1764 2007-03-16  Tobias Burnus  <burnus@net-b.de>
1765
1766         * trans-decl.c (gfc_generate_function_code): Use all arguments of
1767           set_std.
1768
1769 2007-03-15  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1770
1771         * gfortran.h (gfc_option_t): Add flag_backtrace field.
1772         * lang.opt: Add -fbacktrace option.
1773         * invoke.texi: Document the new option.
1774         * trans-decl.c (gfc_build_builtin_function_decls): Add new
1775         option to the call to set_std.
1776         * options.c (gfc_init_options, gfc_handle_option): Handle the
1777         new option.
1778
1779 2007-03-15  Tobias Burnus  <burnus@gcc.gnu.org>
1780             Paul Thomas  <pault@gcc.gnu.org>
1781
1782         PR fortran/30922
1783         * decl.c (gfc_match_import): If the parent of the current name-
1784         space is null, try looking for an imported symbol in the parent
1785         of the proc_name interface.
1786         * resolve.c (resolve_fl_variable): Do not check for blocking of
1787         host association by a same symbol, if the symbol is in an
1788         interface body.
1789
1790 2007-03-15  Paul Thomas  <pault@gcc.gnu.org>
1791
1792         PR fortran/30879
1793         * decl.c (match_data_constant): Before going on to try to match
1794         a name, try to match a structure component.
1795
1796
1797         PR fortran/30870
1798         * resolve.c (resolve_actual_arglist): Do not reject a generic
1799         actual argument if it has a same name specific interface.
1800
1801         PR fortran/31163
1802         * trans-array.c (parse_interface): Do not nullify allocatable
1803         components if the symbol has the saved attribute.
1804
1805 2007-03-14  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1806
1807         * trans-array.c (gfc_trans_auto_array_allocation): Replace
1808         fold(convert()) by fold_convert().
1809         (gfc_duplicate_allocatable): Likewise.
1810         * trans-intrinsic.c (gfc_conv_intrinsic_dot_product): Use
1811         build_int_cst instead of converting an integer_zero_node
1812         to the final type.
1813
1814 2007-03-14  Jakub Jelinek  <jakub@redhat.com>
1815
1816         * module.c (mio_typespec): Don't look at ts->cl if not BT_CHARACTER.
1817
1818 2007-03-13  Brooks Moses  <brooks.moses@codesourcery.com>
1819
1820         PR fortran/30933
1821         PR fortran/30948
1822         PR fortran/30953
1823         * intrinsics.texi (CHDIR): Fix argument names, note
1824         that STATUS must be a default integer.
1825         (CTIME): Fix argument names, note that RESULT must
1826         be a default integer.
1827         (EXIT): Note that STATUS must be a default integer.
1828
1829 2007-03-13  Brooks Moses  <brooks.moses@codesourcery.com>
1830
1831         PR fortran/28068
1832         * intrinsic.texi: General whitespace cleanup, remove
1833         comment about missing intrinsics.
1834         (menu): Add lines for new entries listed below.
1835         (ACOSH): Mention specific function DACOSH, correct
1836         description phrasing.
1837         (ASINH): Mention specific function DASINH, correct
1838         description phrasing.
1839         (ATANH): Mention specific function DATANH, correct
1840         description phrasing.
1841         (COS): Add index entry for CCOS.
1842         (CPU_TIME): Correct "REAL" to "REAL(*)".
1843         (EXP): Add index entry for CEXP.
1844         (INT): Correct argument name to "A".
1845         (INT2): New entry.
1846         (INT8): New entry.
1847         (LONG): New entry.
1848         (MAX): Add index entries for specific variants.
1849         (MCLOCK): New entry.
1850         (MCLOCK8): New entry.
1851         (SECNDS): Adjust to a more standard form.
1852         (SECOND): New entry.
1853         (TIME): Add cross-reference to MCLOCK.
1854         (TIME8): Add cross-reference to MCLOCK8.
1855
1856 2007-03-11  Paul Thomas  <pault@gcc.gnu.org>
1857
1858         PR fortran/30883
1859         * parse.c (parse_interface): Use the default types from the
1860         formal namespace if a function or its result do not have a type
1861         after parsing the specification statements.
1862
1863 2007-03-08  Brooks Moses  <brooks.moses@codesourcery.com>
1864
1865         * intrinsic.texi: (ICHAR) Improve internal I/O note.
1866         (ACHAR): Reference it.
1867         (CHAR): Reference it.
1868         (IACHAR): Reference it.
1869
1870 2007-03-08  Brooks Moses  <brooks.moses@codesourcery.com>
1871
1872         * intrinsic.texi: (LINK) Document function form.
1873         (RENAME): Likewise.
1874         (SYMLNK): Likewise.
1875         (SYSTEM): Likewise.
1876         (UNLINK): Likewise.
1877
1878 2007-03-08  Brooks Moses  <brooks.moses@codesourcery.com>
1879
1880         * intrinsic.texi: minor typo fixes, removed prologue.
1881         (FSEEK): moved to correct place in alphabetical order.
1882
1883 2007-03-08  Daniel Franke  <franke.daniel@gmail.com>
1884
1885         PR fortran/30947
1886         * check.c (gfc_check_alarm_sub): Added check for default integer 
1887         kind of status argument.
1888         * iresolve.c (gfc_resolve_alarm_sub): Removed conversion of 
1889         status argument.
1890         * intrinsic.texi (ALARM): Extended documentation.
1891
1892 2007-03-08  Daniel Franke  <franke.daniel@gmail.com>
1893
1894         * intrinsic.texi (GERROR, ISATTY, TTYNAM): New.
1895         (ABORT, FLUSH, FNUM, IRAND, MALLOC, SIGNAL, SRAND): Fixed typo.
1896         * intrinsic.c (add_subroutines): Adjusted dummy argument names 
1897         of GERROR and TTYNAM.
1898
1899 2007-07-08  Tobias Burnus  <burnus@net-b.de>
1900
1901         * module.c (gfc_match_use): Support renaming of operators
1902         in USE statements.
1903         * gfortran.texi (Fortran 2003 Status): Document support of
1904         renaming of operators.
1905
1906 2007-07-08  Tobias Burnus  <burnus@net-b.de>
1907
1908         PR fortran/30973
1909         * module.c (read_module): Always import module name as symbol.
1910         (gfc_match_use): Disallow module name in the only clause of
1911         a use statement.
1912
1913 2007-03-08  Paul Thomas  <pault@gcc.gnu.org>
1914
1915         PR fortran/31011
1916         * expr.c (find_array_section): Correct arithmetic for section
1917         size.
1918
1919 2007-03-07  Brooks Moses  <brooks.moses@codesourcery.com>
1920
1921         * iresolve.c (gfc_resolve_ishftc): Correct s_kind value.
1922
1923 2007-03-06  Daniel Franke  <franke.daniel@gmail.com>
1924
1925         PR documentation/30950
1926         * intrinsic.texi (AND, CPU_TIME): Fix dummy argument names.
1927         (FREE): Fix call syntax.
1928
1929 2007-03-06  Brooks Moses  <brooks.moses@codesourcery.com>
1930
1931         * intrinsic.texi: Limit column widths to a total of .85.
1932
1933 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
1934
1935         * gfortran.texi (GFortran and G77): Rewrite completely.
1936
1937 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
1938
1939         * match.c (gfc_match_name): Expanded comment.
1940
1941 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
1942
1943         * gfortran.texi (Old-style kind specifications): Document
1944         special handling of old-style kind specifiers for COMPLEX.
1945         * decl.c (gfc_match_old_kind_spec): Document kind/bytesize
1946         assumptions for COMPLEX in comment.
1947
1948 2007-03-05  Brooks Moses  <brooks.moses@codesourcery.com>
1949
1950         PR 31050
1951         * gfortranspec.c (lang_specific_driver): Update program
1952         name and copyright date.
1953
1954 2007-03-03  Paul Thomas  <pault@gcc.gnu.org>
1955
1956         PR fortran/30882
1957         * check.c (dim_rank_check): The shape of subsections of
1958         assumed-size arrays is known.
1959
1960 2007-03-02  Paul Thomas  <pault@gcc.gnu.org>
1961             Tobias Burnus  <burnus@net-b.de>
1962
1963         PR fortran/30873
1964         * decl.c (gfc_match_entry): Remove erroneous entry result check.
1965
1966 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1967
1968         * Make-lang.in: Add install-pdf target as copied from
1969         automake v1.10 rules.
1970
1971 2007-03-01  Tobias Burnus  <burnus@net-b.de>
1972
1973         PR fortran/30865
1974         * trans-intrinsic.c (gfc_conv_intrinsic_size): Compare pointers.
1975
1976 2007-02-28  Tobias Burnus  <burnus@net-b.de>
1977             Paul Thomas  <pault@gcc.gnu.org>
1978
1979         PR fortran/30888
1980         PR fortran/30887
1981         * resolve.c (resolve_actual_arglist): Allow by-value
1982         arguments and non-default-kind for %VAL().
1983         * trans-expr.c (conv_arglist_function): Allow
1984         non-default-kind for %VAL().
1985
1986 2007-02-28  Tobias Burnus  <burnus@net-b.de>
1987
1988         PR fortran/30968
1989         * primary.c (next_string_char): Correct reading a character
1990         after the delimiter.
1991         (match_string_constant): Print warning message only once.
1992
1993 2007-02-27  Richard Guenther  <rguenther@suse.de>
1994
1995         * trans-array.c (structure_alloc_comps): Use correct type
1996         for null pointer constant.
1997
1998 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
1999
2000         * gfortran.texi: Standardize title page, remove version number
2001         from copyright page.
2002
2003 2007-02-26  Thomas Koenig  <Thomas.Koenig@online.de>
2004             Paul Thomas  <pault@gcc.gnu.org>
2005
2006         PR fortran/30865
2007         * trans-intrinsic.c (gfc_conv_intrinsic_size):
2008         If dim is an optional argument, check for its
2009         presence and call size0 or size1, respectively.
2010
2011 2007-02-23  Paul Thomas <pault@gcc.gnu.org>
2012
2013         PR fortran/30660
2014         * resolve.c (has_default_initializer): New function.
2015         (resolve_fl_variable): Call has_default_initializer to determine if
2016         the derived type has a default initializer to its ultimate
2017         components.
2018
2019
2020 2007-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2021
2022         * options.c (set_default_std_flags): New function to consolidate
2023         setting the flags.
2024         (gfc_init_options): Use new function.
2025         (gfc_handle_option): Use new function.
2026
2027 2007-02-22  Brooks Moses  <brooks.moses@codesourcery.com>
2028
2029         * gfortran.texi (Old-style kind specifications): Document
2030         special handling of old-style kind specifiers for COMPLEX.
2031         * decl.c (gfc_match_old_kind_spec): Documented kind/bytesize
2032         assumptions in comment.
2033
2034 2007-02-21  Bernhard Fischer  <aldot@gcc.gnu.org>
2035
2036         * parse.c (next_free): Gooble spaces after OpenMP sentinel.
2037
2038 2007-02-20  Thomas Koenig  <Thomas.Koenig@online.de>
2039
2040         PR fortran/30869
2041         * match.c (gfc_match_iterator): Remove conflict between
2042         loop variable and pointer.
2043
2044 2007-02-20  Tobias Burnus  <burnus@net-b.de>
2045
2046         PR fortran/30522
2047         * symbol.c (gfc_add_volatile): Allow to set VOLATILE
2048           attribute for host-associated variables.
2049         * gfortran.h (symbol_attribute): Save namespace
2050           where VOLATILE has been set.
2051         * trans-decl.c (gfc_finish_var_decl): Move variable
2052           declaration to the top.
2053
2054 2007-02-20  Tobias Burnus  <burnus@net-b.de>
2055
2056         PR fortran/30783
2057         * resolve.c (resolve_symbol): Add character dummy VALUE check.
2058
2059 2007-02-19  Thomas Koenig  <Thomas.Koenig@online.de>
2060
2061         PR libfortran/30533
2062         * fortran/iresolve.c (gfc_resolve_maxloc): Remove coercion of
2063         argument to default integer.
2064         (gfc_resolve_minloc): Likewise.
2065
2066 2007-02-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2067
2068         PR fortran/30681
2069         * options.c (gfc_init_options): Relax warning level for obsolescent.
2070         * match.c (match_arithmetic_if): Change to obsolescent from deleted.
2071         (gfc_match_if): Same.
2072
2073 2007-02-18  Roger Sayle  <roger@eyesopen.com>
2074
2075         * trans-array.c (gfc_build_constant_array_constructor): When the
2076         shape of the constructor is known, use that to construct the
2077         gfc_array_spec.
2078         (gfc_trans_constant_array_constructor): Initialize the "info"
2079         information for all of the dimensions of the array constructor.
2080         (constant_array_constructor_loop_size): New function.
2081         (gfc_trans_array_constructor): Use it to determine whether a
2082         loop is suitable for "constant array constructor" optimization.
2083
2084         * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Use fold_build2
2085         instead of build2, to avoid conditions like "(a != b) != 0".
2086
2087 2007-02-18  Roger Sayle  <roger@eyesopen.com>
2088             Paul Thomas <pault@gcc.gnu.org>
2089
2090         PR fortran/30400
2091         * match.c (match_forall_iterator): Use gfc_match_expr instead
2092         of gfc_match_variable to match the iterator variable.  Return
2093         MATCH_NO if not a variable.  Remove the reset of the symbol's
2094         flavor in cleanup.
2095
2096 2007-02-16  Tobias Burnus  <burnus@net-b.de>
2097
2098         PR fortran/30793
2099         * trans-decl.c (gfc_generate_function_code): Do not initialize
2100         pointers to derived components.
2101
2102 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
2103             Brooks Moses  <brooks.moses@codesourcery.com>
2104             Lee Millward  <lee.millward@codesourcery.com>
2105
2106         * trans-expr.c (gfc_conv_power_op): Use build_call_expr.
2107         (gfc_conv_string_tmp): Likewise.
2108         (gfc_conv_concat_op): Likewise.
2109         (gfc_build_compare_string): Likewise.
2110         (gfc_conv_function_call): Use build_call_list instead of build3.
2111
2112         * trans-array.c (gfc_trans_allocate_array_storage): Use
2113         build_call_expr.
2114         (gfc_grow_array): Likewise.
2115         (gfc_trans_array_ctor_element): Likewise.
2116         (gfc_trans_array_constructor_value): Likewise.
2117         (gfc_array_allocate): Likewise.
2118         (gfc_array_deallocate): Likewise.
2119         (gfc_trans_auto_array_allocation): Likewise.
2120         (gfc_trans_dummy_array_bias): Likewise.
2121         (gfc_conv_array_parameter): Likewise.
2122         (gfc_trans_dealloc_allocated): Likewise.
2123         (gfc_duplicate_allocatable): Likewise.
2124
2125         * trans-openmp.c (gfc_trans_omp_barrier): Use build_call_expr.
2126         (gfc_trans_omp_flush): Likewise.
2127
2128         * trans-stmt.c (gfc_conv_elementel_dependencies): Use build_call_expr.
2129         (gfc_trans_pause): Likewise.
2130         (gfc_trans_stop): Likewise.
2131         (gfc_trans_character_select): Likewise.
2132         (gfc_do_allocate): Likewise.
2133         (gfc_trans_assign_need_temp): Likewise.
2134         (gfc_trans_pointer_assign_need_temp): Likewise.
2135         (gfc_trans_forall_1): Likewise.
2136         (gfc_trans_where_2): Likewise.
2137         (gfc_trans_allocate): Likewise.
2138         (gfc_trans_deallocate): Likewise.
2139
2140         * trans.c (gfc_trans_runtime_check): Use build_call_expr.
2141
2142         * trans-io.c (gfc_trans_open): Use build_call_expr.
2143         (gfc_trans_close): Likewise.
2144         (build_filepos): Likewise.
2145         (gfc_trans_inquire): Likewise.
2146         (NML_FIRST_ARG): Delete.
2147         (NML_ADD_ARG): Delete.
2148         (transfer_namelist_element): Use build_call_expr.
2149         (build_dt): Likewise.
2150         (gfc_trans_dt_end): Likewise.
2151         (transfer_expr): Likewise.
2152         (transfer_array-desc): Likewise.
2153
2154         * trans-decl.c (gfc_generate_function_code): Use build_call_expr.
2155         (gfc_generate_constructors): Likewise.
2156
2157         * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Use build_call_expr.
2158         (gfc_conv_intrinsic_fdate): Likewise.
2159         (gfc_conv_intrinsic_ttynam): Likewise.
2160         (gfc_conv_intrinsic_array_transfer): Likewise.
2161         (gfc_conv_associated): Likewise.
2162         (gfc_conv_intrinsic_si_kind): Likewise.
2163         (gfc_conv_intrinsic_trim): Likewise.
2164         (gfc_conv_intrinsic_repeat: Likewise.
2165         (gfc_conv_intrinsic_iargc): Likewise.
2166
2167 2007-02-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2168
2169         PR fortran/30779
2170         * scanner.c (gfc_next_char_literal): Add check for end of file after
2171         call to advance_line.
2172
2173 2007-02-14  Steven G. Kargl  <kargl@gcc.gnu.org>
2174
2175         PR fortran/30799
2176         * primary.c (match_logical_constant): Return MATCH_ERROR on invalid
2177         kind.
2178
2179 2007-02-14  Steven G. Kargl  <kargl@gcc.gnu.org>
2180
2181         * misc.c (gfc_typename): Fix potential buffer overflow.
2182
2183 2007-02-13  Paul Thomas  <pault@gcc.gnu.org>
2184
2185         PR fortran/30554
2186         * module.c (read_module): Set pointer_info to referenced if the
2187         symbol has no namespace.
2188
2189 2007-02-12  Nick Clifton  <nickc@redhat.com>
2190
2191         * lang.opt: Add Warning attribute to warning options.
2192
2193 2007-02-11  Daniel Franke  <franke.daniel@gmail.com>
2194
2195         * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
2196         (SLEEP): Added section and documentation.
2197
2198 2007-02-11  Tobias Schlüter  <tobi@gcc.gnu.org>
2199
2200         PR fortran/30478
2201         * decl.c (add_init_expr_to_sym): Remove ENUM specific code.
2202         (variable_decl): Likewise.  Rewrap comment.
2203         (match_attr_spec): Remove ENUM specific code.
2204         (gfc_match_enum): Fix typo in error message.
2205         (enumerator_decl): New function.
2206         (gfc_match_enumerator_def): Use enumerator_decl instead of
2207         variable_decl.  Adapt code accordingly.
2208
2209 2007-02-11  Paul Thomas  <pault@gcc.gnu.org>
2210
2211         PR fortran/30554
2212         * module.c (find_symtree_for_symbol): New function to return
2213         a symtree that is not a "unique symtree" given a symbol.
2214         (read_module): Do not automatically set pointer_info to
2215         referenced because this inhibits the generation of a unique
2216         symtree.  Recycle the existing symtree if possible by calling
2217         find_symtree_for_symbol.
2218
2219         PR fortran/30319
2220         * decl.c (add_init_expr_to_sym): Make new charlen for an array
2221         constructor initializer.
2222
2223 2007-02-10  Richard Henderson  <rth@redhat.com>, Jakub Jelinek  <jakub@redhat.com>
2224
2225         * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
2226         and __emutls_register_common.
2227         * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
2228         * trans-common.c (build_common_decl): Don't check have_tls.
2229         * trans-decl.c (gfc_finish_var_decl): Likewise.
2230         * types.def (BT_WORD, BT_FN_PTR_PTR): New.
2231         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
2232
2233 2007-02-09  Tobias Burnus  <burnus@net-b.de>
2234
2235         PR fortran/30512
2236         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc,
2237           gfc_conv_intrinsic_minmaxval): Use HUGE-1 for most negative integer.
2238
2239 2007-02-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2240
2241         PR fortran/30720
2242         * trans-array.c (gfc_trans_create_temp_array): Remove use of the
2243         function argument. Always generate code for negative extent.
2244         Simplify said code.
2245         * trans-array.h (gfc_trans_create_temp_array): Change prototype.
2246         * trans-expr.c (gfc_conv_function_call): Remove use of last argument
2247         of gfc_trans_create_temp_array.
2248         * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Likewise.
2249         * trans-stmt.c (gfc_conv_elemental_dependencies): Likewise.
2250
2251 2007-02-08  Roger Sayle  <roger@eyesopen.com>
2252
2253         * trans-stmt.c (gfc_trans_forall_1): Optimize the cases where the
2254         mask expression is a compile-time constant (".true." or ".false.").
2255
2256 2007-02-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2257
2258         PR fortran/30611
2259         * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Evaluate
2260         arguments only once. Generate check that NCOPIES argument is not
2261         negative.
2262
2263 2007-02-04  Steven G. Kargl <kargl@gcc.gnu.org>
2264
2265         PR fortran/30605
2266         * fortran/invoke.texi: Update documentation.
2267         * fortran/options.c (gfc_post_options): Deal with tabs with -std=f2003
2268         and -pedantic.
2269
2270 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
2271
2272         * trans-array.c: Fix a comment typo.
2273
2274 2007-02-03  Paul Thomas  <pault@gcc.gnu.org>
2275
2276         PR fortran/30514
2277         * array.c (match_array_element_spec): If the length of an array is
2278         negative, adjust the upper limit to make it zero length.
2279
2280         PR fortran/30660
2281         * resolve.c (pure_function, resolve_function): Initialize name to
2282         null to clear up build warnings.
2283         (resolve_fl_variable): Look at components explicitly to check for
2284         default initializer, rather than using gfc_default_initializer.
2285
2286 2007-02-02  Steven G. Kargl <kargl@gcc.gnu.org>
2287
2288         PR fortran/30683
2289         * resolve.c (resolve_generic_f): Check for non-NULL sym.
2290
2291 2007-02-02  Roger Sayle  <roger@eyesopen.com>
2292
2293         * trans.c (gfc_build_array_ref): Use STRIP_TYPE_NOPS to eliminate
2294         NON_LVALUE_EXPR nodes and useless type conversions.
2295
2296 2007-02-02  Paul Thomas  <pault@gcc.gnu.org>
2297
2298         PR fortran/30284
2299         PR fortran/30626
2300         * trans-expr.c (gfc_conv_aliased_arg): Remove static attribute
2301         from function and make sure that substring lengths are
2302         translated.
2303         (is_aliased_array): Remove static attribute.
2304         * trans.c : Add prototypes for gfc_conv_aliased_arg and
2305         is_aliased_array.
2306         * trans-io.c (set_internal_unit): Add the post block to the
2307         arguments of the function.  Use is_aliased_array to check if
2308         temporary is needed; if so call gfc_conv_aliased_arg.
2309         (build_dt): Pass the post block to set_internal_unit and
2310         add to the block after all io activiy is done.
2311
2312 2007-02-01  Roger Sayle  <roger@eyesopen.com>
2313
2314         * trans-array.c (gfc_conv_expr_descriptor): We don't need to use
2315         a temporary array to pass a constant non-character array constructor.
2316         Generalize the descriptor generation code to handle scalarizer
2317         "info" without an array reference.
2318
2319 2007-02-01  Roger Sayle  <roger@eyesopen.com>
2320
2321         * dependency.c (gfc_check_dependency) <EXPR_ARRAY>: Implement
2322         dependency checking for array constructors.
2323
2324 2007-02-01  Roger Sayle  <roger@eyesopen.com>
2325
2326         * trans-stmt.c (compute_overall_iter_number): Document function
2327         arguments.  Generalize "unconditional forall nest with constant
2328         bounds" optimization to eliminate unconditional inner loops with
2329         constant bounds.
2330
2331 2007-01-31  Tobias Burnus  <burnus@net-b.de>
2332
2333         PR fortran/30520
2334         * interface.c (compare_actual_formal): Check conformance between
2335           actual and VOLATILE dummy arguments.
2336         * symbol.c (gfc_add_volatile): Allow setting of VOLATILE
2337           multiple times in different scopes.
2338         * decl.c (gfc_match_volatile): Search symbol in host association.
2339
2340 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
2341
2342         * simplify.c, trans-array.c: Fix comment typos.
2343
2344 2007-01-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2345
2346         * invoke.texi (Code Gen Options): Fix abbreviation typo.
2347         * intrinsic.texi (ACCESS, LSHIFT, RSHIFT): Fix typos.
2348
2349 2007-01-30  Steve Ellcey  <sje@cup.hp.com>
2350
2351         PR fortran/30432
2352         * trans-types.c (gfc_get_function_type): Do not add void_type_node
2353         to empty arg list.
2354         * trans-decl.c (create_function_arglist): Change assert.
2355
2356 2007-01-29  Paul Thomas  <pault@gcc.gnu.org>
2357
2358         PR fortran/30554
2359         * module.c (read_module): If a symbol is excluded by an ONLY
2360         clause, check to see if there is a symtree already loaded. If
2361         so, attach the symtree to the pointer_info.
2362
2363 2007-01-28  Thomas Koenig  <Thomas.Koenig@online.de>
2364
2365         PR libfortran/30389
2366         * gfortran.h: Remove gfc_simplify_init_1.
2367         * arith.h: Remove third argument from gfc_compare_string.
2368         * arith.c (gfc_compare_expression): Remove third argument
2369         from call to gfc_compare_string.
2370         (gfc_compare_string): Remove third argument xcoll_table.
2371         Remove use of xcoll_table.
2372         * misc.c (gfc_init_1): Remove call to gfc_simplify_init_1.
2373         * simplify.c (ascii_table): Remove.
2374         (xascii_table): Likewise.
2375         (gfc_simplify_achar): ICE if extract_int fails.  Remove use of
2376         ascii_table.  Warn if -Wsurprising and value < 0 or > 127.
2377         (gfc_simplify_char): ICE if extract_int fails. Error if
2378         value < 0 or value > 255.
2379         (gfc_simplify_iachar): Remove use of xascii_table.
2380         Char values outside of 0..255 are an ICE.
2381         (gfc_simplify_lge): Remove use of xascii_table.
2382         (gfc_simplify_lgt): Likewise.
2383         (gfc_simplify_lle): Likewise.
2384         (gfc_simplify_llt): Likewise.
2385         (invert_table): Remove.
2386         (gfc_simplify_init_1): Remove.
2387
2388 2007-01-27  Roger Sayle  <roger@eyesopen.com>
2389
2390         * trans-stmt.c (forall_info): Replace the next_nest and outer
2391         fields that previously implemented a doubly-linked list with a
2392         single prev_nest field (singly-linked list).
2393         (gfc_trans_nested_forall_loop): The nested_forall_info argument
2394         now denotes the innermost FORALL in the loop nest.
2395         (compute_overall_iter_number): Use prev_nest instead of next_nest.
2396         (gfc_trans_forall_1): Link/cons the new "info" to the head of the
2397         nested_forall_info linked list.  Free the current "info" when done.
2398
2399 2007-01-27  Paul Thomas  <pault@gcc.gnu.org>
2400
2401         PR fortran/30407
2402         * trans-expr.c (gfc_conv_operator_assign): New function.
2403         * trans.h : Add prototype for gfc_conv_operator_assign.
2404         * trans-stmt.c (gfc_trans_where_assign): Add a gfc_symbol for
2405         a potential operator assignment subroutine.  If it is non-NULL
2406         call gfc_conv_operator_assign instead of the first assignment.
2407         ( gfc_trans_where_2): In the case of an operator assignment,
2408         extract the argument expressions from the code for the
2409         subroutine call and pass the symbol to gfc_trans_where_assign.
2410         resolve.c (resolve_where, gfc_resolve_where_code_in_forall,
2411         gfc_resolve_forall_body): Resolve the subroutine call for
2412         operator assignments.
2413
2414 2007-01-26  Steven Bosscher  <stevenb.gcc@gmail.com>
2415             Steven G. Kargl <kargl@gcc.gnu.org>
2416
2417         PR fortran/30278
2418         * fortran/io.c (next_char): Deal with backslash escaped characters.
2419         Issue warnings in non -std=gnu cases.
2420         * fortran/primary.c (next_string_char): Issue warnings in non
2421
2422 2007-01-26  Tobias Burnus  <burnus@net-b.de>
2423
2424         * lang-specs.h: Add support for .f03 and .F03 extensions.
2425         * gfortran.texi: Document .f03 extension.
2426         * options.c (form_from_filename): Recognize .f03.
2427
2428 2007-01-25  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2429
2430         PR fortran/30437
2431         * lang.opt (Wall): Remove RejectNegative.
2432         * options.c (gfc_handle_option): Wall can be disabled.
2433         (set_Wall): Add a parameter for disabling Wall.
2434         
2435 2007-01-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2436
2437         PR fortran/30532
2438         * scanner.c (load_line): Remove check fot ctrl-z and don't gobble.
2439         
2440 2007-01-23  Paul Thomas  <pault@gcc.gnu.org>
2441
2442         PR fortran/30481
2443         * match.c (gfc_match_namelist): Add check for assumed size character
2444         in namelist and provide error if found.
2445
2446 2007-01-21  Brooks Moses  <brooks.moses@codesourcery.com>
2447
2448         * intrinsic.texi (ACHAR): Added cross-references.
2449         (CHAR): Put cross-references in alphabetical order.
2450         (IACHAR): Added cross-references.
2451         (ICHAR): Added cross-references.
2452
2453 2007-01-20  Brooks Moses  <brooks.moses@codesourcery.com>
2454
2455         * intrinsic.texi: Edited all "Syntax" examples to a consistent form.
2456         (MAXVAL): Corrected description of result characteristics.
2457         (MINVAL): Same.
2458         (UMASK): Added documentation.
2459
2460 2007-01-20  Steven G. Kargl  <kargl@gcc.gnu.org>
2461
2462         * openmp.c, matchexp.c, module.c, scanner.c, resolve.c, st.c,
2463         parse.c, primary.c, options.c, misc.c, simplify.c: Next installment
2464         in the massive whitespace patch.
2465
2466 2007-01-20  Roger Sayle  <roger@eyesopen.com>
2467
2468         * module.c (mio_array_ref): The dimen_type fields of an array ref
2469         are an enumerated type and can't be read/written directly with a
2470         call to mio_integer.  Instead loop over and cast each element.
2471
2472 2007-01-20  Roger Sayle  <roger@eyesopen.com>
2473
2474         * dependency.c (gfc_full_array_ref_p): Check that ref->next is NULL,
2475         i.e. that the ARRAY_REF doesn't mention components.
2476         * trans-array.c (gfc_constant_array_constructor_p): Export external
2477         function renamed from constant_array_constructor_p.
2478         (gfc_build_constant_array_constructor): Export.
2479         (gfc_trans_array_constructor): Update call to the renamed function
2480         constant_array_constructor_p.
2481         * trans-array.h (gfc_constant_array_constructor_p): Prototype here.
2482         (gfc_build_constant_array_constructor): Likewise.
2483         * trans-expr.c (gfc_build_memcpy_call): New helper function split
2484         out from gfc_trans_array_copy.
2485         (gfc_trans_array_copy): Use gfc_build_memcpy_call.
2486         (gfc_trans_array_constructor_copy): New function to optimize
2487         assigning an entire array from a constant array constructor.
2488         (gfc_trans_assignment): Call gfc_trans_array_constructor_copy
2489         when appropriate.
2490
2491 2007-01-20  Roger Sayle  <roger@eyesopen.com>
2492
2493         * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
2494         implementation for the SIGN intrinsic with integral operands.
2495         (gfc_conv_intrinsic_minmax): Fix whitespace.
2496
2497 2007-01-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2498
2499         * gfortran.h (gfc_options_t): Add flag_allow_leading_underscore.
2500         * lang.opt: Add -fallow-leading-underscore.
2501         * match.c (gfc_match_name): Allow leading underscore in symbol
2502         name if -fallow-leading-underscore is used.
2503         * symbol.c (gfc_get_default_type): Add special case for symbol
2504         names beginning with an underscore.
2505         * trans-decl.c (gfc_get_extern_function_decl,
2506         gfc_build_intrinsic_function_decls): Add _gfortran prefix to
2507         library symbols selected_int_kind, selected_real_kind and 
2508         all specifics.
2509         * options.c (gfc_init_options, gfc_handle_option): Handle the
2510         new -fallow-leading-underscore option.
2511
2512 2007-01-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2513
2514         PR fortran/30446
2515         * options.c (gfc_handle_module_path_options): Path used in -J
2516         option is now added to the module search path.
2517
2518 2007-01-20  Richard Guenther  <rguenther@suse.de>
2519
2520         PR fortran/30223
2521         * f95-lang.c (gfc_init_builtin_functions): Provide cbrt and
2522         cexpi builtins if we have TARGET_C99_FUNCTIONS.  Provide
2523         sincos builtins if the target has sincos.
2524
2525 2007-01-19  Brooks Moses  <brooks.moses@codesourcery.com>
2526
2527         * intrinsic.texi (MATMUL): Corrected a typo.
2528         (MAX): Separated @var arguments.
2529         (MIN): Separated @var arguments.
2530
2531 2007-01-19  Brooks Moses  <brooks.moses@codesourcery.com>
2532
2533         * intrinsic.texi: general whitespace cleanup.
2534         (menu): Added TIME8, removed UNMASK.
2535         (AINT): Clarified argument requirement.
2536         (ANINT): Clarified argument requirement.
2537         (CEILING): Clarified argument requirement.
2538         (CHAR): Clarified argument requirement.
2539         (CMPLX): Clarified argument requirement.
2540         (DCMPLX): Clarified argument requirement.
2541         (FGET): Line rewrapping.
2542         (FLOOR): Clarified argument requirement.
2543         (GMTIME): Added documentation.
2544         (IAND): Added cross-reference.
2545         (IBCLR): Added cross-reference.
2546         (IBSET): Added cross-reference.
2547         (IEOR): Added cross-reference.
2548         (INT): Collapsed examples, clarified argument requirement.
2549         (IOR): Added cross-references.
2550         (LEN_TRIM): Corrected result kind.
2551         (LINK): Added cross-reference.
2552         (LLT): Removed "documentation pending".
2553         (LOGICAL): Added documentation.
2554         (LSHIFT): Added documentation.
2555         (LTIME): Added documentation.
2556         (MATMUL): Added documentation.
2557         (MAX): Added documentation.
2558         (MAXLOC): Added documentation.
2559         (MAXVAL): Added documentation.
2560         (MERGE): Added documentation.
2561         (MIN): Added documentation.
2562         (MINLOC): Added documentation.
2563         (MINVAL): Added documentation.
2564         (MVBITS): Moved to correct place, added documentation.
2565         (NOT): Added documentation.
2566         (PERROR): Added documentation.
2567         (RAN): Moved to correct place, added documentation.
2568         (REAL): Clarified argument requirement.
2569         (RENAME): Added documentation.
2570         (RSHIFT): Clarified argument requirement.
2571         (SIGN): Corrected table specification.
2572         (SYMLNK): Added documentation.
2573         (SYSTEM): Added documentation.
2574         (TIME): Added documentation.
2575         (TIME8): Added section and documentation.
2576         (UNMASK): Removed erroneous section.
2577
2578 2007-01-18  H.J. Lu  <hongjiu.lu@intel.com>
2579
2580         * trans-stmt.c (compute_overall_iter_number): Fix a typo.
2581
2582 2007-01-18  Roger Sayle  <roger@eyesopen.com>
2583
2584         * trans-expr.c (copyable_array_p): Consider user derived types without
2585         allocatable components to be copyable.
2586
2587 2007-01-18  Roger Sayle  <roger@eyesopen.com>
2588
2589         * trans-stmt.c (compute_overall_iter_number): Enhance to precompute
2590         the number of interations in unconditional FORALL nests with constant
2591         bounds.
2592
2593 2007-01-18  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2594             Tobias Burnus  <burnus@net-b.de>
2595
2596         PR libfortran/29649
2597         * gfortran.h (gfc_option_t): Add flag_dump_core.
2598         * lang.opt: Add -fdump-core option.
2599         * invoke.texi: Document the new options.
2600         * trans-decl.c (gfc_build_builtin_function_decls): Add new
2601           options to the call to set_std.
2602         * options.c (gfc_init_options, gfc_handle_option): Set the
2603           new options.
2604
2605 2007-01-17  Paul Thomas  <pault@gcc.gnu.org>
2606
2607         PR fortran/30476
2608         * module.c (load_generic_interfaces): Make the marking of the
2609         symbol as ambiguous conditional on the module names being
2610         different.
2611         (write_generic): Ensure that the generic interface has a
2612         non-NULL module field.
2613
2614 2007-01-16  Roger Sayle  <roger@eyesopen.com>
2615
2616         PR fortran/30404
2617         * trans-stmt.c (forall_info): Remove pmask field.
2618         (gfc_trans_forall_loop): Remove NVAR argument, instead assume that
2619         NVAR covers all the interation variables in the current forall_info.
2620         Add an extra OUTER parameter, which specified the loop header in
2621         which to place mask index initializations.
2622         (gfc_trans_nested_forall_loop): Remove NEST_FLAG argument.
2623         Change the semantics of MASK_FLAG to only control the mask in the
2624         innermost loop.
2625         (compute_overall_iter_number): Optimize the trivial case of a
2626         top-level loop having a constant number of iterations.  Update
2627         call to gfc_trans_nested_forall_loop.  Calculate the number of
2628         times the inner loop will be executed, not to size of the 
2629         iteration space.
2630         (allocate_temp_for_forall_nest_1): Reuse SIZE as BYTESIZE when
2631         sizeof(type) == 1.  Tidy up.
2632         (gfc_trans_assign_need_temp): Remove NEST_FLAG argument from calls
2633         to gfc_trans_nested_forall_loop.
2634         (gfc_trans_pointer_assign_need_temp): Likewise.
2635         (gfc_trans_forall_1): Remove unused BYTESIZE, TMPVAR, SIZEVAR and
2636         LENVAR local variables.  Split mask allocation into a separate
2637         hunk/pass from mask population.  Use allocate_temp_for_forall_nest
2638         to allocate the FORALL mask with the correct size.  Update calls
2639         to gfc_trans_nested_forall_loop.
2640         (gfc_evaluate_where_mask): Update call to
2641         gfc_trans_nested_forall_loop.
2642         (gfc_trans_where_2): Likewise.
2643
2644 2007-01-15  Paul Thomas  <pault@gcc.gnu.org>
2645
2646         PR fortran/28172
2647         * trans-stmt.c (gfc_trans_call): If it does not have one, get
2648         a backend_decl for an alternate return.
2649
2650         PR fortran/29389
2651         * resolve.c (pure_function): Statement functions are pure. Note
2652         that this will have to recurse to comply fully with F95.
2653
2654         PR fortran/29712
2655         * resolve.c (resolve_function): Only a reference to the final
2656         dimension of an assumed size array is an error in an inquiry
2657         function.
2658
2659         PR fortran/30283
2660         * resolve.c (resolve_function): Make sure that the function
2661         expression has a type.
2662
2663 2007-01-14  Paul Thomas  <pault@gcc.gnu.org>
2664
2665         PR fortran/30410
2666         * trans-decl.c (gfc_sym_mangled_function_id): Module, external
2667         symbols must not have the module name prepended.
2668
2669 2007-01-11  Thomas Koenig  <Thomas.Koenig@online.de>
2670
2671         PR libfortran/30415
2672         * iresolve.c (gfc_resolve_maxloc): If the rank
2673         of the return array is nonzero and we process an
2674         integer array smaller than default kind, coerce
2675         the array to default integer.
2676         * iresolve.c (gfc_resolve_minloc): Likewise.
2677
2678 2007-01-11  Brooks Moses  <brooks.moses@codesourcery.com>
2679
2680         * simplify.c: Update copyright to 2007.
2681         * scanner.c: Same.
2682
2683 2007-01-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2684
2685         PR fortran/30430
2686         * scanner.c (gfc_release_include_path): Free gfc_option.module_dir
2687         only once!
2688
2689 2007-01-09  Brooks Moses  <brooks.moses@codesourcery.com>
2690
2691         * simplify.c (gfc_simplify_ibclr): Fix POS comparison.
2692         (gfc_simplify_ibset): Same.
2693
2694 2007-01-09  Brooks Moses  <brooks.moses@codesourcery.com>
2695
2696         PR 30381
2697         PR 30420
2698         * simplify.c (convert_mpz_to_unsigned): New function.
2699         (convert_mpz_to_signed): New function, largely based on
2700         twos_complement().
2701         (twos_complement): Removed.
2702         (gfc_simplify_ibclr): Add conversions to and from an
2703         unsigned representation before bit-twiddling.
2704         (gfc_simplify_ibset): Same.
2705         (gfc_simplify_ishftc): Add checks for overly large
2706         constant arguments, only check the third argument if
2707         it's present, carry over high bits into the result as
2708         appropriate, and perform the final conversion back to
2709         a signed representation using the correct sign bit.
2710         (gfc_simplify_not): Removed unnecessary masking.
2711
2712 2007-01-09  Paul Thomas  <pault@gcc.gnu.org>
2713
2714         PR fortran/30408
2715         * resolve.c (resolve_code): Use the code->expr character length
2716         directly to set length of llen.
2717
2718 2007-01-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2719
2720         PR fortran/30408
2721         * lang.opt: Add Wcharacter_truncation option.
2722         * options.c (gfc_init_options): Initialize
2723         gfc_option.warn_character_truncation to zero.
2724         (gfc_handle_option): Add case for OPT_Wcharacter_truncation.
2725
2726 2007-01-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2727
2728         * interface.c, intrinsic.c, gfortranspec.c, io.c, f95-lang.c,
2729         iresolve.c, match.c: Update Copyright years.  Whitespace.
2730
2731 2007-01-08  Richard Guenther  <rguenther@suse.de>
2732
2733         * trans-io.c (transfer_array_desc): Use build_int_cst instead
2734         of build_int_cstu.
2735
2736 2007-01-08  Roger Sayle  <roger@eyesopen.com>
2737
2738         * trans-array.c (constant_array_constructor_p): New function to
2739         determine whether an array constructor consists only of constant
2740         elements, and if so return it's size.
2741         (gfc_build_constant_array_constructor): Construct a statically
2742         initialized gfortran array for a given EXPR_ARRAY.
2743         (gfc_trans_constant_array_constructor): Efficiently scalarize
2744         a constant array constructor.
2745         (gfc_trans_array_constructor): Tidy up use of CONST_STRING.
2746         Special case scalarization of constant array constructors, all of
2747         whose elements are specified, using constant_array_constructor_p 
2748         and gfc_trans_constant_array_constructor.
2749         (gfc_conv_scalarized_array_ref): Check whetger info->offset is zero
2750         before adding it to index, to avoid creating a NON_LVALUE_EXPR.
2751
2752 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
2753
2754         gfortran.texi: Fix typos.
2755
2756 2007-01-07  Steven G. Kargl  <kargl@gcc.gnu.org>
2757
2758         * decl.c, dump-parse-tree.c, error.c, data.c, expr.c, dependency.c,
2759         convert.c: Update Copyright dates.  Fix whitespace.
2760
2761 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
2762
2763         * data.c (gfc_assign_data_value): Fix whitespace.
2764
2765 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
2766
2767         * trans-array.c (gfc_trans_create_temp_array, gfc_array_init_size):
2768         Commentary typo fix.
2769
2770 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
2771
2772         PR fortran/27698
2773         * match.c (gfc_match_name): Print diagnostics for invalid
2774         character in names.
2775
2776 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
2777
2778         * array.c: Fix whitespace in comment table.
2779
2780 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
2781
2782         * array.c, bbt.c, check.c: Update copyright years.  Whitespace.
2783
2784 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
2785
2786         * arith.c: Update copyright years.  Whitespace.
2787
2788 2007-01-05  Roger Sayle  <roger@eyesopen.com>
2789
2790         * trans-expr.c (gfc_trans_assignment_1): New subroutine to scalarize
2791         array assignments split out from gfc_trans_assignment.
2792         (gfc_trans_array_copy): New function to implement array to array
2793         copies via calls to __builtin_memcpy.
2794         (copyable_array_p): New helper function to identify an array of
2795         simple/POD types, that may be copied/assigned using memcpy.
2796         (gfc_trans_assignment): Use gfc_trans_array_copy to handle simple
2797         whole array assignments considered suitable by copyable_array_p.
2798         Invoke gfc_trans_assignment_1 to perform the fallback scalarization.
2799
2800 2007-01-05  Roger Sayle  <roger@eyesopen.com>
2801
2802         * trans-array.c (gfc_trans_array_constructor_value): Make the
2803         static const "data" array as TREE_READONLY.
2804         * trans-stmt.c (gfc_trans_character_select): Likewise.
2805
2806 2007-01-05  Roger Sayle  <roger@eyesopen.com>
2807
2808         * trans-array.c (gfc_conv_loop_setup): Test whether the loop
2809         stride is one, to avoid fold_build2 introducing a useless
2810         NON_LVALUE_EXPR node.
2811
2812 2007-01-05  Tobias Burnus  <burnus@net-b.de>
2813
2814         * symbol.c (check_conflict): Fix error message.
2815
2816 2007-01-05  Paul Thomas  <pault@gcc.gnu.org>
2817
2818         PR fortran/23232
2819         * decl.c (gfc_in_match_data, gfc_set_in_match_data): New
2820         functions to signal that a DATA statement is being matched.
2821         (gfc_match_data): Call gfc_set_in_match_data on entry and on
2822         exit.
2823         * gfortran.h : Add prototypes for above.
2824         * expr.c (check_init_expr): Avoid check on parameter or
2825         variable if gfc_in_match_data is true.
2826         (gfc_match_init_expr): Do not call error on non-reduction of
2827         expression if gfc_in_match_data is true.
2828
2829         PR fortran/27996
2830         PR fortran/27998
2831         * decl.c (gfc_set_constant_character_len): Add boolean arg to
2832         flag array constructor resolution.  Warn if string is being
2833         truncated.  Standard dependent error if string is padded. Set
2834         new arg to false for all three calls to
2835         gfc_set_constant_character_len.
2836         * match.h : Add boolean arg to prototype for
2837         gfc_set_constant_character_len.
2838         * gfortran.h : Add warn_character_truncation to gfc_options.
2839         * options.c (set_Wall): Set warn_character_truncation if -Wall
2840         is set.
2841         * resolve.c (resolve_code): Warn if rhs string in character
2842         assignment has to be truncated.
2843         * array.c (gfc_resolve_character_array_constructor): Set new
2844         argument to true for call to gfc_set_constant_character_len.
2845
2846 2007-01-05  Tobias Burnus  <burnus@net-b.de>
2847
2848         PR fortran/29624
2849         * interface.c (compare_parameter_intent): New function.
2850           (check_intents): Support pointer intents.
2851         * symbol.c (check_conflict): Support pointer intents,
2852           better conflict_std message.
2853         * expr.c (gfc_check_assign,gfc_check_pointer_assign):
2854           Support pointer intents.
2855         * resolve.c (resolve_deallocate_expr,resolve_allocate_expr):
2856           Support pointer intents.
2857
2858 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2859
2860         PR 30371
2861         * check.c (gfc_check_kill_sub): Add checks for non-scalar
2862         arguments.
2863
2864 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
2865
2866         * intrinsic.texi: Minor cleanup, reflowing overlong
2867         paragraphs, and correcting whitespace.
2868
2869 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
2870
2871         * intrinsic.texi (LBOUND): Add documentation.
2872         (LGE): Add documentation.
2873         (LGT): Add documentation.
2874         (LINK): Add documentation.
2875         (LLE): Add documentation.
2876         (LLT): Add documentation.
2877         (LNBLNK): Add documentation.
2878         (UBOUND): Add documentation.
2879         (UNLINK): Add documentation.
2880
2881 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
2882
2883         * intrinsic.texi (IAND): Clarify argument specifications.
2884         (IBCLR): Add documentation.
2885         (IBITS): Add documentation.
2886         (IBSET): Add documentation.
2887         (IEOR): Add documentation.
2888         (IERRNO): Add documentation.
2889         (INDEX): Add documentation.
2890         (IOR): Add documentation.
2891         (ISHFT): Add documentation.
2892         (ISHFTC): Add documentation.
2893         (KILL): Add documentation.
2894         (LEN_TRIM): Add documentation.
2895
2896 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
2897
2898         PR 30235
2899         * interface.c (compare_actual_formal): check for
2900         alternate returns when iterating over non-present
2901         arguments.
2902
2903 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
2904
2905         * invoke.texi: Update manpage copyright to include 2007.
2906
2907 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
2908
2909         * gfortran.texi: Update copyright to include 2007.
2910         * intrinsic.texi: Update copyright to include 2007.
2911         * invoke.texi: Update copyright to include 2007.
2912
2913 2007-01-02  Tobias Burnus  <burnus@net-b.de>
2914             Jakub Jelinek  <jakub@redhat.com>
2915
2916         PR fortran/30276
2917         * scanner.c (open_included_file): Revert patch.
2918           (gfc_open_included_file): Support absolute pathnames.
2919           (gfc_open_intrinsic_module): Support absolute pathnames.
2920
2921 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2922
2923         * gfortran.texi (GNU Fortran and GCC): Rewrite
2924
2925 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2926
2927         * gfortran.texi (Introduction): Lower "Part I:
2928         Introduction" to a chapter, renumber Parts II and III to
2929         Parts I and II.
2930         * intrinsic.texi (Introduction): Rename to "Introduction
2931         to Intrinsics" to avoid conflict with the new chapter.
2932
2933 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2934
2935         * intrinsic.texi (Introduction): Rewrite first paragraph.
2936
2937 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2938
2939         * invoke.texi (OpenMP): Added index entry.
2940         * gfortran.texi (title page): Removed erroneous '*'.
2941
2942 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2943
2944         * gfortran.texi (GFORTRAN_DEFAULT_RECL): Added units
2945         to description.
2946         (Extensions): Miscellaneous minor rewriting and copyediting.
2947         (BOZ-literal constants): Renamed from Hexadecimal constants.
2948         (Hollerith constants support): Added explanation and 
2949         suggestions for standard-conforming modern equivalents.
2950
2951 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2952
2953         * intrinsic.texi: Improvements to index entries; change
2954         @findex entries to @cindex entries.
2955         * invoke.texi: Standardize and improve index entries.
2956         * gfortran.texi: Fix @code in one index entry.
2957
2958 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2959
2960         * invoke.texi: Change @code-type macros to appropriate
2961         variants (@command, @option, etc.)
2962         * gfortran.texi: Same.
2963
2964 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
2965
2966         * intrinsic.texi: Various minor cleanups.
2967
2968 2007-01-02  Steven G. Kargl  <kargls@comcast.net>
2969
2970         * trans-intrinsic.c (gfc_conv_intrinsic_ibits): Fix call to
2971         build_int_cst.
2972
2973 2007-01-02  Tobias Burnus  <burnus@net-b.de>
2974
2975         PR fortran/30276
2976         * scanner.c (open_included_file): Support full-path filenames.
2977
2978 2007-01-02  Paul Thomas  <pault@gcc.gnu.org>
2979
2980         PR fortran/20896
2981         * interface.c (check_sym_interfaces): Remove call to
2982         resolve_global_procedure.
2983         gfortran.h : Remove prototype for resolve_global_procedure.
2984         resolve.c (resolve_global_procedure): Add static attribute
2985         to function declaration.
2986
2987 2007-01-01  Steven G. Kargl  <kargls@comcast.net>
2988
2989         * ChangeLog: Copy to ...
2990         * ChangeLog-2006: here.