OSDN Git Service

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