1 2008-07-29 Daniel Kraft <d@domob.eu>
4 * trans-intrinsic.c (conv_generic_with_optional_char_arg): New method
5 to append a string-length even if the string argument is missing, e.g.
7 (gfc_conv_intrinsic_function): Call the new method for EOSHIFT, PACK
10 2008-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12 * gfortran.h (try): Remove macro. Replace try with gfc_try
23 * interface.c: Likewise.
24 * intrinsic.c: Likewise.
25 * intrinsic.h: Likewise.
30 * resolve.c: Likewise.
31 * scanner.c: Likewise.
32 * simplify.c: Likewise.
34 * trans-openmp.c: Likewise.
35 * trans-types.c: Likewise.
37 2008-07-28 Tobias Burnus <burnus@net-b.de>
39 * Make-lang.in: Remove -Wno-* from fortran-warn.
41 2008-07-28 Richard Guenther <rguenther@suse.de>
43 Merge from gimple-tuples-branch.
45 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
47 * trans-expr.c: Include gimple.h instead of tree-gimple.h.
48 * trans-array.c: Same.
49 * trans-openmp.c: Same.
54 * trans-intrinsic.c: Same.
55 * trans.c: Same. Include tree-iterator.h.
56 * Make-lang.in (trans.o): Depend on tree-iterator.h
58 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
60 * trans-array.h (gfc_conv_descriptor_data_set_internal):
61 Rename to gfc_conv_descriptor_data_set.
62 (gfc_conv_descriptor_data_set_tuples): Remove.
63 * trans-array.c (gfc_conv_descriptor_data_get): Rename
64 from gfc_conv_descriptor_data_set_internal.
65 Remove last argument to gfc_add_modify.
66 (gfc_trans_allocate_array_storage): Rename gfc_add_modify_expr to
68 (gfc_trans_create_temp_array): Same.
69 (gfc_conv_array_transpose): Same.
70 (gfc_grow_array): Same.
71 (gfc_put_offset_into_var): Same.
72 (gfc_trans_array_ctor_element): Same.
73 (gfc_trans_array_constructor_subarray): Same.
74 (gfc_trans_array_constructor_value): Same.
75 (gfc_trans_scalarized_loop_end): Same.
76 (gfc_array_init_size): Same.
77 (gfc_array_allocate): Same.
78 (gfc_trans_array_bounds): Same.
79 (gfc_trans_auto_array_allocation): Same.
80 (gfc_trans_g77_array): Same.
81 (gfc_trans_dummy_array_bias): Same.
82 (gfc_conv_expr_descriptor): Same.
83 (structure_alloc_comps): Same.
85 * trans-openmp.c (gfc_omp_clause_default_ctor): Same.
86 Rename gfc_conv_descriptor_data_set_tuples to
87 gfc_conv_descriptor_data_set.
88 (gfc_omp_clause_copy_ctor): Change build_gimple_modify_stmt to
90 (gfc_omp_clause_assign_op): Same.
91 (gfc_trans_omp_array_reduction): Rename gfc_add_modify_expr to
93 (gfc_trans_omp_atomic): Same.
94 (gfc_trans_omp_do): Same. Change GIMPLE_MODIFY_STMT to MODIFY_EXPR.
95 Rename gfc_add_modify_stmt to gfc_add_modify.
96 * trans-stmt.c: Rename gfc_add_modify_expr to
98 * trans.c: Rename gfc_add_modify_expr to
100 (gfc_add_modify): Remove last argument.
101 Rename GIMPLE_MODIFY_STMT to MODIFY_EXPR.
102 * trans.h: Remove gfc_add_modify_expr, gfc_add_modify_stmt.
103 Add prototype for gfc_add_modify.
104 * f95-lang.c (union lang_tree_node): Rename GENERIC_NEXT to TREE_CHAIN.
105 * trans-decl.c: Rename gfc_add_modify_stmt to gfc_add_modify.
107 * trans-intrinsic.c: Same.
109 2008-02-25 Aldy Hernandez <aldyh@redhat.com>
111 * Make-lang.in (fortran-warn): Add -Wno-format.
113 2008-02-19 Diego Novillo <dnovillo@google.com>
115 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00804.html
117 * fortran/Make-lang.in (fortran-warn): Remove.
119 2007-11-22 Aldy Hernandez <aldyh@redhat.com>
121 * trans-expr.c (gfc_trans_string_copy): Use "void *" when building a
124 2007-11-10 Aldy Hernandez <aldyh@redhat.com>
126 * Make-lang.in (fortran-warn): Set to -Wno-format.
127 * trans.c (gfc_trans_code): Update comment to say GENERIC.
128 Call tree_annotate_all_with_locus instead of annotate_all_with_locus.
130 2008-07-27 Tobias Burnus <burnus@net-b.de>
135 * trans.c (gfc_trans_runtime_check): Allow run-time warning besides
137 * trans.h (gfc_trans_runtime_check): Update declaration.
138 * trans-array.c (gfc_trans_array_ctor_element,gfc_trans_array_bound_check,
139 gfc_conv_array_ref,gfc_conv_ss_startstride,gfc_trans_dummy_array_bias):
140 Updated gfc_trans_runtime_check calls.
141 (gfc_conv_array_parameter): Implement flag_check_array_temporaries,
142 fix packing/unpacking for nonpresent optional actuals to optional
144 * trans-array.h (gfc_conv_array_parameter): Update declaration.
145 * trans-expr.c (gfc_conv_substring,gfc_trans_arrayfunc_assign,
146 gfc_conv_function_call): Updated gfc_trans_runtime_check calls.
147 (gfc_conv_function_call): Update gfc_conv_array_parameter calls.
148 * trans-expr.c (gfc_trans_goto): Updated gfc_trans_runtime_check
150 * trans-io.c (set_string,gfc_conv_intrinsic_repeat): Ditto.
151 (gfc_conv_intrinsic_transfer,gfc_conv_intrinsic_loc): Same for
152 gfc_conv_array_parameter.
153 * trans-intrinsics.c (gfc_conv_intrinsic_bound): Ditto.
154 * trans-decl.c (gfc_build_builtin_function_decls): Add
155 gfor_fndecl_runtime_warning_at.
156 * lang.opt: New option fcheck-array-temporaries.
157 * gfortran.h (gfc_options): New flag_check_array_temporaries.
158 * options.c (gfc_init_options, gfc_handle_option): Handle flag.
159 * invoke.texi: New option fcheck-array-temporaries.
161 2008-07-24 Jan Hubicka <jh@suse.cz>
163 * fortran/options.c (gfc_post_options): Remove flag_unline_trees code.
165 2008-07-24 Daniel Kraft <d@domob.eu>
168 * lang.opt (Wnonstd-intrinsics): Removed option.
169 (Wintrinsics-std), (Wintrinsic-shadow): New options.
170 * invoke.texi (Option Summary): Removed -Wnonstd-intrinsics
171 from the list and added -Wintrinsics-std and -Wintrinsic-shadow.
172 (Error and Warning Options): Documented the new options and removed
173 the documentation for -Wnonstd-intrinsics.
174 * gfortran.h (gfc_option_t): New members warn_intrinsic_shadow and
175 warn_intrinsics_std, removed warn_nonstd_intrinsics.
176 (gfc_is_intrinsic): Renamed from gfc_intrinsic_name.
177 (gfc_warn_intrinsic_shadow), (gfc_check_intrinsic_standard): New.
178 * decl.c (match_procedure_decl): Replaced gfc_intrinsic_name by
179 the new name gfc_is_intrinsic.
180 (warn_intrinsic_shadow): New helper method.
181 (gfc_match_function_decl), (gfc_match_subroutine): Call the new method
182 warn_intrinsic_shadow to check the just-parsed procedure.
183 * expr.c (check_init_expr): Call new gfc_is_intrinsic to check whether
184 the function called is really an intrinsic in the selected standard.
185 * intrinsic.c (gfc_is_intrinsic): Renamed from gfc_intrinsic_name and
186 extended to take into account the selected standard settings when trying
187 to find out whether a symbol is an intrinsic or not.
188 (gfc_check_intrinsic_standard): Made public and extended.
189 (gfc_intrinsic_func_interface), (gfc_intrinsic_sub_interface): Removed
190 the calls to check_intrinsic_standard, this check now happens inside
192 (gfc_warn_intrinsic_shadow): New method defined.
193 * options.c (gfc_init_options): Initialize new warning flags to false
194 and removed intialization of Wnonstd-intrinsics flag.
195 (gfc_post_options): Removed logic for Wnonstd-intrinsics flag.
196 (set_Wall): Set new warning flags and removed Wnonstd-intrinsics flag.
197 (gfc_handle_option): Handle the new flags and removed handling of the
198 old Wnonstd-intrinsics flag.
199 * primary.c (gfc_match_rvalue): Replaced call to gfc_intrinsic_name by
200 the new name gfc_is_intrinsic.
201 * resolve.c (resolve_actual_arglist): Ditto.
202 (resolve_generic_f), (resolve_unknown_f): Ditto.
203 (is_external_proc): Ditto.
204 (resolve_generic_s), (resolve_unknown_s): Ditto.
205 (resolve_symbol): Ditto and ensure for symbols declared INTRINSIC that
206 they are really available in the selected standard setting.
208 2008-07-24 Daniel Kraft <d@domob.eu>
210 * match.c (gfc_match): Add assertion to catch wrong calls trying to
211 match upper-case characters.
213 2008-07-24 Thomas Koenig <tkoenig@gcc.gnu.org>
216 * gfortran.h: Add "warn_array_temp" to gfc_option_t.
217 * lang.opt: Add -Warray-temporaries.
218 * invoke.texi: Document -Warray-temporaries
219 * trans-array.h (gfc_trans_create_temp_array): Add argument of
221 (gfc_conv_loop_setup): Likewise.
222 * trans-array.c (gfc_trans_create_temp_array): If
223 -Warray-temporaries is given and locus is present, warn about
224 creation of array temporaries.
225 (gfc_trans_array_constructor_subarray): Add locus to call
226 of gfc_conv_loop_setup.
227 (gfc_trans_array_constructor): Add where argument. Pass where
228 argument to call of gfc_trans_create_temp_array.
229 (gfc_add_loop_ss_code): Add where argument. Pass where argument
230 to recursive call of gfc_add_loop_ss_code and to call of
231 gfc_trans_array_constructor.
232 (gfc_conv_loop_setup): Add where argument. Pass where argument
233 to calls to gfc_add_loop_ss_code and to gfc_trans_create_temp_array.
234 (gfc_conv_expr_descriptor): Pass location to call of
236 (gfc_conv_array_parameter): If -Warray-temporaries is given,
237 warn about creation of temporary arrays.
238 * trans-expr.c (gfc_conv_subref_array_arg): Add where argument
239 to call to gfc_conv_loop_setup.
240 (gfc_conv_function_call): Add where argument to call to
241 gfc_trans_creat_temp_array.
242 (gfc_trans_subarray_assign): Likewise.
243 (gfc_trans_assignment_1): Add where argument to call to
245 * trans-stmt.c (gfc_conv_elemental_dependencies): Add where
246 argument to call to gfc_trans_create_temp_array.
247 (gfc_trans_call): Add where argument to call to gfc_conv_loop_setup.
248 (generate_loop_for_temp_to_lhs): Likewise.
249 (generate_loop_for_rhs_to_temp): Likewise.
250 (compute_inner_temp_size): Likewise.
251 (gfc_trans-pointer_assign_need_temp): Likewise.
252 (gfc_evaluate_where_mask): Likewise.
253 (gfc_trans_where_assign): Likewise.
254 (gfc_trans_where_3): Likewise.
255 * trans-io.c (transfer_srray_component): Add where argument
256 to function. Add where argument to call to gfc_conv_loop_setup.
257 (transfer_expr): Add where argument to call to
258 transfer_array_component.
259 (gfc_trans_transfer): Add where expression to call to
261 * trans-intrinsic.c (gfc_conv_intrinsic_anyall): Add
262 where argument to call to gfc_conv_loop_setup.
263 (gfc_conv_intrinsic_count): Likewise.
264 (gfc_conv_intrinsic_arith): Likewise.
265 (gfc_conv_intrinsic_dot_product): Likewise.
266 (gfc_conv_intrinsic_minmaxloc): Likewise.
267 (gfc_conv_intrinsic_minmaxval): Likewise.
268 (gfc_conv_intrinsic_array_transfer): Warn about
269 creation of temporary array.
270 Add where argument to call to gfc_trans_create_temp_array.
271 * options.c (gfc_init_options): Initialize gfc_option.warn_array_temp.
272 (gfc_handle_option): Set gfc_option.warn_array_temp.
274 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
277 * f95-lang.c (gfc_mark_addressable): All calls to pedwarn changed.
279 2008-07-22 Daniel Kraft <d@domob.eu>
282 * io.c (error_element), (format_locus): New static globals.
283 (unexpected_element): Spelled out this message fully.
284 (next_char): Keep track of locus when not MODE_STRING.
285 (next_char_not_space): Remember last parsed element in error_element.
286 (format_lex): Fix two indentation errors.
287 (check_format): Use format_locus and possibly error_element for a
288 slightly better error message on invalid format.
289 (check_format_string): Set format_locus to start of the string
290 expression used as format.
292 2008-07-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
294 * expr.c (gfc_check_pointer_assign): Fix typo in string.
295 * io.c (check_format): Fix typo in string. Fix comment typos.
296 * parse.c (gfc_global_used): Likewise.
297 * resolve.c (resolve_allocate_expr): Likewise.
298 * symbol.c (gfc_set_default_type): Likewise.
299 * arith.c: Fix typos in comments.
303 * dependency.c: Likewise.
304 * f95-lang.c: Likewise.
305 * gfortran.h: Likewise.
306 * matchexp.c: Likewise.
307 * module.c: Likewise.
308 * primary.c: Likewise.
309 * scanner.c: Likewise.
310 * trans-array.c: Likewise.
311 * trans-common.c: Likewise.
312 * trans-decl.c: Likewise.
313 * trans-expr.c: Likewise.
314 * trans-intrinsic.c: Likewise.
315 * trans-types.c: Likewise.
319 2008-07-19 Tobias Burnus <burnus@net-b.de>
322 * matchexp.c (gfc_get_parentheses): Remove obsolete workaround,
323 which caused the generation of wrong code.
325 2008-07-19 Tobias Burnus <burnus@net-b.de>
328 * scanner.c (load_file): Add argument to destinguish between
329 true filename and displayed filename.
330 (include_line,gfc_new_file): Adapt accordingly.
332 2008-07-19 Tobias Burnus <burnus@net-b.de>
334 * check.c (gfc_check_cshift,gfc_check_eoshift,gfc_check_unpack): Add rank
335 checks for cshift's shift and eoshift's shift and boundary args.
336 (gfc_check_unpack): Add rank and shape tests for unpack.
338 2008-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
340 * gfortran.h (new): Remove macro.
341 * array.c (gfc_append_constructor, match_array_list,
342 gfc_match_array_constructor): Likewise.
343 * bbt.c (insert, gfc_insert_bbt): Likewise.
344 * decl.c (var_element, top_var_list, top_val_list, gfc_match_data,
345 get_proc_name): Likewise.
346 * expr.c (gfc_copy_actual_arglist): Likewise.
347 * interface.c (compare_actual_formal, check_new_interface,
348 gfc_add_interface): Likewise.
349 * intrinsic.c gfc_convert_type_warn, gfc_convert_chartype):
351 * io.c (match_io_iterator, match_io_list): Likewise.
352 * match.c (match_forall_header): Likewise.
353 * matchexp.c (build_node): Likewise.
354 * module.c (gfc_match_use): Likewise.
355 * scanner.c (load_file): Likewise.
356 * st.c (gfc_append_code): Likewise.
357 * symbol.c (save_symbol_data, gfc_get_sym_tree, gfc_undo_symbols,
358 gfc_commit_symbols): Likewise.
359 * trans-common.c (build_field): Likewise.
360 * trans-decl.c (gfc_finish_var_decl): Likewise.
361 * trans-expr.c (gfc_free_interface_mapping,
362 gfc_get_interface_mapping_charlen, gfc_add_interface_mapping,
363 gfc_finish_interface_mapping,
364 gfc_apply_interface_mapping_to_expr): Likewise.
365 * trans.h (gfc_interface_sym_mapping): Likewise.
367 2008-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
369 * gfortran.h (operator): Remove macro.
370 (gfc_namespace, gfc_expr): Avoid C++ keywords.
371 * arith.c (eval_intrinsic, eval_intrinsic_f2, eval_intrinsic_f3):
373 * decl.c (access_attr_decl): Likewise.
374 * dependency.c (gfc_dep_compare_expr): Likewise.
375 * dump-parse-tree.c (show_expr, show_uop, show_namespace):
377 * expr.c (gfc_copy_expr, gfc_type_convert_binary,
378 simplify_intrinsic_op, check_intrinsic_op): Likewise.
379 * interface.c (fold_unary, gfc_match_generic_spec,
380 gfc_match_interface, gfc_match_end_interface,
381 check_operator_interface, check_uop_interfaces,
382 gfc_check_interfaces, gfc_extend_expr, gfc_extend_assign,
383 gfc_add_interface, gfc_current_interface_head,
384 gfc_set_current_interface_head): Likewise.
385 * iresolve.c (gfc_resolve_dot_product, gfc_resolve_matmul):
387 * matchexp.c (gfc_get_parentheses, build_node): Likewise.
388 * module.c (gfc_use_rename, gfc_match_use, find_use_name_n,
389 number_use_names, mio_expr, load_operator_interfaces, read_module,
390 write_operator, write_module): Likewise.
391 * openmp.c (resolve_omp_atomic): Likewise.
392 * resolve.c (resolve_operator, gfc_resolve_character_operator,
393 gfc_resolve_uops): Likewise.
394 * symbol.c (free_uop_tree, gfc_free_namespace): Likewise.
395 * trans-expr.c (gfc_conv_expr_op): Likewise.
396 * trans-openmp.c (gfc_trans_omp_atomic): Likewise.
398 2008-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
400 * gfortran.h (protected): Remove macro.
401 * dump-parse-tree.c (show_attr): Avoid C++ keywords.
402 * expr.c (gfc_check_pointer_assign): Likewise.
403 * interface.c (compare_parameter_protected): Likewise.
404 * intrinsic.c (enum class, add_sym, add_sym_0, add_sym_1,
405 add_sym_1s, add_sym_1m, add_sym_2, add_sym_2s, add_sym_3,
406 add_sym_3ml, add_sym_3red, add_sym_3s, add_sym_4, add_sym_4s,
407 add_sym_5s): Likewise.
408 * match.c (gfc_match_assignment, gfc_match_pointer_assignment):
410 * module.c (mio_symbol_attribute): Likewise.
411 * primary.c (match_variable): Likewise.
412 * resolve.c (resolve_equivalence): Likewise.
413 * symbol.c (check_conflict, gfc_add_protected, gfc_copy_attr):
415 * trans-types.c (gfc_get_array_type_bounds): Likewise.
417 2008-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
419 * arith.c (eval_type_intrinsic0): Avoid C++ keywords.
420 * gfortran.h (try, protected, operator, new): Likewise.
422 2008-07-17 Tobias Burnus <burnus@net-b.de>
426 * array.c (gfc_match_array_spec): Fix array-rank check.
427 * resolve.c (resolve_fl_derived): Fix constentness check
428 for the array dimensions.
430 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
432 * Make-lang.in (gfortranspec.o): Fix dependencies.
434 2008-07-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
437 * io.c: Add error check for g0 edit descriptor followed by '.'.
439 2008-07-12 Daniel Kraft <d@domob.eu>
441 * resolve.c (resolve_fl_derived): Allow pointer components to empty
442 derived types fixing a missing part of PR fortran/33221.
444 2008-07-10 Daniel Kraft <d@domob.eu>
446 * gfc-internals.texi (section gfc_expr): Created documentation about
447 the gfc_expr internal data structure.
449 2008-07-07 Thomas Koenig <tkoenig@gcc.gnu.org>
452 * iresolve.c (gfc_resolve_product): Set shape of return
454 (gfc_resolve_sum): Likewise.
456 2008-07-07 Jakub Jelinek <jakub@redhat.com>
459 * f95-lang.c (poplevel): Don't ever add subblocks to
460 global_binding_level.
462 2008-07-02 Janus Weil <janus@gcc.gnu.org>
463 Tobias Burnus <burnus@net-b.de>
464 Paul Thomas <pault@gcc.gnu.org>
467 * gfortran.h (struct gfc_symbol): New member "proc_pointer".
468 * check.c (gfc_check_associated,gfc_check_null): Implement
470 * decl.c (match_procedure_decl): Ditto.
471 * expr.c (gfc_check_pointer_assign,gfc_check_assign_symbol): Ditto.
472 * interface.c (compare_actual_formal): Ditto.
474 * match.c (gfc_match_pointer_assignment): Ditto.
475 * parse.c (parse_interface): Ditto.
476 * primary.c (gfc_match_rvalue,match_variable): Ditto.
477 * resolve.c (resolve_fl_procedure): Ditto.
478 * symbol.c (check_conflict,gfc_add_external,gfc_add_pointer,
479 gfc_copy_attr,gen_fptr_param,build_formal_args): Ditto.
480 * trans-decl.c (get_proc_pointer_decl,gfc_get_extern_function_decl,
481 create_function_arglist): Ditto.
482 * trans-expr.c (gfc_conv_variable,gfc_conv_function_val,
483 gfc_conv_function_call,gfc_trans_pointer_assignment): Ditto.
485 2008-07-02 Thomas Koenig <tkoenig@gcc.gnu.org>
489 * iresolve.c (resolve_mask_arg): Don't convert mask to
490 kind=1 logical if it is of that type already.
492 2008-06-29 Thomas Koenig <tkoenig@gcc.gnu.org>
495 * iresolve.c (gfc_resolve_matmul): Copy shapes
498 2008-06-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
500 * invoke.texi: Add documentation for runtime behavior of
503 2008-06-28 Daniel Kraft <d@domob.eu>
505 * gfc-internals.texi (section gfc_code): Extended documentation about
506 gfc_code in the internal datastructures chapter including details about
507 how IF, DO and SELECT blocks look like and an example for how the
508 block-chaining works.
510 2008-06-25 Paul Thomas <pault@gcc.gnu.org>
513 * interface.c (check_intents): Correct error where the actual
514 arg was checked for a pointer argument, rather than the formal.
516 2008-06-24 Paul Thomas <pault@gcc.gnu.org>
519 * expr.c (gfc_check_assign): Change message and locus for
520 error when conform == 0.
522 2008-06-23 Jakub Jelinek <jakub@redhat.com>
525 * cpp.c (cpp_define_builtins): Change _OPENMP value to 200805.
527 2008-06-20 Laurynas Biveinis <laurynas.biveinis@gmail.com>
528 Tobias Burnus <burnus@net-b.de>
532 * scanner.c (preprocessor_line): do not call gfc_free for
533 current_file->filename if it differs from filename.
535 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
537 * arith.c (hollerith2representation): Fix for -Wc++-compat.
538 * array.c (gfc_get_constructor): Likewise.
539 * decl.c (gfc_get_data_variable, gfc_get_data_value, gfc_get_data,
540 create_enum_history, gfc_match_final_decl): Likewise.
541 * error.c (error_char): Likewise.
542 * expr.c (gfc_get_expr, gfc_copy_expr): Likewise.
543 * gfortran.h (gfc_get_charlen, gfc_get_array_spec,
544 gfc_get_component, gfc_get_formal_arglist, gfc_get_actual_arglist,
545 gfc_get_namelist, gfc_get_omp_clauses, gfc_get_interface,
546 gfc_get_common_head, gfc_get_dt_list, gfc_get_array_ref,
547 gfc_get_ref, gfc_get_equiv, gfc_get_case, gfc_get_iterator,
548 gfc_get_alloc, gfc_get_wide_string): Likewise.
549 * interface.c (count_types_test): Likewise.
550 * intrinsic.c (add_char_conversions, gfc_intrinsic_init_1):
552 * io.c (gfc_match_open, gfc_match_close, match_filepos, match_io,
553 gfc_match_inquire, gfc_match_wait): Likewise.
554 * match.c (gfc_match, match_forall_iterator): Likewise.
555 * module.c (gfc_get_pointer_info, gfc_get_use_rename, add_fixup,
556 add_true_name, parse_string, write_atom, quote_string,
557 mio_symtree_ref, mio_gmp_real, write_common_0): Likewise.
558 * options.c (gfc_post_options): Likewise.
559 * primary.c (match_integer_constant, match_hollerith_constant,
560 match_boz_constant, match_real_constant,
561 gfc_get_structure_ctor_component, gfc_match_structure_constructor): Likewise.
562 * scanner.c (gfc_widechar_to_char, add_path_to_list,
563 add_file_change, load_line, get_file, preprocessor_line,
564 load_file, unescape_filename, gfc_read_orig_filename): Likewise.
565 * simplify.c (gfc_simplify_ibits, gfc_simplify_ishft,
566 gfc_simplify_ishftc): Likewise.
567 * symbol.c (gfc_get_st_label, gfc_get_namespace, gfc_new_symtree,
568 gfc_get_uop, gfc_new_symbol, save_symbol_data, gfc_get_gsymbol):
570 * target-memory.c (gfc_target_interpret_expr): Likewise.
571 * trans-const.c (gfc_build_wide_string_const): Likewise.
572 * trans-expr.c (gfc_add_interface_mapping): Likewise.
573 * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
574 gfc_conv_intrinsic_int, gfc_conv_intrinsic_lib_function,
575 gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_ctime,
576 gfc_conv_intrinsic_fdate, gfc_conv_intrinsic_ttynam,
577 gfc_conv_intrinsic_minmax, gfc_conv_intrinsic_minmax_char,
578 gfc_conv_intrinsic_ishftc, gfc_conv_intrinsic_index_scan_verify,
579 gfc_conv_intrinsic_merge, gfc_conv_intrinsic_trim): Likewise.
580 * trans.c (gfc_get_backend_locus): Likewise.
581 * trans.h (gfc_get_ss): Likewise.
583 2008-06-18 Daniel Kraft <d@domob.eu>
585 PR fortran/36517, fortran/36492
586 * array.c (gfc_resolve_character_array_constructor): Call
587 gfc_set_constant_character_len with changed length-chec argument.
588 * decl.c (gfc_set_constant_character_len): Changed array argument to
589 be a generic length-checking argument that can be used for correct
590 checking with typespec and in special cases where the should-be length
591 is different from the target length.
592 (build_struct): Call gfc_set_constant_character_len with changed length
593 checking argument and introduced additional checks for exceptional
594 conditions on invalid code.
595 (add_init_expr_to_sym), (do_parm): Call gfc_set_constant_character_len
596 with changed argument.
597 * match.h (gfc_set_constant_character_len): Changed third argument to
598 int for the should-be length rather than bool.
600 2008-06-17 Daniel Kraft <d@domob.eu>
603 * array.c (gfc_resolve_character_array_constructor): Check that all
604 elements with constant character length have the same one rather than
605 fixing it if no typespec is given, emit an error if they don't. Changed
606 return type to "try" and return FAILURE for the case above.
607 (gfc_resolve_array_constructor): Removed unneeded call to
608 gfc_resolve_character_array_constructor in this function.
609 * gfortran.h (gfc_resolve_character_array_constructor): Returns try.
610 * trans-array.c (get_array_ctor_strlen): Return length of first element
611 rather than last element.
612 * resolve.c (gfc_resolve_expr): Handle FAILURE return from
613 gfc_resolve_character_array_constructor.
615 2008-06-17 Paul Thomas <pault@gcc.gnu.org>
618 * resolve.c (add_dt_to_dt_list): New function.
619 (resolve_fl_derived): Call new function for pointer components
620 and when derived type resolved.
622 2008-06-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
625 * trans-decl.c (gfc_generate_function_code): Add range_check to options
628 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
630 * gfc-internals.texi: Expand TABs, drop indentation outside examples.
631 * gfortran.texi: Likewise.
632 * intrinsic.texi: Likewise.
633 * invoke.texi: Likewise.
635 2008-06-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
638 * trans-io.c (gfc_build_io_library_fndecls): Build declaration for
639 transfer_character_wide which includes passing in the character kind to
640 support wide character IO. (transfer_expr): If the kind == 4, create the
641 argument and build the call.
642 * gfortran.texi: Fix typo.
644 2008-06-13 Tobias Burnus <burnus@net-b.de>
647 * decl.c (do_parm): Handle init expression for len=*.
649 2008-06-12 Tobias Burnus <burnus@net-b.de>
652 * trans-intrinsic.c (gfc_conv_intrinsic_index_scan_verify):
653 Fix passing of the BACK= argument.
655 2008-06-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
657 * cpp.c: Add copyright notice.
658 * cpp.h: Add copyright notice.
660 2008-06-08 Janus Weil <janus@gcc.gnu.org>
663 * decl.c (match_procedure_decl): Correctly recognize if the interface
664 is an intrinsic procedure.
666 2008-06-08 Tobias Burnus <burnus@net-b.de>
669 * resolve.c (resolve_symbol): Copy more attributes for
670 PROCEDUREs with interfaces.
672 2008-06-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
676 * io.c (check_format): Add new error message for zero width.
677 Use new error message for FMT_A and with READ, FMT_G. Allow
678 FMT_G with WRITE except when -std=F95 and -std=F2003.
680 2008-06-07 Tobias Burnus <burnus@net-b.de>
683 * intrinsic.c (add_functions): Implement c_sizeof.
684 * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): Do not
685 create unneeded variable in the scalar case.
686 * intrinsic.texi: Add C_SIZEOF documentation.
688 2008-06-06 Tobias Burnus <burnus@net-b.de>
690 * intrinsic.texi (BESSEL_J1): Fix BES(S)EL_J1 typo.
692 2008-06-06 Jakub Jelinek <jakub@redhat.com>
694 * scanner.c (skip_free_comments, skip_fixed_comments): Handle tabs.
695 * parse.c (next_free): Allow tab after !$omp.
696 (decode_omp_directive): Handle !$omp task, !$omp taskwait
698 (case_executable): Add ST_OMP_TASKWAIT.
699 (case_exec_markers): Add ST_OMP_TASK.
700 (gfc_ascii_statement): Handle ST_OMP_TASK, ST_OMP_END_TASK and
702 (parse_omp_structured_block, parse_executable): Handle ST_OMP_TASK.
703 * gfortran.h (gfc_find_sym_in_expr): New prototype.
704 (gfc_statement): Add ST_OMP_TASK, ST_OMP_END_TASK and ST_OMP_TASKWAIT.
705 (gfc_omp_clauses): Add OMP_SCHED_AUTO to sched_kind,
706 OMP_DEFAULT_FIRSTPRIVATE to default_sharing. Add collapse and
708 (gfc_exec_op): Add EXEC_OMP_TASK and EXEC_OMP_TASKWAIT.
709 * f95-lang.c (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
710 LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP, LANG_HOOKS_OMP_CLAUSE_DTOR,
711 LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
712 * trans.h (gfc_omp_clause_default_ctor): Add another argument.
713 (gfc_omp_clause_copy_ctor, gfc_omp_clause_assign_op,
714 gfc_omp_clause_dtor, gfc_omp_private_outer_ref): New prototypes.
715 * types.def (BT_ULONGLONG, BT_PTR_ULONGLONG,
716 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
717 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
718 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
719 BT_FN_VOID_PTR_PTR, BT_PTR_FN_VOID_PTR_PTR,
720 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
721 (BT_BOOL): Use integer type with BOOL_TYPE_SIZE rather
722 than boolean_type_node.
723 * dump-parse-tree.c (gfc_show_omp_node): Handle EXEC_OMP_TASK,
724 EXEC_OMP_TASKWAIT, OMP_SCHED_AUTO, OMP_DEFAULT_FIRSTPRIVATE,
725 untied and collapse clauses.
726 (gfc_show_code_node): Handle EXEC_OMP_TASK and EXEC_OMP_TASKWAIT.
727 * trans.c (gfc_trans_code): Handle EXEC_OMP_TASK and
729 * st.c (gfc_free_statement): Likewise.
730 * resolve.c (gfc_resolve_blocks, resolve_code): Likewise.
731 (find_sym_in_expr): Rename to...
732 (gfc_find_sym_in_expr): ... this. No longer static.
733 (resolve_allocate_expr, resolve_ordinary_assign): Adjust caller.
734 * match.h (gfc_match_omp_task, gfc_match_omp_taskwait): New
736 * openmp.c (resolve_omp_clauses): Allow allocatable arrays in
737 firstprivate, lastprivate, reduction, copyprivate and copyin
739 (omp_current_do_code): Made static.
740 (omp_current_do_collapse): New variable.
741 (gfc_resolve_omp_do_blocks): Compute omp_current_do_collapse,
742 clear omp_current_do_code and omp_current_do_collapse on return.
743 (gfc_resolve_do_iterator): Handle collapsed do loops.
744 (resolve_omp_do): Likewise, diagnose errorneous collapsed do loops.
745 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): Define.
746 (gfc_match_omp_clauses): Handle default (firstprivate),
747 schedule (auto), untied and collapse (n) clauses.
748 (OMP_DO_CLAUSES): Add OMP_CLAUSE_COLLAPSE.
749 (OMP_TASK_CLAUSES): Define.
750 (gfc_match_omp_task, gfc_match_omp_taskwait): New functions.
751 * trans-openmp.c (gfc_omp_private_outer_ref): New function.
752 (gfc_omp_clause_default_ctor): Add outer argument. For allocatable
753 arrays allocate them with the bounds of the outer var if outer
755 (gfc_omp_clause_copy_ctor, gfc_omp_clause_assign_op,
756 gfc_omp_clause_dtor): New functions.
757 (gfc_trans_omp_array_reduction): If decl is allocatable array,
758 allocate it with outer var's bounds in OMP_CLAUSE_REDUCTION_INIT
759 and deallocate it in OMP_CLAUSE_REDUCTION_MERGE.
760 (gfc_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED
761 for assumed-size arrays.
762 (gfc_trans_omp_do): Add par_clauses argument. If dovar is
763 present in lastprivate clause and do loop isn't simple,
764 set OMP_CLAUSE_LASTPRIVATE_STMT. If dovar is present in
765 parallel's lastprivate clause, change it to shared and add
766 lastprivate clause to OMP_FOR_CLAUSES. Handle collapsed do loops.
767 (gfc_trans_omp_directive): Adjust gfc_trans_omp_do callers.
768 (gfc_trans_omp_parallel_do): Likewise. Move collapse clause to
769 OMP_FOR from OMP_PARALLEL.
770 (gfc_trans_omp_clauses): Handle OMP_SCHED_AUTO,
771 OMP_DEFAULT_FIRSTPRIVATE, untied and collapse clauses.
772 (gfc_trans_omp_task, gfc_trans_omp_taskwait): New functions.
773 (gfc_trans_omp_directive): Handle EXEC_OMP_TASK and
776 2008-06-04 Janus Weil <janus@gcc.gnu.org>
780 * resolve.c (resolve_symbol): Correctly copy the interface for a
781 PROCEDURE declaration.
783 2008-06-02 Janus Weil <janus@gcc.gnu.org>
786 * symbol.c (gfc_add_allocatable,gfc_add_dimension,
787 gfc_add_explicit_interface): Added checks.
788 * decl.c (attr_decl1): Added missing "var_locus".
789 * parse.c (parse_interface): Checking for errors.
791 2008-06-02 Daniel Kraft <d@domob.eu>
793 * gfortran.h: New statement-type ST_FINAL for FINAL declarations.
794 (struct gfc_symbol): New member f2k_derived.
795 (struct gfc_namespace): New member finalizers, for use in the above
796 mentioned f2k_derived namespace.
797 (struct gfc_finalizer): New type defined for finalizers linked list.
798 * match.h (gfc_match_final_decl): New function header.
799 * decl.c (gfc_match_derived_decl): Create f2k_derived namespace on
800 constructed symbol node.
801 (gfc_match_final_decl): New function to match a FINAL declaration line.
802 * parse.c (decode_statement): match-call for keyword FINAL.
803 (parse_derived): Parse CONTAINS section and accept FINAL statements.
804 * resolve.c (gfc_resolve_finalizers): New function to resolve (that is
805 in this case, check) a list of finalizer procedures.
806 (resolve_fl_derived): Call gfc_resolve_finalizers here.
807 * symbol.c (gfc_get_namespace): Initialize new finalizers to NULL.
808 (gfc_free_namespace): Free finalizers list.
809 (gfc_new_symbol): Initialize new f2k_derived to NULL.
810 (gfc_free_symbol): Free f2k_derived namespace.
811 (gfc_free_finalizer): New function to free a single gfc_finalizer node.
812 (gfc_free_finalizer_list): New function to free a linked list of
815 2008-06-02 Daniel Franke <franke.daniel@gmail.com>
819 * cpp.c (gfc_cpp_init): Do not initialize builtins if
820 processing already preprocessed input.
821 (gfc_cpp_preprocess): Finalize output with newline.
823 2008-05-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
825 * intrinsic.texi: Revert wrong commit.
827 2008-05-31 Steven G. Kargl <kargls@comcast.net>
829 * arith.c (gfc_arith_init_1): Remove now unused r and c variables.
830 Cleanup numerical inquiry function initialization.
831 (gfc_arith_done_1): Replace multiple mpfr_clear() invocations with
832 a single mpfr_clears().
833 (gfc_check_real_range): Re-arrange logic to eliminate multiple
834 unnecessary branching and assignments.
835 (gfc_arith_times): Use mpfr_clears() in preference to multiple
837 (gfc_arith_divide): Ditto.
838 (complex_reciprocal): Eliminate now unused variables a, re, im.
839 Cleanup the mpfr abuse. Use mpfr_clears() in preference to
840 multiple mpfr_clear().
841 (complex_pow): Fix comment whitespace. Use mpfr_clears() in
842 preference to multiple mpfr_clear().
843 * simplify.c (gfc_simplify_and): Remove blank line.
844 (gfc_simplify_atan2): Move error checking earlier to eliminate
845 a now unnecessay gfc_free_expr().
846 (gfc_simplify_bessel_j0): Remove unnecessary gfc_set_model_kind().
847 (gfc_simplify_bessel_j1): Ditto.
848 (gfc_simplify_bessel_jn): Ditto.
849 (gfc_simplify_bessel_y0): Ditto.
850 (gfc_simplify_bessel_y1): Ditto.
851 (gfc_simplify_bessel_yn): Ditto.
852 (only_convert_cmplx_boz): Eliminate unnecessary duplicate code, and
853 combine nested if statement rational expressions.
854 (gfc_simplify_cos): Use mpfr_clears() in preference to multiple
856 (gfc_simplify_exp): Ditto.
857 (gfc_simplify_fraction): Move gfc_set_model_kind() to after the
858 special case of 0. Use mpfr_clears() in preference to multiple
860 (gfc_simplify_gamma): Eliminate unnecessary gfc_set_model_kind().
861 (gfc_simplify_lgamma): Ditto.
862 (gfc_simplify_log10): Ditto.
863 (gfc_simplify_log): Move gfc_set_model_kind () inside switch
864 statement. Use mpfr_clears() in preference to multiple mpfr_clear().
865 (gfc_simplify_mod): Eliminate now unused variables quot, iquot,
866 and term. Simplify the mpfr magic.
867 (gfc_simplify_modulo): Ditto.
868 (gfc_simplify_nearest): Eliminate unnecessary gfc_set_model_kind().
869 (gfc_simplify_scale): Use mpfr_clears() in preference to multiple
871 (gfc_simplify_sin): Ditto
872 (gfc_simplify_sqrt): Ditto
873 (gfc_simplify_set_exponent): Move gfc_set_model_kind() to after the
874 special case of 0. Use mpfr_clears() in preference to multiple
877 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
880 * Make-lang.in (F95_OBJS): Added dependency on FORTRAN_TARGET_OBJS.
882 2008-05-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
884 * scanner.c (load_line): Add first_char argument. Don't call ungetc.
885 (gfc_read_orig_filename): Adjust call to load_line. Don't call
887 (load_file): Adjust call to load_line.
889 2008-05-28 Janus Weil <janus@gcc.gnu.org>
893 * interface.c (gfc_procedure_use): Enable argument checking for
894 external procedures with explicit interface.
895 * symbol.c (check_conflict): Fix conflict checking for externals.
896 (copy_formal_args): Fix handling of arrays.
897 * resolve.c (resolve_specific_f0, resolve_specific_s0): Fix handling
899 * parse.c (parse_interface): Non-abstract INTERFACE statement implies
902 2008-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
905 * intrinsic.c (gfc_convert_chartype): Don't mark conversion
907 * trans-array.c (gfc_trans_array_ctor_element): Divide element
908 size by the size of one character to obtain length.
909 * iresolve.c (gfc_resolve_cshift): Call the _char4 variant when
911 (gfc_resolve_eoshift): Likewise.
912 * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Minor beautification.
913 (gfc_conv_intrinsic_fdate): Minor beautification.
914 (gfc_conv_intrinsic_ttynam): Minor beautification.
915 (gfc_conv_intrinsic_minmax_char): Allow all character kinds.
916 (size_of_string_in_bytes): New function.
917 (gfc_conv_intrinsic_size): Call size_of_string_in_bytes for
918 character expressions.
919 (gfc_conv_intrinsic_sizeof): Likewise.
920 (gfc_conv_intrinsic_array_transfer): Likewise.
921 (gfc_conv_intrinsic_trim): Allow all character kinds. Minor
923 (gfc_conv_intrinsic_repeat): Fix comment typo.
924 * simplify.c (gfc_convert_char_constant): Take care of conversion
925 of array constructors.
927 2008-05-27 Tobias Burnus <burnus@net-b.de>
930 * trans-array.c (gfc_set_loop_bounds_from_array_spec):
931 Add missing fold_convert.
933 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
935 * fortran/cpp.c (cpp_define_builtins): Remove usage of TARGET_* macros,
938 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
941 * lang.opt (A, C, CC, D, E, H, P, U, cpp, d, fworking-directory,
942 imultilib, iprefix, iquote, isysroot, isystem, nocpp, nostdinc,
943 o, undef, v): New options.
944 * options.c (gfc_init_options): Also initialize preprocessor
946 (gfc_post_options): Also handle post-initialization of preprocessor
948 (gfc_handle_option): Check if option is a preprocessor option.
949 If yes, let gfc_cpp_handle_option() handle the option.
950 * lang-specs.h: Reorganized to handle new options.
951 * scanner.c (gfc_new_file): Read temporary file instead of
952 input source if preprocessing is enabled.
953 * f95-lang.c (gfc_init): Initialize preprocessor.
954 (gfc_finish): Clean up preprocessor.
957 * Make-lang.in: Added new objects and dependencies.
958 * gfortran.texi: Updated section "Preprocessing and
959 conditional compilation".
960 * invoke.texi: Added new section "Preprocessing Options",
961 listed and documented the preprocessing options handled
964 2008-05-25 Tobias Burnus <burnus@net-b.de>
967 * trans-expr.c (gfc_conv_function_call): Remove library
968 call for c_f_pointer with scalar Fortran pointers and for
971 2008-05-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
974 * iresolve.c (check_charlen_present): Don't force the rank to 1.
976 2008-05-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
979 * trans-expr.c (gfc_conv_string_tmp): Pick the correct type for
980 the temporary variable.
982 2008-05-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
984 * simplify.c (gfc_simplify_dble, gfc_simplify_real): Initialize
985 result variable to avoid warnings.
987 2008-05-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
989 * intrinsic.c (char_conversions, ncharconv): New static variables.
990 (find_char_conv): New function.
991 (add_functions): Add simplification functions for ADJUSTL and
992 ADJUSTR. Don't check the kind of their argument. Add checking for
993 LGE, LLE, LGT and LLT.
994 (add_subroutines): Fix argument type for SLEEP. Fix argument name
996 (add_char_conversions): New function.
997 (gfc_intrinsic_init_1): Call add_char_conversions.
998 (gfc_intrinsic_done_1): Free char_conversions.
999 (check_arglist): Use kind == 0 as a signal that we don't want
1000 the kind value to be checked.
1001 (do_simplify): Also simplify character functions.
1002 (gfc_convert_chartype): New function
1003 * trans-array.c (gfc_trans_array_ctor_element): Don't force the
1004 use of default character type.
1005 (gfc_trans_array_constructor_value): Likewise.
1006 (get_array_ctor_var_strlen): Use integer kind to build an integer
1007 instead of a character kind!
1008 (gfc_build_constant_array_constructor): Don't force the use of
1009 default character type.
1010 (gfc_conv_loop_setup): Likewise.
1011 * trans-expr.c (gfc_conv_string_tmp): Don't force the use of
1012 default character type. Allocate enough memory for wide strings.
1013 (gfc_conv_concat_op): Make sure operand kind are the same.
1014 (string_to_single_character): Remove gfc_ prefix. Reindent.
1015 Don't force the use of default character type.
1016 (gfc_conv_scalar_char_value): Likewise.
1017 (gfc_build_compare_string): Call string_to_single_character.
1018 (fill_with_spaces): New function
1019 (gfc_trans_string_copy): Add kind arguments. Use them to deal
1020 with wide character kinds.
1021 (gfc_conv_statement_function): Whitespace fix. Call
1022 gfc_trans_string_copy with new kind arguments.
1023 (gfc_conv_substring_expr): Call gfc_build_wide_string_const
1024 instead of using gfc_widechar_to_char.
1025 (gfc_conv_string_parameter): Don't force the use of default
1027 (gfc_trans_scalar_assign): Pass kind args to gfc_trans_string_copy.
1028 * intrinsic.h (gfc_check_lge_lgt_lle_llt, gfc_convert_char_constant,
1029 gfc_resolve_adjustl, gfc_resolve_adjustr): New prototypes.
1030 * decl.c (gfc_set_constant_character_len): Don't assert the
1031 existence of a single character kind.
1032 * trans-array.h (gfc_trans_string_copy): New prototype.
1033 * gfortran.h (gfc_check_character_range, gfc_convert_chartype):
1035 * error.c (print_wide_char_into_buffer): New function lifting
1036 code from gfc_print_wide_char. Fix order to output '\x??' instead
1038 (gfc_print_wide_char): Call print_wide_char_into_buffer.
1039 (show_locus): Call print_wide_char_into_buffer with buffer local
1041 * trans-const.c (gfc_build_wide_string_const): New function.
1042 (gfc_conv_string_init): Deal with wide characters strings
1044 (gfc_conv_constant_to_tree): Call gfc_build_wide_string_const.
1045 * trans-stmt.c (gfc_trans_label_assign): Likewise.
1046 (gfc_trans_character_select): Deal with wide strings.
1047 * expr.c (gfc_check_assign): Allow conversion between character
1048 kinds on assignment.
1049 * trans-const.h (gfc_build_wide_string_const): New prototype.
1050 * trans-types.c (gfc_get_character_type_len_for_eltype,
1051 gfc_get_character_type_len): Create too variants of the old
1052 gfc_get_character_type_len, one getting kind argument and the
1053 other one directly taking a type tree.
1054 * trans.h (gfor_fndecl_select_string_char4,
1055 gfor_fndecl_convert_char1_to_char4,
1056 gfor_fndecl_convert_char4_to_char1): New prototypes.
1057 * trans-types.h (gfc_get_character_type_len_for_eltype): New
1059 * resolve.c (resolve_operator): Exit early when kind mismatches
1060 are detected, because that makes us issue an error message later.
1061 (validate_case_label_expr): Fix wording of error message.
1062 * iresolve.c (gfc_resolve_adjustl, gfc_resolve_adjustr): New
1064 (gfc_resolve_pack): Call _char4 variants of library function
1065 when dealing with wide characters.
1066 (gfc_resolve_reshape): Likewise.
1067 (gfc_resolve_spread): Likewise.
1068 (gfc_resolve_transpose): Likewise.
1069 (gfc_resolve_unpack): Likewise.
1070 * target-memory.c (size_character): Take character kind bit size
1071 correctly into account (not that it changes anything for now, but
1073 (gfc_encode_character): Added gfc_ prefix. Encoding each
1074 character of a string by calling native_encode_expr for the
1075 corresponding unsigned integer.
1076 (gfc_target_encode_expr): Add gfc_ prefix to encode_character.
1077 * trans-decl.c (gfc_build_intrinsic_function_decls): Build
1078 gfor_fndecl_select_string_char4, gfor_fndecl_convert_char1_to_char4
1079 and gfor_fndecl_convert_char4_to_char1.
1080 * target-memory.h (gfc_encode_character): New prototype.
1081 * arith.c (gfc_check_character_range): New function.
1082 (eval_intrinsic): Allow non-default character kinds.
1083 * check.c (gfc_check_access_func): Only allow default
1084 character kind arguments.
1085 (gfc_check_chdir): Likewise.
1086 (gfc_check_chdir_sub): Likewise.
1087 (gfc_check_chmod): Likewise.
1088 (gfc_check_chmod_sub): Likewise.
1089 (gfc_check_lge_lgt_lle_llt): New function.
1090 (gfc_check_link): Likewise.
1091 (gfc_check_link_sub): Likewise.
1092 (gfc_check_symlnk): Likewise.
1093 (gfc_check_symlnk_sub): Likewise.
1094 (gfc_check_rename): Likewise.
1095 (gfc_check_rename_sub): Likewise.
1096 (gfc_check_fgetputc_sub): Likewise.
1097 (gfc_check_fgetput_sub): Likewise.
1098 (gfc_check_stat): Likewise.
1099 (gfc_check_stat_sub): Likewise.
1100 (gfc_check_date_and_time): Likewise.
1101 (gfc_check_ctime_sub): Likewise.
1102 (gfc_check_fdate_sub): Likewise.
1103 (gfc_check_gerror): Likewise.
1104 (gfc_check_getcwd_sub): Likewise.
1105 (gfc_check_getarg): Likewise.
1106 (gfc_check_getlog): Likewise.
1107 (gfc_check_hostnm): Likewise.
1108 (gfc_check_hostnm_sub): Likewise.
1109 (gfc_check_ttynam_sub): Likewise.
1110 (gfc_check_perror): Likewise.
1111 (gfc_check_unlink): Likewise.
1112 (gfc_check_unlink_sub): Likewise.
1113 (gfc_check_system_sub): Likewise.
1114 * primary.c (got_delim): Perform correct character range checking
1116 * trans-intrinsic.c (gfc_conv_intrinsic_conversion): Generate
1117 calls to library functions convert_char4_to_char1 and
1118 convert_char1_to_char4 for character conversions.
1119 (gfc_conv_intrinsic_char): Allow all character kings.
1120 (gfc_conv_intrinsic_strcmp): Fix whitespace.
1121 (gfc_conv_intrinsic_repeat): Take care of all character kinds.
1122 * intrinsic.texi: For all GNU intrinsics accepting character
1123 arguments, mention that they're restricted to the default kind.
1124 * simplify.c (simplify_achar_char): New function.
1125 (gfc_simplify_achar, gfc_simplify_char): Call simplify_achar_char.
1126 gfc_simplify_ichar): Don't error out for wide characters.
1127 (gfc_convert_char_constant): New function.
1129 2008-05-18 Steven G. Kargl <kargls@comcast.net>
1132 * symbol.c (check_conflict): Issue errors for abuse of PUBLIC, PRIVATE,
1134 * resolve.c (gfc_verify_binding_labels): Fix NULL pointer dereference.
1136 2008-05-17 Tobias Burnus <burnus@net-b.de>
1138 * intrinsic.texi: Correct description of GET_COMMAND_ARGUMENT
1139 and GET_ENVIRONMENT_VARIABLE; fix keyword= name for GETENV,
1140 GETLOG, GMTIME, HOSTNM, IRAND, ITIME, KILL.
1141 Move LOG_GAMMA after LOG10.
1143 2008-05-17 Tobias Burnus <burnus@net-b.de>
1145 * intrinsic.c (add_functions): Change FLUSH(C) to FLUSH(UNIT).
1146 * intrinsic.texi: Change INTEGER(*) to INTEGER; fix keyword= name for
1147 ABS, ADJUSTL, AINT, ALLOCATED, ANINT, ASSOCIATED, C_ASSOCIATED,
1148 CEILING, DBLE, DFLOAT, DOT_PRODUCT, DREAL, FLOAT, FLOOR, GET_COMMAND.
1150 2008-05-16 Paul Thomas <pault@gcc.gnu.org>
1154 * trans-stmt.c (gfc_trans_where): Tighten up the dependency
1155 check for calling gfc_trans_where_3.
1158 * trans-stmt.c (gfc_trans_where_2): Set the mask size to zero
1159 if it is calculated to be negative.
1162 * trans-stmt.c (gfc_trans_where_3, gfc_trans_where_assign): Set
1163 ss->where for scalar right hand sides.
1164 * trans-array.c (gfc_add_loop_ss_code): If ss->where is set do
1165 not evaluate scalars outside the loop. Clean up whitespace.
1166 * trans.h : Add a bitfield 'where' to gfc_ss.
1168 2008-05-16 Tobias Burnus <burnus@net-b.de>
1170 * libgfortran.h: Increase GFC_MAX_DIMENSIONS to 15.
1171 * array.c (gfc_match_array_spec): Error with -std=f2003 if rank > 7.
1173 2008-04-16 Daniel Kraft <d@domob.eu>
1176 * gfortran.h: Added field "length_from_typespec" to gfc_charlength.
1177 * aray.c (gfc_match_array_constructor): Added code to parse typespec.
1178 (check_element_type, check_constructor_type, gfc_check_constructor_type):
1179 Extended to support explicit typespec on constructor.
1180 (gfc_resolve_character_array_constructor): Pad strings correctly for
1181 explicit, constant character length.
1182 * trans-array.c: New static global variable "typespec_chararray_ctor"
1183 (gfc_trans_array_constructor): New code to support explicit but dynamic
1186 2008-05-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1189 * decl.c (match_attr_spec): Check for matching pairs of parenthesis.
1190 * expr.c (gfc_specification_expr): Supplement the error message with the
1191 type that was found.
1192 * resolve.c (gfc_resolve_index): Likewise.
1193 * match.c (gfc_match_parens): Clarify error message with "at or before".
1194 (gfc_match_do): Check for matching pairs of parenthesis.
1196 2008-05-16 Tobias Burnus <burnus@net-b.de
1198 * intrinsic.texi: Write Fortran 77/90/95 instead of F77/90/95;
1199 add missing KIND argument to ACHAR and NINT; and state that
1200 the KIND argument is a F2003 extension for ACHAR, COUNT, IACHAR,
1201 ICHAR, INDEX, LBOUND, LEN, LEN_TRIM, SCAN, SIZE, UBOUND, VERIFY.
1203 2008-05-16 Daniel Kraft <d@domob.eu>
1205 * primary.c: New private structure "gfc_structure_ctor_component".
1206 (gfc_free_structure_ctor_component): New helper function.
1207 (gfc_match_structure_constructor): Extended largely to support named
1208 arguments and default initialization for structure constructors.
1210 2008-05-15 Steven G. Kargl <kargls@comcast.net>
1212 * simplify.c (gfc_simplify_dble, gfc_simplify_float,
1213 simplify_bound, gfc_simplify_nearest, gfc_simplify_real): Plug
1214 possible memory leaks.
1215 (gfc_simplify_reshape): Plug possible memory leaks and dereferencing
1218 2008-05-15 Steven G. Kargl <kargls@comcast.net>
1221 * simplify.c (gfc_simplify_int, gfc_simplify_intconv): Replaced hand
1222 rolled integer conversion with gfc_int2int, gfc_real2int, and
1224 (gfc_simplify_intconv): Renamed to simplify_intconv.
1226 2008-05-15 Steven G. Kargl, <kargl@comcast.net>
1227 * gfortran.dg/and_or_xor.f90: New test
1229 * fortran/simplify.c (gfc_simplify_and, gfc_simplify_or,
1230 gfc_simplify_xor): Don't range check logical results.
1232 2008-05-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1234 * trans-expr.c (gfc_conv_concat_op): Take care of nondefault
1236 (gfc_build_compare_string): Add kind argument and use it.
1237 (gfc_conv_statement_function): Fix indentation.
1238 * gfortran.h (gfc_character_info): New structure.
1239 (gfc_character_kinds): New array.
1240 * trans-types.c (gfc_character_kinds, gfc_character_types,
1241 gfc_pcharacter_types): New array.
1242 (gfc_init_kinds): Fill character kinds array.
1243 (validate_character): Take care of nondefault character kinds.
1244 (gfc_build_uint_type): New function.
1245 (gfc_init_types): Take care of nondefault character kinds.
1246 (gfc_get_char_type, gfc_get_pchar_type): New functions.
1247 (gfc_get_character_type_len): Use gfc_get_char_type.
1248 * trans.h (gfc_build_compare_string): Adjust prototype.
1249 (gfor_fndecl_compare_string_char4, gfor_fndecl_concat_string_char4,
1250 gfor_fndecl_string_len_trim_char4, gfor_fndecl_string_index_char4,
1251 gfor_fndecl_string_scan_char4, gfor_fndecl_string_verify_char4,
1252 gfor_fndecl_string_trim_char4, gfor_fndecl_string_minmax_char4,
1253 gfor_fndecl_adjustl_char4, gfor_fndecl_adjustr_char4): New
1255 * trans-types.h (gfc_get_char_type, gfc_get_pchar_type): New
1257 * trans-decl.c (gfor_fndecl_compare_string_char4,
1258 gfor_fndecl_string_len_trim_char4, gfor_fndecl_string_index_char4,
1259 gfor_fndecl_string_scan_char4, gfor_fndecl_string_verify_char4,
1260 gfor_fndecl_string_trim_char4, gfor_fndecl_string_minmax_char4,
1261 gfor_fndecl_adjustl_char4, gfor_fndecl_adjustr_char4,
1262 gfor_fndecl_concat_string_char4): New function decls.
1263 (gfc_build_intrinsic_function_decls): Define new *_char4 function
1265 * trans-intrinsic.c (gfc_conv_intrinsic_minmax_char,
1266 gfc_conv_intrinsic_len_trim, gfc_conv_intrinsic_ichar,
1267 gfc_conv_intrinsic_strcmp, gfc_conv_intrinsic_trim,
1268 gfc_conv_intrinsic_function): Deal with nondefault character kinds.
1270 2008-05-15 Sa Liu <saliu@de.ibm.com>
1272 * iso-c-binding.def: Add standard parameter to macro NAMED_INTCST.
1273 All existing NAMED_INTCST definitions has standard GFC_STD_F2003,
1274 c_int128_t, c_int_least128_t and c_int_fast128_t are added as
1276 * iso-fortran-evn.def: Add standard parameter GFC_STD_F2003
1277 to macro NAMED_INTCST.
1278 * symbol.c (std_for_isocbinding_symbol): New helper function to
1279 return the standard that supports this isocbinding symbol.
1280 (generate_isocbinding_symbol): Do not generate GNU extension symbols
1281 if std=f2003. Add new parameter to NAMED_INTCST.
1282 * module.c (use_iso_fortran_env_module): Add new parameter to
1283 NAMED_INTCST and new field standard to struct intmod_sym.
1284 * gfortran.h: Add new parameter to NAMED_INTCST.
1285 * trans-types.c (init_c_interop_kinds): Add new parameter to
1287 * intrinsic.texi: Documented new types C_INT128_T, C_INT_LEASE128_T
1288 and C_INT_FAST128_T.
1290 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1293 * trans-decl.c (gfc_build_dummy_array_decl): Don't repack
1294 arrays that have the TARGET attribute.
1296 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1299 * simplify.c (only_convert_cmplx_boz): New function.
1300 (gfc_simplify_cmplx, gfc_simplify_complex, gfc_simplify_dcmplx):
1301 Call only_convert_cmplx_boz.
1303 2008-05-14 Paul Thomas <pault@gcc.gnu.org>
1306 * interface.c (compare_actual_formal): Do not check sizes if the
1307 actual is BT_PROCEDURE.
1309 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1312 * trans-array.c (gfc_conv_ss_startstride): Any negative size is
1313 the same as zero size.
1314 (gfc_conv_loop_setup): Fix size calculation.
1316 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1319 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Correctly
1320 handle zero-size sections.
1322 2008-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1325 * scanner.c (preprocessor_line): Allocate enough memory for a
1328 2008-05-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1331 * target-memory.c (gfc_target_expr_size): Correctly treat
1333 (gfc_target_encode_expr): Likewise.
1334 (gfc_interpret_complex): Whitespace change.
1336 2008-05-11 Thomas Koenig <tkoenig@gcc.gnu.org>
1339 * trans.c (gfc_call_malloc): If size equals zero, allocate one
1340 byte; don't return a null pointer.
1342 2008-05-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1345 * module.c (quote_string): Fix sprintf format.
1347 2008-05-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1350 * module.c (quote_string, unquote_string,
1351 mio_allocated_wide_string): New functions.
1352 (mio_expr): Call mio_allocated_wide_string where needed.
1354 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
1356 * trans-decl.c (gfc_get_extern_function_decl, build_function_decl):
1357 Rename DECL_IS_PURE to DECL_PURE_P.
1359 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1361 * arith.c: (gfc_arith_concat, gfc_compare_string,
1362 gfc_compare_with_Cstring, hollerith2representation,
1363 gfc_hollerith2int, gfc_hollerith2real, gfc_hollerith2complex,
1364 gfc_hollerith2character, gfc_hollerith2logical): Use wide
1365 characters for character constants.
1366 * data.c (create_character_intializer): Likewise.
1367 * decl.c (gfc_set_constant_character_len): Likewise.
1368 * dump-parse-tree.c (show_char_const): Correctly dump wide
1370 error.c (print_wide_char): Rename into gfc_print_wide_char.
1371 (show_locus): Adapt to new prototype of gfc_print_wide_char.
1372 expr.c (free_expr0): Representation is now disjunct from
1373 character string value, so we always free it.
1374 (gfc_copy_expr, find_substring_ref, gfc_simplify_expr): Adapt
1375 to wide character strings.
1376 * gfortran.h (gfc_expr): Make value.character.string a wide string.
1377 (gfc_wide_toupper, gfc_wide_strncasecmp, gfc_wide_memset,
1378 gfc_widechar_to_char, gfc_char_to_widechar): New prototypes.
1379 (gfc_get_wide_string): New macro.
1380 (gfc_print_wide_char): New prototype.
1381 * io.c (format_string): Make a wide string.
1382 (next_char, gfc_match_format, compare_to_allowed_values,
1383 gfc_match_open): Deal with wide strings.
1384 * module.c (mio_expr): Convert between wide strings and ASCII ones.
1385 * primary.c (match_hollerith_constant, match_charkind_name):
1386 Handle wide strings.
1387 * resolve.c (build_default_init_expr): Likewise.
1388 * scanner.c (gfc_wide_toupper, gfc_wide_memset,
1389 gfc_char_to_widechar): New functions.
1390 (wide_strchr, gfc_widechar_to_char, gfc_wide_strncasecmp):
1391 Changes in prototypes.
1392 (gfc_define_undef_line, load_line, preprocessor_line,
1393 include_line, load_file, gfc_read_orig_filename): Handle wide
1395 * simplify.c (gfc_simplify_achar, gfc_simplify_adjustl,
1396 gfc_simplify_adjustr, gfc_simplify_char, gfc_simplify_iachar,
1397 gfc_simplify_ichar, simplify_min_max, gfc_simplify_new_line,
1398 gfc_simplify_repeat): Handle wide strings.
1399 (wide_strspn, wide_strcspn): New helper functions.
1400 (gfc_simplify_scan, gfc_simplify_trim, gfc_simplify_verify):
1401 Handle wide strings.
1402 * symbol.c (generate_isocbinding_symbol): Likewise.
1403 * target-memory.c (size_character, gfc_target_expr_size,
1404 encode_character, gfc_target_encode_expr, gfc_interpret_character,
1405 gfc_target_interpret_expr): Handle wide strings.
1406 * trans-const.c (gfc_conv_string_init): Lower wide strings to
1408 (gfc_conv_constant_to_tree): Likewise.
1409 * trans-expr.c (gfc_conv_substring_expr): Handle wide strings.
1410 * trans-io.c (gfc_new_nml_name_expr): Likewise.
1411 * trans-stmt.c (gfc_trans_label_assign): Likewise.
1413 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1415 * simplify.c (gfc_simplify_bessel_j0,gfc_simplify_bessel_j1,
1416 gfc_simplify_bessel_jn,gfc_simplify_bessel_y0,
1417 gfc_simplify_bessel_y1,gfc_simplify_bessel_yn): Mark arguments
1418 with ATTRIBUTE_UNUSED.
1420 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1422 * check.c (gfc_check_sizeof): Switch to ATTRIBUTE_UNUSED.
1423 * simplify.c (gfc_simplify_lgamma): Likewise.
1425 2008-05-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1427 * openmp.c (gfc_match_omp_eos): Use gfc_next_ascii_char and
1428 gfc_peek_ascii_char.
1429 * decl.c (gfc_match_kind_spec, gfc_match_type_spec,
1430 gfc_match_implicit_none, match_implicit_range, gfc_match_implicit,
1431 match_string_p, match_attr_spec, gfc_match_suffix,
1432 match_procedure_decl, gfc_match_entry, gfc_match_subroutine):
1434 * gfortran.h (gfc_char_t): New type.
1435 (gfc_linebuf): Make line member a gfc_char_t.
1436 (locus): Make nextc member a gfc_char_t.
1437 (gfc_wide_is_printable, gfc_wide_is_digit, gfc_wide_fits_in_byte,
1438 gfc_wide_tolower, gfc_wide_strlen, gfc_next_ascii_char,
1439 gfc_peek_ascii_char, gfc_check_digit): New prototypes.
1440 * error.c (print_wide_char): New function.
1441 (show_locus): Use print_wide_char and gfc_wide_strlen.
1442 * io.c (next_char): Use gfc_char_t type.
1443 (match_io): Use gfc_peek_ascii_char and gfc_next_ascii_char.
1444 * match.c (gfc_match_parens, gfc_match_eos,
1445 gfc_match_small_literal_int, gfc_match_name, gfc_match_name_C,
1446 gfc_match_intrinsic_op, gfc_match_char, gfc_match_return,
1447 gfc_match_common): Likewise.
1448 * match.h (gfc_match_special_char): Change prototype.
1449 * parse.c (decode_specification_statement, decode_statement,
1450 decode_omp_directive, next_free, next_fixed): Use
1451 gfc_peek_ascii_char and gfc_next_ascii_char.
1452 * primary.c (gfc_check_digit): Change name.
1453 (match_digits, match_hollerith_constant, match_boz_constant,
1454 match_real_constant, next_string_char, match_charkind_name,
1455 match_string_constant, match_logical_constant_string,
1456 match_complex_constant, match_actual_arg, match_varspec,
1457 gfc_match_rvalue, match_variable): Use gfc_peek_ascii_char and
1458 gfc_next_ascii_char.
1459 * scanner.c (gfc_wide_fits_in_byte, wide_is_ascii,
1460 gfc_wide_is_printable, gfc_wide_tolower, gfc_wide_is_digit,
1461 gfc_wide_is_digit, wide_atoi, gfc_wide_strlen, wide_strcpy,
1462 wide_strchr, widechar_to_char, wide_strncmp, wide_strncasecmp,
1463 gfc_next_ascii_char, gfc_peek_ascii_char):
1465 (next_char, gfc_define_undef_line, skip_free_comments,
1466 gfc_next_char_literal, gfc_next_char, gfc_peek_char,
1467 gfc_error_recovery, load_line, preprocessor_line, include_line,
1468 load_file, gfc_read_orig_filename): Use gfc_char_t for source
1469 characters and the {gfc_,}wide_* functions to manipulate wide
1472 2008-05-06 Tobias Burnus <burnus@net-b.de>
1475 * intrinsic.c (add_functions): Call gfc_simplify_bessel_*.
1476 * intrinsic.h: Add prototypes for gfc_simplify_bessel_*.
1477 * simplify.c (gfc_simplify_bessel_j0,gfc_simplify_bessel_j1,
1478 gfc_simplify_bessel_jn,gfc_simplify_bessel_y0,
1479 gfc_simplify_bessel_y1,gfc_simplify_bessel_yn): New.
1481 2008-05-03 Janus Weil <jaydub66@gmail.com>
1483 * misc.c (gfc_clear_ts): Set interface to NULL.
1485 2008-05-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1488 * gfortran.h: Add extra_comma pointer to gfc_dt structure. Add iokind to
1489 gfc_expr value union. Add io_kind enum to here from io.c.
1490 * io.c (gfc_free_dt): Free extra_comma.
1491 (gfc_resolve_dt): If an extra comma was encountered and io_unit is type
1492 BT_CHARACTER, resolve to format_expr and set default unit. Error if
1493 io_kind is M_WRITE. (match_io): Match the extra comma and set new
1494 pointer, extra_comma.
1496 2008-05-01 Bud Davis <bdavis9659@sbcglobal.net>
1499 * simplify.c (gfc_simplify_index): Check for direction argument
1502 2008-05-01 Janus Weil <jaydub66@gmail.com>
1504 * gfortran.h (struct gfc_symbol): Moving "interface" member to
1505 gfc_typespec (plus fixing a small docu error).
1506 * interface.c (gfc_procedure_use): Ditto.
1507 * decl.c (match_procedure_decl): Ditto.
1508 * resolve.c (resolve_specific_f0,
1509 resolve_specific_f0, resolve_symbol): Ditto.
1511 2008-04-30 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1513 * intrinsic.c (add_functions): Add SELECTED_CHAR_KIND intrinsic.
1514 * intrinsic.h (gfc_check_selected_char_kind,
1515 gfc_simplify_selected_char_kind): New prototypes.
1516 * gfortran.h (gfc_isym_id): Add GFC_ISYM_SC_KIND.
1517 * trans.h (gfor_fndecl_sc_kind): New function decl.
1518 * trans-decl.c (gfor_fndecl_sc_kind): Build new decl.
1519 * arith.c (gfc_compare_with_Cstring): New function.
1520 * arith.h (gfc_compare_with_Cstring): New prototype.
1521 * check.c (gfc_check_selected_char_kind): New function.
1522 * primary.c (match_string_constant, match_kind_param): Mark
1523 symbols used as literal constant kind param as referenced.
1524 * trans-intrinsic.c (gfc_conv_intrinsic_sc_kind): New function.
1525 (gfc_conv_intrinsic_function): Call gfc_conv_intrinsic_sc_kind.
1526 * intrinsic.texi (SELECTED_CHAR_KIND): Document new intrinsic.
1527 * simplify.c (gfc_simplify_selected_char_kind): New function.
1529 2008-04-28 Paul Thomas <pault@gcc.gnu.org>
1532 * module.c (find_symbol): Do not return a result for a symbol
1533 that has been renamed in another module.
1535 2008-04-26 George Helffrich <george@gcc.gnu.org>
1539 * trans-common.c (create_common): Add decl to function
1540 chain (if inside one) to preserve identifier scope in debug output.
1542 2008-04-25 Jan Hubicka <jh@suse.cz>
1544 * trans-decl.c (trans_function_start): Update.
1546 2008-04-25 Tobias Burnus <burnus@net-b.de>
1547 Daniel Franke <franke.daniel@gmail.com>
1550 * gfortranspec.c (lang_specific_driver): Deprecate
1551 -M option; fix ICE when "-M" is last argument and
1552 make "-M<dir>" work.
1553 * options.c (gfc_handle_module_path_options):
1554 Use -J instead of -M in error messages.
1555 * invoke.texi: Mark -M as depecated.
1557 2008-04-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1558 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1561 * trans-instrinsic.c (gfc_conv_intrinsic_minmaxloc): Correctly adjust
1562 loop counter offset.
1564 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
1566 * trans-expr.c (gfc_conv_structure): Don't set TREE_INVARIANT.
1567 * trans-array.c (gfc_build_null_descriptor): Don't set TREE_INVARIANT.
1568 (gfc_trans_array_constructor_value): Don't set TREE_INVARIANT.
1569 (gfc_build_constant_array_constructor): Don't set TREE_INVARIANT.
1570 (gfc_conv_array_initializer): Don't set TREE_INVARIANT.
1571 * trans-common.c (get_init_field): Don't set TREE_INVARIANT.
1572 (create_common): Don't set TREE_INVARIANT.
1573 * trans-stmt.c (gfc_trans_character_select): Don't set TREE_INVARIANT.
1574 * trans-decl.c (gfc_generate_function_code): Don't set TREE_INVARIANT.
1576 2008-04-21 Steve Ellcey <sje@cup.hp.com>
1578 * f95-lang.c (gfc_init_decl_processing): use ptr_mode instead of Pmode.
1580 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
1583 * gfortranspec.c (lookup_option): Properly handle separated arguments
1584 in -J option, print missing argument message when necessary.
1586 2008-04-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1589 * scanner.c (skip_fixed_comments): Update continue_line when comment is
1590 detected. (gfc_next_char_literal): Likewise.
1592 2008-04-19 Paul Thomas <pault@gcc.gnu.org>
1597 * trans_array.c (gfc_trans_array_constructor): Temporarily
1598 realign loop, if loop->from is not zero, before creating
1599 the temporary array and provide an offset.
1602 * trans-decl.c (gfc_init_default_dt): Add gfc_ prefix to name
1603 and allow for NULL body. Change all references from
1604 init_default_dt to gfc_init_default_dt.
1605 * trans.h : Add prototype for gfc_init_default_dt.
1606 * trans-array.c (gfc_trans_deferred_vars): After nullification
1607 call gfc_init_default_dt for derived types with allocatable
1610 2008-04-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1613 * trans-common.c (create_common): Revert patch causing regression.
1615 2008-04-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1618 * iresolve.c (gfc_resolve_eoshift): Check for NULL symtree in test for
1619 optional argument attribute.
1621 2008-04-16 Paul Thomas <pault@gcc.gnu.org>
1624 * trans-intrinsic.c (gfc_conv_intrinsic_char): Even though KIND
1625 is not used, the argument must be converted.
1627 2008-04-16 Jakub Jelinek <jakub@redhat.com>
1630 * f95-lang.c (gfc_init_builtin_functions): Make sure
1631 BUILT_IN_SINCOS{,F,L} types aren't varargs.
1633 2008-04-15 Paul Thomas <pault@gcc.gnu.org>
1636 * expr.c (scalarize_intrinsic_call): Reorder identification of
1637 array argument so that if one is not found a segfault does not
1638 occur. Return FAILURE if all scalar arguments.
1640 2008-04-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1641 Tobias Burnus <burnus@net-b.de>
1644 * options.c (gfc_init_options): Set the default maximum continuation
1645 lines to 255 for both free and fixed form source for warnings.
1646 (gfc_handle_option): Set -std=f95 fixed form max continuations to 19 and
1647 the -std=f95 free form max continuations to 39 for warnings.
1648 * scanner.c (gfc_next_char_literal): Adjust the current_line number only
1649 if it is less than the current locus.
1651 2008-04-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1653 PR fortran/25829 28655
1654 * io.c (io_tag): Add new tags for decimal, encoding, asynchronous,
1655 round, sign, and id. (match_open_element): Match new tags.
1656 (gfc_resolve_open): Resolve new tags. (gfc_match_open): Enable encoding
1657 for DEFAULT only. Update error messages. (match_dt_element): Fix match
1658 tag for asynchronous. Update error messages. (gfc_free_inquire): Free
1659 new expressions. (match_inquire_element): Match new tags.
1660 (gfc_match_inquire): Add constraint for ID and PENDING.
1661 (gfc_resolve_inquire): Resolve new tags.
1662 * trans-io.c (gfc_trans_inquire): Clean up whitespace and fix setting of
1663 mask for ID parameter.
1664 * ioparm.def: Fix order of parameters for pending, round, and sign.
1665 NOTE: These must line up with the definitions in libgfortran/io/io.h. or
1668 2008-04-06 Paul Thomas <pault@gcc.gnu.org>
1671 * expr.c (scalarize_intrinsic_call): Identify which argument is
1672 an array and use that as the template.
1673 (check_init_expr): Remove tests that first argument is an array
1674 in the call to scalarize_intrinsic_call.
1676 2008-04-06 Tobias Schlüter <tobi@gcc.gnu.org>
1679 * io.c (io_tag): Add field 'value'. Split 'spec' field in
1681 (match_etag, match_vtag, match_ltag): Split parsing in two steps
1682 to give better error messages.
1684 2008-04-06 Tobias Burnus <burnus@net-b.de>
1686 * io.c (check_io_constraints): Add constrains. ID= requires
1687 asynchronous= and asynchronous= must be init expression.
1689 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1691 * f95-lang.c: Set LANG_HOOKS_NAME to "GNU Fortran".
1693 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1695 * dump-parse-tree.c: Use fprintf, fputs and fputc instead of
1696 gfc_status and gfc_status_char. Remove gfc_ prefix of the gfc_show_*
1697 functions and make them static. Add new gfc_dump_parse_tree
1699 * gfortran.h (gfc_option_t): Rename verbose into dump_parse_tree.
1700 (gfc_status, gfc_status_char): Delete prototypes.
1701 * error.c (gfc_status, gfc_status_char): Remove functions.
1702 * scanner.c (gfc_new_file): Use printf instead of gfc_status.
1703 * options.c (gfc_init_options): Rename verbose into dump_parse_tree.
1704 (gfc_handle_module_path_options): Use gfc_fatal_error instead of
1705 gfc_status and exit.
1706 (gfc_handle_option): Rename verbose into dump_parse_tree.
1707 * parse.c (gfc_parse_file): Use gfc_dump_parse_tree.
1709 2008-04-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1710 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1712 PR fortran/25829 28655
1713 * dump-parse-tree.c (gfc_show_code_node): Show new I/O parameters.
1714 * gfortran.h (gfc_statement): Add ST_WAIT enumerator.
1715 (gfc_open): Add pointers for decimal, encoding, round, sign,
1716 asynchronous. (gfc_inquire): Add pointers for asynchronous, decimal,
1717 encoding, pending, round, sign, size, id.
1718 (gfc_wait): New typedef struct. (gfc_dt): Add pointers for id, pos,
1719 asynchronous, blank, decimal, delim, pad, round, sign.
1720 (gfc_exec_op): Add EXEC_WAIT enumerator. (gfc_code): Add pointer for
1721 wait. (gfc_free_wait), (gfc_resolve_wait): New function prototypes.
1722 * trans-stmt.h (gfc_trans_wait): New function prototype.
1723 * trans.c (gfc_trans_code): Add case for EXEC_WAIT.
1724 * io.c (io_tag): Add new tags for DECIMAL, ENCODING, ROUND, SIGN,
1725 ASYCHRONOUS, ID. (match_open_element): Add matchers for new tags.
1726 (gfc_free_open): Free new pointers. (gfc_resolve_open): Resolve new
1727 tags. (gfc_resolve_open): Remove comment around check for allowed
1728 values and ASYNCHRONOUS, update it. Likewise for DECIMAL, ENCODING,
1729 ROUND, and SIGN. (match_dt_element): Add matching for new tags.
1730 (gfc_free_wait): New function. (gfc_resolve_wait): New function.
1731 (match_wait_element): New function. (gfc_match_wait): New function.
1732 * resolve.c (gfc_resolve_blocks): Add case for EXEC_WAIT.
1733 (resolve_code): Add case for EXEC_WAIT.
1734 * st.c (gfc_free_statement): Add case for EXEC_WAIT.
1735 * trans-io.c (ioparam_type): Add IOPARM_ptype_wait. (gfc_st_parameter):
1736 Add "wait" entry. (iocall): Add IOCALL_WAIT enumerator.
1737 (gfc_build_io_library_fndecls): Add function declaration for st_wait.
1738 (gfc_trans_open): Add mask bits for new I/O tags.
1739 (gfc_trans_inquire): Add mask bits for new I/O tags.
1740 (gfc_trans_wait): New translation function.
1741 (build_dt): Add mask bits for new I/O tags.
1742 * match.c (gfc_match_if) Add matcher for "wait".
1743 * match.h (gfc_match_wait): Prototype for new function.
1744 * ioparm.def: Add new I/O parameter definitions.
1745 * parse.c (decode_statement): Add match for "wait" statement.
1746 (next_statement): Add case for ST_WAIT. (gfc_ascii_statement): Same.
1748 2008-04-03 Jakub Jelinek <jakub@redhat.com>
1751 * openmp.c (resolve_omp_clauses): Diagnose if a clause symbol
1754 2008-04-03 Tom Tromey <tromey@redhat.com>
1756 * Make-lang.in (fortran_OBJS): New variable.
1758 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
1760 * f95-lang.c (insert_block): Kill.
1762 2008-04-01 George Helffrich <george@gcc.gnu.org>
1764 PR fortran/35154, fortran/23057
1765 * trans-common.c (create_common): Add decl to function
1766 chain to preserve identifier scope in debug output.
1768 2008-04-01 Joseph Myers <joseph@codesourcery.com>
1770 * gfortran.texi: Include gpl_v3.texi instead of gpl.texi
1771 * Make-lang.in (GFORTRAN_TEXI): Include gpl_v3.texi instead of
1774 2008-03-30 Paul Thomas <pault@gcc.gnu.org>
1777 * resolve.c (resolve_function, resolve_call): If the procedure
1778 is elemental do not look for noncopying intrinsics.
1780 2008-03-29 Paul Thomas <pault@gcc.gnu.org>
1783 * trans-array.c (gfc_array_init_size): Set 'size' zero if
1784 negative in one dimension.
1787 * trans-expr.c (gfc_trans_string_copy): Only assign a char
1788 directly if the lhs and rhs types are the same.
1790 2008-03-28 Daniel Franke <franke.daniel@gmail.com>
1791 Paul Richard Thomas <paul.richard.thomas@gmail.com>
1794 * primary.c (match_variable): Improved matching of function
1796 * resolve.c (resolve_allocate_deallocate): Removed checks if
1797 the actual argument for STAT is a variable.
1799 2008-03-28 Tobias Burnus <burnus@net-b.de>
1801 * symbol.c (gfc_get_default_type): Fix error message; option
1802 -fallow_leading_underscore should be -fallow-leading-underscore
1804 2008-03-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1807 * iresolve.c (gfc_resolve_cshift): Check for NULL symtree in test for
1808 optional argument attribute.
1810 2008-03-27 Tom Tromey <tromey@redhat.com>
1812 * Make-lang.in: Revert automatic dependency patch.
1814 2008-03-25 Tom Tromey <tromey@redhat.com>
1816 * Make-lang.in: Remove .o targets.
1817 (fortran_OBJS): New variable.
1818 (fortran/gfortranspec.o): Move to fortran/. Reduce to variable
1820 (GFORTRAN_D_OBJS): Update.
1821 (GFORTRAN_TRANS_DEPS): Remove.
1823 2008-03-24 Paul Thomas <pault@gcc.gnu.org>
1826 * resolve.c (resolve_structure_cons): It is an error to assign
1827 NULL to anything other than a pointer or allocatable component.
1830 * resolve.c (resolve_symbol): If the symbol is a derived type,
1831 resolve the derived type. If the symbol is a derived type
1832 function, ensure that the derived type is visible in the same
1833 namespace as the function.
1835 2008-03-23 Tobias Schlüter <tobi@gcc.gnu.org>
1837 * trans.h: Use fold_build in build1_v, build2_v and build3_v
1839 * trans-openmp.c (gfc_trans_omp_critical, gfc_trans_omp_single):
1840 Don't use build2_v macro.
1842 2008-03-19 Daniel Franke <franke.daniel@gmail.com>
1845 * interface.c (gfc_procedure_use): Check for keyworded arguments in
1846 procedures without explicit interfaces.
1848 2008-03-16 Paul Thomas <pault@gcc.gnu.org>
1851 * resolve.c (check_assumed_size_reference): Only visit the
1852 first reference and look directly at the highest dimension.
1854 2008-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1857 * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
1860 2008-03-15 Daniel Franke <franke.daniel@gmail.com>
1863 * resolve.c (resolve_branch): Less strict and pessimistic warning
1866 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
1868 * f95-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
1869 (gfc_be_parse_file): Call clear_binding_stack from here.
1870 (gfc_clear_binding_stack): Rename to clear_binding_stack.
1872 2008-03-09 Paul Thomas <pault@gcc.gnu.org>
1875 * module.c (mio_symtree_ref): After providing a symbol for a
1876 missing equivalence member, resolve and NULL the fixups.
1878 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1880 * invoke.texi (Error and Warning Options): Document
1883 2008-03-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1886 * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
1887 checking bounds of absent optional arguments.
1889 2008-03-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1892 * intrinsic.c (add_functions): Add simplification routines for
1893 ERF, DERF, ERFC and DERFC.
1894 * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
1895 extensions into Fortran 2008 features.
1896 * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
1898 * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
1900 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1903 * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
1904 ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
1905 ERFC_SCALED, LOG_GAMMA and HYPOT.
1906 * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
1907 gfc_resolve_hypot): New prototypes.
1908 * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
1909 ACOSH, ASINH and ATANH available.
1910 * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
1911 * lang.opt: Add -std=f2008 option.
1912 * libgfortran.h: Define GFC_STD_F2008.
1913 * lang-specs.h: Add .f08 and .F08 file suffixes.
1914 * iresolve.c (gfc_resolve_hypot): New function.
1915 * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
1916 * check.c (gfc_check_hypot): New function.
1917 * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
1918 * options.c (set_default_std_flags): Allow Fortran 2008 by default.
1919 (form_from_filename): Add .f08 suffix.
1920 (gfc_handle_option): Handle -std=f2008 option.
1921 * simplify.c (gfc_simplify_hypot): New function.
1922 * gfortran.texi: Document Fortran 2008 status and file extensions.
1923 * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
1924 as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
1925 ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
1926 * invoke.texi: Document the new -std=f2008 option.
1928 2008-03-02 Jakub Jelinek <jakub@redhat.com>
1930 * gfortranspec.c (lang_specific_driver): Update copyright notice
1933 2008-02-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1936 * expr.c (find_array_element): Modify traversing the constructor to
1937 avoid trying to access NULL memory pointed to by next for the
1938 last element. (find_array_section): Exit while loop if cons->next is
1940 * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
1941 (gfc_conv_function_call): Same.
1942 * decl.c (gfc_match_implicit): Same.
1943 * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
1945 2008-02-28 Daniel Franke <franke.daniel@gmail.com>
1950 * lang.opt: Added -Wreturn-type.
1951 * options.c (gfc_handle_option): Recognize -Wreturn-type.
1952 * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
1953 where the result value is not set.
1954 (gfc_generate_function_code): Likewise.
1955 (generate_local_decl): Emit warnings for funtions whose RESULT
1956 variable is not set.
1958 2008-02-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1961 * trans-expr.c (gfc_conv_variable): Don't build indirect
1962 references when explicit interface is mandated.
1963 * resolve.c (resolve_formal_arglist): Set attr.always_explicit
1964 on the result symbol as well as the procedure symbol.
1966 2008-02-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1969 * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
1970 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
1971 gfor_fndecl_math_exponent16.
1972 * f95-lang.c (build_builtin_fntypes): Add new function types.
1973 (gfc_init_builtin_functions): Add new builtins for nextafter,
1974 frexp, ldexp, fabs, scalbn and inf.
1975 * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
1976 (gfc_resolve_scale): Don't convert type of second argument.
1977 (gfc_resolve_set_exponent): Likewise.
1978 (gfc_resolve_size): Don't add hidden arguments.
1979 * trans-decl.c: Remove gfor_fndecl_math_exponent4,
1980 gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
1981 gfor_fndecl_math_exponent16.
1982 * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
1983 for scalbn, fraction, nearest, rrspacing, set_exponent and
1985 (gfc_conv_intrinsic_exponent): Directly call frexp.
1986 (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
1987 gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
1988 gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
1990 (gfc_conv_intrinsic_function): Use the new functions above.
1992 2008-02-26 Tobias Burnus <burnus@net-b.de>
1995 * interface.c (check_operator_interface): Show better line for error
1996 messages; fix constrains for user-defined assignment operators.
1997 (gfc_extend_assign): Fix constrains for user-defined assignment
2000 2008-02-26 Tom Tromey <tromey@redhat.com>
2002 * trans-io.c (set_error_locus): Remove old location code.
2003 * trans-decl.c (gfc_set_decl_location): Remove old location code.
2004 * f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
2005 * scanner.c (gfc_gobble_whitespace): Remove old location code.
2006 (get_file): Likewise.
2007 (preprocessor_line): Likewise.
2008 (load_file): Likewise.
2009 (gfc_new_file): Likewise.
2010 * trans.c (gfc_trans_runtime_check): Remove old location code.
2011 (gfc_get_backend_locus): Likewise.
2012 (gfc_set_backend_locus): Likewise.
2013 * data.c (gfc_assign_data_value): Remove old location code.
2014 * error.c (show_locus): Remove old location code.
2015 * gfortran.h (gfc_linebuf): Remove old location code.
2016 (gfc_linebuf_linenum): Remove old-location variant.
2018 2008-02-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2021 * trans-const.c (gfc_build_string_const): Don't call gettext.
2022 (gfc_build_localized_string_const): New function.
2023 * trans-const.h (gfc_build_localized_string_const): New prototype.
2024 * trans.c (gfc_trans_runtime_check): Use
2025 gfc_build_localized_string_const instead of gfc_build_string_const.
2026 (gfc_call_malloc): Likewise.
2027 (gfc_allocate_with_status): Likewise.
2028 (gfc_allocate_array_with_status): Likewise.
2029 (gfc_deallocate_with_status): Likewise.
2030 (gfc_call_realloc): Likewise.
2031 * trans-io.c (gfc_trans_io_runtime_check): Likewise.
2033 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
2035 * arith.c: Update copyright years.
2036 * arith.h: Likewise.
2037 * array.c: Likewise.
2039 * check.c: Likewise.
2043 * dependency.c: Likewise.
2044 * dependency.h: Likewise.
2045 * dump-parse-tree.c: Likewise.
2046 * error.c: Likewise.
2048 * gfc-internals.texi: Likewise.
2049 * gfortran.h: Likewise.
2050 * gfortran.texi: Likewise.
2051 * gfortranspec.c: Likewise.
2052 * interface.c: Likewise.
2053 * intrinsic.c: Likewise.
2054 * intrinsic.h: Likewise.
2055 * intrinsic.texi: Likewise.
2056 * invoke.texi: Likewise.
2058 * iresolve.c: Likewise.
2059 * iso-c-binding.def: Likewise.
2060 * iso-fortran-env.def: Likewise.
2061 * lang-specs.h: Likewise.
2062 * lang.opt: Likewise.
2063 * libgfortran.h: Likewise.
2064 * match.c: Likewise.
2065 * match.h: Likewise.
2066 * matchexp.c: Likewise.
2068 * module.c: Likewise.
2069 * openmp.c: Likewise.
2070 * options.c: Likewise.
2071 * parse.c: Likewise.
2072 * parse.h: Likewise.
2073 * primary.c: Likewise.
2074 * resolve.c: Likewise.
2075 * scanner.c: Likewise.
2076 * simplify.c: Likewise.
2078 * symbol.c: Likewise.
2079 * target-memory.c: Likewise.
2080 * target-memory.h: Likewise.
2081 * trans-array.h: Likewise.
2082 * trans-const.h: Likewise.
2083 * trans-stmt.h: Likewise.
2084 * trans-types.c: Likewise.
2085 * trans-types.h: Likewise.
2086 * types.def: Likewise.
2088 2008-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2091 * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
2092 (gfc_simplify_ibset): Remove call to range_check.
2093 (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
2094 (gfc_simplify_real): Add call gfc_clear_ts to initialize the
2095 temporary gfc_typspec variable.
2097 2008-02-24 Tobias Schlüter <tobi@gcc.gnu.org>
2099 * trans-array.c (gfc_conv_descriptor_data_get,
2100 gfc_conv_descriptor_data_set_internal,
2101 gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
2102 gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
2103 gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
2104 gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
2105 gfc_conv_array_transpose, gfc_grow_array,
2106 gfc_trans_array_constructor_subarray,
2107 gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
2108 gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
2109 gfc_conv_array_initializer, gfc_trans_array_bounds,
2110 gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
2111 gfc_get_dataptr_offset, gfc_conv_array_parameter,
2112 gfc_trans_dealloc_allocated, get_full_array_size,
2113 gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
2115 * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
2116 gfc_conv_component_ref, gfc_conv_cst_int_power,
2117 gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
2118 * trans-common.c (create_common): Likewise.
2119 * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
2121 * trans-const.c (gfc_conv_constant_to_tree): Likewise.
2122 * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
2123 gfc_trans_integer_select, gfc_trans_character_select,
2124 gfc_trans_forall_loop, compute_overall_iter_number,
2125 gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
2126 gfc_trans_deallocate): Likewise.
2127 * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
2128 gfc_allocate_with_status, gfc_allocate_array_with_status,
2129 gfc_deallocate_with_status): Likewise.
2130 * f95-lang.c (gfc_truthvalue_conversion): Likewise.
2131 * trans-io.c (set_parameter_const, set_parameter_value,
2132 set_parameter_ref, set_string, set_internal_unit, io_result,
2133 set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
2134 * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
2135 gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
2136 gfc_generate_function_code): Likewise.
2137 * convert.c (convert): Likewise.
2138 * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
2139 build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
2140 gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
2141 gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
2142 gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
2143 gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
2144 gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
2145 gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
2146 gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
2147 gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
2148 gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
2149 gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
2150 gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
2151 gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
2152 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
2153 gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
2154 gfc_conv_intrinsic_repeat): Likewise.
2156 2008-02-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2159 * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
2160 * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
2161 * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
2162 gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
2163 * trans-decl.c: Likewise.
2165 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2168 * expr.c (find_array_element): Modify traversing the constructor to
2169 avoid trying to access NULL memory pointed to by next for the
2170 last element. (find_array_section): Exit while loop if cons->next is
2173 2008-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2176 * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
2178 (gfc_resolve_aint): Likewise.
2179 (gfc_resolve_anint): Likewise.
2180 (gfc_resolve_besn): Likewise.
2181 (gfc_resolve_cshift): Likewise.
2182 (gfc_resolve_ctime): Likewise.
2183 (gfc_resolve_eoshift): Likewise.
2184 (gfc_resolve_index_func): Likewise.
2185 (gfc_resolve_isatty): Likewise.
2186 (gfc_resolve_malloc): Likewise.
2187 (gfc_resolve_rrspacing): Likewise.
2188 (gfc_resolve_scale): Likewise.
2189 (gfc_resolve_set_exponent): Likewise.
2190 (gfc_resolve_spacing): Likewise.
2191 (gfc_resolve_spacing): Likewise.
2192 (gfc_resolve_fgetc): Likewise.
2193 (gfc_resolve_fputc): Likewise.
2194 (gfc_resolve_ftell): Likewise.
2195 (gfc_resolve_ttynam): Likewise.
2196 (gfc_resolve_alarm_sub): Likewise.
2197 (gfc_resolve_mvbits): Likewise.
2198 (gfc_resolve_getarg): Likewise.
2199 (gfc_resolve_signal_sub): Likewise.
2200 (gfc_resolve_exit): Likewise.
2201 (gfc_resolve_flush): Likewise.
2202 (gfc_resolve_free): Likewise.
2203 (gfc_resolve_ctime_sub): Likewise.
2204 (gfc_resolve_fgetc_sub): Likewise.
2205 (gfc_resolve_fputc_sub): Likewise.
2206 (gfc_resolve_fseek_sub): Likewise.
2207 (gfc_resolve_ftell_sub): Likewise.
2208 (gfc_resolve_ttynam_sub): Likewise.
2210 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2212 * gfc-internals.texi: Fix typos and markup nits.
2213 * gfortran.texi: Likewise.
2214 * intrinsic.texi: Likewise.
2216 2008-02-21 Richard Guenther <rguenther@suse.de>
2218 * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
2219 as unary PAREN_EXPR for real and complex typed expressions.
2220 (gfc_conv_unary_op): Fold the built tree.
2222 2008-02-20 Tobias Burnus <burnus@net-b.de>
2225 * match.c (gfc_match_name): Improve error message for '$'.
2227 2008-02-19 Daniel Franke <franke.daniel@gmail.com>
2230 * expr.c (gfc_check_pointer_assign): Add type and kind information
2231 to type-mismatch message.
2232 (gfc_check_assign): Unify error messages.
2234 2008-02-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2237 * gfortran.texi: Create new section for unimplemented extensions.
2238 Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
2239 Remove "smaller projects" list. Fix a few typos.
2241 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2243 * intrinsic.texi: Rename INDEX node to avoid clashing with
2244 index.html on case-insensitive systems.
2246 2008-02-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2249 * trans-expr.c (gfc_conv_function_call): Force evaluation of
2252 2008-02-10 Daniel Franke <franke.daniel@gmail.com>
2255 * lang.opt: Allow '-J<dir>' next to '-J <dir>',
2256 likewise '-I <dir>' and '-I<dir>'.
2258 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2261 * Make-lang.in (f951): Add $(GMPLIBS).
2263 2008-02-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2266 * trans-common.c (build_field): Mark fields as volatile when needed.
2268 2008-02-05 Tobias Burnus <burnus@net-b.de>
2271 * data.c (gfc_assign_data_value): Only free "size" if
2272 it has not already been freed.
2274 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
2277 * array.c (match_array_element_spec): Remove check for negative
2279 (gfc_resolve_array_spec): Add check for negative size.
2281 2008-02-05 Paul Thomas <pault@gcc.gnu.org>
2284 * data.c (gfc_assign_data_value): Add bounds check for array
2287 2008-02-04 Daniel Franke <franke.daniel@gmail.com>
2289 * resolve.c (resolve_where): Fix typo.
2290 (gfc_resolve_where_code_in_forall): Likewise.
2292 2008-02-03 Paul Thomas <pault@gcc.gnu.org>
2295 * resolve.c (resolve_allocate_deallocate): New function.
2296 (resolve_code): Call it for allocate and deallocate.
2297 * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
2298 the checking of the STAT tag and put in above new function.
2299 * primary,c (match_variable): Do not fix flavor of host
2300 associated symbols yet if the type is not known.
2302 2008-01-31 Paul Thomas <pault@gcc.gnu.org>
2305 * expr.c (gfc_check_assign): It is an error to assign
2306 to a sibling procedure.
2308 2008-01-30 Paul Thomas <pault@gcc.gnu.org>
2311 * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
2312 delete_symtree to gfc_delete_symtree.
2313 * gfortran.h : Add prototype for gfc_delete_symtree.
2314 * module.c (load_generic_interfaces): Transfer symbol to a
2315 unique symtree and delete old symtree, instead of renaming.
2316 (read_module): The rsym and the found symbol are the same, so
2317 the found symtree can be deleted.
2320 * decl.c (match_char_spec): Remove the constraint on deferred
2321 matching of functions and free the length expression.
2322 delete_symtree to gfc_delete_symtree.
2323 (gfc_match_type_spec): Whitespace.
2324 (gfc_match_function_decl): Defer characteristic association for
2325 all types except BT_UNKNOWN.
2326 * parse.c (decode_specification_statement): Only derived type
2327 function matching is delayed to the end of specification.
2329 2008-01-28 Tobias Burnus <burnus@net-b.de>
2332 * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
2334 2008-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2337 * array.c (gfc_check_constructor_type): Revert clearing the expression.
2339 2008-01-26 Tobias Burnus <burnus@net-b.de>
2342 * trans-expr.c (gfc_conv_function_call): Don't call
2343 gfc_add_interface_mapping if the expression is NULL.
2345 2008-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2348 * trans-array.c (gfc_trans_create_temp_array): Remove call to
2349 gcc_assert (integer_zerop (loop->from[n])).
2351 2008-01-25 Daniel Franke <franke.daniel@gmail.com>
2354 * resolve.c (resolve_where): Added check if user-defined assignment
2355 operator is an elemental subroutine.
2356 (gfc_resolve_where_code_in_forall): Likewise.
2358 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
2362 * gfortran.h: Revert changes from 2008-01-17.
2363 * match.c: Likewise.
2364 * symbol.c: Likewise.
2365 (gfc_undo_symbols): Undo namespace changes related to common blocks.
2367 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
2370 * data.c (formalize_structure_cons): Skip formalization on
2373 2008-01-24 Daniel Franke <franke.daniel@gmail.com>
2375 * gfortran.texi (OpenMP): Extended existing documentation.
2376 (contributors): Added major contributors of 2008 that were
2378 (proposed extensions): Removed implemented items.
2380 2008-01-24 Paul Thomas <pault@gcc.gnu.org>
2383 * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS is
2384 seen, check for a statement label and, if present, delete it
2385 and set the locus to the start of the statement.
2387 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
2390 * trans-io.c (gfc_trans_transfer): If the array reference in a
2391 read has a vector subscript, use gfc_conv_subref_array_arg to
2392 copy back the temporary.
2394 2008-01-22 Tobias Burnus <burnus@net-b.de>
2397 * interface.c (compare_actual_formal): Fix adding type
2398 to missing_arg_type for absent optional arguments.
2400 2008-01-22 Tobias Burnus <burnus@net-b.de>
2403 * parse.c (parse_spec): Change = into ==.
2405 2008-01-22 Daniel Franke <franke.daniel@gmail.com>
2408 * expr.c (check_elemental): Fix check for valid data types.
2410 2008-01-22 Tobias Burnus <burnus@net-b.de>
2413 * scanner.c (load_line): Support <tab><digit> continuation lines.
2414 * invoke.texi (-Wtabs): Document this.
2416 2008-01-22 Paul Thomas <pault@gcc.gnu.org>
2419 * module.c (read_module): Set use_rename attribute.
2421 2007-01-21 Tobias Burnus <burnus@net-b.de>
2424 * interface.c (compare_parameter): Improved error message
2425 for arguments of same type and mismatched kinds.
2427 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
2430 * resolve.c (resolve_entries): Do not do an array bounds check
2431 if the result symbols are the same.
2434 * module.c (read_module) : Hide the symtree of the previous
2435 version of the symbol if this symbol is renamed.
2437 2008-01-20 Paul Thomas <pault@gcc.gnu.org>
2440 * array.c (gfc_check_constructor_type): Clear the expression ts
2441 so that the checking starts from the deepest level of array
2443 * primary.c (match_varspec): If an unknown type is changed to
2444 default character and the attempt to match a substring fails,
2445 change it back to unknown.
2448 * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
2449 NULL for an array constructor, use the cl.length expression to
2451 (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
2454 2008-01-19 Thomas Koenig <tkoenig@gcc.gnu.org>
2458 * iresolve.c (gfc_resolve_all): Remove conversion of mask
2459 argument to kind=1 by removing call to resolve_mask_arg().
2460 (gfc_resolve_any): Likewise.
2462 2008-01-19 Tobias Burnus <burnus@net-b.de>
2465 * primary.c (match_variable): Handle FL_UNKNOWN without
2466 uneducated guessing.
2467 (match_variable): Improve error message.
2469 2008-01-18 Tobias Burnus <burnus@net-b.de>
2472 * interface.c (get_expr_storage_size): Return storage size
2473 for array element designators.
2474 (compare_actual_formal): Reject unequal string sizes for
2475 assumed-shape dummy arguments. And fix error message for
2476 array-sections with vector subscripts.
2478 2008-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2481 * simplify.c (is_constant_array_expr): New static function that returns
2482 true if the given expression is an array and is constant.
2483 (gfc_simplify_reshape): Use new function.
2485 2008-01-17 H.J. Lu <hongjiu.lu@intel.com>
2488 * symbol.c (free_common_tree): Renamed to ...
2489 (gfc_free_common_tree): This. Remove static.
2490 (gfc_free_namespace): Updated.
2492 * gfortran.h (gfc_free_common_tree): New.
2494 * match.c (gfc_match_common): Call gfc_free_common_tree () with
2495 gfc_current_ns->common_root and set gfc_current_ns->common_root
2496 to NULL on syntax error.
2498 2008-01-18 Richard Sandiford <rsandifo@nildram.co.uk>
2501 * trans-expr.c (gfc_conv_function_call): Use proper
2502 type for returned character pointers.
2504 2008-01-17 Paul Thomas <pault@gcc.gnu.org>
2509 * decl.c : Remove gfc_function_kind_locus and
2510 gfc_function_type_locus. Add gfc_matching_function.
2511 (match_char_length): If matching a function and the length
2512 does not match, return MATCH_YES and try again later.
2513 (gfc_match_kind_spec): The same.
2514 (match_char_kind): The same.
2515 (gfc_match_type_spec): The same for numeric and derived types.
2516 (match_prefix): Rename as gfc_match_prefix.
2517 (gfc_match_function_decl): Except for function valued character
2518 lengths, defer applying kind, type and charlen info until the
2519 end of specification block.
2520 gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
2521 parse.c (decode_specification_statement): New function.
2522 (decode_statement): Call it when a function has kind = -1. Set
2523 and reset gfc_matching function, as function statement is being
2525 (match_deferred_characteristics): Simplify with a single call
2526 to gfc_match_prefix. Do appropriate error handling. In any
2527 case, make sure that kind = -1 is reset or corrected.
2528 (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
2529 Throw an error if kind = -1 after last specification statement.
2530 parse.h : Prototype for gfc_match_prefix.
2532 2008-01-16 Tobias Burnus <burnus@net-b.de>
2535 * interface.c (compare_parameter): Allow AS_DEFERRED array
2536 elements and reject attr.pointer array elemenents.
2537 (get_expr_storage_size): Return storage size of elements of
2538 assumed-shape and pointer arrays.
2540 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
2542 * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
2543 for flag_tree_parallelize_loops.
2545 2008-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
2548 * iresolve.c (gfc_resolve_all): Call resolve_mask_arg.
2549 (gfc_resolve_any): Likewise.
2550 (gfc_resolve_count): Likewise. Don't append kind of
2551 argument to function name.
2553 2008-01-13 Tobias Burnus <burnus@net-b.de>
2556 * resolve.c (resolve_actual_arglist): For expressions,
2557 also check for assume-sized arrays.
2558 * interface.c (compare_parameter): Move F2003 character checks
2559 here, print error messages here, reject elements of
2560 assumed-shape array as argument to dummy arrays.
2561 (compare_actual_formal): Update for the changes above.
2563 2008-01-13 Tobias Burnus <burnus@net-b.de>
2566 * decl.c (contained_procedure): Only check directly preceeding state.
2568 2008-01-13 Tobias Burnus <burnus@net-b.de>
2571 * check.c (gfc_check_shape): Accept array ranges of
2572 assumed-size arrays.
2574 2008-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2577 * match.c (gfc_match_name): Don't error if leading character is a '(',
2578 just return MATCH_NO.
2580 2008-01-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2583 * trans-io.c (create_dummy_iostat): Commit the symbol.
2585 2008-01-11 Paul Thomas <pault@gcc.gnu.org>
2588 * simplify.c (gfc_simplify_transfer): Return NULL if the size
2589 of the element is unavailable and only assign character length
2590 to the result, if 'mold' is constant.
2592 2008-01-10 Paul Thomas <pault@gcc.gnu.org>
2595 * trans-array.c (gfc_trans_array_ctor_element): Use gfc_trans_string_copy
2596 to assign strings and perform bounds checks on the string length.
2597 (get_array_ctor_strlen): Remove bounds checking.
2598 (gfc_trans_array_constructor): Initialize string length checking.
2599 * trans-array.h : Add prototype for gfc_trans_string_copy.
2601 2008-01-08 Richard Guenther <rguenther@suse.de>
2604 PR tree-optimization/34683
2605 * trans-types.c (gfc_get_array_type_bounds): Use an array type
2606 with known size for accesses if that is known.
2608 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
2611 * expr.c (find_array_element): Check that the array bounds are
2612 constant before using them. Use lower, as well as upper bound.
2613 (check_restricted): Allow implied index variable.
2615 2008-01-08 Paul Thomas <pault@gcc.gnu.org>
2618 * trans_array.c (gfc_trans_deferred_array): Do not null the
2619 data pointer on entering scope, nor deallocate it on leaving
2620 scope, if the symbol has the 'save' attribute.
2623 * trans_decl.c (gfc_finish_var_decl): Derived types with
2624 allocatable components and an initializer must be TREE_STATIC.
2626 2008-01-07 Paul Thomas <pault@gcc.gnu.org>
2629 * module.c (write_generic): Rewrite completely.
2630 (write_module): Change call to write_generic.
2632 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2635 * scanner.c (load_line): Do not count ' ' as printable when checking for
2638 2008-01-06 Paul Thomas <pault@gcc.gnu.org>
2641 * module.c (load_needed): If the namespace has no proc_name
2642 give it the module symbol.
2644 2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2647 * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
2648 the dummy variable expression, test for NULL, and pass the variable
2649 address to the called function.
2651 2007-01-06 Tobias Burnus <burnus@net-b.de>
2654 * match.c (gfc_match_common): Remove blank common in
2656 * resolve.c (resolve_common_vars): New function.
2657 (resolve_common_blocks): Move checks to resolve_common_vars
2658 and invoke that function.
2659 (resolve_types): Call resolve_common_vars for blank commons.
2661 2008-01-06 Tobias Burnus <burnus@net-b.de>
2664 * resolve.c (resolve_equivalence_derived): Reject derived types with
2665 default initialization if equivalenced with COMMON variable.
2667 2008-01-06 Tobias Burnus <burnus@net-b.de>
2670 * io.c (check_io_constraints): Disallow unformatted I/O for
2673 2008-01-06 Tobias Burnus <burnus@net-b.de>
2676 * resolve.c (resolve_formal_arglist): Reject dummy procedure in
2677 ELEMENTAL functions.
2679 2008-01-06 Tobias Burnus <burnus@net-b.de>
2682 * interface.c (compare_actual_formal): Reject parameter
2683 actual to intent(out) dummy.
2685 2008-01-04 Tobias Burnus <burnus@net-b.de>
2688 * primary.c (match_varspec): Gobble whitespace before