1 2010-11-09 Janus Weil <janus@gcc.gnu.org>
4 * gfortran.h (gfc_add_data_component,gfc_add_vptr_component,
5 gfc_add_hash_component,gfc_add_size_component,
6 gfc_add_def_init_component): New macros.
7 * class.c (gfc_add_component_ref): Renamed data component.
8 (get_unique_type_string): New function.
9 (gfc_build_class_symbol): Use 'get_unique_type_string' to construct
10 uniques names for the class containers. Rename components.
11 (gfc_find_derived_vtab): Use 'get_unique_type_string' to construct
12 uniques names for the vtab symbols. Rename components.
13 * decl.c (attr_decl1): Renamed class container components.
14 * iresolve.c (gfc_resolve_extends_type_of): Ditto.
15 * match.c (select_type_set_tmp): Renamed temporaries.
16 * module.c (read_module): Renamed vtab and vtype symbols.
17 * resolve.c (resolve_structure_cons,resolve_typebound_function,
18 resolve_typebound_subroutine,resolve_deallocate_expr,
19 resolve_select_type,resolve_fl_derived): Renamed class container and
21 * trans-array.c (structure_alloc_comps): Ditto.
22 * trans-decl.c (gfc_trans_deferred_vars): Ditto.
23 * trans-expr.c (gfc_conv_derived_to_class,gfc_conv_structure,
24 gfc_trans_class_init_assign,gfc_trans_class_assign): Ditto.
25 * trans-intrinsic.c (gfc_conv_intrinsic_sizeof,
26 gfc_conv_intrinsic_storage_size,gfc_conv_allocated,gfc_conv_associated,
27 gfc_conv_same_type_as): Ditto.
28 * trans-stmt.c (gfc_trans_allocate): Ditto.
30 2010-11-08 Jerry DeLisle <jvdelisle@gcc.gnu.org>
33 * trans-decl.c (generate_local_decl): Do not generate unused warning
34 for variables in namelists.
36 2010-11-08 Janus Weil <janus@gcc.gnu.org>
39 * decl.c (build_struct): Build vtab immediately if derived type
40 has already been declared.
42 2010-11-08 Janus Weil <janus@gcc.gnu.org>
45 * trans-types.c (gfc_copy_dt_decls_ifequal): Handle CLASS components.
47 2010-11-06 Janus Weil <janus@gcc.gnu.org>
50 * trans-expr.c (gfc_trans_class_assign): Find 'vtab' symbol in correct
53 2010-11-05 Janus Weil <janus@gcc.gnu.org>
57 * class.c (gfc_find_derived_vtab): Improved search for existing vtab.
58 Add component '$copy' to vtype symbol for polymorphic deep copying.
59 * expr.c (gfc_check_pointer_assign): Make sure the vtab is generated
60 during resolution stage.
61 * resolve.c (resolve_codes): Don't resolve code if namespace is already
63 * trans-stmt.c (gfc_trans_allocate): Call '$copy' procedure for
64 polymorphic ALLOCATE statements with SOURCE.
66 2010-11-03 Thomas Koenig <tkoenig@gcc.gnu.org>
67 Paul Thomas <pault@gcc.gnu.org>
69 * dump-parse-tree.c (code_indent): Take label into acount
70 when calculating indent.
71 (show_typespec): Also display class.
72 (show_attr): Add module name to argument.
73 Don't show UNKNOWN for flavor, access and save. Don't show
74 SAVE_NONE. Don't show INTENT_UNKNOWN. Show module for use
75 association. Show intent only for dummy arguments.
76 Set length of shown symbol names to minimum of 12.
77 Show attributes header.
78 (show_symbol): Adjust show_level.
79 (show_symtree): Clear up display for ambiguous. Show if symbol
80 was imported from namespace.
81 (show_code_node): Clear up indenting. Traverse symtree and
82 show code directly instead of calling show_namespace.
84 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
86 * trans-decl.c (add_argument_checking): Use build_zero_cst instead of
88 * trans-expr.c (gfc_conv_missing_dummy, fill_with_spaces): Likewise.
89 * trans-stmt.c (gfc_trans_do): Likewise.
91 2010-11-02 Steven G. Kargl < kargl@gcc.gnu.org>
92 Tobias Burnus <burnus@net-b.de>
95 * array.c (gfc_match_array_constructor): Reject deferred type
96 parameter (DTP) in type-spec.
97 * decl.c (char_len_param_value, match_char_length,
98 gfc_match_char_spec, build_sym, variable_decl,
99 enumerator_decl): Support DTP.
100 * expr.c (check_inquiry): Fix check due to support for DTP.
101 * gfortran.h (gfc_typespec): Add Boolean 'deferred'.
102 * misc.c (gfc_clear_ts): Set it to false.
103 * match.c (gfc_match_allocate): Support DTP.
104 * resolve.c (resolve_allocate_expr): Not-implemented error for DTP.
105 (resolve_fl_variable): Add DTP constraint check.
106 * trans-decl.c (gfc_trans_deferred_vars): Add not-implemented
109 2010-11-01 Steven G. Kargl <kargl@gcc.gnu.org>
112 * fortran/match.c (match_derived_type_spec): Reoplace gfc_match_symbol
113 with a gfc_find_symbol to prevent namespace pollution. Remove dead
115 (match_type_spec): Remove parsing of '::'. Collapse character
116 kind checking to one location.
117 (gfc_match_allocate): Use correct locus in error message.
119 2010-10-30 Thomas Koenig <tkoenig@gcc.gnu.org>
121 * gfortran.h (gfc_option_t): Replace dump_parse_tree by
122 dump_fortran_original and add dump_fortran_optimized.
123 * lang.opt: Add fdump-fortran-original and
124 fdump-fortran-optimized. Document that fdump-parse-tree is
126 * gfortran.texi: Add -fdump-fortran-original and
127 -fdump-fortran-optimized. -fdump-parse-tree is deprecated.
128 * frontend-passes.c (gfc_run_passes): If optimizing and
129 if gfc_option.dump_fortran_optimized is set, dump the parse tree
131 * parse.c: Rename gfc_option.dump_parse_tree to
132 gfc_option.dump_fortran_original.
133 * options.c (gfc_init_options): Rename gfc_option.dump_parse_tree
134 to gfc_option.dump_fortran_original and handle
135 gfc_option.dump_fortran_optimize.
136 (gfc_post_options): Rename gfc_option.dump_parse_tree
137 to gfc_option.dump_fortran_original.
138 (gfc_handle_option): Rename OPT_fdump_parse_tree to
139 OPT_fdump_fortran_original and gfc_option.dump_parse_tree
140 to gfc_option.dump_fortran_original. Handle
141 OPT_fdump_fortran_optimized.
143 2010-10-30 Janus Weil <janus@gcc.gnu.org>
148 * interface.c (count_types_test): Symmetrize type check.
149 (generic_correspondence): Ditto.
151 2010-10-27 Janus Weil <janus@gcc.gnu.org>
154 * interface.c (compare_allocatable): Handle polymorphic allocatables.
155 (compare_parameter): Add two error messages for polymorphic dummies.
157 2010-10-26 Janus Weil <janus@gcc.gnu.org>
160 * trans.h (gfc_deallocate_scalar_with_status): New prototype.
161 * trans.c (gfc_deallocate_scalar_with_status): New function for
162 deallocation of allocatable scalars.
163 * trans-array.c (structure_alloc_comps): Call it here ...
164 * trans-decl.c (gfc_trans_deferred_vars): ... here ...
165 * trans-stmt.c (gfc_trans_deallocate): ... and here.
167 2010-10-26 Tobias Burnus <burnus@net-b.de>
170 * trans-stmt.c (gfc_trans_allocate): Do a deep-copy for SOURCE=.
173 * trans-array.c (duplicate_allocatable): Use size of type and not
174 the size of the pointer to the type.
176 2010-10-25 Steven G. Kargl <kargl@gcc.gnu.org>
179 * fortran/scanner.c (include_line): Check return value of load_file.
181 2010-10-23 Tobias Burnus <burnus@net-b.de>
184 * expr.c (gfc_check_vardef_context): Fix PROTECTED check.
186 2010-10-21 Janus Weil <janus@gcc.gnu.org>
189 * match.h (gfc_matching_ptr_assignment): New global variable to indicate
190 we're currently matching a (non-proc-)pointer assignment.
191 * decl.c (match_pointer_init): Set it.
192 * match.c (gfc_match_pointer_assignment): Ditto.
193 * primary.c (matching_actual_arglist): New global variable to indicate
194 we're currently matching an actual argument list.
195 (gfc_match_actual_arglist): Set it.
196 (gfc_match_varspec): Reject procedure pointer component calls with
197 missing argument list.
199 2010-10-21 Janus Weil <janus@gcc.gnu.org>
202 * interface.c (gfc_compare_interfaces): Switch arguments of type
203 comparison (important for polymorphic variables).
205 2010-10-21 Tobias Burnus <burnus@net-b.de>
208 * expr.c (gfc_check_vardef_context): Treat pointer functions
211 2010-10-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
214 * trans_stmt.c (gfc_trans_stop): Fix whitespace. Build a call to new
215 F08 numeric stop function.
216 * trans.h: Add declaration for gfor_fndecl_stop_numeric_f08.
217 * trans-decl.c (gfc_build_builtin_function_decls): Build declaration
218 for stop_numeric_f08.
220 2010-10-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
222 * gfortran.h: Remove definition of bt enumerator.
223 * libgfortran.h: Add bt enumerator type alighned with defintion.
224 Remove the dtype enumerator, no longer used.
225 previously given in libgfortran/io.h
226 * trans-types.c: Use new bt enumerator.
227 * trans-io.c: Likewise.
229 2010-10-16 Thomas Koenig <tkoenig@gcc.gnu.org>
231 * trans-io.c (gfc_build_io_library_fndecls):
232 Array descriptor arguments to transfer_array can be
233 dereferenced recursively.
235 2010-10-16 Thomas Koenig <tkoenig@gcc.gnu.org>
240 * trans-io.c (enum iocall): Add IOCALL_X_INTEGER_WRITE,
241 IOCALL_X_LOGICAL_WRITE, IOCALL_X_CHARACTER_WRITE,
242 IOCALL_X_CHARACTER_WIDE_WRIE, IOCALL_X_REAL_WRITE,
243 IOCALL_X_COMPLEX_WRITE and IOCALL_X_ARRAY_WRITE.
244 (gfc_build_io_library_fndecls): Add corresponding function
246 (transfer_expr): If the current transfer is a READ, use
247 the iocall with the original version, otherwise the version
249 (transfer_array_desc): Likewise.
251 2010-10-15 Tobias Burnus <burnus@net-b.de>
254 * trans.h (gfc_add_modify_loc, gfc_evaluate_now_loc): New prototypes.
255 (gfc_trans_runtime_error_vararg): Remove prototype.
256 * trans.c (gfc_add_modify_loc, gfc_evaluate_now_loc): New functions.
257 (gfc_add_modify, gfc_evaluate_now): Use them.
258 (trans_runtime_error_vararg): Renamed from
259 gfc_trans_runtime_error_vararg, made static and use locus.
260 (gfc_trans_runtime_error): Use it.
261 (gfc_trans_runtime_check): Ditto and make use of locus.
262 * trans-stmt.c (gfc_trans_if_1, gfc_trans_simple_do,
263 gfc_trans_do, gfc_trans_do_while): Improve line number
264 associated with generated expressions.
266 2010-10-12 Daniel Kraft <d@domob.eu>
269 * parse.c (parse_associate): Set typespec of associate-name if that of
270 the target is already available.
272 2010-10-10 Janus Weil <janus@gcc.gnu.org>
275 * resolve.c (resolve_typebound_function): Bugfix for type-bound
278 2010-10-09 Thomas Koenig <tkoenig@gcc.gnu.org>
280 * frontend-passes.c: Include opts.h.
281 (optimize_comparison): Renamed from optimize_equality.
282 Change second argument to operation to be compared.
283 Use flag_finite_math_only to avoid comparing REAL and
284 COMPLEX only when NANs are honored. Simplify comparing
285 of string concatenations where left or right operands are
286 equal. Simplify all comparison operations, based on the result
287 of gfc_dep_compare_expr.
288 * dependency.c: Include arith.h.
289 (gfc_are_identical_variables): Volatile variables should not
290 compare equal to themselves.
291 (gfc_dep_compare_expr): Handle string constants and string
294 2010-10-08 Joseph Myers <joseph@codesourcery.com>
296 * f95-lang.c (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
297 * gfortran.h (gfc_init_options_struct): Declare.
298 * options.c (gfc_init_options_struct): New. Split out from
301 2010-10-07 Janus Weil <janus@gcc.gnu.org>
304 * resolve.c (resolve_typebound_function): Use correct declared type
305 for type-bound operators.
307 2010-10-07 Mikael Morin <mikael@gcc.gnu.org>
310 Revert revision 165026:
311 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
313 * decl.c (match_procedure_in_type): Assertify if conditions.
315 2010-10-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
318 * resolve.c (resolve_transfer): Use expression inside parenthesis to
319 find acutal component to be transgferred.
321 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
323 * trans-stmt.c (gfc_trans_allocate): free lhs expr.
325 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
327 * trans-array.c (gfc_free_ss_chain): Made non-static.
328 * trans-array.h (gfc_free_ss_chain): New prototype.
329 * trans-stmt.c (gfc_trans_where_2): Free ss chains.
331 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
333 * trans-intrinsic.c (gfc_conv_intrinsic_funcall): Also free symbol's
336 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
338 * trans-stmt.c (gfc_trans_forall_1): Free forall struct at the end.
340 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
342 * trans-expr.c (get_proc_ptr_comp): Restore initial expression type
343 before calling gfc_free_expr.
345 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
347 * trans-array.c (gfc_conv_tmp_array_ref): Add factorized call to
348 gfc_advance_se_ss_chain.
349 * trans-expr.c (gfc_conv_subref_array_ref, gfc_conv_procedure_call,
350 gfc_conv_array_constructor_expr, gfc_trans_assignment_1): Remove
351 calls to gfc_advance_se_ss_chain after gfc_conv_tmp_array_ref.
352 * trans-intrinsic.c (gfc_conv_intrinsic_function): Ditto.
353 * trans-stmt.c (gfc_trans_where_assign, gfc_trans_where_3): Ditto.
355 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
357 * trans.c (gfc_restore_backend_locus): New function.
358 (gfc_get_backend_locus): Renamed to ...
359 (gfc_save_backend_locus): ... this.
360 * trans.h (gfc_restore_backend_locus, gfc_get_backend_locus,
361 gfc_save_backend_locus): Same.
362 * trans-array.c (gfc_trans_g77_array, gfc_trans_dummy_array_bias,
363 gfc_trans_deferred_array): Rename gfc_get_backend_locus to
364 gfc_save_backend_locus.
365 (gfc_trans_dummy_array_bias): Call gfc_restore_backend_locus at the
367 (gfc_trans_g77_array, gfc_trans_deferred_array): Use
368 gfc_restore_backend_locus instead of gfc_set_backend_locus.
369 (gfc_trans_deferred_array): Call gfc_restore_backend_locus on early
371 * trans-decl.c (gfc_get_extern_function_decl, build_entry_thunks,
372 gfc_trans_deferred_vars):
373 Rename gfc_get_backend_locus to gfc_save_backend_locus.
374 Use gfc_restore_backend_locus insted of gfc_set_backend_locus.
376 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
378 * trans-array.c (gfc_build_constant_array_constructor): Free array
381 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
383 * symbol.c (gfc_copy_formal_args_ppc): Free previous formal arg list
384 before overwriting it.
386 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
388 * array.c (gfc_match_array_spec): Don't re-initialize cleared struct.
389 * symbol.c (gen_shape_param): Ditto.
391 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
393 * symbol.c (free_entry_list): New function.
394 (gfc_free_namespace): Free list of entries.
396 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
398 * symbol.c (free_components): Free list of formal args and formal
401 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
403 * simplify.c (gfc_simplify_size): Clear temporary mpz int before
406 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
408 * resolve.c (add_dt_to_dt_list): Remove unneeded if.
410 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
412 * resolve.c (check_typebound_baseobject): Free local expr before
415 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
417 * primary.c (gfc_match_structure_constructor): Invert the assert logic.
419 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
421 * primary.c (gfc_free_structure_ctor_component): Also free the
422 component structure itself.
424 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
426 * module.c (gfc_use_module): Free atom_string when done with it.
428 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
430 * module.c (read_module): Remove useless string duplication.
432 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
434 * gfortranspec.c (append_arg): Remove commented code.
436 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
438 * decl.c (match_procedure_in_type): Assertify if conditions.
440 2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
442 * cpp.c (gfc_cpp_post_options): Don't create a cpp reader if
443 preprocessing is disabled.
445 2010-10-06 Jakub Jelinek <jakub@redhat.com>
448 * f95-lang.c (ATTR_NOTHROW_LEAF_LIST, ATTR_CONST_NOTHROW_LEAF_LIST,
449 ATTR_NOTHROW_LIST, ATTR_CONST_NOTHROW_LIST): Define.
450 (gfc_define_builtin): Change last argument to int bitmask from bool,
451 control addition of TREE_NOTHROW and leaf attribute as well.
452 (DO_DEFINE_MATH_BUILTIN): Adjust callers.
453 (gfc_init_builtin_functions): Likewise. Remove
454 ATTR_{,CONST_}NOTHROW_LIST enum.
456 2010-10-04 Andi Kleen <ak@linux.intel.com>
458 * Make-lang.in (gfortran, f951): Add + to build rule.
460 2010-10-04 Richard Guenther <rguenther@suse.de>
462 * f95-lang.c (current_translation_unit): New global variable.
463 (gfc_create_decls): Build a translation-unit decl.
464 (pushdecl): In the global binding-level use the
465 translation-unit decl as DECL_CONTEXT.
466 * trans-decl.c (gfc_get_symbol_decl): Use DECL_FILE_SCOPE_P.
467 (build_function_decl): Likewise. Delay setting the assembler
468 name, leave setting of DECL_CONTEXT to pushdecl.
469 (trans_function_start): Use DECL_FILE_SCOPE_P.
470 (gfc_create_module_variable): Likewise. Remove questionable
472 * trans.c (gfc_generate_module_code): Likewise.
474 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
476 * cpp.c (cpp_define_builtins): Call functions from cppbuiltin.c
477 instead of duplicating code.
478 * Make-lang.in: Add dependency on cppbuiltin.h. Don't define
481 2010-10-02 Janus Weil <janus@gcc.gnu.org>
484 * resolve.c (resolve_formal_arglist): Avoid setting default type for
485 formal arguments of intrinsic procedures.
487 2010-09-30 Janus Weil <janus@gcc.gnu.org>
490 * resolve.c (resolve_allocate_expr): Do not use
491 'gfc_has_default_initializer'.
493 2010-09-30 Tobias Burnus <burnus@net-b.de>
495 * gfortran.tex (Fortran 2008 status): Update list of
496 implemented features.
498 2010-09-29 Joseph Myers <joseph@codesourcery.com>
500 * lang.opt: Don't use VarExists.
502 2010-09-29 Joseph Myers <joseph@codesourcery.com>
504 * cpp.c (cpp_define_builtins): Update names of gfc_option_t
506 (gfc_cpp_post_options): Update names of cpp_options members.
507 (cb_cpp_error): Update names of diagnostic_context members.
508 * f95-lang.c (gfc_init_builtin_functions): Update names of
509 gfc_option_t members.
510 * gfortran.h (gfc_option_t): Rename warn_conversion and
512 * intrinsic.c (gfc_convert_type_warn): Update names of
513 gfc_option_t members.
514 * options.c (gfc_init_options, gfc_post_options, set_Wall,
515 gfc_handle_option): Update names of gfc_option_t members.
516 * parse.c (next_free, next_fixed): Update names of gfc_option_t
518 * scanner.c (pedantic): Remove extern declaration.
519 (skip_free_comments, skip_fixed_comments, include_line): Update
520 names of gfc_option_t members.
521 * trans-decl.c (gfc_generate_function_code): Update names of
522 gfc_option_t members.
524 2010-09-28 Tobias Burnus <burnus@net-b.de>
528 * intrinsic.c (add_functions): Make compiler_version and
529 compiler_options CLASS_INQUIRY.
530 * gfortran.h (gfc_get_option_string): New prototype.
531 * intrinsic.texi (COMPILER_VERSION, COMPILER_OPTIONS):
533 (C_SIZEOF): Mark as inquiry function of ISO_C_BINDING.
534 (ISO_FORTRAN_ENV): Refer to COMPILER_VERSION and COMPILER_OPTIONS.
535 (ISO_C_BINDING): Refer to C_SIZEOF.
536 * options.c (gfc_get_option_string): New function.
537 * simplify.c (gfc_simplify_compiler_options): Use it.
538 (gfc_simplify_compiler_version): Include compiler name.
540 2010-09-28 Jan Hubicka <jh@suse.cz>
542 * f95-lang.c (gfc_define_builtin): Make leaf.
543 (gfc_init_builtin_functions): Handle only ATTR_CONST_NOTHROW_LEAF_LIST
544 and ATTR_NOTHROW_LEAF_LIST.
545 (DEF_SYNC_BUILTIN): Check ATTR_CONST_NOTHROW_LEAF_LIST.
546 (DEF_GOMP_BUILTIN): Likewise.
548 2010-09-28 Tobias Burnus <burnus@net-b.de>
551 * trans-decl.c (gfc_get_symbol_decl): Use gsym for decl of
554 2010-09-27 Tobias Burnus <burnus@net-b.de>
558 * intrinsic.h (gfc_simplify_compiler_options,
559 gfc_simplify_compiler_version): New prototypes.
560 * intrinsic.c (gfc_intrinsic_function_by_id,
561 make_from_module): New functions.
562 (gfc_find_function, gfc_find_subroutine, gfc_generic_intrinsic,
563 gfc_specific_intrinsic): Don't return module intrinsics.
564 (add_functions): Add compiler_options, compiler_version.
565 (gfc_intrinsic_func_interface): Also lookup symbol by ISYM ID.
566 * symbol.c (std_for_isocbinding_symbol): Add version check for
568 * iso-fortran-env.def: Add compiler_options, compiler_version.
569 * iso-c-binding.def: Add c_sizeof.
570 * gfortran.h (gfc_intrinsic_sym): Add from_module:1.
571 (iso_c_binding_symbol, iso_fortran_env_symbol): Add NAMED_FUNCTIONS.
572 (gfc_intrinsic_function_by_id): New prototype.
573 * module.c (create_intrinsic_function): New function.
574 (import_iso_c_binding_module, use_iso_fortran_env_module): Use it.
575 * trans-types.c (init_c_interop_kinds): Add NAMED_FUNCTIONS.
576 * resolve.c (resolve_intrinsic): Try also to resolve intrinsics
578 * simplify.c (gfc_simplify_compiler_options,
579 gfc_simplify_compiler_version): New functions.
581 2010-09-26 Daniel Kraft <d@domob.eu>
585 * resolve.c (resolve_select_type): Clarify code.
586 (resolve_assoc_var): Only set typespec if it is currently unknown.
588 2010-09-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
591 * module.c (create_int_parameter_array): Set the array value shape.
593 2010-09-25 Tobias Burnus <burnus@net-b.de>
595 * gfortran.texi: Re-add accidently removed \input line.
597 2010-09-25 Daniel Kraft <d@domob.eu>
600 * gfortran.h (struct gfc_dt): New member `dt_io_kind'.
601 * io.c (resolve_tag): F2008 check for NEWUNIT and variable
602 definition checks for NEWUNIT, IOSTAT, SIZE and IOMSG.
603 (gfc_free_dt): Correctly handle freeing of `dt_io_kind' and
604 `extra_comma' with changed semantics.
605 (gfc_resolve_dt): Check variable definitions.
606 (match_io_element): Remove INTENT and PURE checks here and
607 initialize code->ext.dt member.
608 (match_io): Set dt->dt_io_kind.
609 (gfc_resolve_inquire): Check variable definition for all tags
610 except UNIT, FILE and ID.
611 * resolve.c (resolve_transfer): Variable definition check.
613 2010-09-25 Tobias Burnus <burnus@net-b.de>
615 * interface.c (gfc_match_end_interface): Constify char pointer
618 2010-09-24 Steven G. Kargl < kargl@gcc.gnu.org>
620 * interface.c (gfc_match_end_interface): Deal with user defined
621 operators that overload rational operators and C1202.
623 2010-09-24 Tobias Burnus <burnus@net-b.de>
625 * gfortran.texi: Add second space after end-of-sentence period;
626 change / to /@/ to allow hyphenation of URLs.
627 (Standards): Remove duplicated OpenMP, update wording given that
628 Fortran 2008 now released.
629 (Fortran 2008 status): Update and add list of implemented features.
631 2010-09-24 Tobias Burnus <burnus@net-b.de>
634 * iso-fortran-env.def: Add NAMED_KINDARRAY with
635 character_kinds, integer_kinds, logical_kinds and
637 * gfortran.h: Add them to iso_fortran_env_symbol.
638 * libgfortran.h: Rename GFC_INQUIRE_INTERNAL_UNIT to
639 LIBERROR_INQUIRE_INTERNAL_UNIT and move it from
640 libgfortran_stat_codes to libgfortran_error_codes.
641 * module.c (create_int_parameter_array): New function.
642 (use_iso_fortran_env_module): Use it for
643 NAMED_KINDARRAY of iso-fortran-env.def.
644 * trans-decl.c (gfc_get_symbol_decl): Parameter
645 arrays of intrinsics modules become local static variables.
646 * intrinsic.texi (ISO_FORTRAN_ENV): Add character_kinds,
647 integer_kinds, logical_kinds and real_kinds.
649 2010-09-23 Thomas Koenig <tkoenig@gcc.gnu.org>
652 * frontend-passes.c (optimize_binop_array_assignment):
653 Only re-use lhs as intermediate storage if kind and type
656 2010-09-23 Mikael Morin <mikael@gcc.gnu.org>
660 * trans-array.c (gfc_conv_expr_descriptor): Handle
661 ss->type == GFC_SS_INTRINSIC (for {l,u}bound intrinsics) case.
663 2010-09-23 Tobias Burnus <burnus@net-b.de>
665 * intrinsic.texi (OpenMP modules): Add named constants of
668 2010-09-23 Daniel Kraft <d@domob.eu>
673 * gfortran.h (gfc_check_vardef_context): New method.
674 (struct symbol_attribute): New flag `select_type_temporary'.
675 * primary.c (gfc_variable_attr): Clarify initialization of ref.
676 (match_variable): Remove PROTECTED check and assignment check
677 for PARAMETERs (this is now done later).
678 * match.c (gfc_match_iterator): Remove INTENT(IN) check.
679 (gfc_match_associate): Defer initialization of newAssoc->variable.
680 (gfc_match_nullify): Remove PURE definability check.
681 (select_type_set_tmp): Set new `select_type_temporary' flag.
682 * expr.c (gfc_check_assign): Remove INTENT(IN) check here.
683 (gfc_check_pointer_assign): Ditto (and other checks removed).
684 (gfc_check_vardef_context): New method.
685 * interface.c (compare_parameter_protected): Removed.
686 (compare_actual_formal): Use `gfc_check_vardef_context' for checks
687 related to INTENT([IN]OUT) arguments.
688 * intrinsic.c (check_arglist): Check INTENT for intrinsics.
689 * resolve.c (gfc_resolve_iterator): Use `gfc_check_vardef_context'.
690 (remove_last_array_ref): New method.
691 (resolve_deallocate_expr), (resolve_allocate_expr): Ditto.
692 (resolve_allocate_deallocate): Ditto (for STAT and ERRMSG).
693 (resolve_assoc_var): Remove checks for definability here.
694 (resolve_select_type): Handle resolving of code->block here.
695 (resolve_ordinary_assign): Remove PURE check.
696 (resolve_code): Do not resolve code->blocks for SELECT TYPE here.
697 Use `gfc_check_vardef_context' for assignments and pointer-assignments.
699 2010-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
701 * gfortran.texi (Argument list functions): Allow URL to wrap.
702 * intrinsic.texi (GETGID, GETPID, GETUID, IMAGE_INDEX)
703 (IS_IOSTAT_END, IS_IOSTAT_EOR, NUM_IMAGES, THIS_IMAGE)
704 (ISO_FORTRAN_ENV): Fix markup in index entries, and a couple of
705 code markups in the text.
706 * invoke.texi (Fortran Dialect Options)
707 (Error and Warning Options, Directory Options, Code Gen Options):
708 Likewise. Remove @code inside @smallexample.
710 2010-09-22 Joseph Myers <joseph@codesourcery.com>
712 * gfortranspec.c (lang_specific_driver): Handle OPT__version and
713 OPT__help instead of OPT_fversion and OPT_fhelp.
714 * lang.opt (-all-warnings, -assert, -assert=, -comments,
715 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
716 -dump, -dump=, -include-barrier, -include-directory,
717 -include-directory=, -include-directory-after,
718 -include-directory-after=, -include-prefix, -include-prefix=,
719 -no-line-commands, -no-standard-includes, -output, -output=,
720 -preprocess, -print-missing-file-dependencies, -trace-includes,
721 -undefine-macro, -undefine-macro=, -user-dependencies, -verbose,
722 -write-dependencies, -write-user-dependencies): New.
724 2010-09-21 Jason Blevins <jrblevin@sdf.org>
726 * intrinsics.texi (HYPOT, IMAGE_INDEX, BESSEL_JN, BESSEL_YN,
727 execute_command_line, IEOR, IOR, NORM2, NOT, NULL, PARITY):
730 2010-09-21 Mikael Morin <mikael@gcc.gnu.org>
733 * trans-array.c (gfc_conv_expr_descriptor): Calculate dim out of n and
737 * trans-array.c (gfc_conv_expr_descriptor): Unset full if we are
738 accessing dimensions in reversed order.
741 * trans-array.c (gfc_conv_expr_descriptor): Special case noncopying
742 intrinsic function call.
744 * trans-array.c (gfc_conv_expr_descriptor): Remove ss lookup.
745 Update asserts accordingly.
748 * trans.h (gfc_se): New field force_tmp.
749 * trans-expr.c (gfc_conv_procedure_call): Check for argument alias
750 and set parmse.force_tmp if some alias is found.
751 * trans-array.c (gfc_conv_expr_descriptor): Force a temporary creation
752 if se->force_tmp is set.
754 2010-09-20 Janus Weil <janus@gcc.gnu.org>
757 * trans-expr.c (gfc_conv_procedure_call): Fix pointer checking for
758 TBPs, PPCs and pointer/allocatable components.
760 2010-09-20 Paul Thomas <pault@gcc.gnu.org>
763 * simplify.c (is_constant_array_expr): Allow structure array
764 elements as well as constants.
765 (gfc_simplify_pack, gfc_simplify_reshape, gfc_simplify_spread,
766 gfc_simplify_transpose, gfc_simplify_unpack): Copy the derived
767 type of source to the result.
769 2010-09-19 Thomas Koenig <tkoenig@gcc.gnu.org>
771 * frontend-passes.c (gfc_expr_walker): Also
772 handle EXPR_SUBSTRING.
774 2010-09-19 Thomas Koenig <tkoenig@gcc.gnu.org>
776 * frontend-passes.c (gfc_expr_walker): Handle
777 constructors and references.
779 2010-09-16 Tobias Burnus <burnus@net-b.de>
782 * trans-types.c (create_fn_spec): New function.
783 (gfc_get_function_type): Call it.
785 2010-09-16 Jakub Jelinek <jakub@redhat.com>
787 * gfortran.h (walk_code_fn_t, walk_expr_fn_t): New types.
788 (gfc_expr_walker, gfc_code_walker): New prototypes.
789 * frontend-passes.c (gfc_expr_walker, gfc_code_walker): New functions.
790 (WALK_SUBEXPR, WALK_SUBEXPR_TAIL, WALK_SUBCODE): Define.
791 (optimize_namespace): Use gfc_code_walker.
792 (optimize_code, optimize_expr): Rewritten as gfc_code_walker hooks.
793 (optimize_expr_0, optimize_code_node,
794 optimize_actual_arglist): Removed.
795 (optimize_assignment): Don't call optimize_expr_0.
797 2010-09-16 Janus Weil <janus@gcc.gnu.org>
800 * interface.c (compare_parameter): Create vtab for actual argument,
801 instead of formal (if needed).
803 2010-09-15 Janus Weil <janus@gcc.gnu.org>
806 * resolve.c (resolve_allocate_expr): Do default initialization via
809 2010-09-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
811 * mathbuiltins.def: Do not defined huge_val built-in.
812 * trans-const.c (gfc_build_inf_or_huge): New function.
813 * trans-const.h (gfc_build_inf_or_huge): New prototype.
814 * f95-lang.c (gfc_init_builtin_functions): Don't defined
816 * trans-intrinsic.c (gfc_build_intrinsic_lib_fndecls): We don't
817 have functions of type (*) (void) anymore.
818 (gfc_conv_intrinsic_minmaxloc): Call gfc_build_inf_or_huge.
819 (gfc_conv_intrinsic_nearest): Call gfc_build_inf_or_huge instead
820 of generating a call to huge_val().
822 2010-09-11 Mikael Morin <mikael@gcc.gnu.org>
824 * gfortran.h (gfc_expr): Remove inline_noncopying_intrinsic attribute.
825 * dependency.c (gfc_check_dependency): Don't depend on
826 expr's inline_noncopying_intrinsic_attribute.
827 * dependency.c (gfc_check_argument_var_dependency,
828 gfc_check_argument_dependency): Ditto. Recursively check dependency
829 as NOT_ELEMENTAL in the non-copying (=transpose) case.
830 * trans-intrinsic.c (gfc_conv_intrinsic_function): Ditto.
831 * resolve.c (find_noncopying_intrinsics): Remove.
832 (resolve_function, resolve_call): Remove call to
833 find_noncopying_intrinsics.
835 * trans-array.c (gfc_conv_array_transpose): Remove.
836 (gfc_walk_subexpr): Make non-static. Move prototype...
837 * trans-array.h (gfc_walk_subexpr): ... here.
838 * trans-intrinsic.c (gfc_conv_intrinsic_function): Update transpose
840 (walk_inline_intrinsic_transpose, walk_inline_intrinsic_function,
841 gfc_inline_intrinsic_function_p): New.
842 (gfc_is_intrinsic_libcall): Return early in inline intrinsic case.
843 Remove transpose from the libcall list.
844 (gfc_walk_intrinsic_function): Special case inline intrinsic.
845 * trans.h (gfc_inline_intrinsic_function_p): New prototype.
847 2010-09-10 Mikael Morin <mikael@gcc.gnu.org>
849 * trans-expr.c (expr_is_variable): New function taking non-copying
850 intrinsic functions into account.
851 (gfc_trans_assignment_1): Use expr_is_variable.
853 2010-09-10 Mikael Morin <mikael@gcc.gnu.org>
855 * trans-array.c (gfc_conv_loop_setup): Access the shape along the
856 real array dimension instead of the scalarizer (loop) dimension.
858 2010-09-10 Mikael Morin <mikael@gcc.gnu.org>
860 * trans-array.c (gfc_conv_resolve_dependencies): Handle same-array
861 transposed references.
863 2010-09-10 Tobias Burnus <burnus@net-b.de>
866 * trans.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
867 build4_stat_loc): New inline functions.
868 (build1_loc, build2_loc, build3_loc, build4_loc): New macros.
869 (build1_v, build2_v, build3_v, build4_v): Use input_location
871 * trans-array.c (gfc_trans_scalarized_loop_end,
872 gfc_conv_array_parameter): Replace build[1-4] by build[1-4]_loc.
873 * trans.c (gfc_build_addr_expr, gfc_build_array_ref,
874 gfc_finish_wrapped_block): Ditto.
875 * trans-decl.c (gfc_init_default_dt, init_intent_out_dt): Ditto.
876 * trans-expr.c (gfc_conv_missing_dummy,
877 gfc_trans_alloc_subarray_assign, gfc_trans_zero_assign): Ditto.
878 * trans-openmp.c (gfc_omp_clause_default_ctor,
879 gfc_trans_omp_critical, gfc_trans_omp_parallel,
880 gfc_trans_omp_parallel_do, gfc_trans_omp_parallel_sections,
881 gfc_trans_omp_parallel_workshare, gfc_trans_omp_sections
882 gfc_trans_omp_single, gfc_trans_omp_task,
883 gfc_trans_omp_workshare): Ditto.
885 2010-09-09 Steven G. Kargl <kargl@gcc.gnu.org>
887 * fortran/expr.c (check_inquiry): OPTIONAL attribute is not allowed
888 for dummy argument that appears in a specification statement.
890 2010-09-09 Mikael Morin <mikael@gcc.gnu.org>
892 * trans-array.c (gfc_get_array_ref_dim): New function.
893 (gfc_trans_create_temp_array): Reconstruct array
894 bounds from loop bounds. Use array bounds instead of loop bounds.
896 2010-09-09 Mikael Morin <mikael@gcc.gnu.org>
898 * trans-array.c (gfc_set_loop_bounds_from_array_spec):
899 Get the array dimension from the dim array.
901 2010-09-09 Mikael Morin <mikael@gcc.gnu.org>
903 * trans-array.c (gfc_trans_preloop_setup): Unconditionally use the
904 dim array to get the stride in the innermost loop.
906 2010-09-09 Mikael Morin <mikael@gcc.gnu.org>
908 * trans-array.c (gfc_trans_create_temp_array): Don't set dim array.
909 (gfc_conv_loop_setup, gfc_walk_function_expr): Set dim array.
910 * trans-intrinsic.c (gfc_walk_intrinsic_libfunc): Ditto.
912 2010-09-09 Mikael Morin <mikael@gcc.gnu.org>
914 * trans-array.c (gfc_trans_create_temp_array): Assert loop dimension
915 and info dimension are the same. Loop over loop dimension.
916 * trans-stmt.c (gfc_conv_elemental_dependencies): Set loop dimension
918 2010-09-09 Mikael Morin <mikael@gcc.gnu.org>
920 * trans-array.c (gfc_conv_array_transpose): Change generated descriptor
923 2010-09-09 Tobias Burnus <burnus@net-b.de>
926 * intrincic.texi (FGET, FGETC, FPUT, FPUTC, FSTAT, GETCWD, KILL,
927 STAT): Show also syntax for the function version.
928 * intrinsic.c (add_sym_1s_intent, add_sym_2s_intent,
929 add_sym_3s_intent): Remove function.
930 (add_sym_1s, add_sym_2s, add_sym_3s): Take always the intent
932 (add_sym_2_intent): New function.
933 (add_functions): Set intent for functions which modify
934 the argument: fstat, fgetc, fget, hostnm, lstat, stat. Change
935 argument name of hostnm from "a" to "c"
936 (add_subroutines): Change add_sym_*s_intent to
937 add_sym_*s and add intent to the add_sym_*s calls.
939 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
942 * intrinsic.c (add_functions): Add B{G,L}{E,T}, DSHIFT{L,R},
943 MASK{L,R}, MERGE_BITS and SHIFT{A,L,R}.
944 * gfortran.h: Define ISYM values for above intrinsics.
945 * intrinsic.h (gfc_check_bge_bgt_ble_blt, gfc_check_dshift,
946 gfc_check_mask, gfc_check_merge_bits, gfc_check_shift,
947 gfc_simplify_bge, gfc_simplify_bgt, gfc_simplify_ble,
948 gfc_simplify_blt, gfc_simplify_dshiftl, gfc_simplify_dshiftr,
949 gfc_simplify_lshift, gfc_simplify_maskl, gfc_simplify_maskr,
950 gfc_simplify_merge_bits, gfc_simplify_rshift,
951 gfc_simplify_shifta, gfc_simplify_shiftl, gfc_simplify_shiftr,
952 gfc_resolve_dshift, gfc_resolve_mask, gfc_resolve_merge_bits,
953 gfc_resolve_shift): New prototypes.
954 * iresolve.c (gfc_resolve_dshift, gfc_resolve_mask,
955 gfc_resolve_merge_bits, gfc_resolve_shift): New functions.
956 * check.c (gfc_check_bge_bgt_ble_blt, gfc_check_dshift,
957 gfc_check_mask, gfc_check_merge_bits, gfc_check_shift): New
959 * trans-intrinsic.c (gfc_conv_intrinsic_dshift,
960 gfc_conv_intrinsic_bitcomp, gfc_conv_intrinsic_shift,
961 gfc_conv_intrinsic_merge_bits, gfc_conv_intrinsic_mask): New
963 (gfc_conv_intrinsic_function): Call above static functions.
964 * intrinsic.texi: Document new intrinsics.
965 * simplify.c (gfc_simplify_bge, gfc_simplify_bgt, gfc_simplify_ble,
966 gfc_simplify_blt, gfc_simplify_dshiftl, gfc_simplify_dshiftr,
967 gfc_simplify_lshift, gfc_simplify_maskl, gfc_simplify_maskr,
968 gfc_simplify_merge_bits, gfc_simplify_rshift,
969 gfc_simplify_shifta, gfc_simplify_shiftl, gfc_simplify_shiftr):
972 2010-09-08 Jakub Jelinek <jakub@redhat.com>
974 * frontend-passes.c (optimize_code_node): Walk block chain by default.
977 * trans-openmp.c (gfc_trans_omp_do): Store exit/cycle labels on code
978 instead of code->block.
981 * openmp.c (resolve_omp_do): Report not enough do loops for
982 collapse even if block->next is NULL.
984 2010-09-07 Thomas Koenig <tkoenig@gcc.gnu.org>
987 * dependency.c (gfc_deb_compare_expr): Take missing optional
988 arguments into account.
990 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
992 * trans.h (gfor_fndecl_clz128, gfor_fndecl_ctz128): Remove.
993 * trans-decl.c (gfor_fndecl_clz128, gfor_fndecl_ctz128): Remove.
994 (gfc_build_intrinsic_function_decls): Don't build the
995 gfor_fndecl_clz128 and gfor_fndecl_ctz128.
996 * trans-intrinsic.c (gfc_conv_intrinsic_leadz,
997 gfc_conv_intrinsic_trailz): Generate inline arithmetic instead
998 of calling clz128/ctz128 library functions.
1000 2010-09-07 Jan Hubicka <jh@suse.cz>
1002 * trans-expr.c (gfc_conv_initializer): Set STATIC flags for
1005 2010-09-07 Tobias Burnus <burnus@net-b.de>
1008 * intrinsic.texi (COS): Remove superfluous "n".
1010 2010-09-07 Tobias Burnus <burnus@net-b.de>
1013 * trans-array.c (gfc_conv_descriptor_data_get,
1014 gfc_conv_descriptor_data_set, gfc_conv_descriptor_data_addr,
1015 gfc_conv_descriptor_offset, gfc_conv_descriptor_dtype,
1016 gfc_conv_descriptor_dimension, gfc_conv_descriptor_stride,
1017 gfc_conv_descriptor_lbound, gfc_conv_descriptor_ubound,
1018 gfc_conv_shift_descriptor_lbound,
1019 gfc_set_loop_bounds_from_array_spec,
1020 gfc_trans_allocate_array_storage, gfc_trans_create_temp_array,
1021 gfc_conv_array_transpose, gfc_get_iteration_count,
1022 gfc_grow_array, gfc_trans_array_ctor_element,
1023 gfc_trans_array_constructor_subarray,
1024 gfc_trans_array_constructor_value,
1025 constant_array_constructor_loop_size, gfc_trans_array_constructor,
1026 gfc_set_vector_loop_bounds, gfc_trans_array_bound_check,
1027 gfc_conv_array_index_offset, gfc_conv_scalarized_array_ref,
1028 gfc_conv_array_ref, gfc_trans_preloop_setup,
1029 gfc_trans_scalarized_loop_end, gfc_conv_ss_startstride,
1030 gfc_conv_loop_setup, gfc_conv_array_extent_dim,
1031 gfc_conv_descriptor_size, gfc_array_init_size,
1032 gfc_array_allocate, gfc_array_deallocate,
1033 gfc_trans_array_bounds, gfc_trans_auto_array_allocation,
1034 gfc_trans_dummy_array_bias, gfc_get_dataptr_offset,
1035 get_array_charlen, gfc_conv_expr_descriptor,
1036 array_parameter_size, gfc_conv_array_parameter,
1037 gfc_trans_dealloc_allocated, get_full_array_size,
1038 duplicate_allocatable,
1039 structure_alloc_comps): Change fold_build[0-9] to
1040 fold_build[0-9]_loc.
1041 (duplicate_allocatable, structure_alloc_comps,
1042 gfc_duplicate_allocatable): Add space after function name.
1044 2010-09-07 Mikael Morin <mikael@gcc.gnu.org>
1046 * trans-stmt.c (gfc_trans_character_select): Be conversion-safe while
1047 checking string length value.
1048 * trans-intrinsic.c (gfc_conv_intrinsic_char): Build integer using
1049 gfc_charlen_type_node type.
1052 * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Convert string
1053 length to gfc_charlen_type_node.
1055 2010-09-06 Thomas Koenig <tkoenig@gcc.gnu.org>
1058 * frontend-passes.c (optimize_binop_array_assignment): New
1060 (optimize_assignment): Call it.
1062 2010-09-06 Thomas Koenig <tkoenig@gcc.gnu.org>
1065 * trans-expr.c (gfc_conv_substring): If start and end
1066 of the string reference are equal, set the length to one.
1068 2010-09-06 Tobias Burnus <burnus@net-b.de>
1071 * dump-parse-tree.c (gfc_debug_expr): Use stderr instead of stdout.
1073 2010-09-06 Tobias Burnus <burnus@net-b.de>
1076 * dump-parse-tree.c (gfc_debug_expr): New function.
1078 2010-09-06 Tobias Burnus <burnus@net-b.de>
1081 * intrinsic.c (add_functions): Support IALL, IANY, IPARITY.
1082 (check_specific): Special case for those intrinsics.
1083 * gfortran.h (gfc_isym_id): Add new intrinsics
1084 * intrinsic.h (gfc_check_transf_bit_intrins,
1085 gfc_simplify_iall, gfc_simplify_iany, gfc_simplify_iparity,
1086 gfc_resolve_iall, gfc_resolve_iany, gfc_resolve_iparity):
1088 * iresolve.c (gfc_resolve_iall, gfc_resolve_iany,
1089 gfc_resolve_iparity, resolve_transformational): New functions.
1090 (gfc_resolve_product, gfc_resolve_sum,
1091 gfc_resolve_parity): Use resolve_transformational.
1092 * check.c (gfc_check_transf_bit_intrins): New function.
1093 * simplify.c (gfc_simplify_iall, gfc_simplify_iany,
1094 gfc_simplify_iparity, do_bit_any, do_bit_ior,
1095 do_bit_xor, simplify_transformation): New functions.
1096 (gfc_simplify_all, gfc_simplify_any, gfc_simplify_parity,
1097 gfc_simplify_sum, gfc_simplify_product): Use simplify_transformation.
1098 * trans-intrinsic.c (gfc_conv_intrinsic_arith,
1099 gfc_conv_intrinsic_function, gfc_is_intrinsic_libcall):
1100 Handle IALL, IANY and IPARITY intrinsics.
1101 * intrinsic.texi (IMAGE_INDEX): Move up to fix alphabetic
1103 (IALL, IANY, IPARITY): Document new intrinsics.
1105 2010-09-05 Tobias Burnus <burnus@net-b.de>
1108 * f95-lang.c (gfc_truthvalue_conversion): Use
1109 fold_build[0-9]_loc instead of fold_build[0-9].
1110 * convert.c (convert): Ditto.
1111 * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
1112 build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
1113 gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
1114 gfc_conv_intrinsic_conjg, gfc_trans_same_strlen_check,
1115 gfc_conv_intrinsic_bound, gfc_conv_intrinsic_abs,
1116 gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
1117 gfc_conv_intrinsic_dim, gfc_conv_intrinsic_sign,
1118 gfc_conv_intrinsic_dprod, gfc_conv_intrinsic_char,
1119 gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
1120 gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
1121 gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_anyall,
1122 gfc_conv_intrinsic_count, gfc_conv_intrinsic_arith,
1123 gfc_conv_intrinsic_dot_product, gfc_conv_intrinsic_minmaxloc,
1124 gfc_conv_intrinsic_minmaxval, gfc_conv_intrinsic_btest,
1125 gfc_conv_intrinsic_bitop, gfc_conv_intrinsic_not,
1126 gfc_conv_intrinsic_singlebitop, gfc_conv_intrinsic_ibits,
1127 gfc_conv_intrinsic_rlshift, gfc_conv_intrinsic_ishft,
1128 gfc_conv_intrinsic_ishftc, gfc_conv_intrinsic_leadz,
1129 gfc_conv_intrinsic_trailz, gfc_conv_intrinsic_popcnt_poppar,
1130 gfc_conv_intrinsic_ichar, gfc_conv_has_intvalue,
1131 gfc_conv_intrinsic_merge, gfc_conv_intrinsic_spacing,
1132 gfc_conv_intrinsic_rrspacing, gfc_conv_intrinsic_size,
1133 size_of_string_in_bytes, gfc_conv_intrinsic_sizeof,
1134 gfc_conv_intrinsic_storage_size, gfc_conv_intrinsic_strcmp,
1135 gfc_conv_intrinsic_transfer, gfc_conv_allocated,
1136 gfc_conv_associated, gfc_conv_same_type_as,
1137 gfc_conv_intrinsic_trim, gfc_conv_intrinsic_repeat): Ditto.
1139 2010-09-04 Tobias Burnus <burnus@net-b.de>
1142 * resolve.c (resolve_fl_namelist): Change constraint checking
1143 order to prevent endless loop.
1145 2010-09-04 Janus Weil <janus@gcc.gnu.org>
1148 * resolve.c (resolve_allocate_expr): Generate default initializers
1149 already at this point, resolve them and put them into expr3, ...
1150 * trans-stmt.c (gfc_trans_allocate): ... instead of waiting until
1153 2010-09-03 Tobias Burnus <burnus@net-b.de>
1156 * trans-intrinsic.c (gfc_conv_intrinsic_sign,
1157 gfc_conv_intrinsic_leadz): Use build_call_expr_loc instead
1159 * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
1160 gfc_conv_string_length, gfc_conv_substring,
1161 gfc_conv_component_ref, gfc_conv_unary_op, gfc_conv_powi,
1162 gfc_conv_cst_int_power, gfc_conv_string_tmp, gfc_conv_concat_op,
1163 gfc_conv_expr_op, gfc_build_compare_string,
1164 gfc_set_interface_mapping_bounds, gfc_conv_subref_array_arg,
1165 gfc_conv_derived_to_class, conv_isocbinding_procedure,
1166 gfc_conv_procedure_call, fill_with_spaces,
1167 gfc_trans_string_copy, gfc_trans_alloc_subarray_assign,
1168 gfc_trans_structure_assign, gfc_trans_pointer_assignment,
1169 gfc_trans_scalar_assign, gfc_trans_zero_assign,
1170 gfc_trans_array_copy, gfc_trans_array_constructor_copy): Change
1171 fold_build[0-9] to fold_build[0-9]_loc.
1172 * trans-io.c (set_parameter_const, set_parameter_value,
1173 set_parameter_ref, gfc_convert_array_to_string, set_string,
1174 set_internal_unit, io_result, set_error_locus,
1175 nml_get_addr_expr, build_dt): Ditto.
1176 * trans-openmp.c (gfc_omp_clause_default_ctor,
1177 gfc_omp_clause_copy_ctor, gfc_omp_clause_assign_op,
1178 gfc_trans_omp_array_reduction, gfc_trans_omp_atomic,
1179 gfc_trans_omp_do): Ditto.
1180 * trans.c (gfc_add_modify, gfc_build_addr_expr,
1181 gfc_build_array_ref, gfc_trans_runtime_error_vararg,
1182 gfc_trans_runtime_check, gfc_call_malloc,
1183 gfc_allocate_with_status, gfc_allocate_array_with_status,
1184 gfc_call_free, gfc_deallocate_with_status,
1185 gfc_call_realloc): Ditto.
1187 2010-09-03 Thomas Koenig <tkoenig@gcc.gnu.org>
1190 * dependency.c (gfc_deb_compare_expr): Compare equal for equal
1191 arglists for pure user functions, or for those intrinsic
1192 functions which are also pure.
1193 * intrinsics.c (add_conv): Mark conversion functions as pure.
1194 (add_char_conversions): Likewise.
1196 2010-09-03 Daniel Kraft <d@domob.eu>
1199 * resolve.c (resolve_actual_arglist): Allow internal procedure
1200 as actual argument with Fortran 2008.
1202 2010-09-03 Daniel Kraft <d@domob.eu>
1205 * gfortran.h (struct gfc_code): Renamed `whichloop' to
1206 `which_construct' as this is no longer restricted to loops.
1207 * parse.h (struct gfc_state_data): New field `construct'.
1208 * match.c (match_exit_cycle): Handle EXIT from non-loops.
1209 * parse.c (push_state): Set `construct' field.
1210 * resolve.c (resolve_select_type): Extend comment.
1211 * trans-stmt.c (gfc_trans_if): Add exit label.
1212 (gfc_trans_block_construct), (gfc_trans_select): Ditto.
1213 (gfc_trans_simple_do): Store exit/cycle labels on the gfc_code itself.
1214 (gfc_trans_do), (gfc_trans_do_while): Ditto.
1215 (gfc_trans_exit): Use new name `which_construct' instead of `whichloop'.
1216 (gfc_trans_cycle): Ditto.
1217 (gfc_trans_if_1): Use fold_build3_loc instead of fold_build3.
1219 2010-09-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1221 * trans-intrinsic.c (gfc_conv_intrinsic_aint): Fix whitespace.
1222 (gfc_conv_intrinsic_ishft): Only evaluate arguments once.
1223 (gfc_conv_intrinsic_ishftc): Only evaluate arguments once.
1224 * intrinsic.texi (RSHIFT): Fix documentation.
1226 2010-09-02 Tobias Burnus <burnus@net-b.de>
1229 * trans-common.c (create_common): Change build[0-9] to
1231 * trans-const.c (gfc_conv_constant_to_tree,
1232 gfc_conv_constant_to_tree): Ditto.
1233 * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
1234 gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
1235 add_argument_checking, create_main_function,
1236 gfc_generate_return): Ditto.
1237 * trans-types.c (gfc_get_dtype, gfc_get_array_type_bounds): Ditto.
1238 * trans-stmt.c (allocate_temp_for_forall_nest_1,
1239 compute_inner_temp_size, compute_overall_iter_number,
1240 generate_loop_for_rhs_to_temp, generate_loop_for_temp_to_lhs,
1241 gfc_conv_elemental_dependencies, gfc_do_allocate,
1242 gfc_evaluate_where_mask, gfc_trans_allocate,
1243 gfc_trans_arithmetic_if, gfc_trans_call,
1244 gfc_trans_character_select, gfc_trans_deallocate,
1245 gfc_trans_do, gfc_trans_do_while, gfc_trans_forall_1,
1246 gfc_trans_forall_loop, gfc_trans_goto, gfc_trans_if_1,
1247 gfc_trans_integer_select, gfc_trans_logical_select,
1248 gfc_trans_pointer_assign_need_temp, gfc_trans_return,
1249 gfc_trans_simple_do, gfc_trans_sync, gfc_trans_where_2,
1250 gfc_trans_where_assign) Ditto.
1252 2010-09-02 Janus Weil <janus@gcc.gnu.org>
1255 * resolve.c (resolve_symbol): Correct check for attributes of CLASS
1258 2010-09-02 Tobias Burnus <burnus@net-b.de>
1261 * resolve.c (apply_default_init): Mark symbol as referenced,
1262 if it is initialized.
1263 (resolve_symbol): Change intialized check for BT_DERIVED such
1264 that also function results get initialized; remove now obsolete
1265 gfc_set_sym_referenced for BT_CLASS.
1267 2010-09-01 Janus Weil <janus@gcc.gnu.org>
1270 * class.c (gfc_find_derived_vtab): Add component '$def_init'.
1271 * resolve.c (resolve_allocate_expr): Defer handling of default
1272 initialization to 'gfc_trans_allocate'.
1273 (apply_default_init,resolve_symbol): Handle polymorphic dummies.
1274 (resolve_fl_derived): Suppress error messages for vtypes.
1275 * trans-stmt.c (gfc_trans_allocate): Handle initialization via
1276 polymorphic MOLD expression.
1277 * trans-expr.c (gfc_trans_class_init_assign): Now only used for
1278 dummy initialization.
1280 2010-09-01 Tobias Burnus <burnus@net-b.de>
1282 * gfortran.texi (preprocessing): Update URL to COCO.
1284 2010-09-01 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1286 * trans-intrinsic.c (gfc_build_intrinsic_lib_fndecls): Resize
1287 array quad_decls. Remove unnecessary assignment.
1289 2010-09-01 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1291 * trans-expr.c (gfc_conv_power_op): Handle floating-point types
1292 other than long double.
1293 * mathbuiltins.def: Add builtins from the POW and CPOW family.
1294 * trans.h (gfc_builtin_decl_for_float_kind): New prototype.
1295 * trans-intrinsic.c (gfc_builtin_decl_for_float_kind): Add gfc_
1296 prefix to function name.
1297 (gfc_build_intrinsic_lib_fndecls): Add cpow prototype.
1298 (gfc_conv_intrinsic_aint): Use gfc_builtin_decl_for_float_kind
1300 (gfc_conv_intrinsic_exponent): Likewise.
1301 (gfc_conv_intrinsic_abs): Likewise.
1302 (gfc_conv_intrinsic_mod): Likewise.
1303 (gfc_conv_intrinsic_sign): Likewise.
1304 (gfc_conv_intrinsic_arith): Likewise.
1305 (gfc_conv_intrinsic_fraction): Likewise.
1306 (gfc_conv_intrinsic_nearest): Likewise.
1307 (gfc_conv_intrinsic_spacing): Likewise.
1308 (gfc_conv_intrinsic_rrspacing): Likewise.
1309 (gfc_conv_intrinsic_scale): Likewise.
1310 (gfc_conv_intrinsic_set_exponent): Likewise.
1312 2010-09-01 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1314 * intrinsic.c: Add EXECUTE_COMMAND_LINE intrinsic.
1315 * intrinsic.h (gfc_resolve_execute_command_line): New function.
1316 * iresolve.c (gfc_resolve_execute_command_line): New function.
1317 * gfortran.h (GFC_ISYM_EXECUTE_COMMAND_LINE): New value.
1318 * intrinsic.texi: Document EXECUTE_COMMAND_LINE.
1320 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1323 * f95-lang.c (gfc_init_builtin_functions): Define popcount{,l,ll}
1324 and parity{,l,ll} builtins.
1325 * trans-intrinsic.c (gfc_conv_intrinsic_popcnt_poppar): New function.
1326 (gfc_conv_intrinsic_function): Call above new functions.
1327 * simplify.c (gfc_simplify_popcnt, gfc_simplify_poppar): New
1329 * intrinsic.texi: Document POPCNT and POPPAR.
1331 2010-08-30 Janus Weil <janus@gcc.gnu.org>
1334 * resolve.c (resolve_structure_cons): Handle pointer-valued PPCs.
1336 2010-08-30 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1338 * Make-lang.in: Add frontend-passes.o dependencies.
1340 2010-08-29 Janus Weil <janus@gcc.gnu.org>
1343 * resolve.c (resolve_structure_cons): For derived types, make sure the
1344 type has been resolved.
1345 (resolve_typebound_procedures): Make sure the vtab has been generated.
1347 2010-08-29 Janus Weil <janus@gcc.gnu.org>
1350 * match.c (gfc_match_select_type): Give the associate-name the
1351 FL_VARIABLE attribute.
1353 2010-08-28 Steven G. Kargl <kargl@gcc.gnu.org>
1355 * simplify.c (gfc_simplify_bessel_n2): Fix indention
1358 2010-08-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1361 * trans-types.c (gfc_init_kinds): Disable TFmode.
1363 2010-08-27 Janus Weil <janus@gcc.gnu.org>
1366 * match.c (gfc_match_allocate): Avoid double free on error.
1368 2010-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1371 * gfortran.h (gfc_real_info): Add c_float128 field.
1372 * mathbuiltins.def: Indicate which builtins are const.
1373 * trans-types.h (float128_type_node, complex_float128_type_node,
1374 gfc_real16_is_float128): New variables.
1375 * trans-types.c (float128_type_node, complex_float128_type_node,
1376 gfc_real16_is_float128): New variables.
1377 (gfc_init_kinds): Allow TFmode.
1378 (gfc_build_real_type): Mark __float128 types as such.
1379 (gfc_init_types): Initialize float128_type_node and
1380 complex_float128_type_node
1381 * f95-lang.c (gfc_init_builtin_functions): Adjust for new
1382 argument of OTHER_BUILTIN macro.
1383 * trans-intrinsic.c (gfc_intrinsic_map_t): Likewise.
1384 (builtin_decl_for_precision): Special case for __float128.
1385 (builtin_decl_for_float_kind): Likewise.
1386 (define_quad_builtin): New function.
1387 (gfc_build_intrinsic_lib_fndecls): Create all __float128
1388 library decls if necessary. Store them in the real16_decl and
1389 complex16_decl builtin map fields.
1390 (gfc_get_intrinsic_lib_fndecl): Handle q-suffixed __float128
1391 library function names.
1393 2010-08-27 Tobias Burnus <burnus@net-b.de>
1396 * gcc/fortran/intrinsic.c (add_functions): Add norm2 and parity.
1397 * gcc/fortran/intrinsic.h (gfc_check_norm2, gfc_check_parity):
1398 gfc_simplify_norm2, gfc_simplify_parity, gfc_resolve_norm2,
1399 gfc_resolve_parity): New prototypes.
1400 * gcc/fortran/gfortran.h (gfc_isym_id): New enum items
1401 GFC_ISYM_NORM2 and GFC_ISYM_PARITY.
1402 * gcc/fortran/iresolve.c (gfc_resolve_norm2,
1403 gfc_resolve_parity): New functions.
1404 * gcc/fortran/check.c (gfc_check_norm2, gfc_check_parity):
1406 * gcc/fortran/trans-intrinsic.c (gfc_conv_intrinsic_arith,
1407 gfc_conv_intrinsic_function): Handle NORM2 and PARITY.
1408 * gcc/fortran/intrinsic.texi (NORM2, PARITY): Add.
1409 * gcc/fortran/simplify.c (simplify_transformation_to_array):
1410 Add post-processing opterator.
1411 (gfc_simplify_all, gfc_simplify_any, gfc_simplify_count,
1412 gfc_simplify_product, gfc_simplify_sum): Update call.
1413 (add_squared, do_sqrt, gfc_simplify_norm2, do_xor,
1414 gfc_simplify_parity): New functions.
1416 2010-08-27 Janus Weil <janus@gcc.gnu.org>
1419 * match.c (select_type_set_tmp): Add the possibility to reset the
1421 (gfc_match_class_is): Reset the temporary in CLASS DEFAULT clauses.
1423 2010-08-27 Thomas Koenig <tkoenig@gcc.gnu.org>
1426 * dependency.c (check_section_vs_section): Single test for
1427 identical strides which takes into account that only one
1428 of the strides may be NULL.
1430 2010-08-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1433 * primary.c (match_hollerith_constant): Calculate padding needed to
1434 fill default integer and allocate string for that size. Set pad bytes
1436 * gfortran.h: Add hollerith pad value to type spec union.
1437 * data.c (create_character_initializer): Fix spelling of function name.
1438 Use hollerith pad value to calculate length.
1439 * arith.c (hollerith2representation); Use hollerith pad value to
1442 2010-08-26 Daniel Kraft <d@domob.eu>
1447 * gfortran.h (struct gfc_association_list): New flag `dangling'.
1448 (gfc_build_block_ns): Declared here...
1449 * parse.h (gfc_build_block_ns): ...instead of here.
1450 * trans.h (gfc_process_block_locals): Expect additionally the
1451 gfc_association_list of BLOCK (if present).
1452 * match.c (select_type_set_tmp): Create sym->assoc for temporary.
1453 * resolve.c (resolve_variable): Only check for invalid *array*
1454 references on associate-names.
1455 (resolve_assoc_var): New method with code previously in resolve_symbol.
1456 (resolve_select_type): Use association to give the selector and
1457 temporaries their values instead of ordinary assignment.
1458 (resolve_fl_var_and_proc): Allow CLASS associate-names.
1459 (resolve_symbol): Use new `resolve_assoc_var' instead of inlining here.
1460 * trans-stmt.c (gfc_trans_block_construct): Pass association-list
1461 to `gfc_process_block_locals' to match new interface.
1462 * trans-decl.c (gfc_get_symbol_decl): Don't defer associate-names
1464 (gfc_process_block_locals): Defer them rather here when linked to
1465 from the BLOCK's association list.
1467 2010-08-25 Jakub Jelinek <jakub@redhat.com>
1469 * trans-decl.c (gfc_build_intrinsic_function_decls): Set
1470 TREE_NOTHROW on fndecls that can't throw. Set
1471 TREE_READONLY on gfor_fndecl_math_ishftc{4,8,16}.
1472 (gfc_build_builtin_function_decls): Set TREE_NOTHROW on
1473 gfor_fndecl_associated.
1475 2010-08-23 Mikael Morin <mikael@gcc.gnu.org>
1478 * frontend-passes.c (optimize_equality): Don't optimize array equality
1480 2010-08-23 Janus Weil <janus@gcc.gnu.org>
1483 * resolve.c (resolve_procedure_interface): New function split off from
1485 (resolve_formal_arglist): Call it here ...
1486 (resolve_symbol): ... and here.
1488 2010-08-22 Joseph Myers <joseph@codesourcery.com>
1490 * Make-lang.in (gfortranspec.o): Update dependencies.
1491 * gfortranspec.c: Include coretypes.h before gcc.h. Include
1493 (MATH_LIBRARY, FORTRAN_LIBRARY): Remove initial "-l".
1494 (ADD_ARG_LIBGFORTRAN, Option, lookup_option): Remove.
1495 (g77_xargc): Make unsigned.
1496 (g77_xargv): Change to g77_x_decoded_options.
1497 (g77_newargc): Make unsigned.
1498 (g77_newargv): Change to g77_new_decoded_options.
1499 (strings_same, options_same): New.
1500 (append_arg): Use cl_decoded_option structures.
1501 (append_option): New.
1502 (add_arg_libgfortran): New.
1503 (lang_specific_driver): Use cl_decoded_option structures.
1505 2010-08-21 Janus Weil <janus@gcc.gnu.org>
1509 * class.c (add_proc_comp): Add static initializer for PPCs.
1510 (add_procs_to_declared_vtab): Modified comment.
1511 * module.c (mio_component): Add argument 'vtype'. Don't read/write the
1512 initializer if the component is part of a vtype.
1513 (mio_component_list): Add argument 'vtype', pass it on to
1515 (mio_symbol): Modified call to 'mio_component_list'.
1516 * trans.h (gfc_conv_initializer): Modified prototype.
1517 (gfc_trans_assign_vtab_procs): Removed.
1518 * trans-common.c (create_common): Modified call to
1519 'gfc_conv_initializer'.
1520 * trans-decl.c (gfc_get_symbol_decl,get_proc_pointer_decl,
1521 gfc_emit_parameter_debug_info): Modified call to
1522 'gfc_conv_initializer'.
1523 (build_function_decl): Remove assertion.
1524 * trans-expr.c (gfc_conv_derived_to_class,gfc_trans_class_assign):
1525 Removed call to 'gfc_trans_assign_vtab_procs'.
1526 (gfc_conv_initializer): Add argument 'procptr'.
1527 (gfc_conv_structure): Modified call to 'gfc_conv_initializer'.
1528 (gfc_trans_assign_vtab_procs): Removed.
1529 * trans-stmt.c (gfc_trans_allocate): Removed call to
1530 'gfc_trans_assign_vtab_procs'.
1532 2010-08-21 Tobias Burnus <burnus@net-b.de>
1536 * intrinsic.c (add_sym): Init value attribute.
1537 (set_attr_value): New function.
1538 (add_functions) Use it and add JN/YN resolvers.
1539 * symbol.c (gfc_copy_formal_args_intr): Copy value attr.
1540 * intrinsic.h (gfc_resolve_bessel_n2): New prototype.
1541 * gfortran.h (gfc_intrinsic_arg): Add value attribute.
1542 * iresolve.c (gfc_resolve_bessel_n2): New function.
1543 * trans-intrinsic.c (gfc_get_symbol_for_expr): Create
1545 (gfc_conv_intrinsic_function,gfc_is_intrinsic_libcall):
1546 Add GFC_ISYM_JN2/GFC_ISYM_YN2 as case value.
1547 * simplify.c (): For YN set to -INF if previous values
1549 * trans-expr.c (gfc_conv_procedure_call): Don't crash
1551 * iresolve.c (gfc_resolve_extends_type_of): Set the
1552 type of the dummy argument to the one of the actual.
1554 2010-08-20 Joseph Myers <joseph@codesourcery.com>
1556 * lang.opt (MD, MMD): Use NoDriverArg instead of NoArgDriver.
1558 2010-08-20 Joseph Myers <joseph@codesourcery.com>
1560 * gfortranspec.c (lang_specific_driver): Refer to -lgfortran in
1563 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1565 * trans-openmp.c: Use FOR_EACH_VEC_ELT.
1567 2010-08-19 Daniel Kraft <d@domob.eu>
1571 * trans.h (struct gfc_se): New flag `byref_noassign'.
1572 * trans-array.h (gfc_conv_shift_descriptor_lbound): New method.
1573 (gfc_conv_array_extent_dim), (gfc_conv_descriptor_size): New methods.
1574 * expr.c (gfc_check_pointer_assign): Allow bounds and rank remapping
1575 and check for compile-time errors with those.
1576 * trans-decl.c (trans_associate_var): Use new routine
1577 `gfc_conv_shift_descriptor_lbound' instead of doing it manually.
1578 * trans-array.c (gfc_conv_shift_descriptor_lbound): New method.
1579 (gfc_conv_array_extent_dim), (gfc_conv_descriptor_size): New methods.
1580 (gfc_array_init_size): Use new `gfc_conv_array_extent_dim'.
1581 (gfc_conv_expr_descriptor): Handle new flag `byref_noassign'.
1582 * trans-expr.c (gfc_trans_pointer_assignment): Handle bounds and
1583 rank remapping for assignment.
1585 2010-08-19 Tobias Burnus <burnus@net-b.de>
1587 * intrinsic.texi (Bessel_jn, Bessel_yn): Fix typo.
1588 * * simplify.c (gfc_simplify_bessel_yn): Change recursive
1591 2010-08-19 Tobias Burnus <burnus@net-b.de>
1595 * check.c (gfc_check_bessel_n2): New function.
1596 * gfortran.h (gfc_isym_id): Add GFC_ISYM_JN2 and GFC_ISYM_YN2.
1597 * intrinsic.c (add_functions): Add transformational version
1598 of the Bessel_jn/yn intrinsics.
1599 * intrinsic.h (gfc_check_bessel_n2,gfc_simplify_bessel_jn2,
1600 gfc_simplify_bessel_yn2): New prototypes.
1601 * intrinsic.texi (Bessel_jn, Bessel_yn): Document
1602 transformational variant.
1603 * simplify.c (gfc_simplify_bessel_jn, gfc_simplify_bessel_yn):
1604 Check for negative order.
1605 (gfc_simplify_bessel_n2,gfc_simplify_bessel_jn2,
1606 gfc_simplify_bessel_yn2): New functions.
1608 2010-08-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1611 * resolve.c (resolve_transfer): Traverse operands and set expression
1612 to be checked to a non EXPR_OP type.
1614 2010-08-19 Janus Weil <janus@gcc.gnu.org>
1617 * gfortran.h (gfc_add_save): Modified prototype.
1618 * decl.c (add_init_expr_to_sym): Defer checking of proc pointer init.
1619 (match_pointer_init): New function to match F08 pointer initialization.
1620 (variable_decl,match_procedure_decl,match_ppc_decl): Use
1621 'match_pointer_init'.
1622 (match_attr_spec): Module variables are implicitly SAVE.
1623 (gfc_match_save): Modified call to 'gfc_add_save'.
1624 * expr.c (gfc_check_assign_symbol): Extra checks for pointer
1626 * primary.c (gfc_variable_attr): Handle SAVE attribute.
1627 * resolve.c (resolve_structure_cons): Add new argument and do pointer
1628 initialization checks.
1629 (gfc_resolve_expr): Modified call to 'resolve_structure_cons'.
1630 (resolve_values): Call 'resolve_structure_cons' directly with init arg.
1631 (resolve_fl_variable): Handle SAVE_IMPLICIT.
1632 * symbol.c (gfc_add_save,gfc_copy_attr,save_symbol): Handle
1634 * trans-decl.c (gfc_create_module_variable): Module variables with
1635 TARGET can already exist.
1636 * trans-expr.c (gfc_conv_variable): Check for 'current_function_decl'.
1637 (gfc_conv_initializer): Implement non-NULL pointer
1640 2010-08-18 Tobias Burnus <burnus@net-b.de>
1643 * intrinsic.texi (selected_char_kind): Document ISO_10646
1646 2010-08-17 Jakub Jelinek <jakub@redhat.com>
1649 * trans-decl.c (build_library_function_decl_1): Chain on
1650 void_list_node instead of creating a new TREE_LIST.
1651 * trans-intrinsic.c (gfc_get_intrinsic_lib_fndecl): Likewise.
1652 * trans-types.c (gfc_get_function_type): Likewise. Set
1653 typelist to void_list_node for the main program.
1655 2010-08-17 Daniel Kraft <d@domob.eu>
1658 * gfortran.h (struct gfc_association_list): New member `where'.
1659 (gfc_is_associate_pointer) New method.
1660 * match.c (gfc_match_associate): Remember locus for each associate
1661 name matched and do not try to set variable flag.
1662 * parse.c (parse_associate): Use remembered locus for symbols.
1663 * primary.c (match_variable): Instead of variable-flag check for
1664 associate names set it for all such names used.
1665 * symbol.c (gfc_is_associate_pointer): New method.
1666 * resolve.c (resolve_block_construct): Don't generate assignments
1667 to give associate-names their values.
1668 (resolve_fl_var_and_proc): Allow associate-names to be deferred-shape.
1669 (resolve_symbol): Set some more attributes for associate variables,
1670 set variable flag here and check it and don't try to build an
1671 explicitely shaped array-spec for array associate variables.
1672 * trans-expr.c (gfc_conv_variable): Dereference in case of association
1674 * trans-types.c (gfc_is_nodesc_array): Handle array association symbols.
1675 (gfc_sym_type): Return pointer type for association to scalar vars.
1676 * trans-decl.c (gfc_get_symbol_decl): Defer association symbols.
1677 (trans_associate_var): New method.
1678 (gfc_trans_deferred_vars): Handle association symbols.
1680 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1682 * lang.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1684 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1686 * cpp.c (gfc_cpp_handle_option): Use OPT_MD and OPT_MMD instead of
1687 OPT_MDX and OPT_MMDX.
1689 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1691 * lang.opt (MDX, MMDX): Mark RejectDriver.
1693 2010-08-15 Janus Weil <janus@gcc.gnu.org>
1695 * trans-expr.c (gfc_trans_assign_vtab_procs): Clean up (we don't have
1696 vtabs for generics any more).
1698 2010-08-15 Daniel Kraft <d@domob.eu>
1701 * gfortran.h (gfc_find_proc_namespace): New method.
1702 * expr.c (gfc_build_intrinsic_call): No need to build symtree messing
1703 around with namespace.
1704 * symbol.c (gfc_find_proc_namespace): New method.
1705 * trans-decl.c (gfc_build_qualified_array): Use it for correct
1707 * primary.c (gfc_match_varspec): Handle associate-names as arrays.
1708 * parse.c (parse_associate): Removed assignment-generation here...
1709 * resolve.c (resolve_block_construct): ...and added it here.
1710 (resolve_variable): Handle names that are arrays but were not parsed
1711 as such because of association.
1712 (resolve_code): Fix BLOCK resolution.
1713 (resolve_symbol): Generate array-spec for associate-names.
1715 2010-08-15 Tobias Burnus <burnus@net-b.de>
1718 * decl.c (verify_c_interop_param): Remove superfluous space (" ").
1719 (verify_c_interop): Handle unresolved DT with bind(C).
1721 2010-08-15 Tobias Burnus <burnus@net-b.de>
1723 * trans-expr.c (gfc_conv_expr_present): Regard nullified
1724 pointer arrays as absent.
1725 (gfc_conv_procedure_call): Handle EXPR_NULL for non-pointer
1726 dummys as absent argument.
1727 * interface.c (compare_actual_formal,compare_parameter):
1730 2010-08-15 Tobias Burnus <burnus@net-b.de>
1732 * interface.c (compare_pointer, ): Allow passing TARGETs to pointers
1733 dummies with intent(in).
1735 2010-08-15 Daniel Kraft <d@domob.eu>
1738 * decl.c (gfc_match_prefix): Match IMPURE prefix and mark ELEMENTAL
1739 routines not IMPURE also as PURE.
1740 * intrinsic.c (enum klass): New class `CLASS_PURE' and renamed
1741 `NO_CLASS' in `CLASS_IMPURE'.
1742 (add_sym): Set symbol-attributes `pure' and `elemental' correctly.
1743 (add_sym_0s): Renamed `NO_CLASS' in `CLASS_IMPURE'.
1744 (add_functions): Ditto.
1745 (add_subroutines): Ditto and mark `MOVE_ALLOC' as CLASS_PURE.
1746 * resolve.c (gfc_pure): Do not treat ELEMENTAL as automatically PURE.
1747 (resolve_formal_arglist): Check that arguments to ELEMENTAL procedures
1748 are not ALLOCATABLE and have their INTENT specified.
1750 2010-08-13 Daniel Kraft <d@domob.eu>
1752 * gfortran.h (array_type): New type `AS_IMPLIED_SHAPE'.
1753 * array.c (gfc_match_array_spec): Match implied-shape specification and
1754 handle AS_IMPLIED_SHAPE correctly otherwise.
1755 * decl.c (add_init_expr_to_sym): Set upper bounds for implied-shape.
1756 (variable_decl): Some checks for implied-shape declaration.
1757 * resolve.c (resolve_symbol): Assert that array-spec is no longer
1758 AS_IMPLIED_SHAPE in any case.
1760 2010-08-12 Joseph Myers <joseph@codesourcery.com>
1762 * lang.opt (MD, MMD): Change to MDX and MMDX.
1763 * cpp.c (gfc_cpp_handle_option): Use OPT_MMD and OPT_MMDX.
1765 2010-08-11 Janus Weil <janus@gcc.gnu.org>
1768 * intrinsic.c (gfc_current_intrinsic_arg): Change type from 'char' to
1769 'gfc_intrinsic_arg'.
1770 (check_arglist,check_specific): Add reference to 'name' field.
1771 (init_arglist): Remove reference to 'name' field.
1772 * intrinsic.h (gfc_current_intrinsic_arg): Modify prototype.
1773 * check.c (variable_check): Reverse order of checks. Respect intent of
1775 (int_or_proc_check): New function.
1776 (coarray_check): New function.
1777 (allocatable_check): New function.
1778 (gfc_check_allocated,gfc_check_move_alloc): Use 'allocatable_check'.
1779 (gfc_check_complex): Use 'int_or_real_check'.
1780 (gfc_check_lcobound,gfc_check_image_index,gfc_check_this_image,
1781 gfc_check_ucobound): Use 'coarray_check'.
1782 (gfc_check_pack): Use 'real_or_complex_check'.
1783 (gfc_check_alarm_sub,gfc_check_signal,gfc_check_signal_sub): Use
1784 'int_or_proc_check'.
1785 (scalar_check,type_check,numeric_check,int_or_real_check,
1786 real_or_complex_check,kind_check,double_check,logical_array_check,
1787 array_check,same_type_check,rank_check,nonoptional_check,
1788 kind_value_check,gfc_check_a_p,gfc_check_associated,gfc_check_cmplx,
1789 gfc_check_cshift,gfc_check_dcmplx,gfc_check_dot_product,gfc_check_dprod,
1790 gfc_check_eoshift,gfc_check_fn_rc2008,gfc_check_index,gfc_check_kind,
1791 gfc_check_matmul,gfc_check_minloc_maxloc,check_reduction,gfc_check_null,
1792 gfc_check_present,gfc_check_reshape,gfc_check_same_type_as,
1793 gfc_check_spread,gfc_check_unpack,gfc_check_random_seed,
1794 gfc_check_getarg,gfc_check_and,gfc_check_storage_size): Add reference
1797 2010-08-10 Daniel Kraft <d@domob.eu>
1799 * gfortran.texi (Interoperability with C): Fix ordering in menu
1800 and add new subsection about pointers.
1801 (Interoperable Subroutines and Functions): Split off the pointer part.
1802 (working with Pointers): New subsection with extended discussion
1803 of pointers (especially procedure pointers).
1805 2010-08-09 Thomas Koenig <tkoenig@gcc.gnu.org>
1808 * array.c (gfc_ref_dimen_size): Add end argument.
1809 If end is non-NULL, calculate it.
1810 (ref_size): Adjust call to gfc_ref_dimen_size.
1811 (gfc_array_dimen_size): Likewise.
1812 (gfc_array_res_shape): Likewise.
1813 * gfortran.h: Adjust prototype for gfc_ref_dimen_size.
1814 * resolve.c (resolve_array_ref): For stride not equal to -1,
1815 fill in the lowest possible end.
1817 2010-08-09 Janus Weil <janus@gcc.gnu.org>
1819 * intrinsic.texi: Correct documentation of ASINH, ACOSH and ATANH.
1821 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
1823 * interface.c (compare_actual_formal): Use XALLOCAVEC instead of
1825 (check_some_aliasing): Likewise.
1826 * trans-intrinsic.c (gfc_conv_intrinsic_conversion): Likewise.
1827 (gfc_conv_intrinsic_int): Likewise.
1828 (gfc_conv_intrinsic_lib_function): Likewise.
1829 (gfc_conv_intrinsic_cmplx): Likewise.
1830 (gfc_conv_intrinsic_ctime): Likewise.
1831 (gfc_conv_intrinsic_fdate): Likewise.
1832 (gfc_conv_intrinsic_ttynam): Likewise.
1833 (gfc_conv_intrinsic_minmax): Likewise.
1834 (gfc_conv_intrinsic_minmax_char): Likewise.
1835 (gfc_conv_intrinsic_ishftc): Likewise.
1836 (gfc_conv_intrinsic_index_scan_verify): Likewise.
1837 (gfc_conv_intrinsic_merge): Likewise.
1838 (gfc_conv_intrinsic_trim): Likewise.
1839 * trans.c (gfc_trans_runtime_error_vararg): Likewise.
1841 2010-08-06 Thomas Koenig <tkoenig@gcc.gnu.org>
1844 * dependency.c (check_section_vs_section): Handle cases where
1845 the start expression coincides with the lower or upper
1848 2010-08-04 Janus Weil <janus@gcc.gnu.org>
1853 * class.c (gfc_find_derived_vtab): Do not generate vtabs for class
1854 container types. Do not artificially increase refs. Commit symbols one
1856 * interface.c (compare_parameter): Make sure vtabs are present before
1857 generating module variables.
1858 * resolve.c (resolve_allocate_expr): Ditto.
1860 2010-08-04 Tobias Burnus <burnus@net-b.de>
1864 * resolve.c (resolve_structure_cons): Fix
1867 2010-08-04 Mikael Morin <mikael@gcc.gnu.org>
1871 * symbol.c (changed_syms): Made static again.
1872 (gfc_symbol_state): Don't conditionalize on GFC_DEBUG.
1873 Changed conditional internal error into assert.
1874 Rename function to ...
1875 (gfc_enforce_clean_symbol_state): ... this.
1876 * gfortran.h (gfc_symbol_state, gfc_enforce_clean_symbol_state):
1877 Rename the former to the latter.
1878 * parse.c (decode_statement, decode_omp_directive,
1879 decode_gcc_attribute): Update callers accordingly. Don't conditionalize
1881 (changed_syms): Remove declaration.
1882 (next_statement): Use gfc_enforce_clean_symbol_state.
1884 2010-08-04 Tobias Burnus <burnus@net-b.de>
1887 * resolve.c (resolve_structure_cons): Fix handling of
1888 initialization structure constructors with character
1889 elements of the wrong length.
1890 * array.c (gfc_check_iter_variable): Add NULL check.
1891 (gfc_resolve_character_array_constructor): Also truncate
1894 2010-08-04 Tobias Burnus <burnus@net-b.de>
1896 * trans-io.c (gfc_build_io_library_fndecls): Fix return
1897 value of some libgfortran functions.
1899 2010-08-03 Thomas Koenig <tkoenig@gcc.gnu.org>
1902 * dependency.c (gfc_deb_compare_expr): Remove any integer
1903 conversion functions to larger types from both arguments.
1904 Remove handling these functions futher down.
1906 2010-08-03 Janus Weil <janus@gcc.gnu.org>
1910 * class.c (add_procs_to_declared_vtab1): Don't add erroneous procedures.
1911 * resolve.c (resolve_tb_generic_targets): Check for errors.
1913 2010-08-02 Thomas Koenig <tkoenig@gcc.gnu.org>
1916 * depencency.c (gfc_dep_resolver): Fix logic for when a loop
1919 2010-08-02 Thomas Koenig <tkoenig@gcc.gnu.org>
1922 * dependency.h: Add prototype for gfc_are_identical_variables.
1923 * frontend-passes.c: Include depencency.h.
1924 (optimimize_equality): Use gfc_are_identical_variables.
1925 * dependency.c (identical_array_ref): New function.
1926 (gfc_are_identical_variables): New function.
1927 (gfc_deb_compare_expr): Use gfc_are_identical_variables.
1928 * dependency.c (gfc_check_section_vs_section). Rename gfc_
1929 prefix from statc function.
1930 (check_section_vs_section): Change arguments to gfc_array_ref,
1931 adjust function body accordingly.
1933 2010-08-02 Mikael Morin <mikael@gcc.gnu.org>
1934 Janus Weil <janus@gcc.gnu.org>
1939 * intrinsic.c (gfc_get_intrinsic_sub_symbol): Commit changed symbol.
1940 * symbol.c (gen_cptr_param, gen_fptr_param, gen_shape_param,
1941 gfc_copy_formal_args, gfc_copy_formal_args_intr,
1942 gfc_copy_formal_args_ppc, generate_isocbinding_symbol): Ditto.
1943 * parse.c (parse_derived_contains, parse_spec, parse_progunit):
1944 Call reject_statement in case of error.
1945 (match_deferred_characteritics): Call gfc_undo_symbols in case match
1948 2010-08-01 Janus Weil <janus@gcc.gnu.org>
1951 * class.c (gfc_build_class_symbol): Make '$vptr' component private.
1952 (gfc_find_derived_vtab): Make vtabs and vtypes public.
1953 * module.c (read_module): When reading module files, always import
1954 vtab and vtype symbols.
1956 2010-07-31 Mikael Morin <mikael@gcc.gnu.org>
1960 * symbol.c (changed_syms): Made non-static.
1961 * parse.c (changed_syms): Declare new external.
1962 (next_statement): Assert changed_syms is NULL at the beginning.
1964 2010-07-30 Janus Weil <janus@gcc.gnu.org>
1965 Steven G. Kargl <kargl@gcc.gnu.org>
1968 * match.c (match_type_spec): Try to parse derived types before
1971 2010-07-30 Mikael Morin <mikael@gcc.gnu.org>
1973 * gfortran.h (gfc_release_symbol): New prototype.
1974 * symbol.c (gfc_release_symbol): New. Code taken from free_sym_tree.
1975 (gfc_undo_symbols, free_sym_tree, gfc_free_finalizer):
1976 Use gfc_release_symbol.
1977 * parse.c (gfc_fixup_sibling_symbols): Ditto.
1978 * resolve.c (resolve_symbol): Ditto.
1980 2010-07-29 Tobias Burnus <burnus@net-b.de>
1984 * trans-decl.c (gfc_get_extern_function_decl): Correctly handle
1985 external procedure declarations in modules.
1986 (gfc_get_symbol_decl): Modify assert.
1988 2010-07-29 Janus Weil <janus@gcc.gnu.org>
1991 * resolve.c (resolve_fl_derived): Call gfc_resolve_array_spec.
1993 2010-07-29 Janus Weil <janus@gcc.gnu.org>
1996 * trans-stmt.h (gfc_trans_class_init_assign): New prototype.
1997 (gfc_trans_class_assign): Modified prototype.
1998 * trans.h (gfc_conv_intrinsic_move_alloc): New prototype.
1999 * trans-expr.c (gfc_trans_class_init_assign): Split off from ...
2000 (gfc_trans_class_assign): ... here. Modified actual arguments.
2001 * trans-intrinsic.c (gfc_conv_intrinsic_move_alloc): New function to
2002 handle the MOVE_ALLOC intrinsic with scalar and class arguments.
2003 * trans.c (trans_code): Call 'gfc_conv_intrinsic_move_alloc'.
2005 2010-07-29 Mikael Morin <mikael@gcc.gnu.org>
2009 * class.c (gfc_find_derived_vtab): Accept or discard newly created
2010 symbols before returning.
2012 2010-07-29 Joseph Myers <joseph@codesourcery.com>
2014 * lang.opt (cpp): Remove Joined and Separate markers.
2015 (cpp=): New internal option.
2016 * lang-specs.h (F951_CPP_OPTIONS): Generate -cpp= option.
2017 * cpp.c (gfc_cpp_handle_option): Handle OPT_cpp_ instead of
2020 2010-07-29 Daniel Kraft <d@domob.eu>
2023 * array.c (resolve_array_bound): Fix error message to properly handle
2024 non-variable expressions.
2026 2010-07-28 Mikael Morin <mikael@gcc.gnu.org>
2028 * decl.c (free_value): Also free repeat field.
2029 * data.c (gfc_assign_data_value): Always free offset before returning.
2031 2010-07-28 Daniel Kraft <d@domob.eu>
2033 * gfortran.h (gfc_build_intrinsic_call): New method.
2034 * expr.c (gfc_build_intrinsic_call): New method.
2035 * simplify.c (range_check): Ignore non-constant value.
2036 (simplify_bound_dim): Handle non-variable expressions and
2037 fix memory leak with non-free'ed expression.
2038 (simplify_bound): Handle non-variable expressions.
2039 (gfc_simplify_shape): Ditto.
2040 (gfc_simplify_size): Ditto, but only in certain cases possible.
2042 2010-07-28 Joseph Myers <joseph@codesourcery.com>
2044 * gfortranspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG):
2047 2010-07-28 Tobias Burnus <burnus@net-b.de>
2050 * trans-types.c (gfc_get_derived_type): Fix DT declaration
2051 from modules for whole-file mode.
2053 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2055 * gfortran.h (gfc_handle_option): Update prototype and return
2057 * options.c (gfc_handle_option): Update prototype and return value
2060 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2062 * cpp.c (gfc_cpp_init_options): Update prototype. Use number of
2063 decoded options in allocating deferred_opt.
2064 * cpp.h (gfc_cpp_init_options): Update prototype.
2065 * f95-lang.c (LANG_HOOKS_OPTION_LANG_MASK): Define.
2066 * gfortran.h (gfc_option_lang_mask): New.
2067 (gfc_init_options): Update prototype.
2068 * options.c (gfc_option_lang_mask): New.
2069 (gfc_init_options): Update prototype. Pass new arguments to
2070 gfc_cpp_init_options.
2072 2010-07-26 Tobias Burnus <burnus@net-b.de>
2075 * trans-decl.c (gfc_get_extern_function_decl): Fix generation
2076 for functions which are later in the same file.
2077 (gfc_create_function_decl, build_function_decl,
2078 build_entry_thunks): Add global argument.
2079 * trans.c (gfc_generate_module_code): Update
2080 gfc_create_function_decl call.
2081 * trans.h (gfc_create_function_decl): Update prototype.
2082 * resolve.c (resolve_global_procedure): Also resolve for
2085 2010-07-26 Richard Henderson <rth@redhat.com>
2088 * f95-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
2089 (gfc_write_global_declarations): New.
2091 2010-07-26 Tobias Burnus <burnus@net-b.de>
2094 * trans-io.c (build_dt): Use NULL_TREE rather than NULL
2095 for call to transfer_namelist_element.
2096 * trans-decl.c (gfc_get_symbol_decl): Also set sym->backend_decl
2099 2010-07-25 Thomas Koenig <tkoenig@gcc.gnu.org>
2102 * Make-lang.in: Add fortran/frontend-passes.o.
2103 * gfortran.h: Add prototype for gfc_run_passes.
2104 * resolve.c (gfc_resolve): Call gfc_run_passes.
2105 * frontend-passes.c: New file.
2107 2010-07-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2110 * scanner.c (gfc_next_char_literal): Enable truncation warning for
2113 2010-07-25 Mikael Morin <mikael@gcc.gnu.org>
2116 * gfortran.h (gfc_namespace): New field old_equiv.
2117 (gfc_free_equiv_until): New prototype.
2118 * match.c (gfc_free_equiv_until): New, renamed from gfc_free_equiv with
2119 a parameterized stop condition.
2120 (gfc_free_equiv): Use gfc_free_equiv_until.
2121 * parse.c (next_statement): Save equivalence list.
2122 (reject_statement): Restore equivalence list.
2124 2010-07-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2127 * scanner.c (gfc_next_char_literal): Move check for truncation earlier
2128 in the function so that it does not get missed by early exits.
2129 (load_line): Add checks for quoted strings and free form comments to
2130 disable warnings on comments. Add check for ampersand as first
2131 character after truncation and don't warn for this case, but warn if
2132 there are subsequent non-whitespace characters.
2134 2010-07-24 Tobias Burnus <burnus@net-b.de>
2137 * parse.c (gfc_parse_file): Do not override
2138 gfc_global_ns_list items.
2140 2010-07-24 Tobias Burnus <burnus@net-b.de>
2142 * options.c (gfc_init_options): Enable -fwhole-file by default.
2143 * interface.c (compare_parameter): Assume a Hollerith constant is
2144 compatible with all other argument types.
2146 2010-07-23 Tobias Burnus <burnus@net-b.de>
2149 * trans-decl.c (gfc_get_symbol_decl): Use module decl with
2150 -fwhole-file also for derived types.
2151 * trans-types.c (copy_dt_decls_ifequal): Remove static and
2152 rename to gfc_copy_dt_decls_ifequal.
2153 (gfc_get_derived_type): Update call.
2154 * trans-types.h (gfc_copy_dt_decls_ifequal): Add prototype.
2156 2010-07-23 Tobias Burnus <burnus@net-b.de>
2159 * resolve.c (resolve_global_procedure): Properly handle ENTRY.
2161 2010-07-23 Jakub Jelinek <jakub@redhat.com>
2163 * trans-types.c (gfc_get_array_descriptor_base,
2164 gfc_get_array_type_bounds): Set TYPE_NAMELESS.
2165 * trans-decl.c (gfc_build_qualified_array): Set DECL_NAMELESS
2166 instead of clearing DECL_NAME.
2167 (gfc_build_dummy_array_decl): Set DECL_NAMELESS.
2169 2009-07-23 Paul Thomas <pault@gcc.gnu.org>
2172 * trans-array.c (gfc_init_loopinfo): Initialize the reverse
2174 gfc_trans_scalarized_loop_end: If reverse set in dimension n,
2175 reverse the scalarization loop.
2176 gfc_conv_resolve_dependencies: Pass the reverse field of the
2177 loopinfo to gfc_dep_resolver.
2178 trans-expr.c (gfc_trans_assignment_1): Enable loop reversal for
2179 assignment by resetting loop.reverse.
2180 gfortran.h : Add the gfc_reverse enum.
2181 trans.h : Add the reverse field to gfc_loopinfo.
2182 dependency.c (gfc_check_dependency): Pass null to the new arg
2183 of gfc_dep_resolver.
2184 (gfc_check_section_vs_section): Check for reverse dependencies.
2185 (gfc_dep_resolver): Add reverse argument and deal with the loop
2187 dependency.h : Modify prototype for gfc_dep_resolver to include
2190 2010-07-23 Daniel Kraft <d@domob.eu>
2193 * gfortran.h (gfc_find_symtree_in_proc): New method.
2194 * symbol.c (gfc_find_symtree_in_proc): New method.
2195 * match.c (match_exit_cycle): Look for loop name also in parent
2196 namespaces within current procedure.
2198 2010-07-22 Tobias Burnus <burnus@net-b.de>
2201 * dependency.c (gfc_check_dependency): Add argument alising check.
2202 * symbol.c (gfc_symbols_could_alias): Add argument alising check.
2204 2010-07-22 Daniel Kraft <d@domob.eu>
2206 * trans-stmt.c (gfc_trans_return): Put back in the handling of se.post,
2207 now in the correct place.
2209 2010-07-21 Steven G. Kargl <kargl@gcc.gnu.org>
2212 * Revert my commit r162325.
2214 2010-07-21 Daniel Kraft <d@domob.eu>
2216 * trans.h (gfc_get_return_label): Removed.
2217 (gfc_generate_return): New method.
2218 (gfc_trans_deferred_vars): Update gfc_wrapped_block rather than
2219 returning a tree directly.
2220 * trans-stmt.c (gfc_trans_return): Use `gfc_generate_return'.
2221 (gfc_trans_block_construct): Update for new interface to
2222 `gfc_trans_deferred_vars'.
2223 * trans-decl.c (current_function_return_label): Removed.
2224 (current_procedure_symbol): New variable.
2225 (gfc_get_return_label): Removed.
2226 (gfc_trans_deferred_vars): Update gfc_wrapped_block rather than
2227 returning a tree directly.
2228 (get_proc_result), (gfc_generate_return): New methods.
2229 (gfc_generate_function_code): Clean up and do init/cleanup here
2230 also with gfc_wrapped_block. Remove return-label but rather
2233 2010-07-19 Steven G. Kargl <kargl@gcc.gnu.org>
2236 * fortran/match.c (match_type_spec): Check for derived type before
2239 2010-07-19 Paul Thomas <pault@gcc.gnu.org>
2242 * interface.c (matching_typebound_op): Add argument for the
2243 return of the generic name for the procedure.
2244 (build_compcall_for_operator): Add an argument for the generic
2245 name of an operator procedure and supply it to the expression.
2246 (gfc_extend_expr, gfc_extend_assign): Use the generic name in
2247 calls to the above procedures.
2248 * resolve.c (resolve_typebound_function): Catch procedure
2249 component calls for CLASS objects, check that the vtable is
2250 complete and insert the $vptr and procedure components, to make
2252 (resolve_typebound_function): The same.
2253 * trans-decl.c (gfc_trans_deferred_vars): Do not deallocate
2254 an allocatable scalar if it is a result.
2256 2010-07-19 Paul Thomas <pault@gcc.gnu.org>
2259 * match.c (gfc_match_iterator): Reverted.
2261 2010-07-18 Paul Thomas <pault@gcc.gnu.org>
2264 * match.c (gfc_match_iterator): Remove error that iterator
2265 cannot be INTENT(IN).
2267 2010-07-17 Mikael Morin <mikael@gcc.gnu.org>
2269 * trans-array.c (gfc_free_ss): Don't free beyond ss rank.
2270 Access subscript through the "dim" field index.
2271 (gfc_trans_create_temp_array): Access ss info through the "dim" field
2273 (gfc_conv_array_index_offset): Ditto.
2274 (gfc_conv_loop_setup): Ditto.
2275 (gfc_conv_expr_descriptor): Ditto.
2276 (gfc_conv_ss_startstride): Ditto. Update call to
2277 gfc_conv_section_startstride.
2278 (gfc_conv_section_startstride): Set values along the array dimension.
2279 Get array dimension directly from the argument.
2281 2010-07-15 Jakub Jelinek <jakub@redhat.com>
2283 * trans.h (gfc_string_to_single_character): New prototype.
2284 * trans-expr.c (string_to_single_character): Renamed to ...
2285 (gfc_string_to_single_character): ... this. No longer static.
2286 (gfc_conv_scalar_char_value, gfc_build_compare_string,
2287 gfc_trans_string_copy): Adjust callers.
2288 * config-lang.in (gtfiles): Add fortran/trans-stmt.c.
2289 * trans-stmt.c: Include ggc.h and gt-fortran-trans-stmt.h.
2290 (select_struct): Move to toplevel, add GTY(()).
2291 (gfc_trans_character_select): Optimize SELECT CASE
2292 with character length 1.
2294 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2296 * f95-lang.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2297 * trans-common.c: Likewise.
2298 * trans-decl.c: Likewise.
2299 * trans-types.c: Likewise.
2300 * trans.c: Likewise.
2302 2010-07-15 Janus Weil <janus@gcc.gnu.org>
2305 * resolve.c (resolve_typebound_generic_call): Resolve generic
2306 non-polymorphic type-bound procedure calls to the correct specific
2308 (resolve_typebound_subroutine): Remove superfluous code.
2310 2010-07-15 Daniel Kraft <d@domob.eu>
2313 * trans.h (struct gfc_wrapped_block): New struct.
2314 (gfc_start_wrapped_block), (gfc_add_init_cleanup): New methods.
2315 (gfc_finish_wrapped_block): New method.
2316 (gfc_init_default_dt): Add new init code to block rather than
2318 * trans-array.h (gfc_trans_auto_array_allocation): Use gfc_wrapped_block
2319 (gfc_trans_dummy_array_bias): Ditto.
2320 (gfc_trans_g77_array): Ditto.
2321 (gfc_trans_deferred_array): Ditto.
2322 * trans.c (gfc_add_expr_to_block): Call add_expr_to_chain.
2323 (add_expr_to_chain): New method based on old gfc_add_expr_to_block.
2324 (gfc_start_wrapped_block), (gfc_add_init_cleanup): New methods.
2325 (gfc_finish_wrapped_block): New method.
2326 * trans-array.c (gfc_trans_auto_array_allocation): use gfc_wrapped_block
2327 (gfc_trans_g77_array), (gfc_trans_dummy_array_bias): Ditto.
2328 (gfc_trans_deferred_array): Ditto.
2329 * trans-decl.c (gfc_trans_dummy_character): Ditto.
2330 (gfc_trans_auto_character_variable), (gfc_trans_assign_aux_var): Ditto.
2331 (init_intent_out_dt): Ditto.
2332 (gfc_init_default_dt): Add new init code to block rather than
2334 (gfc_trans_deferred_vars): Use gfc_wrapped_block to collect all init
2335 and cleanup code and put it all together.
2337 2010-07-15 Jakub Jelinek <jakub@redhat.com>
2339 * trans.h (gfc_build_compare_string): Add CODE argument.
2340 * trans-intrinsic.c (gfc_conv_intrinsic_strcmp): Pass OP to
2341 gfc_build_compare_string.
2342 * trans-expr.c (gfc_conv_expr_op): Pass CODE to
2343 gfc_build_compare_string.
2344 (string_to_single_character): Rename len variable to length.
2345 (gfc_optimize_len_trim): New function.
2346 (gfc_build_compare_string): Add CODE argument. If it is EQ_EXPR
2347 or NE_EXPR and one of the strings is string literal with LEN_TRIM
2348 bigger than the length of the other string, they compare unequal.
2351 * trans-stmt.c (gfc_trans_character_select): Always use NULL for high
2352 in CASE_LABEL_EXPR and use NULL for low for the default case.
2354 2010-07-14 Mikael Morin <mikael@gcc.gnu.org>
2356 * trans-array.c (gfc_conv_section_upper_bound): Remove
2357 (gfc_conv_section_startstride): Don't set the upper bound in the
2358 vector subscript case.
2359 (gfc_conv_loop_setup): Don't use gfc_conv_section_upper_bound
2361 2010-07-14 Janus Weil <janus@gcc.gnu.org>
2364 * gfortran.h (gfc_is_data_pointer): Remove prototype.
2365 * dependency.c (gfc_is_data_pointer): Make it static.
2366 * intrinsic.texi: Update documentation on C_LOC.
2367 * resolve.c (gfc_iso_c_func_interface): Fix pointer and target checks
2368 and add a check for polymorphic variables.
2370 2010-07-14 Jakub Jelinek <jakub@redhat.com>
2372 * trans-expr.c (string_to_single_character): Also optimize
2373 string literals containing a single char followed only by spaces.
2374 (gfc_trans_string_copy): Remove redundant string_to_single_character
2377 * trans-decl.c (gfc_build_intrinsic_function_decls,
2378 gfc_build_builtin_function_decls): Mark functions as
2379 DECL_PURE_P or TREE_READONLY.
2381 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
2383 * trans-decl.c (build_entry_thunks): Call build_call_expr_loc_vec
2384 instead of build_function_call_expr.
2385 * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Likewise.
2387 2010-07-13 Tobias Burnus <burnus@net-b.de>
2388 Daniel Franke <franke.daniel@gmail.com>
2391 * trans.h (gfc_build_library_function_decl_with_spec): New prototype.
2392 * trans-decl.c (gfc_build_library_function_decl_with_spec): Removed
2394 * trans-io (gfc_build_io_library_fndecls): Add "fn spec" annotations.
2396 2010-07-13 Daniel Franke <franke.daniel@gmail.com>
2397 Tobias Burnus <burnus@net-b.de>
2400 * trans-decl.c (gfc_build_intrinsic_function_decls): Add
2401 noclobber/noescape annotations to function calls.
2402 (gfc_build_builtin_function_decls): Likewise.
2404 2010-07-13 Janus Weil <janus@gcc.gnu.org>
2410 * gfortran.h (gfc_find_derived_vtab): Modified prototype.
2411 * class.c (gfc_build_class_symbol): Modified call to
2412 'gfc_find_derived_vtab'.
2413 (add_proc_component): Removed, moved code into 'add_proc_comp'.
2414 (add_proc_comps): Renamed to 'add_proc_comp', removed treatment of
2416 (add_procs_to_declared_vtab1): Removed unnecessary argument 'resolved'.
2417 Removed treatment of generics.
2418 (copy_vtab_proc_comps): Removed unnecessary argument 'resolved'.
2419 Call 'add_proc_comp' instead of duplicating code.
2420 (add_procs_to_declared_vtab): Removed unnecessary arguments 'resolved'
2422 (add_generic_specifics,add_generics_to_declared_vtab): Removed.
2423 (gfc_find_derived_vtab): Removed unnecessary argument 'resolved'.
2424 Removed treatment of generics.
2425 * iresolve.c (gfc_resolve_extends_type_of): Modified call to
2426 'gfc_find_derived_vtab'.
2427 * resolve.c (resolve_typebound_function,resolve_typebound_subroutine):
2428 Removed treatment of generics.
2429 (resolve_select_type,resolve_fl_derived): Modified call to
2430 'gfc_find_derived_vtab'.
2431 * trans-decl.c (gfc_get_symbol_decl): Ditto.
2432 * trans-expr.c (gfc_conv_derived_to_class,gfc_trans_class_assign):
2434 * trans-stmt.c (gfc_trans_allocate): Ditto.
2436 2010-07-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2439 * trans-io.c (build_dt): Set common.unit to flag chracter(kind=4)
2442 2010-07-12 Mikael Morin <mikael@gcc.gnu.org>
2444 * expr.c (gfc_get_int_expr): Don't initialize mpfr data twice.
2445 * resolve.c (build_default_init_expr): Ditto.
2447 2010-07-11 Tobias Burnus <burnus@net-b.de>
2450 * module.c (sort_iso_c_rename_list): Remove.
2451 (import_iso_c_binding_module,use_iso_fortran_env_module):
2452 Allow multiple imports of the same symbol.
2454 2010-07-11 Mikael Morin <mikael@gcc.gnu.org>
2456 * arith.c (gfc_arith_done_1): Release mpfr internal caches.
2458 2010-07-11 Janus Weil <janus@gcc.gnu.org>
2461 * decl.c (build_sym,attr_decl1): Only build the class container if the
2462 symbol has sufficient attributes.
2463 * expr.c (gfc_check_pointer_assign): Use class_pointer instead of
2464 pointer attribute for classes.
2465 * match.c (gfc_match_allocate,gfc_match_deallocate): Ditto.
2466 * module.c (MOD_VERSION): Bump.
2467 (enum ab_attribute,attr_bits): Add AB_CLASS_POINTER.
2468 (mio_symbol_attribute): Handle class_pointer attribute.
2469 * parse.c (parse_derived): Use class_pointer instead of pointer
2470 attribute for classes.
2471 * primary.c (gfc_variable_attr,gfc_expr_attr): Ditto.
2472 * resolve.c (resolve_structure_cons,resolve_deallocate_expr,
2473 resolve_allocate_expr,resolve_fl_derived): Ditto.
2474 (resolve_fl_var_and_proc): Check for class_ok attribute.
2476 2010-07-10 Mikael Morin <mikael@gcc.gnu.org>
2478 * trans-io.c (gfc_build_st_parameter): Update calls to
2479 gfc_add_field_to_struct.
2480 * trans-stmt.c (ADD_FIELD): Ditto.
2482 (gfc_get_derived_type): Ditto. Don't create backend_decl for C_PTR's
2484 (gfc_add_field_to_struct_1): Set TYPE_FIELDS(context) instead of
2485 fieldlist, remove fieldlist from argument list.
2486 (gfc_add_field_to_struct): Update call to gfc_add_field_to_struct_1
2487 and remove fieldlist from argument list.
2488 (gfc_get_desc_dim_type, gfc_get_array_descriptor_base,
2489 gfc_get_mixed_entry_union): Move setting
2490 TYPE_FIELDS to gfc_add_field_to_struct_1 and update calls to it.
2491 * trans-types.h (gfc_add_field_to_struct): Update prototype.
2493 2010-07-10 Paul Thomas <pault@gcc.gnu.org>
2496 * trans-expr.c (arrayfunc_assign_needs_temporary): No temporary
2497 if the lhs has never been host associated, as well as not being
2498 use associated, a pointer or a target.
2499 * resolve.c (resolve_variable): Mark variables that are host
2501 * gfortran.h: Add the host_assoc bit to the symbol_attribute
2504 2010-07-09 Janus Weil <janus@gcc.gnu.org>
2506 * intrinsic.texi: Add documentation for SAME_TYPE_AS, EXTENDS_TYPE_OF,
2507 STORAGE_SIZE, C_NULL_PTR and C_NULL_FUNPTR. Modify documentation of
2508 SIZEOF and C_SIZEOF.
2510 2010-07-08 Janus Weil <janus@gcc.gnu.org>
2513 * gfortran.h (gfc_isym_id): Add GFC_ISYM_C_SIZEOF,GFC_ISYM_STORAGE_SIZE.
2514 * intrinsic.h (gfc_check_c_sizeof,gfc_check_storage_size,
2515 gfc_resolve_storage_size): New prototypes.
2516 * check.c (gfc_check_c_sizeof,gfc_check_storage_size): New functions.
2517 * intrinsic.c (add_functions): Add STORAGE_SIZE.
2518 * iresolve.c (gfc_resolve_storage_size): New function.
2519 * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): Handle polymorphic
2521 (gfc_conv_intrinsic_storage_size): New function.
2522 (gfc_conv_intrinsic_function): Handle STORAGE_SIZE.
2524 2010-07-08 Jakub Jelinek <jakub@redhat.com>
2527 * match.c (match_exit_cycle): Error on EXIT also from collapsed
2528 !$omp do loops. Error on CYCLE to non-innermost collapsed
2531 2010-07-08 Tobias Burnus <burnus@net-b.de>
2534 * array.c (gfc_match_array_ref): Better error message for
2535 coarrays with too few ranks.
2536 (match_subscript): Move one diagnostic to caller.
2537 * gfortran.h (gfc_get_corank): Add prottype.
2538 * expr.c (gfc_get_corank): New function.
2539 * iresolve.c (resolve_bound): Fix rank for cobounds.
2540 (gfc_resolve_lbound,gfc_resolve_lcobound, gfc_resolve_ubound,
2541 gfc_resolve_ucobound, gfc_resolve_this_image): Update
2544 2010-07-06 Tobias Burnus <burnus@net-b.de>
2547 * array.c (gfc_expand_constructor): Add optional diagnostic.
2548 * gfortran.h (gfc_expand_constructor): Update prototype.
2549 * expr.c (gfc_simplify_expr, check_init_expr,
2550 gfc_reduce_init_expr): Update gfc_expand_constructor call.
2551 * resolve.c (gfc_resolve_expr): Ditto.
2553 2010-07-06 Tobias Burnus <burnus@net-b.de>
2555 * trans-decl.c: Include diagnostic-core.h besides toplev.h.
2556 * trans-intrinsic.c: Ditto.
2557 * trans-types.c: Ditto.
2558 * convert.c: Include diagnostic-core.h instead of toplev.h.
2560 * trans-array.c: Ditto.
2561 * trans-const.c: Ditto.
2562 * trans-expr.c: Ditto.
2563 * trans-io.c: Ditto.
2564 * trans-openmp.c: Ditto.
2567 2010-07-06 Thomas Koenig <tkoenig@gcc.gnu.org>
2570 * check.c (dim_rank_check): Also check intrinsic functions.
2571 Adjust permissible rank for functions which reduce the rank of
2572 their argument. Spread is an exception, where DIM can
2573 be one larger than the rank of array.
2575 2010-07-05 Steven G. Kargl <kargl@gcc.gnu.org>
2578 * fortran/io.c (resolve_tag): Check EXIST tag is a default logical.
2580 2010-07-05 Paul Thomas <pault@gcc.gnu.org>
2583 * trans-types.c (gfc_get_derived_type): Derived type fields
2584 with the vtype attribute must have TYPE_REF_CAN_ALIAS_ALL set
2585 but build_pointer_type_for_mode must be used for this.
2587 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
2589 * trans.h (gfc_conv_procedure_call): Take a VEC instead of a tree.
2590 * trans-intrinsic.c (gfc_conv_intrinsic_funcall): Adjust for new
2591 type of gfc_conv_procedure_call.
2592 (conv_generic_with_optional_char_arg): Likewise.
2593 * trans-stmt.c (gfc_trans_call): Likewise.
2594 * trans-expr.c (gfc_conv_function_expr): Likewise.
2595 (gfc_conv_procedure_call): Use build_call_vec instead of
2598 2010-07-04 Daniel Kraft <d@domob.eu>
2600 * gfc-internals.texi (gfc_code): Document BLOCK and ASSOCIATE.
2602 2010-07-04 Paul Thomas <pault@gcc.gnu.org>
2606 * trans-types.c (gfc_get_derived_type): Derived type fields
2607 with the vtype attribute must have TYPE_REF_CAN_ALIAS_ALL set.
2609 2010-07-02 Mikael Morin <mikael@gcc.gnu.org>
2612 * decl.c (match_procedure_in_type): Clear structure before using.
2613 (gfc_match_generic): Ditto.
2615 2010-07-02 Nathan Froyd <froydnj@codesourcery.com>
2617 * trans-types.h (gfc_add_field_to_struct): Add tree ** parameter.
2618 * trans-types.c (gfc_add_field_to_struct_1): New function, most
2619 of which comes from...
2620 (gfc_add_field_to_struct): ...here. Call it. Add new parameter.
2621 (gfc_get_desc_dim_type): Call gfc_add_field_to_struct_1 for
2623 (gfc_get_array_descriptor_base): Likewise.
2624 (gfc_get_mixed_entry_union): Likewise.
2625 (gfc_get_derived_type): Add extra chain parameter for
2626 gfc_add_field_to_struct.
2627 * trans-stmt.c (gfc_trans_character_select): Likewise.
2628 * trans-io.c (gfc_build_st_parameter): Likewise.
2630 2010-06-29 Janus Weil <janus@gcc.gnu.org>
2633 * resolve.c (is_external_proc): Prevent procedure pointers from being
2634 regarded as external procedures.
2636 2010-06-29 Janus Weil <janus@gcc.gnu.org>
2639 * trans-intrinsic.c (gfc_conv_associated): Handle polymorphic variables
2640 passed as second argument of ASSOCIATED.
2642 2010-06-29 Paul Thomas <pault@gcc.gnu.org>
2645 * trans-expr.c (arrayfunc_assign_needs_temporary): New function
2646 to determine if a function assignment can be made without a
2648 (gfc_trans_arrayfunc_assign): Move all the conditions that
2649 suppress the direct function call to the above new functon and
2652 2010-06-28 Paul Thomas <pault@gcc.gnu.org>
2655 * interface.c (argument_rank_mismatch): New function.
2656 (compare_parameter): Call new function instead of generating
2659 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
2661 * trans-openmp.c (dovar_init): Define. Define VECs containing it.
2662 (gfc_trans_omp_do): Use a VEC to accumulate variables and their
2665 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2667 * Make-lang.in: Update dependencies.
2669 2010-06-27 Nathan Froyd <froydnj@codesourcery.com>
2671 * gfortran.h (gfc_code): Split backend_decl field into cycle_label
2672 and exit_label fields.
2673 * trans-openmp.c (gfc_trans_omp_do): Assign to new fields
2675 * trans-stmt.c (gfc_trans_simple_do): Likewise.
2676 (gfc_trans_do): Likewise.
2677 (gfc_trans_do_while): Likewise.
2678 (gfc_trans_cycle): Use cycle_label directly.
2679 (gfc_trans_exit): Use exit_label directly.
2681 2010-06-27 Daniel Kraft <d@domob.eu>
2683 * dump-parse-tree.c (show_symbol): Dump target-expression for
2685 (show_code_node): Make distinction between BLOCK and ASSOCIATE.
2686 (show_namespace): Use show_level for correct indentation of
2687 "inner namespaces" (contained procedures or BLOCK).
2689 2010-06-27 Thomas Koenig <tkoenig@gcc.gnu.org>
2692 * dump-parse-tree.c (show_code_node): Show namespace for
2695 2010-06-26 Tobias Burnus <burnus@net-b.de>
2697 * decl.c (gfc_match_decl_type_spec): Support
2698 TYPE(intrinsic-type-spec).
2700 2010-06-25 Tobias Burnus <burnus@net-b.de>
2702 * intrinsic.h (gfc_check_selected_real_kind,
2703 gfc_simplify_selected_real_kind): Update prototypes.
2704 * intrinsic.c (add_functions): Add radix support to
2706 * check.c (gfc_check_selected_real_kind): Ditto.
2707 * simplify.c (gfc_simplify_selected_real_kind): Ditto.
2708 * trans-decl.c (gfc_build_intrinsic_function_decls):
2709 Change call from selected_real_kind to selected_real_kind2008.
2710 * intrinsic.texi (SELECTED_REAL_KIND): Update for radix.
2711 (PRECISION, RANGE, RADIX): Add cross @refs.
2713 2010-06-25 Tobias Burnus <burnus@net-b.de>
2715 * decl.c (gfc_match_entry): Mark ENTRY as GFC_STD_F2008_OBS.
2716 * gfortran.texi (_gfortran_set_options): Update for
2717 GFC_STD_F2008_OBS addition.
2718 * libgfortran.h: Add GFC_STD_F2008_OBS.
2719 * options.c (set_default_std_flags, gfc_handle_option): Handle
2721 io.c (check_format): Fix allow_std check.
2723 2010-06-25 Tobias Burnus <burnus@net-b.de>
2725 * decl.c (gfc_match_entry): Allow END besides
2726 END SUBROUTINE/END FUNCTION for contained procedures.
2728 2010-06-25 Tobias Burnus <burnus@net-b.de>
2730 * parse.c (next_free, next_fixed): Allow ";" as first character.
2732 2010-06-24 Tobias Burnus <burnus@net-b.de>
2735 * decl.c (variable_decl): Fix IMPORT diagnostic for CLASS.
2737 2010-06-22 Janus Weil <janus@gcc.gnu.org>
2740 * resolve.c (resolve_fl_derived): Avoid checking for abstract on class
2743 2010-06-21 Tobias Burnus <burnus@net-b.de>
2746 * interface.c (compare_parameter): Add gfc_is_simply_contiguous
2748 * symbol.c (gfc_add_contiguous): New function.
2749 (gfc_copy_attr, check_conflict): Handle contiguous attribute.
2750 * decl.c (match_attr_spec): Ditto.
2751 (gfc_match_contiguous): New function.
2752 * resolve.c (resolve_fl_derived, resolve_symbol): Handle
2754 * gfortran.h (symbol_attribute): Add contiguous.
2755 (gfc_is_simply_contiguous): Add prototype.
2756 (gfc_add_contiguous): Add prototype.
2757 * match.h (gfc_match_contiguous): Add prototype.
2758 * parse.c (decode_specification_statement,
2759 decode_statement): Handle contiguous attribute.
2760 * expr.c (gfc_is_simply_contiguous): New function.
2761 * dump-parse-tree.c (show_attr): Handle contiguous.
2762 * module.c (ab_attribute, attr_bits, mio_symbol_attribute):
2764 * trans-expr.c (gfc_add_interface_mapping): Copy
2766 * trans-array.c (gfc_conv_descriptor_stride_get,
2767 gfc_conv_array_parameter): Handle contiguous arrays.
2768 * trans-types.c (gfc_build_array_type, gfc_build_array_type,
2769 gfc_sym_type, gfc_get_derived_type, gfc_get_array_descr_info):
2771 * trans.h (gfc_array_kind): Ditto.
2772 * trans-decl.c (gfc_get_symbol_decl): Ditto.
2774 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2776 * options.c (gfc_handle_option): Don't handle N_OPTS.
2778 2010-06-19 Janus Weil <janus@gcc.gnu.org>
2781 * resolve.c (resolve_fl_derived): Reverse ordering of conditions
2784 2010-06-18 Tobias Burnus <burnus@net-b.de>
2787 * resolve.c (resolve_allocate_deallocate): Properly check
2788 part-refs in stat=/errmsg= for invalid use.
2790 2010-06-17 Janus Weil <janus@gcc.gnu.org>
2793 * resolve.c (resolve_typebound_function,resolve_typebound_subroutine):
2794 Return directly in case of an error.
2796 2010-06-16 Janus Weil <janus@gcc.gnu.org>
2799 * gfortran.h (gfc_get_typebound_proc): Modified Prototype.
2800 * decl.c (match_procedure_in_type): Give a unique gfc_typebound_proc
2801 structure to each procedure in a procedure list.
2802 * module.c (mio_typebound_proc): Add NULL argument to
2803 'gfc_get_typebound_proc'.
2804 * symbol.c (gfc_get_typebound_proc): Add a new argument, which is used
2805 to initialize the new structure.
2807 2010-06-15 Janus Weil <janus@gcc.gnu.org>
2810 * gfortran.h (gfc_expr): Add new member 'mold'.
2811 * match.c (gfc_match_allocate): Implement the MOLD tag.
2812 * resolve.c (resolve_allocate_expr): Ditto.
2813 * trans-stmt.c (gfc_trans_allocate): Ditto.
2815 2010-06-15 Jakub Jelinek <jakub@redhat.com>
2818 * trans-openmp.c (gfc_omp_predetermined_sharing): Don't return
2819 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with
2820 GFC_DECL_SAVED_DESCRIPTOR set.
2821 (gfc_omp_report_decl): New function.
2822 * trans.h (gfc_omp_report_decl): New prototype.
2823 * f95-lang.c (LANG_HOOKS_OMP_REPORT_DECL): Redefine.
2825 2010-06-13 Daniel Franke <franke.daniel@gmail.com>
2829 * gfortranspec.c (lang_specific_driver): Removed deprecation
2831 * lang.opt: Add options -M, -MM, -MD, -MMD, -MF, -MG, -MP, -MT, -MQ.
2832 * lang-specs.h (CPP_FORWARD_OPTIONS): Add -M* options.
2833 * cpp.h (gfc_cpp_makedep): New.
2834 (gfc_cpp_add_dep): New.
2835 (gfc_cpp_add_target): New.
2836 * cpp.c (gfc_cpp_option): Add deps* members.
2837 (gfc_cpp_makedep): New.
2838 (gfc_cpp_add_dep): New.
2839 (gfc_cpp_add_target): New.
2840 (gfc_cpp_init_options): Initialize new options.
2841 (gfc_cpp_handle_option): Handle new options.
2842 (gfc_cpp_post_options): Map new options to libcpp-options.
2843 (gfc_cpp_init): Handle deferred -MQ and -MT options.
2844 (gfc_cpp_done): If requested, write dependencies to file.
2845 * module.c (gfc_dump_module): Add a module filename as target.
2846 * scanner.c (open_included_file): New parameter system; add the
2847 included file as dependency.
2848 (gfc_open_included_file): Add the included file as dependency.
2849 (gfc_open_intrinsic_module): Likewise.
2850 * invoke.texi: Removed deprecation warning for -M.
2851 * gfortran.texi: Removed Makefile-dependencies project.
2853 2010-06-12 Daniel Franke <franke.daniel@gmail.com>
2855 * resolve.c (resolve_global_procedure): Improved checking if an
2856 explicit interface is required.
2858 2010-06-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2860 * trans-decl.c (gfc_build_intrinsic_function_decls): Fix
2862 * trans-intrinsic.c (gfc_conv_intrinsic_fdate): Fix argument type.
2863 (gfc_conv_intrinsic_ttynam): Likewise.
2864 (gfc_conv_intrinsic_trim): Likewise.
2866 2010-06-12 Janus Weil <janus@gcc.gnu.org>
2869 * decl.c (match_procedure_in_type): Allow procedure lists (F08).
2871 2010-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2873 * trans-intrinsic.c (gfc_build_intrinsic_lib_fndecls): Fix comment.
2875 2010-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2877 * mathbuiltins.def: Add builtins that do not directly correspond
2878 to a Fortran intrinsic, with new macro OTHER_BUILTIN.
2879 * f95-lang.c (gfc_init_builtin_functions): Define OTHER_BUILTIN.
2880 * trans-intrinsic.c (gfc_intrinsic_map_t): Remove
2881 code_{r,c}{4,8,10,16} fields. Add
2882 {,complex}{float,double,long_double}_built_in fields.
2883 (gfc_intrinsic_map): Adjust definitions of DEFINE_MATH_BUILTIN,
2884 DEFINE_MATH_BUILTIN_C and LIB_FUNCTION accordingly. Add
2885 definition of OTHER_BUILTIN.
2886 (real_compnt_info): Remove unused struct.
2887 (builtin_decl_for_precision, builtin_decl_for_float_kind): New
2889 (build_round_expr): Call builtin_decl_for_precision instead of
2891 (gfc_conv_intrinsic_aint): Call builtin_decl_for_float_kind
2892 instead of a switch.
2893 (gfc_build_intrinsic_lib_fndecls): Match
2894 {real,complex}{4,8,10,16}decl into the C-style built_in_decls.
2895 (gfc_get_intrinsic_lib_fndecl): Do not hardcode floating-point
2897 (gfc_conv_intrinsic_lib_function): Go through all the extended
2899 (gfc_trans_same_strlen_check): Call builtin_decl_for_float_kind
2900 instead of a switch.
2901 (gfc_conv_intrinsic_abs): Likewise.
2902 (gfc_conv_intrinsic_mod): Likewise.
2903 (gfc_conv_intrinsic_sign): Likewise.
2904 (gfc_conv_intrinsic_fraction): Likewise.
2905 (gfc_conv_intrinsic_nearest): Likewise.
2906 (gfc_conv_intrinsic_spacing): Likewise.
2907 (gfc_conv_intrinsic_rrspacing): Likewise.
2908 (gfc_conv_intrinsic_scale): Likewise.
2909 (gfc_conv_intrinsic_set_exponent): Likewise.
2911 2010-06-11 Paul Thomas <pault@gcc.gnu.org>
2915 * trans-expr.c (gfc_conv_derived_to_class): Handle array-valued
2916 functions with CLASS formal arguments.
2918 2010-06-10 Janus Weil <janus@gcc.gnu.org>
2921 * resolve.c (conformable_arrays): Handle allocatable components.
2923 2010-06-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2926 * gfortran.texi: Document that Cray pointers cannot be function
2929 2010-06-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2932 * gfortran.texi: Document lack of support for syntax
2933 "complex FUNCTION name*16()", and existence of alternative
2934 legacy syntax "complex*16 FUNCTION name()".
2936 2010-06-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2939 * intrinsic.texi (FLUSH): Note the difference between FLUSH and
2940 POSIX's fsync(), and how to call the latter from Fortran code.
2942 2010-06-10 Daniel Franke <franke.daniel@gmail.com>
2945 * interface.c (compare_actual_formal): Reject actual arguments with
2946 array subscript passed to ASYNCHRONOUS dummys.
2948 2010-06-10 Daniel Kraft <d@domob.eu>
2951 * gfortran.h (enum gfc_statement): Add ST_ASSOCIATE, ST_END_ASSOCIATE.
2952 (struct gfc_symbol): New field `assoc'.
2953 (struct gfc_association_list): New struct.
2954 (struct gfc_code): New struct `block' in union, move `ns' there
2955 and add association list.
2956 (gfc_free_association_list): New method.
2957 (gfc_has_vector_subscript): Made public;
2958 * match.h (gfc_match_associate): New method.
2959 * parse.h (enum gfc_compile_state): Add COMP_ASSOCIATE.
2960 * decl.c (gfc_match_end): Handle ST_END_ASSOCIATE.
2961 * interface.c (gfc_has_vector_subscript): Made public.
2962 (compare_actual_formal): Rename `has_vector_subscript' accordingly.
2963 * match.c (gfc_match_associate): New method.
2964 (gfc_match_select_type): Change reference to gfc_code's `ns' field.
2965 * primary.c (match_variable): Don't allow names associated to expr here.
2966 * parse.c (decode_statement): Try matching ASSOCIATE statement.
2967 (case_exec_markers, case_end): Add ASSOCIATE statement.
2968 (gfc_ascii_statement): Hande ST_ASSOCIATE and ST_END_ASSOCIATE.
2969 (parse_associate): New method.
2970 (parse_executable): Handle ST_ASSOCIATE.
2971 (parse_block_construct): Change reference to gfc_code's `ns' field.
2972 * resolve.c (resolve_select_type): Ditto.
2973 (resolve_code): Ditto.
2974 (resolve_block_construct): Ditto and add comment.
2975 (resolve_select_type): Set association list in generated BLOCK to NULL.
2976 (resolve_symbol): Resolve associate names.
2977 * st.c (gfc_free_statement): Change reference to gfc_code's `ns' field
2978 and free association list.
2979 (gfc_free_association_list): New method.
2980 * symbol.c (gfc_new_symbol): NULL new field `assoc'.
2981 * trans-stmt.c (gfc_trans_block_construct): Change reference to
2982 gfc_code's `ns' field.
2984 2010-06-10 Kai Tietz <kai.tietz@onevision.com>
2986 * error.c (error_print): Pre-initialize loc by NULL.
2987 * openmp.c (resolve_omp_clauses): Add explicit
2988 braces to avoid ambigous else.
2989 * array.c (match_subscript): Pre-initialize m to MATCH_ERROR.
2991 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2993 * gfc-internals.texi: Move to GFDL 1.3.
2994 * gfortran.texi: Ditto.
2995 * intrinsic.texi: Ditto.
2996 * invoke.texi: Ditto.
2998 2010-06-09 Daniel Franke <franke.daniel@gmail.com>
3001 * check.c (gfc_check_selected_real_kind): Verify that the
3002 actual arguments are scalar.
3004 2010-06-09 Daniel Franke <franke.daniel@gmail.com>
3007 * intrinsic.c (gfc_convert_type_warn): Further improve -Wconversion.
3009 2010-06-09 Janus Weil <janus@gcc.gnu.org>
3012 * dump-parse-tree.c (show_symbol): Avoid infinite loop.
3014 2010-06-09 Steven G. Kargl <kargl@gcc.gnu.org>
3016 * fortran/symbol.c (check_conflict): Remove an invalid conflict check.
3018 2010-06-09 Steven G. Kargl <kargl@gcc.gnu.org>
3020 * fortran/intrinsic.c (add_functions): Change gfc_check_btest,
3021 gfc_check_ibclr, and gfc_check_ibset to gfc_check_bitfcn.
3022 * fortran/intrinsic.h: Remove prototypes for gfc_check_btest,
3023 gfc_check_ibclr, and gfc_check_ibset. Add prototype for
3025 * fortran/check.c (nonnegative_check, less_than_bitsize1,
3026 less_than_bitsize2): New functions.
3027 (gfc_check_btest): Renamed to gfc_check_bitfcn. Use
3028 nonnegative_check and less_than_bitsize1.
3029 (gfc_check_ibclr, gfc_check_ibset): Removed.
3030 (gfc_check_ibits,gfc_check_mvbits): Use nonnegative_check and
3033 2010-06-09 Janus Weil <janus@gcc.gnu.org>
3036 * resolve.c (resolve_typebound_function,resolve_typebound_subroutine):
3039 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
3041 * resolve.c (resolve_deallocate_expr): Avoid warning
3042 about possible use of iunitialized sym.
3043 (resolve_allocate_expr): Pre-initialize sym by NULL.
3045 2010-06-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3048 * f95-lang.c (gfc_init_builtin_functions): Remove comment.
3050 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3052 * trans-types.c (gfc_get_nodesc_array_type): Use typed GC
3054 (gfc_get_array_type_bounds): Likewise.
3056 * trans-decl.c (gfc_allocate_lang_decl): Likewise.
3057 (gfc_find_module): Likewise.
3059 * f95-lang.c (pushlevel): Likewise.
3061 * trans.h (struct lang_type): Add variable_size GTY option.
3062 (struct lang_decl): Likewise.
3064 2010-06-08 Tobias Burnus <burnus@net-b.de>
3067 * symbol.c (check_conflict): Move protected--external/procedure check ...
3068 * resolve.c (resolve_select_type): ... to the resolution stage.
3070 2010-06-07 Tobias Burnus <burnus@net-b.de>
3072 * options.c (gfc_handle_option): Fix -fno-recursive.
3074 2010-06-07 Tobias Burnus <burnus@net-b.de>
3076 * gfc-internals.texi (copyrights-gfortran): Fix copyright year format.
3077 * gfortran.texi (copyrights-gfortran): Ditto.
3079 2010-06-07 Joseph Myers <joseph@codesourcery.com>
3081 * lang.opt (fshort-enums): Define using Var and VarExists.
3082 * options.c (gfc_handle_option): Don't set flag_short_enums here.
3084 2010-06-05 Paul Thomas <pault@gcc.gnu.org>
3085 Janus Weil <janus@gcc.gnu.org>
3088 * resolve.c (get_declared_from_expr): Move to before
3089 resolve_typebound_generic_call. Make new_ref and class_ref
3090 ignorable if set to NULL.
3091 (resolve_typebound_generic_call): Once we have resolved the
3092 generic call, check that the specific instance is that which
3093 is bound to the declared type.
3094 (resolve_typebound_function,resolve_typebound_subroutine): Avoid
3095 freeing 'class_ref->next' twice.
3097 2010-06-05 Paul Thomas <pault@gcc.gnu.org>
3100 * trans-array.c (structure_alloc_comps): Dereference scalar
3101 'decl' if it is a REFERENCE_TYPE. Tidy expressions containing
3104 2010-06-04 Joseph Myers <joseph@codesourcery.com>
3106 * gfortranspec.c (append_arg, lang_specific_driver): Use
3107 GCC-specific formats in diagnostics.
3109 2010-06-02 Tobias Burnus <burnus@net-b.de>
3112 * parse.c (gfc_fixup_sibling_symbols): Do not "fix" use-associated
3115 2010-06-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
3118 * match.c (gfc_match_stopcode): Move gfc_match_eos call inside
3121 2010-05-31 Steven G. Kargl <kargl@gcc.gnu.org>
3123 * fortran/gfortran.texi: Fix typos in description of variable-format-
3126 2010-05-31 Thomas Koenig <tkoenig@gcc.gnu.org>
3129 * dependency.c (gfc_check_section_vs_section): Check
3130 for interleaving array assignments without conflicts.
3132 2010-05-30 Janus Weil <janus@gcc.gnu.org>
3134 * gcc/fortran/gfortran.h (CLASS_DATA): New macro for accessing the
3135 $data component of a class container.
3136 * gcc/fortran/decl.c (attr_decl1): Use macro CLASS_DATA.
3137 * gcc/fortran/expr.c (gfc_check_pointer_assign,gfc_check_assign_symbol,
3138 gfc_has_ultimate_allocatable,gfc_has_ultimate_pointer): Ditto.
3139 * gcc/fortran/interface.c (matching_typebound_op): Ditto.
3140 * gcc/fortran/match.c (gfc_match_allocate, gfc_match_deallocate): Ditto.
3141 * gcc/fortran/parse.c (parse_derived): Ditto.
3142 * gcc/fortran/primary.c (gfc_match_varspec, gfc_variable_attr,
3143 gfc_expr_attr): Ditto.
3144 * gcc/fortran/resolve.c (resolve_structure_cons, find_array_spec,
3145 resolve_deallocate_expr, resolve_allocate_expr, resolve_select_type,
3146 resolve_fl_var_and_proc, resolve_typebound_procedure,
3147 resolve_fl_derived): Ditto.
3148 * gcc/fortran/symbol.c (gfc_type_compatible): Restructured.
3149 * gcc/fortran/trans-array.c (structure_alloc_comps): Use macro
3151 * gcc/fortran/trans-decl.c (gfc_get_symbol_decl,
3152 gfc_trans_deferred_vars): Ditto.
3153 * gcc/fortran/trans-stmt.c (gfc_trans_allocate): Ditto.
3155 2010-05-28 Tobias Burnus <burnus@net-b.de>
3157 * options.c (gfc_handle_option): Fix handling of -fno-whole-file.
3159 2010-05-28 Joseph Myers <joseph@codesourcery.com>
3161 * gfortranspec.c (append_arg, lang_specific_driver): Use
3162 fatal_error instead of fatal. Use warning instead of fprintf for
3165 2010-05-28 Joseph Myers <joseph@codesourcery.com>
3167 * cpp.c (gfc_cpp_init_0): Use xstrerror instead of strerror.
3168 * module.c (write_char, gfc_dump_module, gfc_use_module): Use
3169 xstrerror instead of strerror.
3171 2010-05-26 Joseph Myers <joseph@codesourcery.com>
3173 * cpp.c (cb_cpp_error): Save and restore
3174 global_dc->warn_system_headers, not variable warn_system_headers.
3176 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3178 * fortran/f95-lang.c: Do not include libfuncs.h, expr.h, and except.h.
3180 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3182 * trans-common.c: Do not include rtl.h, include output.h instead.
3183 * trans-decl.c: Likewise.
3185 2010-05-26 Paul Thomas <pault@gcc.gnu.org>
3188 * resolve.c (resolve_global_procedure): Resolve the gsymbol's
3189 namespace before trying to reorder the gsymbols.
3191 2010-05-25 Daniel Franke <franke.daniel@gmail.com>
3196 * resolve.c (resolve_global_procedure): Add check for global
3197 procedures with implicit interfaces and assumed-shape or optional
3198 dummy arguments. Verify that function return type, kind and string
3201 2010-05-21 Tobias Burnus <burnus@net-b.de>
3203 * gfortran.h: Do not include system.h.
3204 * bbt.c: Include system.h.
3206 * dependency.c: Ditto.
3207 * dump-parse-tree.c: Ditto.
3208 * arith.h: Do not include gfortran.h.
3209 * constructor.h: Do not include gfortran.h and splay-tree.h.
3210 * match.h: Do not include gfortran.h.
3212 * target-memory.h: Ditto.
3213 * openmp.c: Do not include toplev.h and target.h.
3214 * trans-stmt.c: Ditto not include toplev.h.
3216 * trans-common.c: Tell why toplev.h is needed. And
3217 do not include target.h.
3218 * trans-expr.c: Tell why toplev.h is needed.
3219 * trans-array.c: Ditto.
3220 * trans-openmp.c: Ditto.
3221 * trans-const.c: Ditto.
3223 * trans-types.c: Ditto.
3224 * trans-io.c: Ditto.
3225 * trans-decl.c: Ditto.
3228 * trans-intrinsic.c: Ditto.
3231 2010-05-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
3234 * match.c (gfc_match_stopcode): Use gfc_match_init_expr. Go to cleanup
3235 before returning MATCH_ERROR. Add check for scalar. Add check for
3236 default integer kind.
3238 2010-05-22 Janus Weil <janus@gcc.gnu.org>
3241 * match.c (gfc_match_select_type): On error jump back out of the local
3243 * parse.c (parse_derived): Defer creation of vtab symbols to resolution
3244 stage, more precisely to ...
3245 * resolve.c (resolve_fl_derived): ... this place.
3247 2010-05-22 Janus Weil <janus@gcc.gnu.org>
3250 * resolve.c (ensure_not_abstract): Allow abstract types with
3251 non-abstract ancestors.
3253 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
3255 * trans-const.c: Include realmpfr.h.
3256 * Make-lang.in: Update dependencies.
3258 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
3260 * trans-const.c, trans-types.c, trans-intrinsic.c:
3261 Clean up redundant includes.
3263 2010-05-20 Daniel Franke <franke.daniel@gmail.com>
3266 * lang.opt (Wunused-dummy-argument): New option.
3267 * gfortran.h (gfc_option_t): Add warn_unused_dummy_argument.
3268 * options.c (gfc_init_options): Disable warn_unused_dummy_argument.
3269 (set_Wall): Enable warn_unused_dummy_argument.
3270 (gfc_handle_option): Set warn_unused_dummy_argument according to
3272 * trans-decl.c (generate_local_decl): Separate warnings about
3273 unused variables and unused dummy arguments.
3274 * invoke.texi: Documented new option.
3276 2010-05-20 Steven Bosscher <steven@gcc.gnu.org>
3278 * trans-expr.c: Do not include convert.h, ggc.h, real.h, and gimple.h.
3279 (gfc_conv_string_tmp): Do not assert type comparibilty.
3280 * trans-array.c: Do not include gimple.h, ggc.h, and real.h.
3281 (gfc_conv_expr_descriptor): Remove assert.
3282 * trans-common.c: Clarify why rtl.h and tm.h are included.
3283 * trans-openmp.c: Do not include ggc.h and real.h.
3284 Explain why gimple.h is included.
3285 * trans-const.c: Do not include ggc.h.
3286 * trans-stmt.c: Do not include gimple.h, ggc.h, and real.h.
3287 * trans.c: Do not include ggc.h and real.h.
3288 Explain why gimple.h is included.
3289 * trans-types.c: Do not include tm.h. Explain why langhooks.h
3290 and dwarf2out.h are included.
3291 * trans-io.c: Do not include gimple.h and real.h.
3292 * trans-decl.c: Explain why gimple.h, tm.h, and rtl.h are included.
3293 * trans-intrinsic.c: Do not include gimple.h. Explain why tm.h
3296 2010-05-20 Tobias Burnus <burnus@net-b.de>
3298 * options.c (gfc_init_options,gfc_post_options): Enable
3299 flag_associative_math by default.
3301 2010-05-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
3304 * trans-stmt.c (gfc_trans_stop): Add generation of call to
3305 gfortran_error_stop_numeric. Fix up some whitespace. Use stop_string for
3306 blank STOP, handling a null expression. (gfc_trans_pause): Use
3307 pause_string for blank PAUSE.
3308 * trans.h: Add external function declaration for error_stop_numeric.
3309 * trans-decl.c (gfc_build_builtin_function_decls): Add the building of
3310 the declaration for the library call. Adjust whitespaces.
3311 * match.c (gfc_match_stopcode): Remove use of the actual stop code to
3312 signal no stop code. Match the expression following the stop and pass
3313 that to the translators. Remove the old use of digit matching. Add
3314 checks that the stop_code expression is INTEGER or CHARACTER, constant,
3315 and if CHARACTER, default character KIND.
3317 2010-05-19 Daniel Franke <franke.daniel@gmail.com>
3320 * lang.opt (Wconversion-extra): New option.
3321 * gfortran.h (gfc_option_t): Add warn_conversion_extra.
3322 * options.c (gfc_init_options): Disable -Wconversion-extra by default.
3323 (set_Wall): Enable -Wconversion.
3324 (gfc_handle_option): Set warn_conversion_extra.
3325 * intrinsic.c (gfc_convert_type_warn): Ignore kind conditions
3326 introduced for -Wconversion if -Wconversion-extra is present.
3327 * invoke.texi: Add -Wconversion to -Wall; document new behaviour of
3328 -Wconversion; document -Wconversion-extra.
3330 2010-05-19 Daniel Franke <franke.daniel@gmail.com>
3333 * gfortran.h (gfc_has_default_initializer): New.
3334 * expr.c (gfc_has_default_initializer): New.
3335 * resolve.c (has_default_initializer): Removed, use
3336 gfc_has_default_initializer() instead. Updated all callers.
3337 * trans-array.c (has_default_initializer): Removed, use
3338 gfc_has_default_initializer() instead. Updated all callers.
3339 * trans-decl.c (generate_local_decl): Do not check the
3340 first component only to check for initializers, but use
3341 gfc_has_default_initializer() instead.
3343 2010-05-19 Daniel Franke <franke.daniel@gmail.com>
3346 * primary.c (match_string_constant): Move start_locus just inside
3348 * data.c (create_character_intializer): Clarified truncation warning.
3350 2010-05-19 Daniel Franke <franke.daniel@gmail.com>
3353 * intrinsic.h (gfc_check_float): New prototype.
3354 (gfc_check_sngl): New prototype.
3355 * check.c (gfc_check_float): New.
3356 (gfc_check_sngl): New.
3357 * intrinsic.c (add_functions): Moved DFLOAT from aliasing DBLE
3358 to be a specific for REAL. Added check routines for FLOAT, DFLOAT
3360 * intrinsic.texi: Removed individual nodes of FLOAT, DFLOAT and SNGL,
3361 added them to the list of specifics of REAL instead.
3363 2010-05-17 Janus Weil <janus@gcc.gnu.org>
3366 * trans-expr.c (gfc_conv_structure): Remove unneeded and buggy code.
3367 This is now handled via 'gfc_class_null_initializer'.
3369 2010-05-17 Janus Weil <janus@gcc.gnu.org>
3371 * class.c (gfc_add_component_ref,gfc_class_null_initializer,
3372 gfc_build_class_symbol,add_proc_component,add_proc_comps,
3373 add_procs_to_declared_vtab1,copy_vtab_proc_comps,
3374 add_procs_to_declared_vtab,add_generic_specifics,
3375 add_generics_to_declared_vtab,gfc_find_derived_vtab,
3376 find_typebound_proc_uop,gfc_find_typebound_proc,
3377 gfc_find_typebound_user_op,gfc_find_typebound_intrinsic_op,
3378 gfc_get_tbp_symtree): Moved here from other places.
3379 * expr.c (gfc_add_component_ref,gfc_class_null_initializer): Move to
3381 * gfortran.h (gfc_build_class_symbol,gfc_find_derived_vtab,
3382 gfc_find_typebound_proc,gfc_find_typebound_user_op,
3383 gfc_find_typebound_intrinsic_op,gfc_get_tbp_symtree,
3384 gfc_add_component_ref, gfc_class_null_initializer): Moved to class.c.
3385 * Make-lang.in: Add class.o.
3386 * symbol.c (gfc_build_class_symbol,add_proc_component,add_proc_comps,
3387 add_procs_to_declared_vtab1,copy_vtab_proc_comps,
3388 add_procs_to_declared_vtab,add_generic_specifics,
3389 add_generics_to_declared_vtab,gfc_find_derived_vtab,
3390 find_typebound_proc_uop,gfc_find_typebound_proc,
3391 gfc_find_typebound_user_op,gfc_find_typebound_intrinsic_op,
3392 gfc_get_tbp_symtree): Move to class.c.
3394 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
3396 * trans-types.c (gfc_init_types): Use build_function_type_list.
3397 (gfc_get_ppc_type): Likewise.
3398 * trans-decl.c (gfc_generate_constructors): Likewise.
3399 * f95-lang.c (build_builtin_fntypes): Likewise.
3400 (gfc_init_builtin_functions): Likewise.
3401 (DEF_FUNCTION_TYPE_0): Likewise.
3402 (DEF_FUNCTION_TYPE_1): Likewise.
3403 (DEF_FUNCTION_TYPE_2): Likewise.
3404 (DEF_FUNCTION_TYPE_3): Likewise.
3405 (DEF_FUNCTION_TYPE_4): Likewise.
3406 (DEF_FUNCTION_TYPE_5): Likewise.
3407 (DEF_FUNCTION_TYPE_6): Likewise.
3408 (DEF_FUNCTION_TYPE_7): Likewise. Use ARG7.
3409 (DEF_FUNCTION_TYPE_VAR_0): Use build_varags_function_type_list.
3411 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
3413 * trans-array.c (gfc_trans_array_constructor_value): Use
3414 build_constructor instead of build_constructor_from_list.
3415 (gfc_build_constant_array_constructor): Likewise.
3416 * trans-decl.c (create_main_function): Likewise.
3417 * trans-stmt.c (gfc_trans_character_select): Likewise.
3419 2010-05-17 Janus Weil <janus@gcc.gnu.org>
3422 * resolve.c (resolve_fl_var_and_proc): Move error messages here from ...
3423 (resolve_fl_variable_derived): ... this place.
3424 (resolve_symbol): Make sure function symbols (and their result
3425 variables) are not resolved twice.
3427 2010-05-16 Daniel Franke <franke.daniel@gmail.com>
3430 * array.c (match_array_list): Revert change from 2010-05-13.
3432 2010-05-16 Richard Guenther <rguenther@suse.de>
3434 * trans-decl.c (module_htab_decls_hash): Revert last change.
3436 2010-05-16 Richard Guenther <rguenther@suse.de>
3438 * trans-decl.c (module_htab_decls_hash): Use IDENTIFIER_HASH_VALUE.
3440 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3442 * options.c (set_Wall): Remove special logic for Wuninitialized
3445 2010-05-15 Janus Weil <janus@gcc.gnu.org>
3449 * trans-decl.c (gfc_trans_deferred_vars): Modify ordering of
3452 2010-05-15 Janus Weil <janus@gcc.gnu.org>
3456 * gfortran.h (gfc_class_null_initializer): New prototype.
3457 * expr.c (gfc_class_null_initializer): New function to build a NULL
3458 initializer for CLASS pointers.
3459 * symbol.c (gfc_build_class_symbol): Modify internal naming of class
3460 containers. Remove default NULL initialization of $data component.
3461 * trans.c (gfc_allocate_array_with_status): Fix wording of an error
3463 * trans-expr.c (gfc_conv_initializer,gfc_trans_subcomponent_assign):
3464 Use new function 'gfc_class_null_initializer'.
3465 * trans-intrinsic.c (gfc_conv_allocated): Handle allocatable scalar
3468 2010-05-14 Steven G. Kargl <kargl@gcc.gnu.org>
3471 * fortran/interface.c (get_sym_storage_size): Use signed instead of
3472 unsigned mpz_get_?i routines.
3474 2010-05-14 Jakub Jelinek <jakub@redhat.com>
3476 * trans.c (trans_code): Set backend locus early.
3477 * trans-decl.c (gfc_get_fake_result_decl): Use source location
3478 of the function instead of current input_location.
3480 2010-05-13 Daniel Franke <franke.daniel@gmail.com>
3483 * intrinsic.c (gfc_init_expr): Renamed to gfc_init_expr_flag.
3485 * expr.c (init_flag): Removed; use gfc_init_expr_flag everywhere.
3486 * array.c (match_array_list): Pass on gfc_init_expr_flag when matching
3489 2010-05-13 Jakub Jelinek <jakub@redhat.com>
3492 * openmp.c (resolve_omp_clauses): Allow procedure pointers in clause
3494 * trans-openmp.c (gfc_omp_privatize_by_reference): Don't privatize
3495 by reference dummy procedures or non-dummy procedure pointers.
3496 (gfc_omp_predetermined_sharing): Return
3497 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE for dummy procedures.
3499 2010-05-11 Daniel Franke <franke.daniel@gmail.com>
3502 * openmp.c (gfc_match_omp_taskwait): Report unexpected characters
3503 after OMP statement.
3504 (gfc_match_omp_critical): Likewise.
3505 (gfc_match_omp_flush): Likewise.
3506 (gfc_match_omp_workshare): Likewise.
3507 (gfc_match_omp_master): Likewise.
3508 (gfc_match_omp_ordered): Likewise.
3509 (gfc_match_omp_atomic): Likewise.
3510 (gfc_match_omp_barrier): Likewise.
3511 (gfc_match_omp_end_nowait): Likewise.
3513 2010-05-11 Daniel Franke <franke.daniel@gmail.com>
3516 * resolve.c (validate_case_label_expr): Removed FIXME.
3517 (resolve_select): Raise default warning on case labels out of range
3518 of the case expression.
3520 2010-05-10 Daniel Franke <franke.daniel@gmail.com>
3525 * intrinsic.c (gfc_convert_type_warn): Be more discriminative
3526 about conversion warnings.
3528 2010-05-10 Janus Weil <janus@gcc.gnu.org>
3531 * match.c (gfc_match_select_type): Move error message to
3532 resolve_select_type.
3533 * resolve.c (resolve_select_type): Error message moved here from
3534 gfc_match_select_type. Correctly set type of temporary.
3536 2010-05-10 Richard Guenther <rguenther@suse.de>
3538 * trans-decl.c (gfc_build_library_function_decl): Split out
3540 (build_library_function_decl_1): ... this new function.
3541 Set a fnspec attribute if a specification was provided.
3542 (gfc_build_library_function_decl_with_spec): New function.
3543 (gfc_build_intrinsic_function_decls): Annotate internal_pack
3544 and internal_unpack.
3546 2010-05-07 Daniel Franke <franke.daniel@gmail.com>
3549 * intrinc.c (gfc_is_intrinsic): Do not prematurely mark symbol
3552 2010-05-07 Jason Merrill <jason@redhat.com>
3554 * trans-expr.c (gfc_conv_procedure_call): Rename nullptr to null_ptr
3555 to avoid -Wc++-compat warning.
3557 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3560 * options.c (gfc_handle_option): Add argument kind.
3561 * gfortran.h (gfc_handle_option): Update declaration.
3563 2010-05-06 Tobias Burnus <burnus@net-b.de>
3566 * trans-types.c (gfc_sym_type): Mark Cray pointees as
3569 2010-05-05 Daniel Franke <franke.daniel@gmail.com>
3572 * resolve.c (traverse_data_list): Rephrase error message for
3573 non-constant bounds in data-implied-do.
3575 2010-05-05 Daniel Franke <franke.daniel@gmail.com>
3578 * gfortran.h: Removed repeat count from constructor, removed
3580 * data.h (gfc_assign_data_value_range): Changed return value from
3582 * data.c (gfc_assign_data_value): Add location to constructor element.
3583 (gfc_assign_data_value_range): Call gfc_assign_data_value()
3584 for each element in range. Return early if an error was generated.
3585 * resolve.c (check_data_variable): Stop early if range assignment
3588 2010-05-05 Janus Weil <janus@gcc.gnu.org>
3591 * resolve.c (resolve_fl_derived): Some fixes for class variables.
3592 * symbol.c (gfc_build_class_symbol): Add separate class container for
3595 2010-05-03 Steven G. Kargl <kargl@gcc.gnu.org>
3598 * fortran/parse.c (parse_interface): Do not dereference a NULL pointer.
3600 2010-05-02 Tobias Burnus <burnus@net-b.de>
3603 * intrinsic.c (add_functions): Fix GFC_STD and add gfc_resolve_ calls
3604 for lcobound, ucobound, image_index and this_image.
3605 * intrinsic.h (gfc_resolve_lcobound, gfc_resolve_this_image,
3606 gfc_resolve_image_index, gfc_resolve_ucobound): New prototypes.
3607 * iresolve.c (gfc_resolve_lcobound, gfc_resolve_this_image,
3608 gfc_resolve_image_index, gfc_resolve_ucobound, resolve_bound): New
3610 (gfc_resolve_lbound, gfc_resolve_ubound): Use resolve_bound.
3612 2010-04-30 Tobias Burnus <burnus@net-b.de>
3616 * trans-types.c (gfc_get_array_descriptor_base): Fix index
3617 calculation for array descriptor types.
3619 2010-04-29 Janus Weil <janus@gcc.gnu.org>
3622 * symbol.c (add_proc_component,copy_vtab_proc_comps): Remove
3623 initializers for PPC members of the vtabs.
3625 2010-04-29 Janus Weil <janus@gcc.gnu.org>
3628 * symbol.c (add_proc_component,add_proc_comps): Correctly set the 'ppc'
3629 attribute for all PPC members of the vtypes.
3630 (copy_vtab_proc_comps): Copy the correct interface.
3631 * trans.h (gfc_trans_assign_vtab_procs): Modified prototype.
3632 * trans-expr.c (gfc_trans_assign_vtab_procs): Pass the derived type as
3633 a dummy argument and make sure all PPC members of the vtab are
3634 initialized correctly.
3635 (gfc_conv_derived_to_class,gfc_trans_class_assign): Additional argument
3636 in call to gfc_trans_assign_vtab_procs.
3637 * trans-stmt.c (gfc_trans_allocate): Ditto.
3639 2010-04-29 Paul Thomas <pault@gcc.gnu.org>
3642 * resolve.c (resolve_typebound_function): Renamed
3643 resolve_class_compcall.Do all the detection of class references
3645 (resolve_typebound_subroutine): resolve_class_typebound_call
3646 renamed. Otherwise same as resolve_typebound_function.
3647 (gfc_resolve_expr): Call resolve_typebound_function.
3648 (resolve_code): Call resolve_typebound_subroutine.
3650 2010-04-29 Janus Weil <janus@gcc.gnu.org>
3653 * resolve.c (resolve_typebound_generic_call): For CLASS methods
3654 pass back the specific symtree name, rather than the target
3657 2010-04-29 Paul Thomas <pault@gcc.gnu.org>
3660 * resolve.c (resolve_structure_cons): Make the initializer of
3661 the vtab component 'extends' the same type as the component.
3663 2010-04-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
3666 * interface.c (check_interface1): Pass symbol name rather than NULL to
3667 gfc_compare_interfaces.(gfc_compare_interfaces): Add assert to
3668 trap MULL. (gfc_compare_derived_types): Revert previous change
3669 incorporated incorrectly during merge from trunk, r155778.
3670 * resolve.c (check_generic_tbp_ambiguity): Pass symbol name rather
3671 than NULL to gfc_compare_interfaces.
3672 * symbol.c (add_generic_specifics): Likewise.
3674 2010-02-29 Janus Weil <janus@gcc.gnu.org>
3677 * interface.c (gfc_compare_derived_types): Add condition for vtype.
3678 * symbol.c (gfc_find_derived_vtab): Sey access to private.
3679 (gfc_find_derived_vtab): Likewise.
3680 * module.c (ab_attribute): Add enumerator AB_VTAB.
3681 (mio_symbol_attribute): Use new attribute, AB_VTAB.
3682 (check_for_ambiguous): Likewise.
3684 2010-04-29 Paul Thomas <pault@gcc.gnu.org>
3685 Janus Weil <janus@gcc.gnu.org>
3688 * trans-expr.c (select_class_proc): Remove function.
3689 (conv_function_val): Delete reference to previous.
3690 (gfc_conv_derived_to_class): Add second argument to the call to
3691 gfc_find_derived_vtab.
3692 (gfc_conv_structure): Exclude proc_pointer components when
3693 accessing $data field of class objects.
3694 (gfc_trans_assign_vtab_procs): New function.
3695 (gfc_trans_class_assign): Add second argument to the call to
3696 gfc_find_derived_vtab.
3697 * symbol.c (gfc_build_class_symbol): Add delayed_vtab arg and
3698 implement holding off searching for the vptr derived type.
3699 (add_proc_component): New function.
3700 (add_proc_comps): New function.
3701 (add_procs_to_declared_vtab1): New function.
3702 (copy_vtab_proc_comps): New function.
3703 (add_procs_to_declared_vtab): New function.
3704 (void add_generic_specifics): New function.
3705 (add_generics_to_declared_vtab): New function.
3706 (gfc_find_derived_vtab): Add second argument to the call to
3707 gfc_find_derived_vtab. Add the calls to
3708 add_procs_to_declared_vtab and add_generics_to_declared_vtab.
3709 * decl.c (build_sym, build_struct): Use new arg in calls to
3710 gfc_build_class_symbol.
3711 * gfortran.h : Add vtype bitfield to symbol_attr. Remove the
3712 definition of struct gfc_class_esym_list. Modify prototypes
3713 of gfc_build_class_symbol and gfc_find_derived_vtab.
3714 * trans-stmt.c (gfc_trans_allocate): Add second argument to the
3715 call to gfc_find_derived_vtab.
3716 * module.c : Add the vtype attribute.
3717 * trans.h : Add prototype for gfc_trans_assign_vtab_procs.
3718 * resolve.c (resolve_typebound_generic_call): Add second arg
3719 to pass along the generic name for class methods.
3720 (resolve_typebound_call): The same.
3721 (resolve_compcall): Use the second arg to carry the generic
3722 name from the above. Remove the reference to class_esym.
3723 (check_members, check_class_members, resolve_class_esym,
3724 hash_value_expr): Remove functions.
3725 (resolve_class_compcall, resolve_class_typebound_call): Modify
3726 to use vtable rather than member by member calls.
3727 (gfc_resolve_expr): Modify second arg in call to
3729 (resolve_select_type): Add second arg in call to
3730 gfc_find_derived_vtab.
3731 (resolve_code): Add second arg in call resolve_typebound_call.
3732 (resolve_fl_derived): Exclude vtypes from check for late
3733 procedure definitions. Likewise for checking of explicit
3734 interface and checking of pass arg.
3735 * iresolve.c (gfc_resolve_extends_type_of): Add second arg in
3736 calls to gfc_find_derived_vtab.
3737 * match.c (select_type_set_tmp): Use new arg in call to
3738 gfc_build_class_symbol.
3739 * trans-decl.c (gfc_get_symbol_decl): Complete vtable if
3741 * parse.c (endType): Finish incomplete classes.
3743 2010-04-28 Tobias Burnus <burnus@net-b.de>
3747 * simplify.c (simplify_cobound): Handle scalar coarrays.
3749 2010-04-27 Tobias Burnus <burnus@net-b.de>
3751 * gfc-internals.texi: Update copyright year.
3752 * gfortran.texi: Ditto.
3753 * invoke.texi: Ditto.
3755 2010-04-27 Tobias Burnus <burnus@net-b.de>
3758 * resolve.c (resolve_allocate_expr): Allow array coarrays.
3759 * trans-types.h (gfc_get_array_type_bounds): Update prototype.
3760 * trans-types.c (gfc_get_array_type_bounds,
3761 gfc_get_array_descriptor_base): Add corank argument.
3762 * trans-array.c (gfc_array_init_size): Handle corank.
3763 (gfc_trans_create_temp_array, gfc_array_allocate,
3764 gfc_conv_expr_descriptor): Add corank argument to call.
3765 * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Ditto.
3767 2010-04-24 Steven G. Kargl <kargl@gcc.gnu.org>
3771 * trans-array.c (gfc_trans_array_bound_check): Use TREE_CODE instead
3772 of mucking with a tree directly.
3774 2010-04-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
3777 * io.c (gfc_match_open): Remove branch to syntax error. Add call to
3778 gfc_error with new error message.
3780 2010-04-24 Paul Thomas <pault@gcc.gnu.org>
3784 * trans-expr.c (gfc_conv_expr): Supply an address expression for
3786 (gfc_conv_expr_reference): Call gfc_conv_expr and return for
3788 * trans-array.c (gfc_add_loop_ss_code): Store the value rather
3789 than the address of a GFC_SS_REFERENCE.
3790 * trans.h : Change comment on GFC_SS_REFERENCE.
3792 2010-04-22 Richard Guenther <rguenther@suse.de>
3795 * resolve.c (gfc_resolve_index): Wrap around ...
3796 (gfc_resolve_index_1): ... this. Add parameter to allow
3797 any integer kind index type.
3798 (resolve_array_ref): Allow any integer kind for the start
3799 index of an array ref.
3801 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3804 * f95-lang.c (gfc_define_builtin): Set TREE_NOTHROW on
3807 2010-04-20 Harald Anlauf <anlauf@gmx.de>
3809 * intrinsic.c (sort_actual): Remove 'is' in error message.
3811 2010-04-20 Paul Thomas <pault@gcc.gnu.org>
3814 * resolve.c (resolve_fl_derived): If a component character
3815 length has not been resolved, do so now.
3816 (resolve_symbol): The same as above for a symbol character
3818 * trans-decl.c (gfc_create_module_variable): A 'length' decl is
3819 not needed for a character valued, procedure pointer.
3822 * resolve.c (ensure_not_abstract_walker): If 'overriding' is
3823 not found, return FAILURE rather than ICEing.
3825 2010-04-19 Jakub Jelinek <jakub@redhat.com>
3828 * openmp.c (gfc_resolve_do_iterator): Only make iteration vars for
3829 sequential loops private in the innermost containing task region.
3831 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
3833 * f95-lang.c (gfc_init_decl_processing): Remove second argument in call
3834 to build_common_tree_nodes.
3836 2010-04-17 Steven G. Kargl <kargl@gcc.gnu.org>
3839 * fortran/trans-array.c (gfc_conv_ss_startstride): Remove the use of
3840 gfc_msg_bounds by using 'Array bound mismatch' directly.
3841 (gfc_trans_dummy_array_bias): Remove the use of gfc_msg_bounds. Reword
3842 error message to include the mismatch in the extent of array bound.
3843 * fortran/trans.c: Remove gfc_msg_bounds. It is only used in one place.
3844 * fortran/trans.h: Remove extern definition of gfc_msg_bounds.
3846 2010-04-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
3848 * gfortran.texi: Update information on temporary file locations.
3850 2010-04-16 Jakub Jelinek <jakub@redhat.com>
3852 * trans-decl.c (gfc_build_qualified_array): Ensure
3853 ubound.N and lbound.N artificial variable names don't appear
3856 2010-04-15 Steven G. Kargl <kargl@gcc.gnu.org>
3859 * trans-array.c (gfc_trans_array_bound_check): Eliminate a redundant
3860 block of code. Set name to the variable associated with the descriptor.
3862 2010-04-15 Jakub Jelinek <jakub@redhat.com>
3864 * trans-decl.c (gfc_build_qualified_array): Clear DECL_IGNORED_P
3865 on VAR_DECL LBOUND and/or UBOUND, even for -O1.
3867 2010-04-14 Steven G. Kargl <kargl@gcc.gnu.org>
3869 * intrinsic.texi: Add the missing specific name of intrinsic
3870 procedure where the specific name is identical to the generic name.
3871 Fix inconsistent or mismatch in the argument names in intrinsic
3872 procedure descriptions. Add the SCALAR allocatable description to
3875 2010-04-14 Tobias Burnus <burnus@net-b.de>
3878 * array.c (gfc_find_array_ref): Handle codimensions.
3879 (gfc_match_array_spec,gfc_match_array_ref): Use gfc_fatal_error.
3880 * check.c (is_coarray, dim_corank_check, gfc_check_lcobound,
3881 gfc_check_image_index, gfc_check_this_image, gfc_check_ucobound):
3883 * gfortran.h (gfc_isym_id): Add GFC_ISYM_IMAGE_INDEX,
3884 GFC_ISYM_LCOBOUND, GFC_ISYM_THIS_IMAGE,
3886 * intrinsic.h (add_functions): Add this_image, image_index,
3887 lcobound and ucobound intrinsics.
3888 * intrinsic.c (gfc_check_lcobound,gfc_check_ucobound,
3889 gfc_check_image_index, gfc_check_this_image,
3890 gfc_simplify_image_index, gfc_simplify_lcobound,
3891 gfc_simplify_this_image, gfc_simplify_ucobound):
3892 New function prototypes.
3893 * intrinsic.texi (IMAGE_INDEX, LCOBOUND, THIS_IMAGE
3894 IMAGE_INDEX): Document new intrinsic functions.
3895 * match.c (gfc_match_critical, sync_statement): Make -fcoarray=none
3897 * simplify.c (simplify_bound_dim): Handle coarrays.
3898 (simplify_bound): Update simplify_bound_dim call.
3899 (gfc_simplify_num_images): Add -fcoarray=none check.
3900 (simplify_cobound, gfc_simplify_lcobound, gfc_simplify_ucobound,
3901 gfc_simplify_ucobound, gfc_simplify_ucobound): New functions.
3903 2010-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
3906 * constructor.c: Fix typo in comment.
3907 * expr.c (find_array_section): Add check for max array limit.
3909 2010-04-13 Iain Sandoe <iains@gcc.gnu.org>
3912 * gfortranspec.c (lookup_option): Check for -static and return
3914 (lang_specific_driver): Break when OPTION_static is discovered.
3916 2010-04-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
3918 * array.c (extract_element): Restore function from trunk.
3919 (gfc_get_array_element): Restore function from trunk.
3920 (gfc_expand_constructor): Restore check against
3921 flag_max_array_constructor.
3922 * constructor.c (node_copy_and_append): Delete unused.