re PR fortran/40848 (ICE with alternate returns)
[gcc.git] / gcc / fortran / ChangeLog
1 2009-07-27 Janus Weil <janus@gcc.gnu.org>
2
3 PR fortran/40848
4 * interface.c (gfc_compare_interfaces): Call 'count_types_test' before
5 'generic_correspondence', and only if checking a generic interface.
6
7 2009-07-27 Tobias Burnus <burnus@net-b.de>
8
9 PR fortran/40851
10 * resolve.c (resolve_symbol): Do not initialize pointer derived-types.
11 * trans-decl.c (init_intent_out_dt): Ditto.
12 (generate_local_decl): No need to set attr.referenced for DT pointers.
13
14 2009-07-26 Tobias Burnus <burnus@net-b.de>
15
16 PR fortran/33197
17 * intrinsic.c (make_generic): Remove assert as "atan" can be
18 both ISYM_ATAN and ISYM_ATAN2.
19 (add_functions): Add two-argument variant of ATAN.
20 * intrinsic.h (gfc_check_atan_2): Add check for it.
21 * intrinsic.texi (ATAN2): Correct and enhance description.
22 (ATAN): Describe two-argument variant of ATAN.
23
24 2009-07-25 Tobias Burnus <burnus@net-b.de>
25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
26
27 PR fortran/33197
28 * intrinsic.c (add_functions): Support complex arguments for
29 acos,acosh,asin,asinh,atan,atanh.
30 * invoke.texi (ACOS,ACOSH,ASIN,ASINH,ATAN,ATANH): Support
31 complex arguments.
32 * simplify.c (gfc_simplify_acos,gfc_simplify_acosh,
33 gfc_simplify_asin,gfc_simplify_asinh,gfc_simplify_atan,
34 gfc_simplify_atanh,gfc_simplify_atan,gfc_simplify_asinh,
35 gfc_simplify_acosh,gfc_simplify_atanh): Support
36 complex arguments.
37
38 2009-07-25 Richard Guenther <rguenther@suse.de>
39
40 PR fortran/40005
41 * trans-types.c (gfc_get_array_type_bounds): Use
42 build_distinct_type_copy with a proper TYPE_CANONICAL and
43 re-use the type-decl of the original type.
44 * trans-decl.c (build_entry_thunks): Signal cgraph we may not
45 garbage collect.
46 (create_main_function): Likewise.
47 (gfc_generate_function_code): Likewise.
48 * trans-expr.c (gfc_trans_subcomponent_assign): Do not use
49 fold_convert on record types.
50
51 2009-07-25 Janus Weil <janus@gcc.gnu.org>
52
53 PR fortran/39630
54 * decl.c (match_ppc_decl): Implement the PASS attribute for procedure
55 pointer components.
56 (match_binding_attributes): Ditto.
57 * gfortran.h (gfc_component): Add member 'tb'.
58 (gfc_typebound_proc): Add member 'ppc' and make 'pass_arg' const.
59 * module.c (MOD_VERSION): Bump module version.
60 (binding_ppc): New string constants.
61 (mio_component): Only use formal args if component is a procedure
62 pointer and add 'tb' member.
63 (mio_typebound_proc): Include pass_arg and take care of procedure
64 pointer components.
65 * resolve.c (update_arglist_pass): Add argument 'name' and take care of
66 optional arguments.
67 (extract_ppc_passed_object): New function, analogous to
68 extract_compcall_passed_object, but for procedure pointer components.
69 (update_ppc_arglist): New function, analogous to
70 update_compcall_arglist, but for procedure pointer components.
71 (resolve_typebound_generic_call): Added argument to update_arglist_pass.
72 (resolve_ppc_call, resolve_expr_ppc): Take care of PASS attribute.
73 (resolve_fl_derived): Check the PASS argument for procedure pointer
74 components.
75 * symbol.c (verify_bind_c_derived_type): Reject procedure pointer
76 components in BIND(C) types.
77
78 2009-07-24 Janus Weil <janus@gcc.gnu.org>
79
80 PR fortran/40822
81 * array.c (gfc_resolve_character_array_constructor): Use new function
82 gfc_new_charlen.
83 * decl.c (add_init_expr_to_sym,variable_decl,match_char_spec,
84 gfc_match_implicit): Ditto.
85 * expr.c (gfc_simplify_expr): Ditto.
86 * gfortran.h (gfc_new_charlen): New prototype.
87 * iresolve.c (check_charlen_present,gfc_resolve_char_achar): Use new
88 function gfc_new_charlen.
89 * module.c (mio_charlen): Ditto.
90 * resolve.c (gfc_resolve_substring_charlen,
91 gfc_resolve_character_operator,fixup_charlen,resolve_fl_derived,
92 resolve_symbol): Ditto.
93 * symbol.c (gfc_new_charlen): New function to create a new gfc_charlen
94 structure and add it to a namespace.
95 (gfc_copy_formal_args_intr): Make sure ts.cl is present
96 for CHARACTER variables.
97
98 2009-07-24 Jakub Jelinek <jakub@redhat.com>
99
100 PR fortran/40643
101 PR fortran/31067
102 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc,
103 gfc_conv_intrinsic_minmaxval): Handle Infinities and NaNs properly,
104 optimize.
105 * trans-array.c (gfc_trans_scalarized_loop_end): No longer static.
106 * trans-array.h (gfc_trans_scalarized_loop_end): New prototype.
107
108 2009-07-23 Jakub Jelinek <jakub@redhat.com>
109
110 PR fortran/40839
111 * io.c (gfc_resolve_dt): Add LOC argument. Fail if
112 dt->io_unit is NULL. Return FAILURE after issuing error about
113 negative UNIT number.
114 (match_io_element): Don't segfault if current_dt->io_unit is NULL.
115 * gfortran.h (gfc_resolve_dt): Adjust prototype.
116 * resolve.c (resolve_code): Adjust caller.
117
118 2009-07-22 Paul Thomas <pault@gcc.gnu.org>
119
120 PR fortran/40796
121 * trans-decl.c (generate_local_decl): Unreferenced result
122 variables with allocatable components should be treated like
123 INTENT_OUT dummy variables.
124
125 2009-07-22 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
126
127 * trans.h (gfc_set_decl_assembler_name): New prototype.
128 * trans-decl.c (gfc_set_decl_assembler_name): New function.
129 (gfc_get_symbol_decl, gfc_get_extern_function_decl,
130 build_function_decl): Use gfc_set_decl_assembler_name instead of
131 SET_DECL_ASSEMBLER_NAME.
132 * trans-common.c (build_common_decl): Use
133 gfc_set_decl_assembler_name instead of SET_DECL_ASSEMBLER_NAME.
134
135 2009-07-21 Richard Guenther <rguenther@suse.de>
136
137 PR fortran/40726
138 * trans-decl.c (gfc_get_extern_function_decl): Do not set
139 DECL_IS_MALLOC for pointer valued functions.
140 (build_function_decl): The same.
141
142 2009-07-19 Steven G. Kargl <kargl@gcc.gnu.org>
143
144 PR fortran/40727
145 * fortran/check.c (gfc_check_cmplx, gfc_check_dcmplx): Add check that
146 the optional second argument isn't of COMPLEX type.
147
148 2009-07-17 Richard Guenther <rguenther@suse.de>
149
150 PR c/40401
151 * f95-lang.c (gfc_be_parse_file): Do not finalize the CU here.
152 * trans-decl.c (gfc_gimplify_function): Remove.
153 (build_entry_thunks): Do not gimplify here.
154 (create_main_function): Likewise.
155 (gfc_generate_function_code): Likewise.
156
157 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
158 Manuel López-Ibáñez <manu@gcc.gnu.org>
159
160 PR 40435
161 * trans-expr.c, trans-array.c, trans-openmp.c, trans-stmt.c,
162 trans.c, trans-io.c, trans-decl.c, trans-intrinsic.c: Add location
163 argument to fold_{unary,binary,ternary}, fold_build[123],
164 build_call_expr, build_size_arg, build_fold_addr_expr,
165 build_call_array, non_lvalue, size_diffop,
166 fold_build1_initializer, fold_build2_initializer,
167 fold_build3_initializer, fold_build_call_array,
168 fold_build_call_array_initializer, fold_single_bit_test,
169 omit_one_operand, omit_two_operands, invert_truthvalue,
170 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
171 combine_comparisons, fold_builtin_*, fold_call_expr,
172 build_range_check, maybe_fold_offset_to_address, round_up,
173 round_down.
174
175 2009-07-15 Janus Weil <janus@gcc.gnu.org>
176
177 PR fortran/40743
178 * resolve.c (resolve_symbol): Don't resolve the formal namespace of a
179 contained procedure.
180
181 2009-07-14 Taras Glek <tglek@mozilla.com>
182 Rafael Espindola <espindola@google.com>
183
184 * Make-lang.in (fortran.install-plugin): New target for
185 installing plugin headers.
186
187 2009-07-13 H.J. Lu <hongjiu.lu@intel.com>
188
189 * module.c (mio_symbol): Remove the unused variable, formal.
190
191 2009-07-13 Janus Weil <janus@gcc.gnu.org>
192
193 PR fortran/40646
194 * module.c (mio_symbol): If the symbol has formal arguments,
195 the formal namespace will be present.
196 * resolve.c (resolve_actual_arglist): Correctly handle 'called'
197 procedure pointer components as actual arguments.
198 (resolve_fl_derived,resolve_symbol): Make sure the formal namespace
199 is present.
200 * trans-expr.c (gfc_conv_procedure_call): Correctly handle the formal
201 arguments of procedure pointer components.
202
203 2009-07-12 Tobias Burnus <burnus@net-b.de>
204 Philippe Marguinaud <philippe.marguinaud@meteo.fr>
205
206 PR fortran/40588
207 * primary.c (match_charkind_name): Fix condition for $ matching.
208
209 PR libfortran/22423
210 * libgfortran.h: Typedef the GFC_DTYPE_* enum.
211
212 2009-07-11 Tobias Burnus <burnus@net-b.de>
213
214 PR fortran/33197
215 * check.c (gfc_check_fn_rc2008): New function.
216 * intrinsic.h (gfc_check_fn_rc2008): New prototype.
217 * intrinsic.c (add_functions): Add complex tan, cosh, sinh,
218 and tanh.
219
220 2009-07-10 Paul Thomas <pault@gcc.gnu.org>
221
222 PR fortran/39334
223 * primary.c (match_kind_param): Return MATCH_NO if the symbol
224 has no value.
225
226 2008-07-09 Paul Thomas <pault@gcc.gnu.org>
227
228 PR fortran/40629
229 * resolve.c (check_host_association): Use the existing
230 accessible symtree and treat function expressions with
231 symbols that have procedure flavor.
232
233 2009-07-09 Janus Weil <janus@gcc.gnu.org>
234
235 PR fortran/40646
236 * dump-parse-tree.c (show_expr): Renamed 'is_proc_ptr_comp'.
237 * expr.c (is_proc_ptr_comp): Renamed to 'gfc_is_proc_ptr_comp'.
238 (gfc_check_pointer_assign): Renamed 'is_proc_ptr_comp'.
239 (replace_comp,gfc_expr_replace_comp): New functions, analogous
240 to 'replace_symbol' and 'gfc_expr_replace_symbol', just with components
241 instead of symbols.
242 * gfortran.h (gfc_expr_replace_comp): New prototype.
243 (is_proc_ptr_comp): Renamed to 'gfc_is_proc_ptr_comp'.
244 * interface.c (compare_actual_formal): Renamed 'is_proc_ptr_comp'.
245 * match.c (gfc_match_pointer_assignment): Ditto.
246 * primary.c (gfc_match_varspec): Handle array-valued procedure pointers
247 and procedure pointer components. Renamed 'is_proc_ptr_comp'.
248 * resolve.c (resolve_fl_derived): Correctly handle interfaces with
249 RESULT statement, and handle array-valued procedure pointer components.
250 (resolve_actual_arglist,resolve_ppc_call,resolve_expr_ppc): Renamed
251 'is_proc_ptr_comp'.
252 * trans-array.c (gfc_walk_function_expr): Ditto.
253 * trans-decl.c (gfc_get_symbol_decl): Security check for presence of
254 ns->proc_name.
255 * trans-expr.c (gfc_conv_procedure_call): Handle array-valued procedure
256 pointer components. Renamed 'is_proc_ptr_comp'.
257 (conv_function_val,gfc_trans_arrayfunc_assign): Renamed
258 'is_proc_ptr_comp'.
259 (gfc_get_proc_ptr_comp): Do not modify the argument 'e', but instead
260 make a copy of it.
261 * trans-io.c (gfc_trans_transfer): Handle array-valued procedure
262 pointer components.
263
264 2009-07-09 Tobias Burnus <burnus@net-b.de>
265
266 PR fortran/40604
267 * intrinsic.c (gfc_convert_type_warn): Set sym->result.
268 * trans-expr.c (gfc_conv_procedure_call): Fix -fcheck=pointer
269 for optional arguments.
270
271 2009-07-08 Tobias Burnus <burnus@net-b.de>
272
273 PR fortran/40675
274 * simplify.c (gfc_simplify_sign): Handle signed zero correctly.
275 * trans-intrinsic.c (gfc_conv_intrinsic_sign): Support
276 -fno-sign-zero.
277 * invoke.texi (-fno-sign-zero): Add text regarding SIGN intrinsic.
278
279 2008-07-08 Paul Thomas <pault@gcc.gnu.org>
280
281 PR fortran/40591
282 * decl.c (match_procedure_interface): Correct the association
283 or creation of the interface procedure's symbol.
284
285 2009-07-04 Jakub Jelinek <jakub@redhat.com>
286
287 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): For integer
288 maxloc initialize limit to -huge-1 rather than just -huge.
289
290 2009-07-04 Janus Weil <janus@gcc.gnu.org>
291
292 PR fortran/40593
293 * interface.c (compare_actual_formal): Take care of proc-pointer-valued
294 functions as actual arguments.
295 * trans-expr.c (gfc_conv_procedure_call): Ditto.
296 * resolve.c (resolve_specific_f0): Use the correct ts.
297
298 2009-07-02 Michael Matz <matz@suse.de>
299
300 PR fortran/32131
301 * trans-array.c (gfc_conv_descriptor_stride_get): Return
302 constant one for strides in the first dimension of ALLOCATABLE
303 arrays.
304
305 2009-06-30 Janus Weil <janus@gcc.gnu.org>
306
307 PR fortran/40594
308 * trans-types.c (gfc_get_derived_type): Bugfix, reverting one hunk from
309 r147206.
310
311 2009-06-29 Tobias Burnus <burnus@net-b.de>
312
313 PR fortran/40580
314 * trans-expr.c (gfc_conv_procedure_call): Add -fcheck=pointer check.
315 * libgfortran.h: Add GFC_RTCHECK_POINTER.
316 * invoke.texi (-fcheck): Document new pointer option.
317 * options.c (gfc_handle_runtime_check_option): Handle pointer option.
318
319 * gfortran.texi (C Binding): Improve wording.
320 * iso-c-binding.def: Remove obsolete comment.
321
322 2009-06-29 Paul Thomas <pault@gcc.gnu.org>
323
324 PR fortran/40551
325 * dependency.h : Add second bool* argument to prototype of
326 gfc_full_array_ref_p.
327 * dependency.c (gfc_full_array_ref_p): If second argument is
328 present, return true if last dimension of reference is an
329 element or has unity stride.
330 * trans-array.c : Add NULL second argument to references to
331 gfc_full_array_ref_p.
332 * trans-expr.c : The same, except for;
333 (gfc_trans_arrayfunc_assign): Return fail if lhs reference
334 is not a full array or a contiguous section.
335
336 2009-06-28 Tobias Burnus <burnus@net-b.de>
337 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
338
339 PR fortran/34112
340 * symbol.c (gfc_add_ext_attribute): New function.
341 (gfc_get_sym_tree): New argument allow_subroutine.
342 (gfc_get_symbol,gfc_get_ha_sym_tree,gen_cptr_param,gen_fptr_param
343 gen_shape_param,generate_isocbinding_symbol): Use it.
344 * decl.c (find_special): New argument allow_subroutine.
345 (add_init_expr_to_sym,add_hidden_procptr_result,attr_decl1,
346 match_procedure_in_type,gfc_match_final_decl): Use it.
347 (gfc_match_gcc_attributes): New function.
348 * gfortran.texi (Mixed-Language Programming): New section
349 "GNU Fortran Compiler Directives".
350 * gfortran.h (ext_attr_t): New struct.
351 (symbol_attributes): Use it.
352 (gfc_add_ext_attribute): New prototype.
353 (gfc_get_sym_tree): Update pototype.
354 * expr.c (gfc_check_pointer_assign): Check whether call
355 convention is the same.
356 * module.c (import_iso_c_binding_module, create_int_parameter,
357 use_iso_fortran_env_module): Update gfc_get_sym_tree call.
358 * scanner.c (skip_gcc_attribute): New function.
359 (skip_free_comments,skip_fixed_comments): Use it.
360 (gfc_next_char_literal): Support !GCC$ lines.
361 * resolve.c (check_host_association): Update
362 gfc_get_sym_tree call.
363 * match.c (gfc_match_sym_tree,gfc_match_call): Update
364 gfc_get_sym_tree call.
365 * trans-decl.c (add_attributes_to_decl): New function.
366 (gfc_get_symbol_decl,get_proc_pointer_decl,
367 gfc_get_extern_function_decl,build_function_decl: Use it.
368 * match.h (gfc_match_gcc_attributes): Add prototype.
369 * parse.c (decode_gcc_attribute): New function.
370 (next_free,next_fixed): Support !GCC$ lines.
371 * primary.c (match_actual_arg,check_for_implicit_index,
372 gfc_match_rvalue,gfc_match_rvalue): Update
373 gfc_get_sym_tree call.
374
375 2009-06-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
376
377 * gfortran.h: Define HAVE_mpc_pow.
378 * arith.c (complex_reciprocal, complex_pow): If HAVE_mpc_pow,
379 don't define these functions.
380 (arith_power): If HAVE_mpc_pow, use mpc_pow.
381
382 2009-06-26 Janus Weil <janus@gcc.gnu.org>
383
384 PR fortran/39997
385 PR fortran/40541
386 * decl.c (add_hidden_procptr_result): Copy the typespec to the hidden
387 result.
388 * expr.c (gfc_check_pointer_assign): Enable interface check for
389 procedure pointer assignments where the rhs is a function returning a
390 procedure pointer.
391 * resolve.c (resolve_symbol): If an external procedure with unspecified
392 return type can not be implicitly typed, it must be a subroutine.
393
394 2009-06-24 Janus Weil <janus@gcc.gnu.org>
395
396 PR fortran/40427
397 * gfortran.h (gfc_component): New member 'formal_ns'.
398 (gfc_copy_formal_args_ppc,void gfc_ppc_use): New.
399 * interface.c (gfc_ppc_use): New function, analogous to
400 gfc_procedure_use, but for procedure pointer components.
401 * module.c (MOD_VERSION): Bump module version.
402 (mio_component): Treat formal arguments.
403 (mio_formal_arglist): Changed argument from gfc_symbol to
404 gfc_formal_arglist.
405 (mio_symbol): Changed argument of mio_formal_arglist.
406 * resolve.c (resolve_ppc_call,resolve_expr_ppc): Call gfc_ppc_use,
407 to check actual arguments and treat formal args correctly.
408 (resolve_fl_derived): Copy formal args of procedure pointer components
409 from their interface.
410 * symbol.c (gfc_copy_formal_args_ppc): New function, analogous to
411 gfc_copy_formal_args, but for procedure pointer components.
412
413 2009-06-22 Janus Weil <janus@gcc.gnu.org>
414
415 PR fortran/37254
416 PR fortran/39850
417 * interface.c (compare_parameter): Set implicit type for function
418 actual arguments with BT_UNKNOWN.
419
420 2009-06-22 Tobias Burnus <burnus@net-b.de>
421
422 PR fortran/40472
423 PR fortran/50520
424 * simplify.c (gfc_simplify_spread): Fix the case that source=
425 is a scalar.
426
427 2009-06-22 Paul Thomas <pault@gcc.gnu.org>
428
429 PR fortran/40443
430 * interface.c (gfc_search_interface): Hold back a match to an
431 elementary procedure until all other possibilities are
432 exhausted.
433
434 2009-06-22 Paul Thomas <pault@gcc.gnu.org>
435
436 PR fortran/40472
437 * simplify.c (gfc_simplify_spread): Restrict the result size to
438 the limit for an array constructor.
439
440 2009-06-21 Janus Weil <janus@gcc.gnu.org>
441
442 PR fortran/39850
443 * interface.c (gfc_compare_interfaces): Take care of implicit typing
444 when checking the function attribute. Plus another bugfix.
445 (compare_parameter): Set attr.function and attr.subroutine according
446 to the usage of a procedure as actual argument.
447
448 2009-06-20 Tobias Burnus <burnus@net-b.de>
449
450 PR fortran/40452
451 * trans-decl.c (add_argument_checking): Disable bounds check
452 for allowed argument storage association.
453
454 2009-06-19 Paul Thomas <pault@gcc.gnu.org>
455
456 PR fortran/40440
457 * trans-expr.c (gfc_conv_procedure_call): Do not deallocate
458 allocatable components if the argument is a pointer.
459
460 2009-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
461
462 * gfortran.h (gfc_expr): Use mpc_t to represent complex numbers.
463
464 * arith.c, dump-parse-tree.c, expr.c, module.c, resolve.c,
465 simplify.c, target-memory.c, target-memory.h, trans-const.c,
466 trans-expr.c: Convert to mpc_t throughout.
467
468 2009-06-19 Ian Lance Taylor <iant@google.com>
469
470 * cpp.c (struct gfc_cpp_option_data): Give this struct, used for
471 the global variable gfc_cpp_option, a name.
472
473 2009-06-19 Janus Weil <janus@gcc.gnu.org>
474
475 PR fortran/40450
476 * trans-expr.c (gfc_conv_procedure_call): Only add an extra addr_expr
477 to a procedure pointer actual argument, if it is not itself a
478 dummy arg.
479
480 2009-06-18 Janus Weil <janus@gcc.gnu.org>
481
482 PR fortran/40451
483 * resolve.c (resolve_contained_fntype): Prevent implicit typing for
484 procedures with explicit interface.
485 * symbol.c (gfc_check_function_type): Ditto.
486
487 2009-06-16 Ian Lance Taylor <iant@google.com>
488
489 * decl.c (build_struct): Rewrite loop over constructor elements.
490
491 2009-06-16 Janus Weil <janus@gcc.gnu.org>
492
493 PR fortran/36947
494 PR fortran/40039
495 * expr.c (gfc_check_pointer_assign): Call 'gfc_compare_interfaces' with
496 error message.
497 * gfortran.h (gfc_compare_interfaces): Additional argument.
498 * interface.c (operator_correspondence): Removed.
499 (gfc_compare_interfaces): Additional argument to return error message.
500 Directly use the code from 'operator_correspondence' instead of calling
501 the function. Check for OPTIONAL. Some rearrangements.
502 (check_interface1): Call 'gfc_compare_interfaces' without error message.
503 (compare_parameter): Call 'gfc_compare_interfaces' with error message.
504 * resolve.c (check_generic_tbp_ambiguity): Call 'gfc_compare_interfaces'
505 without error message.
506
507 2009-06-16 Tobias Burnus <burnus@net-b.de>
508
509 PR fortran/40383
510 * trans-decl.c (create_function_arglist): Copy formal charlist to
511 have a proper passed_length for -fcheck=bounds.
512
513 2009-06-12 Steven G. Kargl <kargls@comcast.net>
514
515 * arith.c (gfc_enum_initializer): Move function ...
516 * decl.c: ... here. Remove gfc_ prefix and make static.
517 (enumerator_decl): Update function call.
518 * gfortran.h: Remove gfc_enum_initializer prototype.
519
520 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
521
522 * trans-array.c (gfc_trans_allocate_array_storage): Pass
523 location on down.
524 (gfc_trans_array_constructor_value): Same.
525 (gfc_trans_scalarized_loop_end): Same.
526 (gfc_conv_ss_startstride): Same.
527 (gfc_trans_g77_array): Same.
528 (gfc_trans_dummy_array_bias): Same.
529 (gfc_conv_array_parameter): Same.
530 (structure_alloc_comps): Same.
531 * trans-expr.c (gfc_conv_function_call): Same.
532 (fill_with_spaces): Same.
533 (gfc_trans_string_copy): Same.
534 (gfc_trans_scalar_assign): Same.
535 * trans-stmt.c (gfc_trans_goto): Same.
536 (gfc_trans_if_1): Same.
537 (gfc_trans_simple_do): Same.
538 (gfc_trans_do): Same.
539 (gfc_trans_do_while): Same.
540 (gfc_trans_logical_select): Same.
541 (gfc_trans_select): Same.
542 (gfc_trans_forall_loop): Same.
543 (gfc_trans_nested_forall_loop): Same.
544 (generate_loop_for_temp_to_lhs): Same.
545 (generate_loop_for_rhs_to_temp): Same.
546 (gfc_trans_forall_1): Same.
547 (gfc_trans_where_assign): Same.
548 (gfc_trans_where_3): Same.
549 (gfc_trans_allocate): Same.
550 * trans.c (gfc_finish_block): Same.
551 (gfc_trans_runtime_check): Same.
552 (gfc_call_malloc): Same.
553 (gfc_allocate_with_status): Same.
554 (gfc_call_free): Same.
555 (gfc_deallocate_with_status): Same.
556 (gfc_call_realloc): Same.
557 (gfc_trans_code): Same.
558 * trans-decl.c (gfc_init_default_dt): Same.
559 (gfc_generate_constructors): Same.
560 * trans-io.c (gfc_trans_io_runtime_check): Same.
561 * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Same.
562 (gfc_conv_intrinsic_fdate): Same.
563 (gfc_conv_intrinsic_ttynam): Same.
564 (gfc_conv_intrinsic_minmax): Same.
565 (gfc_conv_intrinsic_minmax_char): Same.
566 (gfc_conv_intrinsic_anyall): Same.
567 (gfc_conv_intrinsic_count): Same.
568 (gfc_conv_intrinsic_arith): Same.
569 (gfc_conv_intrinsic_minmaxloc): Same.
570 (gfc_conv_intrinsic_minmaxval): Same.
571 (gfc_conv_intrinsic_rrspacing): Same.
572 (gfc_conv_intrinsic_array_transfer): Same.
573 (gfc_conv_intrinsic_trim): Same.
574 (gfc_conv_intrinsic_repeat): Same.
575
576 2009-06-12 Janus Weil <janus@gcc.gnu.org>
577
578 PR fortran/40176
579 * resolve.c (resolve_symbol): Additional error check, preventing an
580 infinite loop.
581
582 2009-06-11 Paul Thomas <pault@gcc.gnu.org>
583
584 PR fortran/40402
585 * resolve.c (next_data_value): It is an error if the value is
586 not constant.
587
588 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
589
590 PR fortran/38718
591 * intrinsic.c (add_functions): Add simplifiers for ISNAN,
592 IS_IOSTAT_END and IS_IOSTAT_EOR.
593 * intrinsic.h (gfc_simplify_is_iostat_end, gfc_simplify_is_iostat_eor,
594 gfc_simplify_isnan): New prototypes.
595 * intrinsic.c (gfc_simplify_is_iostat_end, gfc_simplify_is_iostat_eor,
596 gfc_simplify_isnan): New functions.
597
598 2009-06-11 Jakub Jelinek <jakub@redhat.com>
599
600 * interface.c (fold_unary): Rename to...
601 (fold_unary_intrinsic): ... this.
602 (gfc_extend_expr): Adjust caller.
603 (gfc_match_generic_spec): Likewise. Initialize *op to INTRINSIC_NONE
604 to avoid warnings.
605 * expr.c (gfc_simplify_expr): Initialize start and end before calling
606 gfc_extract_int.
607
608 2009-06-10 Dave Korn <dave.korn.cygwin@gmail.com>
609
610 * trans-decl.c (create_main_function): Don't build main decl twice.
611
612 2009-06-09 Tobias Burnus <burnus@net-b.de>
613
614 * trans-decl.c (gfc_generate_function_code): Use gfc_option.rtcheck
615 instead of flag_bounds_check.
616 * intrinsic.texi (ISO_FORTRAN_ENV): Document INT{8,16,32,64} and
617 REAL{32,64,128}.
618
619 2009-06-08 Paul Thomas <pault@gcc.gnu.org>
620
621 * trans-array.h : Replace prototypes for
622 gfc_conv_descriptor_offset, gfc_conv_descriptor_stride,
623 gfc_conv_descriptor_lbound, gfc_conv_descriptor_ubound with new
624 prototypes of the same names with _get or _set appended.
625 * trans-array.c : Make the originals of the above static and
626 new functions for the _get and _set functions. Update all the
627 references to these descriptor access functions.
628 * trans-expr.c : Update references to the above descriptor
629 access functions.
630 * trans-intrinsic.c : The same.
631 * trans-openmp.c : The same.
632 * trans-stmt.c : The same.
633
634 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
635
636 * options.c (gfc_post_options): Disable dump_parse_tree
637 during -fcompare-debug-second.
638
639 2009-06-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
640
641 PR fortran/40008
642 * gfortran.h (gfc_open): Add newunit expression to structure.
643 * io.c (io_tag): Add new unit tag and fix whitespace.
644 (match_open_element): Add matching for newunit.
645 (gfc_free_open): Free the newunit expression.
646 (gfc_resolve_open): Add newunit to resolution and check constraints.
647 (gfc_resolve_close): Add check for non-negative unit.
648 (gfc_resolve_filepos): Likewise.
649 (gfc_resolve_dt): Likewise.
650 * trans-io.c (set_parameter_value): Build runtime checks for unit
651 numbers within range of kind=4 integer. (gfc_trans_open) Set the
652 newunit parameter.
653 * ioparm.def (IOPARM): Define the newunit parameter as a pointer
654 to GFC_INTEGER_4, pint4.
655
656 2009-06-07 Daniel Franke <franke.daniel@gmail.com>
657
658 PR fortran/25104
659 PR fortran/29962
660 * array.c (gfc_append_constructor): Added NULL-check.
661 * check.c (gfc_check_spread): Check DIM.
662 (gfc_check_unpack): Check that the ARRAY arguments provides enough
663 values for MASK.
664 * intrinsic.h (gfc_simplify_spread): New prototype.
665 (gfc_simplify_unpack): Likewise.
666 * intrinsic.c (add_functions): Added new simplifier callbacks.
667 * simplify.c (gfc_simplify_spread): New.
668 (gfc_simplify_unpack): New.
669 * expr.c (check_transformational): Allow additional transformational
670 intrinsics in initialization expression.
671
672 2009-06-07 Daniel Franke <franke.daniel@gmail.com>
673
674 PR fortran/25104
675 PR fortran/29962
676 * check.c (gfc_check_all_any): Check rank of DIM.
677 (gfc_check_count): Likewise.
678 * intrinsic.h (gfc_simplify_all): New prototype.
679 (gfc_simplify_any): Likewise.
680 (gfc_simplify_count): Likewise.
681 (gfc_simplify_sum): Likewise.
682 (gfc_simplify_product): Likewise.
683 * intrinsic.c (add_functions): Added new simplifier callbacks.
684 * simplify.c (transformational_result): New.
685 (simplify_transformation_to_scalar): New.
686 (simplify_transformation_to_array): New.
687 (gfc_count): New.
688 (gfc_simplify_all): New.
689 (gfc_simplify_any): New.
690 (gfc_simplify_count): New.
691 (gfc_simplify_sum): New.
692 (gfc_simplify_product): New.
693 * expr.c (check_transformational): Allow additional transformational
694 intrinsics in initialization expression.
695
696 2009-06-07 Daniel Franke <franke.daniel@gmail.com>
697
698 * check.c (dim_rank_check): Return SUCCESS if DIM=NULL.
699 (gfc_check_lbound): Removed (now) redundant check for DIM=NULL.
700 (gfc_check_minloc_maxloc): Likewise.
701 (check_reduction): Likewise.
702 (gfc_check_size): Likewise.
703 (gfc_check_ubound): Likewise.
704 (gfc_check_cshift): Added missing shape-conformance checks.
705 (gfc_check_eoshift): Likewise.
706 * gfortran.h (gfc_check_conformance): Modified prototype to printf-style.
707 * expr.c (gfc_check_conformance): Accept error-message chunks in
708 printf-style. Changed all callers.
709
710
711 2009-06-07 Daniel Franke <franke.daniel@gmail.com>
712
713 PR fortran/25104
714 PR fortran/29962
715 * intrinsic.h (gfc_simplify_dot_product): New prototype.
716 (gfc_simplify_matmul): Likewise.
717 (gfc_simplify_transpose): Likewise.
718 * intrinsic.c (add_functions): Added new simplifier callbacks.
719 * simplify.c (init_result_expr): New.
720 (compute_dot_product): New.
721 (gfc_simplify_dot_product): New.
722 (gfc_simplify_matmul): New.
723 (gfc_simplify_transpose): New.
724 * expr.c (check_transformational): Allow transformational intrinsics
725 with simplifier in initialization expression.
726
727 2009-06-06 Daniel Franke <franke.daniel@gmail.com>
728
729 PR fortran/37203
730 * simplify.c (gfc_simplify_reshape): Fixed reshaping of empty arrays
731 without padding.
732
733 2009-06-06 Daniel Franke <franke.daniel@gmail.com>
734
735 PR fortran/32890
736 * intrinsic.h (gfc_simplify_pack): New prototype.
737 * intrinsic.c (add_functions): Added
738 simplifier-callback to PACK.
739 * simplify.c (is_constant_array_expr): Moved
740 to beginning of file.
741 (gfc_simplify_pack): New.
742 * check.c (gfc_check_pack): Check that VECTOR has enough elements.
743 Added safeguards for empty arrays.
744
745 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
746
747 * simplify.c (call_mpc_func): Use mpc_realref/mpc_imagref
748 instead of MPC_RE/MPC_IM.
749
750 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
751
752 * trans-decl.c (gfc_build_qualified_array): Don't skip generation
753 of range types.
754 * trans.h (struct lang_type): Add base_decls.
755 (GFC_TYPE_ARRAY_BASE_DECL): New.
756 * trans-types.c (gfc_get_array_type_bounds): Initialize base decls
757 proactively and excessively.
758 (gfc_get_array_descr_info): Use existing base decls if available.
759
760 2009-06-04 Daniel Franke <franke.daniel@gmail.com>
761
762 PR fortran/37203
763 * check.c (gfc_check_reshape): Additional checks for the
764 SHAPE and ORDER arguments.
765 * simplify.c (gfc_simplify_reshape): Converted argument checks
766 to asserts.
767
768 2009-06-03 Tobias Burnus <burnus@net-b.de>
769
770 * gfortran.texi: Add mixed-language programming, mention
771 varying string lengths, some clean up of introduction parts.
772 * intrinsic.texi (instrinsic modules): Create @menu for subsections.
773 (ISO_C_BINDING): Support ISOCBINDING_INT_FAST128_T.
774 * libgfortran.h: Comment to rember to keep gfortran.texi in sync.
775 * iso-c-binding.def: Support ISOCBINDING_INT_FAST128_T.
776
777 2009-06-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
778 Tobias Burnus <burnus@net-b.de>
779
780 * iso-c-binding.def: Use INTMAX_TYPE instead of intmax_type_node.
781 * trans-types.c (init_c_interop_kinds): Remove intmax_type_node.
782
783 2009-06-03 Alexandre Oliva <aoliva@redhat.com>
784
785 * module.c (mio_f2k_derived): Initialize cur.
786
787 2009-06-01 Tobias Burnus <burnus@net-b.de>
788
789 PR fortran/40309
790 * trans-decl.c (gfc_sym_identifier): Use "MAIN__" for PROGRAM "main".
791 (create_main_function): Set main_identifier_node.
792
793 2009-05-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
794
795 PR fortran/40019
796 * trans-types.c (gfc_build_uint_type): Make nonstatic.
797 * trans.h (gfor_fndecl_clz128, gfor_fndecl_ctz128): New prototypes.
798 * trans-types.h (gfc_build_uint_type): Add prototype.
799 * trans-decl.c (gfc_build_intrinsic_function_decls): Build
800 gfor_fndecl_clz128 and gfor_fndecl_ctz128.
801 * trans-intrinsic.c (gfc_conv_intrinsic_leadz,
802 gfc_conv_intrinsic_trailz): Call the right builtins or library
803 functions, and cast arguments to unsigned types first.
804 * simplify.c (gfc_simplify_leadz): Deal with negative arguments.
805
806 2009-05-27 Ian Lance Taylor <iant@google.com>
807
808 * Make-lang.in (gfortran$(exeext)): Change $(COMPILER) to
809 $(LINKER).
810 (f951$(exeext)): Likewise.
811
812 2009-05-27 Tobias Burnus <burnus@net-b.de>
813
814 PR fortran/40270
815 * trans-decl.c (create_main_function): Mark MAIN__ and
816 argc/argv as TREE_USED and push/pop function_decl context
817 if needed.
818
819 2009-05-26 Tobias Burnus <burnus@net-b.de>
820
821 PR fortran/39178
822 * gfortranspec.c (lang_specific_driver): Stop linking
823 libgfortranbegin.
824 * trans-decl.c (gfc_build_builtin_function_decls): Stop
825 making MAIN__ publicly visible.
826 (gfc_build_builtin_function_decls): Add
827 gfor_fndecl_set_args.
828 (create_main_function) New function.
829 (gfc_generate_function_code): Use it.
830
831 2009-05-26 Tobias Burnus <burnus@net-b.de>
832
833 PR fortran/40246
834 * match.c (gfc_match_nullify): NULLify freed pointer.
835
836 2009-05-26 Ian Lance Taylor <iant@google.com>
837
838 * Make-lang.in (gfortranspec.o): Use $(COMPILER).
839 (gfortran$(exeext), f951$(exeext), fortran/cpp.o): Likewise.
840
841 2009-05-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
842
843 * gfortran.h (GFC_MPC_RND_MODE): New.
844 * simplify.c (call_mpc_func): New helper function.
845 (gfc_simplify_cos, gfc_simplify_exp, gfc_simplify_log,
846 gfc_simplify_sin, gfc_simplify_sqrt): Add MPC support.
847
848 2009-05-25 Janus Weil <janus@gcc.gnu.org>
849
850 PR fortran/40176
851 * primary.c (gfc_match_varspec): Handle procedure pointer components
852 with array return value.
853 * resolve.c (resolve_expr_ppc): Ditto.
854 (resolve_symbol): Make sure the interface of a procedure pointer has
855 been resolved.
856 * trans-array.c (gfc_walk_function_expr): Handle procedure pointer
857 components with array return value.
858 * trans-expr.c (gfc_conv_component_ref,gfc_conv_procedure_call,
859 gfc_trans_arrayfunc_assign): Ditto.
860 (gfc_trans_pointer_assignment): Handle procedure pointer assignments,
861 where the rhs is a dummy argument.
862 * trans-types.c (gfc_get_ppc_type,gfc_get_derived_type): Handle
863 procedure pointer components with array return value.
864
865 2009-05-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
866 Dominique Dhumieres
867
868 PR fortran/35732
869 PR fortran/39872
870 * trans-array.c (gfc_conv_ss_startstride): Add one to index.
871
872 2009-05-22 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
873
874 PR fortran/40195
875 * module.c (read_md5_from_module_file): Close file before returning.
876
877 2009-05-18 Janus Weil <janus@gcc.gnu.org>
878
879 PR fortran/40164
880 * primary.c (gfc_match_rvalue): Handle procedure pointer components in
881 arrays.
882 * resolve.c (resolve_ppc_call,resolve_expr_ppc): Resolve component and
883 array references.
884 (resolve_fl_derived): Procedure pointer components are not required to
885 have constant array bounds in their return value.
886
887 2009-05-18 Janus Weil <janus@gcc.gnu.org>
888
889 * intrinsic.c (add_sym): Fix my last commit (r147655),
890 which broke bootstrap.
891
892 2009-05-18 Richard Guenther <rguenther@suse.de>
893
894 PR fortran/40168
895 * trans-expr.c (gfc_trans_zero_assign): For local array
896 destinations use an assignment from an empty constructor.
897
898 2009-05-18 Janus Weil <janus@gcc.gnu.org>
899
900 PR fortran/36947
901 PR fortran/40039
902 * expr.c (gfc_check_pointer_assign): Check intents when comparing
903 interfaces.
904 * gfortran.h (typedef struct gfc_intrinsic_arg): Add 'intent' member.
905 (gfc_compare_interfaces): Additional argument.
906 * interface.c (operator_correspondence): Add check for equality of
907 intents, and new argument 'intent_check'.
908 (gfc_compare_interfaces): New argument 'intent_check', which is passed
909 on to operator_correspondence.
910 (check_interface1): Don't check intents when comparing interfaces.
911 (compare_parameter): Do check intents when comparing interfaces.
912 * intrinsic.c (add_sym): Add intents for arguments of intrinsic
913 procedures.
914 (add_sym_1,add_sym_1s,add_sym_1m,add_sym_2,add_sym_2s,add_sym_3,
915 add_sym_3ml,add_sym_3red,add_sym_3s,add_sym_4): Use INTENT_IN by
916 default.
917 (add_sym_1_intent,add_sym_1s_intent,add_sym_2s_intent,add_sym_3s_intent)
918 : New functions to add intrinsic symbols, specifying custom intents.
919 (add_sym_4s,add_sym_5s): Add new arguments to specify intents.
920 (add_functions,add_subroutines): Add intents for various intrinsics.
921 * resolve.c (check_generic_tbp_ambiguity): Don't check intents when
922 comparing interfaces.
923 * symbol.c (gfc_copy_formal_args_intr): Copy intent.
924
925 2009-05-17 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
926
927 * iso-fortran-env.def: Define INT8, INT16, INT32, INT64, REAL32,
928 REAL64 and REAL128.
929 * gfortran.h (gfc_get_int_kind_from_width_isofortranenv,
930 gfc_get_real_kind_from_width_isofortranenv): New prototypes.
931 * iso-c-binding.def: Update definitions for the INT*_T,
932 INT_LEAST*_T and INT_FAST*_T named parameters.
933 * trans-types.c (get_typenode_from_name, get_int_kind_from_name,
934 gfc_get_real_kind_from_width_isofortranenv): New functions.
935
936 2009-05-17 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
937
938 PR fortran/36260
939 * intrinsic.c (add_functions, add_subroutines): Fix argument
940 names and wrap long lines.
941 * intrinsic.texi: Fix documentation and argument names of
942 LOG_GAMMA, DATAN2, DBESJN, DTIME, ETIME, FSTAT, STAT, LSTAT,
943 GET_COMMAND, IDATE, LTIME, MOVE_ALLOC, NINT, OR, PRODUCT,
944 SUM, RAND, RANDOM_SEED, REAL, SELECTED_INT_KIND,
945 SELECTED_REAL_KIND and XOR.
946
947 2009-05-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
948
949 PR fortran/33197
950 * intrinsic.c (add_functions): Use ERFC_SCALED simplification.
951 * intrinsic.h (gfc_simplify_erfc_scaled): New prototype.
952 * simplify.c (fullprec_erfc_scaled, asympt_erfc_scaled,
953 gfc_simplify_erfc_scaled): New functions.
954
955 2009-05-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
956
957 PR fortran/31243
958 * resolve.c (resolve_substring): Don't allow too large substring
959 indexes.
960 (gfc_resolve_substring_charlen): Fix typo.
961 (gfc_resolve_character_operator): Fix typo.
962 (resolve_charlen): Catch unreasonably large string lengths.
963 * simplify.c (gfc_simplify_len): Don't error out on LEN
964 range checks.
965
966 2009-05-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
967
968 PR fortran/36031
969 * decl.c (set_enum_kind): Use global short-enums flag.
970 * gfortran.h (gfc_option_t): Remove short_enums flag.
971 * lang.opt (-fshort-enums): Refer to C documentation.
972 * options.c (gfc_init_options, gfc_handle_option): Use global
973 short-enums flag.
974
975 2009-05-15 Tobias Burnus <burnus@net-b.de>
976
977 PR fortran/39352
978 * f95-lang.c: Add gfc_maybe_initialize_eh.
979 * gfortran.h: Add gfc_maybe_initialize_eh prototype.
980 * Make-lang.in: Add new .h dendencies for f95-lang.c
981 * openmp.c (resolve_omp_do): Call gfc_maybe_initialize_eh.
982 * misc.c (gfc_free): Avoid #define trickery for free.
983
984 2009-05-14 Steven G. Kargl <kargl@gcc.gnu.org>
985
986 * dump-parse-tree.c (show_code_node): Add ERRMSG to the dumping
987 of allocate and deallocate statements.
988
989 2009-05-14 Ian Lance Taylor <iant@google.com>
990
991 * decl.c (match_attr_spec): Change d to unsigned int.
992 * dump-parse-tree.c (show_namespace): Change op to int. Add cast.
993 * interface.c (gfc_check_interfaces): Change i to int. Add casts.
994 * module.c (read_module): Change i to int. Add cast.
995 (write_module): Change i to int.
996 * symbol.c (gfc_get_namespace): Change in to int.
997 (gfc_free_namespace): Change i to int.
998 * trans-io.c (gfc_build_io_library_fndecls): Change ptype to
999 unsigned int. Add cast.
1000 * trans-types.c (gfc_init_kinds): Change mode to unsigned int.
1001 Add casts.
1002
1003 2009-05-14 Daniel Kraft <d@domob.eu>
1004
1005 PR fortran/40045
1006 * dump-parse-tree.c (show_typebound): Fix missing adaption to new
1007 type-bound procedure storage structure.
1008
1009 2009-05-14 Janus Weil <janus@gcc.gnu.org>
1010
1011 PR fortran/39996
1012 * decl.c (gfc_match_function_decl): Use gfc_add_type.
1013 * symbol.c (gfc_add_type): Better checking for duplicate types in
1014 function declarations. And: Always give an error for duplicte types,
1015 not just a warning with -std=gnu.
1016
1017 2009-05-14 Jakub Jelinek <jakub@redhat.com>
1018
1019 PR fortran/39865
1020 * io.c (resolve_tag_format): CHARACTER array in FMT= argument
1021 isn't an extension. Reject non-CHARACTER array element of
1022 assumed shape or pointer or assumed size array.
1023 * trans-array.c (array_parameter_size): New function.
1024 (gfc_conv_array_parameter): Add size argument. Call
1025 array_parameter_size if it is non-NULL.
1026 * trans-array.h (gfc_conv_array_parameter): Adjust prototype.
1027 * trans-expr.c (gfc_conv_function_call, gfc_trans_arrayfunc_assign):
1028 Adjust callers.
1029 * trans-intrinsic.c (gfc_conv_intrinsic_loc): Likewise.
1030 * trans-io.c (gfc_convert_array_to_string): Rewritten.
1031
1032 2009-05-13 Steven G. Kargl <kargl@gcc.gnu.org>
1033
1034 * gfortran.h (gfc_code): Rename struct member expr to expr1.
1035 * openmp.c (resolve_omp_atomic): Update expr to expr1.
1036 * interface.c (gfc_extend_assign): Ditto.
1037 * trans-expr.c (gfc_conv_expr_reference, gfc_trans_assignment,
1038 gfc_trans_init_assign): Ditto.
1039 * dump-parse-tree.c (show_code_node): Ditto.
1040 * trans-openmp.c (gfc_trans_omp_atomic): Ditto.
1041 * trans-stmt.c ( gfc_trans_label_assign, gfc_trans_goto, gfc_trans_call,
1042 gfc_trans_return, gfc_trans_pause, gfc_trans_stop, gfc_trans_if_1,
1043 gfc_trans_arithmetic_if, gfc_trans_do_while, gfc_trans_integer_select,
1044 gfc_trans_logical_select, gfc_trans_character_select
1045 forall_make_variable_temp, check_forall_dependencies
1046 gfc_trans_forall_1, gfc_trans_where_2, gfc_trans_where_3
1047 gfc_trans_where, gfc_trans_allocate, gfc_trans_deallocate): Ditto.
1048 * io.c (match_io_element, gfc_match_inquire): Ditto.
1049 * resolve.c (resolve_typebound_call, resolve_ppc_call,
1050 resolve_allocate_expr, resolve_allocate_deallocate, resolve_select,
1051 resolve_transfer, resolve_where, gfc_resolve_assign_in_forall,
1052 gfc_resolve_blocks, resolve_code, build_init_assign): Ditto.
1053 * st.c (gfc_free_statement): Ditto.
1054 * match.c (gfc_match_assignment, gfc_match_pointer_assignment,
1055 match_arithmetic_if, gfc_match_if, gfc_match_elseif
1056 gfc_match_stopcode, gfc_match_assign, gfc_match_goto,
1057 gfc_match_nullify, match_typebound_call, gfc_match_call
1058 gfc_match_select, match_simple_where, gfc_match_where
1059 gfc_match_elsewhere, match_simple_forall, gfc_match_forall): Ditto.
1060 * trans-io.c (gfc_trans_transfer): Ditto.
1061 * parse.c (parse_where_block, parse_if_block): Ditto.
1062
1063 2009-05-13 Steven G. Kargl <kargl@gcc.gnu.org>
1064
1065 * gfortran.h (gfc_code): Rename struct member label to label1.
1066 * dump-parse-tree.c (show_code_node): Update symbol.
1067 * trans-stmt.c (gfc_trans_label_assign, gfc_trans_goto,
1068 gfc_trans_arithmetic_if): Ditto.
1069 * resolve.c (gfc_resolve_blocks, resolve_code): Ditto.
1070 * match.c (match_arithmetic_if, gfc_match_if, gfc_reference_st_label,
1071 gfc_match_assign, gfc_match_goto): Ditto.
1072 * parse.c (parse_do_block): Ditto.
1073
1074 2009-05-13 Tobias Burnus <burnus@net-b.de>
1075
1076 PR fortran/34153
1077 * gfortran.h (gfc_exec_op): Add EXEC_END_PROCEDURE.
1078 * dump-parse-tree.c (show_code_node): Use EXEC_END_PROCEDURE.
1079 * trans.c (gfc_trans_code): Ditto.
1080 * resolve.c (resolve_code): Ditto.
1081 * st.c (gfc_free_statement): Ditto.
1082 * parse.c (accept_statement): Ditto.
1083
1084 2009-05-12 Tobias Burnus <burnus@net-b.de>
1085
1086 PR fortran/40110
1087 * decl.c (gfc_match_kind_spec): Turn C kind error into a warning.
1088
1089 2009-05-11 Steve Ellcey <sje@cup.hp.com>
1090
1091 * resolve.c (check_host_association): Initialize tail.
1092
1093 2009-05-11 Janus Weil <janus@gcc.gnu.org>
1094
1095 PR fortran/40089
1096 * resolve.c (resolve_fl_derived): Only return FAILURE if
1097 gfc_notify_std fails.
1098
1099 2009-05-10 Ian Lance Taylor <iant@google.com>
1100
1101 * gfortran.h (enum gfc_omp_sched_kind): New enum, broken out of
1102 gfc_omp_clauses.
1103 (enum gfc_omp_default_sharing): Likewise.
1104 * module.c (enum gfc_rsym_state): New enum, broken out of
1105 pointer_info.
1106 (enum gfc_wsym_state): Likewise.
1107 * parse.c (enum state_order): New enum, broken out of st_state.
1108
1109 2009-05-10 Paul Thomas <pault@gcc.gnu.org>
1110
1111 PR fortran/40018
1112 * trans-array.c (gfc_trans_array_constructor_value): Fold
1113 convert numeric constants.
1114 (gfc_build_constant_array_constructor): The same.
1115
1116 2009-05-10 Paul Thomas <pault@gcc.gnu.org>
1117
1118 PR fortran/38863
1119 * trans-expr.c (gfc_conv_operator_assign): Remove function.
1120 * trans.h : Remove prototype for gfc_conv_operator_assign.
1121 * trans-stmt.c (gfc_conv_elemental_dependencies): Initialize
1122 derivde types with intent(out).
1123 (gfc_trans_call): Add mask, count1 and invert arguments. Add
1124 code to use mask for WHERE assignments.
1125 (gfc_trans_forall_1): Use new arguments for gfc_trans_call.
1126 (gfc_trans_where_assign): The gfc_symbol argument is replaced
1127 by the corresponding code. If this has a resolved_sym, then
1128 gfc_trans_call is called. The call to gfc_conv_operator_assign
1129 is removed.
1130 (gfc_trans_where_2): Change the last argument in the call to
1131 gfc_trans_where_assign.
1132 * trans-stmt.h : Modify prototype for gfc_trans_call.
1133 * trans.c (gfc_trans_code): Use new args for gfc_trans_call.
1134
1135 2009-05-08 Janus Weil <janus@gcc.gnu.org>
1136
1137 PR fortran/39876
1138 * intrinsic.c (gfc_is_intrinsic): Do not add the EXTERNAL attribute if
1139 the symbol is a module procedure.
1140
1141 2009-05-08 Tobias Burnus <burnus@net-b.de>
1142
1143 * invoke.texi: Add do/recursion to the -fcheck= summary.
1144
1145 2009-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1146
1147 PR fortran/38830
1148 * gfortran.texi: Document that we don't support variable FORMAT
1149 expressions.
1150
1151 2009-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1152
1153 PR fortran/39576
1154 * error.c (error_print): Add missing break statement.
1155
1156 2009-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1157
1158 PR fortran/36382
1159 * invoke.texi: Document that -fdollar-ok does not allow $ to be
1160 used in IMPLICIT statement.
1161
1162 2009-05-06 Janus Weil <janus@gcc.gnu.org>
1163 Paul Thomas <pault@gcc.gnu.org>
1164
1165 PR fortran/39630
1166 * decl.c (match_procedure_interface): New function to match the
1167 interface for a PROCEDURE statement.
1168 (match_procedure_decl): Call match_procedure_interface.
1169 (match_ppc_decl): New function to match the declaration of a
1170 procedure pointer component.
1171 (gfc_match_procedure): Call match_ppc_decl.
1172 (match_binding_attributes): Add new argument 'ppc' and handle the
1173 POINTER attribute for procedure pointer components.
1174 (match_procedure_in_type,gfc_match_generic): Added new argument to
1175 match_binding_attributes.
1176 * dump-parse-tree.c (show_expr,show_components,show_code_node): Handle
1177 procedure pointer components.
1178 * expr.c (free_expr0,gfc_copy_expr,gfc_simplify_expr): Handle EXPR_PPC.
1179 (gfc_check_pointer_assign): Handle procedure pointer components, but no
1180 full checking yet.
1181 (is_proc_ptr_comp): New function to determine if an expression is a
1182 procedure pointer component.
1183 * gfortran.h (expr_t): Add EXPR_PPC.
1184 (symbol_attribute): Add new member 'proc_pointer_comp'.
1185 (gfc_component): Add new member 'formal'.
1186 (gfc_exec_op): Add EXEC_CALL_PPC.
1187 (gfc_get_default_type): Changed first argument.
1188 (is_proc_ptr_comp): Add prototype.
1189 (gfc_match_varspec): Add new argument.
1190 * interface.c (compare_actual_formal): Handle procedure pointer
1191 components.
1192 * match.c (gfc_match_pointer_assignment,match_typebound_call): Handle
1193 procedure pointer components.
1194 * module.c (mio_expr): Handle EXPR_PPC.
1195 * parse.c (parse_derived): Handle procedure pointer components.
1196 * primary.c (gfc_match_varspec): Add new argument 'ppc_arg' and handle
1197 procedure pointer components.
1198 (gfc_variable_attr): Handle procedure pointer components.
1199 (gfc_match_rvalue): Added new argument to gfc_match_varspec and changed
1200 first argument of gfc_get_default_type.
1201 (match_variable): Added new argument to gfc_match_varspec.
1202 * resolve.c (resolve_entries,set_type,resolve_fl_parameter): Changed
1203 first argument of gfc_get_default_type.
1204 (resolve_structure_cons,resolve_actual_arglist): Handle procedure
1205 pointer components.
1206 (resolve_ppc_call): New function to resolve a call to a procedure
1207 pointer component (subroutine).
1208 (resolve_expr_ppc): New function to resolve a call to a procedure
1209 pointer component (function).
1210 (gfc_resolve_expr): Handle EXPR_PPC.
1211 (resolve_code): Handle EXEC_CALL_PPC.
1212 (resolve_fl_derived): Copy the interface for a procedure pointer
1213 component.
1214 (resolve_symbol): Fix overlong line.
1215 * st.c (gfc_free_statement): Handle EXEC_CALL_PPC.
1216 * symbol.c (gfc_get_default_type): Changed first argument.
1217 (gfc_set_default_type): Changed first argument of gfc_get_default_type.
1218 (gfc_add_component): Initialize ts.type to BT_UNKNOWN.
1219 * trans.h (gfc_conv_function_call): Renamed.
1220 * trans.c (gfc_trans_code): Handle EXEC_CALL_PPC.
1221 * trans-expr.c (gfc_conv_component_ref): Ditto.
1222 (gfc_conv_function_val): Rename to 'conv_function_val', add new
1223 argument 'expr' and handle procedure pointer components.
1224 (gfc_conv_operator_assign): Renamed gfc_conv_function_val.
1225 (gfc_apply_interface_mapping_to_expr): Handle EXPR_PPC.
1226 (gfc_conv_function_call): Rename to 'gfc_conv_procedure_call', add new
1227 argument 'expr' and handle procedure pointer components.
1228 (gfc_get_proc_ptr_comp): New function to get the backend decl for a
1229 procedure pointer component.
1230 (gfc_conv_function_expr): Renamed gfc_conv_function_call.
1231 (gfc_conv_structure): Handle procedure pointer components.
1232 * trans-intrinsic.c (gfc_conv_intrinsic_funcall,
1233 conv_generic_with_optional_char_arg): Renamed gfc_conv_function_call.
1234 * trans-stmt.h (gfc_get_proc_ptr_comp): Add prototype.
1235 * trans-stmt.c (gfc_trans_call): Renamed gfc_conv_function_call.
1236 * trans-types.h (gfc_get_ppc_type): Add prototype.
1237 * trans-types.c (gfc_get_ppc_type): New function to build a tree node
1238 for a procedure pointer component.
1239 (gfc_get_derived_type): Handle procedure pointer components.
1240
1241 2009-05-06 Tobias Burnus <burnus@net-b.de>
1242
1243 PR fortran/40041
1244 * resolve.c (resolve_symbol): Print no warning for implicitly
1245 typed intrinsic functions.
1246
1247 2009-05-05 Janus Weil <janus@gcc.gnu.org>
1248
1249 PR fortran/39998
1250 * expr.c (gfc_check_pointer_assign): Check for statement functions and
1251 internal procedures in procedure pointer assignments.
1252
1253 2009-04-28 Janus Weil <janus@gcc.gnu.org>
1254
1255 PR fortran/39946
1256 * resolve.c (resolve_symbol): Correctly copy the interface of a
1257 PROCEDURE statement if the interface involves a RESULT variable.
1258
1259 2009-04-28 Janus Weil <janus@gcc.gnu.org>
1260
1261 PR fortran/39930
1262 PR fortran/39931
1263 * expr.c (gfc_check_pointer_assign): Correctly detect if the left hand
1264 side is a pointer.
1265 * parse.c (gfc_fixup_sibling_symbols): Don't check for ambiguity.
1266
1267 2009-04-28 Paul Thomas <pault@gcc.gnu.org>
1268
1269 PR fortran/39879
1270 * trans_expr.c (gfc_conv_procedure_call): Deep copy a derived
1271 type parentheses argument if it is a variable with allocatable
1272 components.
1273
1274 2009-04-27 Ian Lance Taylor <iant@google.com>
1275
1276 * trans-intrinsic.c (DEFINE_MATH_BUILTIN): Add casts to enum
1277 type.
1278 * trans-io.c (st_parameter_field): Add casts to enum type.
1279
1280 2009-04-26 Steven G. Kargl <kargl@gcc.gnu.org>
1281
1282 PR fortran/39893
1283 fortran/data.c (gfc_assign_data_value): If the lvalue is an
1284 assumed character length entity in a data statement, then
1285 return FAILURE to prevent segmentation fault.
1286
1287 2009-04-26 Jakub Jelinek <jakub@redhat.com>
1288
1289 * trans-decl.c: Include pointer-set.h.
1290 (nonlocal_dummy_decl_pset, tree nonlocal_dummy_decls): New variables.
1291 (gfc_nonlocal_dummy_array_decl): New function.
1292 (gfc_get_symbol_decl): Call it for non-local dummy args with saved
1293 descriptor.
1294 (gfc_get_symbol_decl): Set DECL_BY_REFERENCE when needed.
1295 (gfc_generate_function_code): Initialize nonlocal_dummy_decl{s,_pset},
1296 chain it to outermost block's vars, destroy it afterwards.
1297 * Make-lang.in (trans-decl.o): Depend on pointer-set.h.
1298
1299 2009-04-25 Janus Weil <janus@gcc.gnu.org>
1300
1301 PR fortran/39688
1302 * decl.c (gfc_match_import): Use 'sym->name' instead of 'name'.
1303 They differ if the symbol has been use-renamed.
1304
1305 2009-04-24 Ian Lance Taylor <iant@google.com>
1306
1307 * gfortran.h (enum gfc_symbol_type): New named enum type, broken
1308 out of struct gfc_symbol.
1309 (struct gfc_symbol): Use enum gfc_symbol_type.
1310 (enum gfc_array_ref_dimen_type): New named enum type, broken out
1311 of struct gfc_array_ref).
1312 (struct gfc_array_ref): Use enum gfc_array_ref_dimen_type.
1313 (mod_pointee_as): Update declaration.
1314 * decl.c (add_global_entry): Change type to enum gfc_symbol_type.
1315 (gfc_mod_pointee_as): Change return type to "match".
1316 * module.c (mio_array_ref): Add cast to enum type.
1317 (mio_symbol): Likewise.
1318 * resolve.c (resolve_global_procedure): Change type to enum
1319 gfc_symbol_type.
1320 * trans-io.c (gfc_build_st_parameter): Change type to unsigned
1321 int.
1322
1323 2009-04-24 Daniel Kraft <d@domob.eu>
1324
1325 * gfortran.h (gfc_get_typebound_proc): Removed as macro, now a function.
1326 (struct gfc_symtree): Moved "typebound" member inside union.
1327 (struct gfc_namespace): Add "tb_sym_root" as new symtree to sort out
1328 type-bound procedures there.
1329 (gfc_get_tbp_symtree): New procedure.
1330 * symbol.c (tentative_tbp_list): New global.
1331 (gfc_get_namespace): NULL new "tb_sym_root" member.
1332 (gfc_new_symtree): Removed initialization of "typebound" member.
1333 (gfc_undo_symbols): Process list of tentative tbp's.
1334 (gfc_commit_symbols): Ditto.
1335 (free_tb_tree): New method.
1336 (gfc_free_namespace): Call it.
1337 (gfc_get_typebound_proc): New method.
1338 (gfc_get_tbp_symtree): New method.
1339 (gfc_find_typebound_proc): Adapt to structural changes of gfc_symtree
1340 and gfc_namespace with regards to tbp's.
1341 * dump-parse-tree.c (show_typebound): Ditto.
1342 * primary.c (gfc_match_varspec): Ditto. Don't reference tbp-symbol
1343 as it isn't a symbol any longer.
1344 * module.c (mio_typebound_symtree): Adapt to changes.
1345 (mio_typebound_proc): Ditto, create symtrees using "gfc_get_tbp_symtree"
1346 rather than "gfc_get_sym_tree".
1347 (mio_f2k_derived): Ditto.
1348 * decl.c (match_procedure_in_type): Ditto.
1349 (gfc_match_generic): Ditto. Don't reference tbp-symbol.
1350 * resolve.c (check_typebound_override): Adapt to changes.
1351 (resolve_typebound_generic): Ditto.
1352 (resolve_typebound_procedures): Ditto.
1353 (ensure_not_abstract_walker): Ditto.
1354 (ensure_not_abstract): Ditto.
1355 (resolve_typebound_procedure): Ditto, ignore erraneous symbols (for
1356 instance, through removed tentative ones).
1357 * gfc-internals.texi (Type-bound procedures): Document changes.
1358
1359 2009-04-24 Janus Weil <janus@gcc.gnu.org>
1360
1361 PR fortran/39861
1362 PR fortran/39864
1363 * symbol.c (gfc_copy_formal_args_intr): Set attr.flavor and attr.dummy
1364 for the formal arguments.
1365
1366 2009-04-21 Taras Glek <tglek@mozilla.com>
1367
1368 * f95-lang.c: Update GTY annotations to new syntax.
1369 * trans-intrinsic.c: Likewise.
1370 * trans-io.c: Likewise.
1371 * trans.h: Likewise.
1372
1373 2009-04-22 Janus Weil <janus@gcc.gnu.org>
1374
1375 PR fortran/39735
1376 * decl.c (add_hidden_procptr_result): Bugfix for procptr results.
1377 (match_procedure_decl): Set if_source.
1378 * expr.c (gfc_check_pointer_assign): Bugfix: Return after error.
1379 And: Check interface also for IFSRC_UNKNOWN (return type may be known).
1380 * gfortran.h (typedef enum ifsrc): Remove IFSRC_USAGE,
1381 add documentation. Rename copy_formal_args and copy_formal_args_intr.
1382 * interface.c (gfc_compare_interfaces): Check for return types,
1383 handle IFSRC_UNKNOWN.
1384 (compare_intr_interfaces,compare_actual_formal_intr): Obsolete, removed.
1385 (gfc_procedure_use): Modified handling of intrinsics.
1386 * intrinsic.c (add_functions): Bugfix for "dim".
1387 * resolve.c (resolve_intrinsic): New function to resolve intrinsics,
1388 which copies the interface from isym to sym.
1389 (resolve_procedure_expression,resolve_function): Use new function
1390 'resolve_intrinsic'.
1391 (resolve_symbol): Add function attribute for externals with return type
1392 and use new function 'resolve_intrinsic'.
1393 * symbol.c (ifsrc_types): Remove string for IFSRC_USAGE.
1394 (copy_formal_args): Renamed to gfc_copy_formal_args.
1395 (copy_formal_args_intr): Renamed to gfc_copy_formal_args_intr.
1396 * trans-const.c (gfc_conv_const_charlen): Handle cl==NULL.
1397
1398 2009-04-21 Joseph Myers <joseph@codesourcery.com>
1399
1400 * ChangeLog, ChangeLog-2002, ChangeLog-2003, ChangeLog-2004,
1401 ChangeLog-2005, ChangeLog-2006, ChangeLog-2007, ChangeLog-2008,
1402 ChangeLog.ptr, config-lang.in, ioparm.def, mathbuiltins.def: Add
1403 copyright and license notices.
1404 * ChangeLog, ChangeLog-2005, ChangeLog-2006, ChangeLog-2007,
1405 ChangeLog-2008: Correct dates.
1406
1407 2009-04-20 Tobias Burnus <burnus@net-b.de>
1408
1409 PR fortran/39811
1410 * scanner.c (load_line): Fix bogus "&" compile-time diagnostic.
1411
1412 2009-04-20 Paul Thomas <pault@gcc.gnu.org>
1413
1414 PR fortran/39800
1415 * resolve.c (is_sym_host_assoc): New function.
1416 (resolve_fl_derived): Call it when checking PRIVATE components
1417 of PUBLIC derived types. Change gfc_error to a gfc_notify_std
1418 with std=f2003.
1419 (resolve_fl_namelist): Call it twice to check for host
1420 association.
1421
1422 2009-04-20 Ian Lance Taylor <iant@google.com>
1423
1424 * module.c (import_iso_c_binding_module): Add casts to enum type.
1425 * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Change op to enum
1426 tree_code.
1427 (gfc_conv_intrinsic_anyall): Likewise.
1428 (gfc_conv_intrinsic_arith): Likewise.
1429 (gfc_conv_intrinsic_minmaxloc): Likewise.
1430 (gfc_conv_intrinsic_minmaxval): Likewise.
1431 (gfc_conv_intrinsic_bitop): Likewise.
1432 (gfc_conv_intrinsic_singlebitop): Likewise.
1433 (gfc_conv_intrinsic_strcmp): Likewise.
1434
1435 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
1436 Jakub Jelinek <jakub@redhat.com>
1437
1438 PR fortran/35423
1439 * trans.h (OMPWS_WORKSHARE_FLAG, OMPWS_CURR_SINGLEUNIT,
1440 OMPWS_SCALARIZER_WS, OMPWS_NOWAIT): Define.
1441 (ompws_flags): New extern decl.
1442 * trans-array.c (gfc_trans_scalarized_loop_end): Build OMP_FOR
1443 for the outer dimension if ompws_flags allow it.
1444 * trans.c (gfc_generate_code): Clear ompws_flags.
1445 * trans-expr.c (gfc_trans_assignment_1): Allow worksharing
1446 array assignments inside of !$omp workshare.
1447 * trans-stmt.c (gfc_trans_where_3): Similarly for where statements
1448 and constructs.
1449 * trans-openmp.c (ompws_flags): New variable.
1450 (gfc_trans_omp_workshare): Rewritten.
1451
1452 2009-04-11 Daniel Kraft <d@domob.eu>
1453
1454 PR fortran/37746
1455 * gfortran.h (struct gfc_charlen): New field "passed_length" to store
1456 the actual passed string length for dummy arguments.
1457 * trans-decl.c (gfc_create_string_length): Formatting fixes and added
1458 assertion, moved a local variable into the innermost block it is needed.
1459 (create_function_arglist): Removed TODO about the check being
1460 implemented and initialize cl->passed_length here.
1461 (add_argument_checking): New method.
1462 (gfc_generate_function_code): Call the argument checking method.
1463
1464 2009-04-11 Janus Weil <janus@gcc.gnu.org>
1465
1466 PR fortran/39692
1467 * symbol.c (check_conflict): Reject procedure pointers for -std=f95.
1468
1469 2009-04-11 Daniel Franke <franke.daniel@gmail.com>
1470
1471 * resolve.c (resolve_global_procedure): Enable whole-file checking for
1472 procedures that are declared later in the file.
1473
1474 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
1475
1476 PR middle-end/39701
1477 * trans.c (gfc_allocate_with_status): Fix type mismatches
1478 on "pstat == 0".
1479
1480 2009-04-10 Daniel Franke <franke.daniel@gmail.com>
1481
1482 PR fortran/38709
1483 * expr.c (find_array_section): Leave early on zero-sized arrays.
1484
1485 2009-04-09 Janus Weil <janus@gcc.gnu.org>
1486
1487 PR fortran/36704
1488 * decl.c (add_hidden_procptr_result): New function for handling
1489 procedure pointer return values by adding a hidden result variable.
1490 (variable_decl,match_procedure_decl,gfc_match_function_decl,
1491 gfc_match_subroutine,gfc_match_end,attr_decl1): Handle procedure pointer
1492 return values.
1493 * parse.c (parse_interface): Add EXTERNAL attribute only after
1494 FUNCTION/SUBROUTINE declaration is complete.
1495 * primary.c (replace_hidden_procptr_result): New function for replacing
1496 function symbol by hidden result variable.
1497 (gfc_match_rvalue,match_variable): Replace symbol by hidden result
1498 variable.
1499 * resolve.c (resolve_contained_fntype,resolve_function,resolve_variable,
1500 resolve_symbol): Allow for procedure pointer function results.
1501 (resolve_fl_procedure): Conflict detection moved here from
1502 'check_conflict'.
1503 * symbol.c (gfc_check_function_type): Allow for procedure pointer
1504 function results.
1505 (check_conflict): Move some conflict detection to resolution stage.
1506 * trans-types.c (gfc_sym_type,gfc_get_function_type): Handle hidden
1507 result variables.
1508
1509 2009-04-08 Jakub Jelinek <jakub@redhat.com>
1510
1511 * trans-types.c (gfc_init_types): Ensure gfc_integer_types doesn't
1512 contain TYPE_STRING_FLAG types.
1513
1514 2009-04-08 Janne Blomqvist <jb@gcc.gnu.org>
1515
1516 PR fortran/39670
1517 * invoke.texi (fdollar-ok): Fix typo.
1518
1519 2009-04-08 Daniel Franke <franke.daniel@gmail.com>
1520
1521 PR fortran/39670
1522 * invoke.texi (fdollar-ok): Clarify limitations.
1523
1524 2009-04-08 Paul Thomas <pault@gcc.gnu.org>
1525
1526 PR fortran/38863
1527 * trans-array.c (gfc_trans_deferred_array): Return if this
1528 is a result variable.
1529
1530 2009-04-07 Janus Weil <janus@gcc.gnu.org>
1531
1532 PR fortran/38152
1533 * trans-decl.c (gfc_get_symbol_decl): Correctly set decl location for
1534 procedure pointer decls.
1535
1536 2009-04-07 Janus Weil <janus@gcc.gnu.org>
1537
1538 PR fortran/38290
1539 * expr.c (gfc_check_pointer_assign): Enable interface check for
1540 procedure pointers.
1541 * gfortran.h: Add copy_formal_args_intr.
1542 * interface.c (gfc_compare_interfaces): Call gfc_compare_intr_interfaces
1543 if second argument is an intrinsic.
1544 (compare_intr_interfaces): Correctly set attr.function, attr.subroutine
1545 and ts.
1546 (compare_parameter): Call gfc_compare_interfaces also for intrinsics.
1547 * resolve.c (resolve_specific_f0,resolve_specific_s0): Don't resolve
1548 intrinsic interfaces here. Must happen earlier.
1549 (resolve_symbol): Resolution of intrinsic interfaces moved here from
1550 resolve_specific_..., and formal args are now copied from intrinsic
1551 interfaces.
1552 * symbol.c (copy_formal_args_intr): New function to copy the formal
1553 arguments from an intinsic procedure.
1554
1555 2009-04-06 Paul Thomas <pault@gcc.gnu.org>
1556
1557 PR fortran/38863
1558 * dependency.c (ref_same_as_full_array): New function.
1559 (gfc_dep_resolver): Call it.
1560
1561 2009-04-06 Janus Weil <janus@gcc.gnu.org>
1562
1563 PR fortran/39414
1564 * decl.c (match_procedure_decl): Fix double declaration problems with
1565 PROCEDURE statements.
1566 * symbol.c (gfc_add_type): Ditto.
1567
1568 2009-04-06 Paul Thomas <pault@gcc.gnu.org>
1569
1570 PR fortran/36091
1571 * trans-array.c (gfc_conv_array_ref): If the symbol has the
1572 temporary attribute use the array_spec for the bounds.
1573 * gfortran.h : Add the temporary field to the structure
1574 'symbol_attribute'.
1575 * trans-stmt.c (forall_make_variable_temp): Set the symbol's
1576 temporary attribute.
1577
1578 2009-04-05 Daniel Franke <franke.daniel@gmail.com>
1579
1580 PR fortran/29458
1581 * trans-array.c (gfc_trans_array_constructor_value): Shadow
1582 implied do-loop variable to avoid spurious middle-end warnings.
1583
1584 2009-04-04 Tobias Burnus <burnus@net-b.de>
1585
1586 PR fortran/39577
1587 * trans-decl.c (gfc_generate_function_code): Move recursive
1588 check to the right position.
1589
1590 2009-04-04 Paul Thomas <pault@gcc.gnu.org>
1591
1592 PR fortran/37614
1593 * trans-common.c (translate_common): Do not offset the whole
1594 coomon block.
1595
1596 2009-04-03 Tobias Burnus <burnus@net-b.de>
1597
1598 PR fortran/39594
1599 * resolve.c (resolve_common_vars): Add FL_VARIABLE to symbol
1600 if it is not a procedure pointer.
1601 * primary.c (match_actual_arg): Ditto.
1602
1603 2009-03-31 Joseph Myers <joseph@codesourcery.com>
1604
1605 PR preprocessor/15638
1606 * cpp.c (cb_cpp_error): Handle CPP_DL_FATAL.
1607
1608 2009-03-30 Steven G. Kargl <kargls@comcast.net>
1609
1610 PR fortran/38389
1611 * trans-stmt.c(gfc_trans_allocate): Add translation of ERRMSG.
1612 (gfc_trans_deallocate): Add translation of ERRMSG. Remove stale
1613 comments. Minor whitespace cleanup.
1614 * resolve.c(is_scalar_expr_ptr): Whitespace cleanup.
1615 (resolve_deallocate_expr (gfc_expr *e): Update error message.
1616 (resolve_allocate_expr): Remove dead code. Update error message.
1617 Move error checking to ...
1618 (resolve_allocate_deallocate): ... here. Add additional error
1619 checking for STAT, ERRMSG, and allocate-objects.
1620 * match.c(gfc_match_allocate,gfc_match_deallocate): Parse ERRMSG.
1621 Check for redundant uses of STAT and ERRMSG. Reword error message
1622 and add checking for pointer, allocatable, and proc_pointer attributes.
1623
1624 2009-03-30 Paul Thomas <pault@gcc.gnu.org>
1625
1626 PR fortran/22571
1627 PR fortran/26227
1628 PR fortran/24886
1629 * symbol.c : Add gfc_global_ns_list.
1630 * decl.c (add_global_entry): Set the namespace ('ns') field.
1631 * gfortran.h : Add the resolved field to gfc_namespace. Add the
1632 namespace ('ns') field to gfc_gsymbol. Add flag_whole_file to
1633 gfc_option_t. Add the prototype for gfc_free_dt_list.
1634 * lang.opt : Add the whole-file option.
1635 * invoke.texi : Document the whole-file option.
1636 * resolve.c (resolve_global_procedure): If the fwhole-file
1637 option is set, reorder gsymbols to ensure that translation is
1638 in the right order. Resolve the gsymbol's namespace if that
1639 has not occurred and then check interfaces.
1640 (resolve_function): Move call to resolve_global_procedure.
1641 (resolve_call): The same.
1642 (resolve_codes): Store the current labels_obstack.
1643 (gfc_resolve) : Return if the namespace is already resolved.
1644 trans-decl.c (gfc_get_extern_function_decl): If the whole_file
1645 option is selected, use the backend_decl of a gsymbol, if it is
1646 available.
1647 parse.c (add_global_procedure, add_global_program): If the flag
1648 whole-file is set, add the namespace to the gsymbol.
1649 (gfc_parse_file): On -fwhole-file, put procedure namespaces on
1650 the global namespace list. Rearrange to do resolution of all
1651 the procedures in a file, followed by their translation.
1652 * options.c (gfc_init_options): Add -fwhole-file.
1653 (gfc_handle_option): The same.
1654
1655 2009-03-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1656
1657 * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_HUGE_VAL
1658 family of intrinsics instead of BUILT_IN_INF family.
1659 * trans-intrinsics.c (gfc_conv_intrinsic_nearest): Use
1660 BUILT_IN_HUGE_VAL instead of BUILT_IN_INF.
1661
1662 2009-03-30 Jakub Jelinek <jakub@redhat.com>
1663
1664 * trans-types.c (gfc_sym_type, gfc_return_by_reference): For
1665 sym->attr.result check sym->ns->proc_name->attr.is_bind_c.
1666
1667 2009-03-30 Joseph Myers <joseph@codesourcery.com>
1668
1669 PR rtl-optimization/323
1670 * options.c (gfc_post_options): Set
1671 flag_excess_precision_cmdline. Give an error for
1672 -fexcess-precision=standard for processors where the option is
1673 significant.
1674
1675 2009-03-29 Joseph Myers <joseph@codesourcery.com>
1676
1677 PR preprocessor/34695
1678 * cpp.c (cb_cpp_error): New.
1679 (gfc_cpp_post_options): Don't set cpp_option->inhibit_warnings.
1680 Don't check cpp_errors (cpp_in).
1681 (gfc_cpp_init_0): Set cb->error.
1682
1683 2009-03-29 Steven G. Kargl <kargl@gcc.gnu.org>
1684
1685 PR fortran/38823
1686 * gfortran.h: Add ARITH_PROHIBIT to arith enum.
1687 expr.c (gfc_match_init_expr): Add global variable init_flag to
1688 flag matching an initialization expression.
1689 (check_intrinsic_op): Move no longer reachable error message to ...
1690 * arith.c (arith_power): ... here. Remove gfc_ prefix in
1691 gfc_arith_power. Use init_flag. Allow constant folding of x**y
1692 when y is REAL or COMPLEX.
1693 (eval_intrinsic): Remove restriction that y in x**y must be INTEGER
1694 for constant folding.
1695 * gfc_power: Update gfc_arith_power to arith_power
1696
1697 2009-03-29 Daniel Kraft <d@domob.eu>
1698
1699 PR fortran/37423
1700 * gfortran.h (struct gfc_typebound_proc): Added new flag "deferred" and
1701 added a comment explaining DEFERRED binding handling.
1702 * decl.c (match_binding_attributes): Really match DEFERRED attribute.
1703 (match_procedure_in_type): Really match PROCEDURE(interface) syntax
1704 and do some validity checks for DEFERRED and this construct.
1705 * module.c (binding_overriding): New string constant for DEFERRED.
1706 (mio_typebound_proc): Module-IO DEFERRED flag.
1707 * resolve.c (check_typebound_override): Ensure that a non-DEFERRED
1708 binding is not overridden by a DEFERRED one.
1709 (resolve_typebound_procedure): Allow abstract interfaces as targets
1710 for DEFERRED bindings.
1711 (ensure_not_abstract_walker), (ensure_not_abstract): New methods.
1712 (resolve_fl_derived): Use new "ensure_not_abstract" method for
1713 non-ABSTRACT types extending ABSTRACT ones to ensure each DEFERRED
1714 binding is overridden.
1715 (check_typebound_baseobject): New method.
1716 (resolve_compcall), (resolve_typebound_call): Check base-object of
1717 the type-bound procedure call.
1718 * gfc-internals.texi (Type-bound procedures): Document a little bit
1719 about internal handling of DEFERRED bindings.
1720
1721 2009-03-29 Tobias Schlueter <tobi@gcc.gnu.org>
1722
1723 PR fortran/38507
1724 * gfortran.h (gfc_st_label): Fix comment.
1725 (gfc_exec_op): Add statement code EXEC_END_BLOCK for end of block.
1726 * parse.c (accept_statement): Use EXEC_END_BLOCK for END IF and
1727 END SELECT with labels.
1728 (check_do_closure): Fix formatting.
1729 (parse_do_block): Fix typo in error message.
1730 * resolve.c (code_stack): Remove tail member. Update comment to
1731 new use of reachable_labels.
1732 (reachable_labels): Rename to ...
1733 (find_reachable_labels): ... this. Overhaul. Update preceding
1734 comment.
1735 (resolve_branch): Fix comment preceding function. Rewrite.
1736 (resolve_code): Update call to find_reachable_labels. Add code to
1737 deal with EXEC_END_BLOCK.
1738 * st.c (gfc_free_statement): Add code to deal with EXEC_END_BLOCK.
1739 Add 2009 to copyright years.
1740 * trans.c (gfc_trans_code): Likewise on both counts.
1741
1742 2009-03-31 Paul Thomas <pault@gcc.gnu.org>
1743
1744 PR fortran/38917
1745 * expr.c (gfc_check_assign): Allow pointer components when
1746 checking for NULL.
1747
1748 PR fortran/38918
1749 * resolve.c (check_data_variable): Treat pointer arrays with
1750 scalars.
1751
1752 2009-03-31 Paul Thomas <pault@gcc.gnu.org>
1753
1754 PR fortran/38915
1755 * trans-expr.c (gfc_trans_assignment_1): Ensure temporaries
1756 have a string_length.
1757
1758 2009-03-28 Tobias Burnus <burnus@net-b.de>
1759
1760 PR fortran/34656
1761 * trans-stmt.c (gfc_trans_simple_do, gfc_trans_do):
1762 Add GFC_RTCHECK_DO support.
1763 * option.c (gfc_handle_runtime_check_option): Enable GFC_RTCHECK_DO.
1764 * invoke.texi (-fcheck): Document "do" option.
1765
1766 2009-03-28 Paul Thomas <pault@gcc.gnu.org>
1767
1768 PR fortran/38538
1769 * trans-array.c (get_elemental_fcn_charlen): Remove.
1770 (get_array_charlen): New function to replace previous.
1771
1772 2009-03-28 Paul Thomas <pault@gcc.gnu.org>
1773
1774 PR fortran/38765
1775 * parse.c (parse_derived): Do not break on finding pointer,
1776 allocatable or private components.
1777
1778 2009-03-28 Tobias Burnus <burnus@net-b.de>
1779
1780 PR fortran/32626
1781 * option.c (gfc_handle_runtime_check_option): Enable recursion check.
1782 * trans-decl.c (gfc_generate_function_code): Add recursion check.
1783 * invoke.texi (-fcheck): Add recursive option.
1784
1785 2009-03-28 Tobias Burnus <burnus@net-b.de>
1786
1787 PR fortran/38432
1788 * resolve.c (gfc_resolve_iterator): Add zero-loop warning.
1789
1790 2009-03-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1791 Paul Thomas <pault@gcc.gnu.org>
1792 Tobias Burnus <burnus@net-b.de>
1793
1794 * gfortran.h (gfc_option_t): Add rtcheck.
1795 * lang.opt: New option -fcheck.
1796 * libgfortran.h: Add GFC_RTCHECK_* constants.
1797 * invoke.texi: Document -fcheck.
1798 * options.c (gfc_handle_runtime_check_option): New function.
1799 (gfc_init_options,gfc_post_options,gfc_handle_option):
1800 Add -fcheck option.
1801
1802 2009-03-27 Richard Guenther <rguenther@suse.de>
1803
1804 * trans-array.c (gfc_conv_descriptor_data_addr): Use
1805 gfc_build_addr_expr instead of build_fold_addr_expr.
1806 (gfc_trans_allocate_array_storage, gfc_trans_array_constructor_value,
1807 gfc_trans_constant_array_constructor, gfc_conv_array_data,
1808 gfc_conv_expr_descriptor, gfc_conv_array_parameter): Likewise.
1809 * trans-expr.c (gfc_conv_missing_dummy, gfc_conv_variable,
1810 gfc_conv_function_val, gfc_conv_operator_assign,
1811 gfc_conv_subref_array_arg, gfc_conv_function_call,
1812 gfc_conv_expr_reference, gfc_trans_scalar_assign): Likewise.
1813 * trans-intrinsic.c (gfc_conv_intrinsic_exponent,
1814 gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
1815 gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax_char,
1816 gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_spacing,
1817 gfc_conv_intrinsic_rrspacing, gfc_conv_intrinsic_set_exponent,
1818 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
1819 gfc_conv_intrinsic_si_kind, gfc_conv_intrinsic_trim): Likewise.
1820 * trans-io.c (gfc_trans_io_runtime_check, set_parameter_ref,
1821 gfc_convert_array_to_string, gfc_trans_open, gfc_trans_close,
1822 build_filepos, gfc_trans_inquire, gfc_trans_wait,
1823 nml_get_addr_expr, transfer_namelist_element, build_dt,
1824 gfc_trans_dt_end, transfer_array_component, transfer_expr,
1825 transfer_array_desc, gfc_trans_transfer): Likewise.
1826 * trans-stmt.c (gfc_trans_allocate, gfc_trans_deallocate): Likewise.
1827 * trans.c (gfc_build_addr_expr): Mark the base of the address
1828 TREE_ADDRESSABLE.
1829
1830 2009-03-27 Tobias Burnus <burnus@net-b.de>
1831
1832 * gfortran.h (enum init_local_real.): Add GFC_INIT_REAL_SNAN.
1833 (gfc_expr): Add is_snan.
1834 * trans-const.c (gfc_conv_mpfr_to_tree): Support SNaN.
1835 (gfc_conv_constant_to_tree): Update call to gfc_conv_mpfr_to_tree.
1836 * trans-const.h (gfc_conv_mpfr_to_tree): Update prototype.
1837 * resolve.c (build_default_init_expr): Update call.
1838 * target-memory.c (encode_float): Ditto.
1839 * trans-intrinsic.c (gfc_conv_intrinsic_aint,gfc_conv_intrinsic_mod,
1840
1841 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1842
1843 * lang.opt: Unify help texts for -I, -Wconversion, -d, -fopenmp,
1844 and -fpreprocessed.
1845
1846 2009-03-06 Alexandre Oliva <aoliva@redhat.com>
1847
1848 * simplify.c (gfc_simplify_transfer): Zero-initialize the
1849 buffer.
1850
1851 2009-02-27 Tobias Burnus <burnus@net-b.de>
1852
1853 PR fortran/39309
1854 * module.c (read_md5_from_module_file): Add missing quote.
1855
1856 2009-02-27 Tobias Burnus <burnus@net-b.de>
1857
1858 PR fortran/39309
1859 * module.c (read_md5_from_module_file): Include mod version
1860 in had-changed test.
1861
1862 2009-02-26 Paul Thomas <pault@gcc.gnu.org>
1863
1864 PR fortran/39295
1865 * interface.c (compare_type_rank_if): Return 1 if the symbols
1866 are the same and deal with external procedures where one is
1867 identified to be a function or subroutine by usage but the
1868 other is not.
1869
1870 2009-02-26 Paul Thomas <pault@gcc.gnu.org>
1871
1872 PR fortran/39292
1873 * trans-array.c (gfc_conv_array_initializer): Convert all
1874 expressions rather than ICEing.
1875
1876 2009-02-21 Thomas Koenig <tkoenig@gcc.gnu.org>
1877
1878 PR fortran/38914
1879 * array.c (ref_dimen_size): Rename to gfc_ref_dimen_size,
1880 make global. Change function name in error messages.
1881 (ref_size): Change ref_dimen_size to gfc_ref_dimen_size.
1882 (gfc_array_ref_shape): Likewise.
1883 * gfortran.h: Add prototype for gfc_ref_dimen_size.
1884 * simplify.c (simplify_bound_dim): Add ref argument.
1885 If the reference isn't a full array, return one for
1886 the lower bound and the extent for the upper bound.
1887 (simplify_bound): For array sections, take as from the
1888 argument. Add reference to all to simplify_bound_dim.
1889
1890 2009-02-19 Daniel Franke <franke.daniel@gmail.com>
1891
1892 * scanner.c (load_line): At end of line, skip '\r' without setting
1893 the truncation flag.
1894
1895 2009-02-18 Daniel Kraft <d@domob.eu>
1896
1897 * gfortran.texi: New chapter about compiler characteristics.
1898 (Compiler Characteristics): Document KIND type parameters here.
1899
1900 2009-02-18 Tobias Burnus <burnus@net-b.de>
1901
1902 * intrinsic.texi (MALLOC): Make example more portable.
1903
1904 2009-02-13 Mikael Morin <mikael.morin@tele2.fr>
1905
1906 PR fortran/38259
1907 * module.c (gfc_dump_module,gfc_use_module): Add module
1908 version number.
1909
1910 2009-02-13 Paul Thomas <pault@gcc.gnu.org>
1911
1912 PR fortran/36703
1913 PR fortran/36528
1914 * trans-expr.c (gfc_conv_function_val): Stabilize Cray-pointer
1915 function references to ensure that a valid expression is used.
1916 (gfc_conv_function_call): Pass Cray pointers to procedures.
1917
1918 2009-02-03 Jakub Jelinek <jakub@redhat.com>
1919
1920 * gfortranspec.c (lang_specific_driver): Update copyright notice
1921 dates.
1922
1923 2009-01-28 Paul Thomas <pault@gcc.gnu.org>
1924
1925 PR fortran/38852
1926 PR fortran/39006
1927 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Use the array
1928 descriptor ubound for UBOUND, when the array lbound == 1.
1929
1930 2009-01-27 Daniel Kraft <d@domob.eu>
1931
1932 PR fortran/38883
1933 * trans-stmt.c (gfc_conv_elemental_dependencies): Create temporary
1934 for the real type needed to make it work for subcomponent-references.
1935
1936 2009-01-21 Daniel Kraft <d@domob.eu>
1937
1938 * trans-stmt.c (gfc_conv_elemental_dependencies): Cleaned up comment.
1939
1940 2009-01-20 Paul Thomas <pault@gcc.gnu.org>
1941
1942 PR fortran/38907
1943 * resolve.c (check_host_association): Remove the matching to
1944 correct an incorrect host association and use manipulation of
1945 the expression instead.
1946
1947 2009-01-20 Tobias Burnus <burnus@net-b.de>
1948
1949 * invoke.texi (RANGE): RANGE also takes INTEGER arguments.
1950
1951 2009-01-19 Mikael Morin <mikael.morin@tele2.fr>
1952
1953 PR fortran/38859
1954 * simplify.c (simplify_bound): Don't use array specification
1955 if variable or component has subsequent references.
1956
1957 2009-01-17 Paul Thomas <pault@gcc.gnu.org>
1958
1959 PR fortran/38657
1960 * module.c (write_common_0): Add argument 'this_module' and
1961 check that non-use associated common blocks are written first.
1962 (write_common): Call write_common_0 twice, once with true and
1963 then with false.
1964
1965 2009-01-17 Paul Thomas <pault@gcc.gnu.org>
1966
1967 PR fortran/34955
1968 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Has
1969 been absorbed into gfc_conv_intrinsic_transfer. All
1970 references to it in trans-intrinsic.c have been changed
1971 accordingly. PR fixed by using a temporary for scalar
1972 character transfer, when the source is shorter than the
1973 destination.
1974
1975 2009-01-17 Paul Thomas <pault@gcc.gnu.org>
1976
1977 PR fortran/38657
1978 * module.c (write_common_0): Revert patch of 2009-01-05.
1979
1980 2009-01-16 Janus Weil <janus@gcc.gnu.org>
1981
1982 PR fortran/38152
1983 * expr.c (gfc_check_pointer_assign): Allow use-associated procedure
1984 pointers as lvalue.
1985 * trans-decl.c (get_proc_pointer_decl,gfc_create_module_variable):
1986 Enable procedure pointers as module variables.
1987
1988 2009-01-14 Steven G. Kargl <kargl@gcc.gnu.org>
1989
1990 * ChangeLog-2007: Clean out svn merge droppings.
1991
1992 2009-01-10 Paul Thomas <pault@gcc.gnu.org>
1993
1994 PR fortran/38763
1995 * target-memory.c (encode_derived): Encode NULL.
1996
1997 2009-01-10 Paul Thomas <pault@gcc.gnu.org>
1998
1999 PR fortran/38765
2000 * resolve.c (check_host_association): Use the symtree name to
2001 search for a potential contained procedure, since this is the
2002 name by which it would be referenced.
2003
2004 2009-01-06 Thomas Koenig <tkoenig@gcc.gnu.org>
2005
2006 PR fortran/38220
2007 * interface.c (gfc_procedure_use): Don't warn about functions
2008 from ISO_C_BINDING.
2009 * symbol.c (generate_isocbinding_symbol): Mark c_loc and
2010 c_funloc as pure.
2011
2012 2009-01-05 Paul Thomas <pault@gcc.gnu.org>
2013
2014 PR fortran/38657
2015 * module.c (write_common_0): Use the name of the symtree rather
2016 than the common block, to determine if the common has been
2017 written.
2018
2019 2009-01-05 Daniel Franke <franke.daniel@gmail.com>
2020
2021 PR fortran/37159
2022 * check.c (gfc_check_random_seed): Added size check for GET
2023 dummy argument, reworded error messages to follow common pattern.
2024
2025 2009-01-05 Thomas Koenig <tkoenig@gcc.gnu.org>
2026
2027 PR fortran/38672
2028 * trans-types.c (gfc_get_derived_type): Check for the
2029 presence of derived->ns->proc_name before
2030 accessing derived->ns->proc_name->attr.flavor .
2031 * resolve.c (resolve_symbol): Likewise.
2032
2033 2009-01-05 Paul Thomas <pault@gcc.gnu.org>
2034
2035 PR fortran/38665
2036 * gfortran.h : Add bit to gfc_expr 'user_operator'
2037 * interface.c (gfc_extend_expr): Set the above if the operator
2038 is substituted by a function.
2039 * resolve.c (check_host_association): Return if above is set.
2040
2041 2009-01-04 Mikael Morin <mikael.morin@tele2.fr>
2042
2043 PR fortran/35681
2044 * ChangeLog-2008: Fix function name.
2045
2046 PR fortran/38487
2047 * dependency.c (gfc_check_argument_var_dependency):
2048 Move the check for pointerness inside the if block
2049 so that it doesn't affect the return value.
2050
2051 PR fortran/38669
2052 * trans-stmt.c (gfc_trans_call):
2053 Add the dependency code after the loop bounds calculation one.
2054
2055 2009-01-04 Daniel Franke <franke.daniel@gmail.com>
2056
2057 * intrinsic.c (do_simplify): Removed already implemented TODO.
2058
2059 2009-01-04 Daniel Franke <franke.daniel@gmail.com>
2060
2061 PR fortran/38718
2062 * simplify.c (gfc_simplify_merge): New.
2063 * intrinsic.h (gfc_simplify_merge): New prototype.
2064 * intrinsic.c (add_functions): Added simplification for MERGE.
2065
2066 2009-01-04 Mikael Morin <mikael.morin@tele2.fr>
2067
2068 PR fortran/38536
2069 * gfortran.h (gfc_is_data_pointer): Added prototype
2070 * resolve.c (gfc_iso_c_func_interface):
2071 Use gfc_is_data_pointer to test for pointer attribute.
2072 * dependency.c (gfc_is_data_pointer):
2073 Support pointer-returning functions.
2074
2075 2009-01-03 Daniel Franke <franke.daniel@gmail.com>
2076
2077 * symbol.c (save_symbol): Don't SAVE function results.
2078
2079 2009-01-03 Paul Thomas <pault@gcc.gnu.org>
2080
2081 PR fortran/38594
2082 * resolve.c (resolve_call): When searching for proper host
2083 association, use symtree rather than symbol. For everything
2084 except generic subroutines, substitute the symtree in the call
2085 rather than the symbol.
2086
2087 \f
2088 Copyright (C) 2009 Free Software Foundation, Inc.
2089
2090 Copying and distribution of this file, with or without modification,
2091 are permitted in any medium without royalty provided the copyright
2092 notice and this notice are preserved.