1 2009-05-17 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3 * iso-fortran-env.def: Define INT8, INT16, INT32, INT64, REAL32,
5 * gfortran.h (gfc_get_int_kind_from_width_isofortranenv,
6 gfc_get_real_kind_from_width_isofortranenv): New prototypes.
7 * iso-c-binding.def: Update definitions for the INT*_T,
8 INT_LEAST*_T and INT_FAST*_T named parameters.
9 * trans-types.c (get_typenode_from_name, get_int_kind_from_name,
10 gfc_get_real_kind_from_width_isofortranenv): New functions.
12 2009-05-17 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15 * intrinsic.c (add_functions, add_subroutines): Fix argument
16 names and wrap long lines.
17 * intrinsic.texi: Fix documentation and argument names of
18 LOG_GAMMA, DATAN2, DBESJN, DTIME, ETIME, FSTAT, STAT, LSTAT,
19 GET_COMMAND, IDATE, LTIME, MOVE_ALLOC, NINT, OR, PRODUCT,
20 SUM, RAND, RANDOM_SEED, REAL, SELECTED_INT_KIND,
21 SELECTED_REAL_KIND and XOR.
23 2009-05-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
26 * intrinsic.c (add_functions): Use ERFC_SCALED simplification.
27 * intrinsic.h (gfc_simplify_erfc_scaled): New prototype.
28 * simplify.c (fullprec_erfc_scaled, asympt_erfc_scaled,
29 gfc_simplify_erfc_scaled): New functions.
31 2009-05-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
34 * resolve.c (resolve_substring): Don't allow too large substring
36 (gfc_resolve_substring_charlen): Fix typo.
37 (gfc_resolve_character_operator): Fix typo.
38 (resolve_charlen): Catch unreasonably large string lengths.
39 * simplify.c (gfc_simplify_len): Don't error out on LEN
42 2009-05-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
45 * decl.c (set_enum_kind): Use global short-enums flag.
46 * gfortran.h (gfc_option_t): Remove short_enums flag.
47 * lang.opt (-fshort-enums): Refer to C documentation.
48 * options.c (gfc_init_options, gfc_handle_option): Use global
51 2009-05-15 Tobias Burnus <burnus@net-b.de>
54 * f95-lang.c: Add gfc_maybe_initialize_eh.
55 * gfortran.h: Add gfc_maybe_initialize_eh prototype.
56 * Make-lang.in: Add new .h dendencies for f95-lang.c
57 * openmp.c (resolve_omp_do): Call gfc_maybe_initialize_eh.
58 * misc.c (gfc_free): Avoid #define trickery for free.
60 2009-05-14 Steven G. Kargl <kargl@gcc.gnu.org>
62 * dump-parse-tree.c (show_code_node): Add ERRMSG to the dumping
63 of allocate and deallocate statements.
65 2009-05-14 Ian Lance Taylor <iant@google.com>
67 * decl.c (match_attr_spec): Change d to unsigned int.
68 * dump-parse-tree.c (show_namespace): Change op to int. Add cast.
69 * interface.c (gfc_check_interfaces): Change i to int. Add casts.
70 * module.c (read_module): Change i to int. Add cast.
71 (write_module): Change i to int.
72 * symbol.c (gfc_get_namespace): Change in to int.
73 (gfc_free_namespace): Change i to int.
74 * trans-io.c (gfc_build_io_library_fndecls): Change ptype to
75 unsigned int. Add cast.
76 * trans-types.c (gfc_init_kinds): Change mode to unsigned int.
79 2009-05-14 Daniel Kraft <d@domob.eu>
82 * dump-parse-tree.c (show_typebound): Fix missing adaption to new
83 type-bound procedure storage structure.
85 2009-05-14 Janus Weil <janus@gcc.gnu.org>
88 * decl.c (gfc_match_function_decl): Use gfc_add_type.
89 * symbol.c (gfc_add_type): Better checking for duplicate types in
90 function declarations. And: Always give an error for duplicte types,
91 not just a warning with -std=gnu.
93 2009-05-14 Jakub Jelinek <jakub@redhat.com>
96 * io.c (resolve_tag_format): CHARACTER array in FMT= argument
97 isn't an extension. Reject non-CHARACTER array element of
98 assumed shape or pointer or assumed size array.
99 * trans-array.c (array_parameter_size): New function.
100 (gfc_conv_array_parameter): Add size argument. Call
101 array_parameter_size if it is non-NULL.
102 * trans-array.h (gfc_conv_array_parameter): Adjust prototype.
103 * trans-expr.c (gfc_conv_function_call, gfc_trans_arrayfunc_assign):
105 * trans-intrinsic.c (gfc_conv_intrinsic_loc): Likewise.
106 * trans-io.c (gfc_convert_array_to_string): Rewritten.
108 2009-05-13 Steven G. Kargl <kargl@gcc.gnu.org>
110 * gfortran.h (gfc_code): Rename struct member expr to expr1.
111 * openmp.c (resolve_omp_atomic): Update expr to expr1.
112 * interface.c (gfc_extend_assign): Ditto.
113 * trans-expr.c (gfc_conv_expr_reference, gfc_trans_assignment,
114 gfc_trans_init_assign): Ditto.
115 * dump-parse-tree.c (show_code_node): Ditto.
116 * trans-openmp.c (gfc_trans_omp_atomic): Ditto.
117 * trans-stmt.c ( gfc_trans_label_assign, gfc_trans_goto, gfc_trans_call,
118 gfc_trans_return, gfc_trans_pause, gfc_trans_stop, gfc_trans_if_1,
119 gfc_trans_arithmetic_if, gfc_trans_do_while, gfc_trans_integer_select,
120 gfc_trans_logical_select, gfc_trans_character_select
121 forall_make_variable_temp, check_forall_dependencies
122 gfc_trans_forall_1, gfc_trans_where_2, gfc_trans_where_3
123 gfc_trans_where, gfc_trans_allocate, gfc_trans_deallocate): Ditto.
124 * io.c (match_io_element, gfc_match_inquire): Ditto.
125 * resolve.c (resolve_typebound_call, resolve_ppc_call,
126 resolve_allocate_expr, resolve_allocate_deallocate, resolve_select,
127 resolve_transfer, resolve_where, gfc_resolve_assign_in_forall,
128 gfc_resolve_blocks, resolve_code, build_init_assign): Ditto.
129 * st.c (gfc_free_statement): Ditto.
130 * match.c (gfc_match_assignment, gfc_match_pointer_assignment,
131 match_arithmetic_if, gfc_match_if, gfc_match_elseif
132 gfc_match_stopcode, gfc_match_assign, gfc_match_goto,
133 gfc_match_nullify, match_typebound_call, gfc_match_call
134 gfc_match_select, match_simple_where, gfc_match_where
135 gfc_match_elsewhere, match_simple_forall, gfc_match_forall): Ditto.
136 * trans-io.c (gfc_trans_transfer): Ditto.
137 * parse.c (parse_where_block, parse_if_block): Ditto.
139 2009-05-13 Steven G. Kargl <kargl@gcc.gnu.org>
141 * gfortran.h (gfc_code): Rename struct member label to label1.
142 * dump-parse-tree.c (show_code_node): Update symbol.
143 * trans-stmt.c (gfc_trans_label_assign, gfc_trans_goto,
144 gfc_trans_arithmetic_if)": Ditto.
145 * resolve.c (gfc_resolve_blocks, resolve_code): Ditto.
146 * match.c (match_arithmetic_if, gfc_match_if, gfc_reference_st_label,
147 gfc_match_assign, gfc_match_goto): Ditto.
148 * parse.c (parse_do_block): Ditto.
150 2009-05-13 Tobias Burnus <burnus@net-b.de>
153 * gfortran.h (gfc_exec_op): Add EXEC_END_PROCEDURE.
154 * dump-parse-tree.c (show_code_node): Use EXEC_END_PROCEDURE.
155 * trans.c (gfc_trans_code): Ditto.
156 * resolve.c (resolve_code): Ditto.
157 * st.c (gfc_free_statement): Ditto.
158 * parse.c (accept_statement): Ditto.
160 2009-05-12 Tobias Burnus <burnus@net-b.de>
163 * decl.c (gfc_match_kind_spec): Turn C kind error into a warning.
165 2009-05-11 Steve Ellcey <sje@cup.hp.com>
167 * resolve.c (check_host_association): Initialize tail.
169 2009-05-11 Janus Weil <janus@gcc.gnu.org>
172 * resolve.c (resolve_fl_derived): Only return FAILURE if
173 gfc_notify_std fails.
175 2009-05-10 Ian Lance Taylor <iant@google.com>
177 * gfortran.h (enum gfc_omp_sched_kind): New enum, broken out of
179 (enum gfc_omp_default_sharing): Likewise.
180 * module.c (enum gfc_rsym_state): New enum, broken out of
182 (enum gfc_wsym_state): Likewise.
183 * parse.c (enum state_order): New enum, broken out of st_state.
185 2009-05-10 Paul Thomas <pault@gcc.gnu.org>
188 * trans-array.c (gfc_trans_array_constructor_value): Fold
189 convert numeric constants.
190 (gfc_build_constant_array_constructor): The same.
192 2009-05-10 Paul Thomas <pault@gcc.gnu.org>
195 * trans-expr.c (gfc_conv_operator_assign): Remove function.
196 * trans.h : Remove prototype for gfc_conv_operator_assign.
197 * trans-stmt.c (gfc_conv_elemental_dependencies): Initialize
198 derivde types with intent(out).
199 (gfc_trans_call): Add mask, count1 and invert arguments. Add
200 code to use mask for WHERE assignments.
201 (gfc_trans_forall_1): Use new arguments for gfc_trans_call.
202 (gfc_trans_where_assign): The gfc_symbol argument is replaced
203 by the corresponding code. If this has a resolved_sym, then
204 gfc_trans_call is called. The call to gfc_conv_operator_assign
206 (gfc_trans_where_2): Change the last argument in the call to
207 gfc_trans_where_assign.
208 * trans-stmt.h : Modify prototype for gfc_trans_call.
209 * trans.c (gfc_trans_code): Use new args for gfc_trans_call.
211 2009-05-08 Janus Weil <janus@gcc.gnu.org>
214 * intrinsic.c (gfc_is_intrinsic): Do not add the EXTERNAL attribute if
215 the symbol is a module procedure.
217 2009-05-08 Tobias Burnus <burnus@net-b.de>
219 * invoke.texi: Add do/recursion to the -fcheck= summary.
221 2009-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
224 * gfortran.texi: Document that we don't support variable FORMAT
227 2009-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
230 * error.c (error_print): Add missing break statement.
232 2009-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
235 * invoke.texi: Document that -fdollar-ok does not allow $ to be
236 used in IMPLICIT statement.
238 2009-05-06 Janus Weil <janus@gcc.gnu.org>
239 Paul Thomas <pault@gcc.gnu.org>
242 * decl.c (match_procedure_interface): New function to match the
243 interface for a PROCEDURE statement.
244 (match_procedure_decl): Call match_procedure_interface.
245 (match_ppc_decl): New function to match the declaration of a
246 procedure pointer component.
247 (gfc_match_procedure): Call match_ppc_decl.
248 (match_binding_attributes): Add new argument 'ppc' and handle the
249 POINTER attribute for procedure pointer components.
250 (match_procedure_in_type,gfc_match_generic): Added new argument to
251 match_binding_attributes.
252 * dump-parse-tree.c (show_expr,show_components,show_code_node): Handle
253 procedure pointer components.
254 * expr.c (free_expr0,gfc_copy_expr,gfc_simplify_expr): Handle EXPR_PPC.
255 (gfc_check_pointer_assign): Handle procedure pointer components, but no
257 (is_proc_ptr_comp): New function to determine if an expression is a
258 procedure pointer component.
259 * gfortran.h (expr_t): Add EXPR_PPC.
260 (symbol_attribute): Add new member 'proc_pointer_comp'.
261 (gfc_component): Add new member 'formal'.
262 (gfc_exec_op): Add EXEC_CALL_PPC.
263 (gfc_get_default_type): Changed first argument.
264 (is_proc_ptr_comp): Add prototype.
265 (gfc_match_varspec): Add new argument.
266 * interface.c (compare_actual_formal): Handle procedure pointer
268 * match.c (gfc_match_pointer_assignment,match_typebound_call): Handle
269 procedure pointer components.
270 * module.c (mio_expr): Handle EXPR_PPC.
271 * parse.c (parse_derived): Handle procedure pointer components.
272 * primary.c (gfc_match_varspec): Add new argument 'ppc_arg' and handle
273 procedure pointer components.
274 (gfc_variable_attr): Handle procedure pointer components.
275 (gfc_match_rvalue): Added new argument to gfc_match_varspec and changed
276 first argument of gfc_get_default_type.
277 (match_variable): Added new argument to gfc_match_varspec.
278 * resolve.c (resolve_entries,set_type,resolve_fl_parameter): Changed
279 first argument of gfc_get_default_type.
280 (resolve_structure_cons,resolve_actual_arglist): Handle procedure
282 (resolve_ppc_call): New function to resolve a call to a procedure
283 pointer component (subroutine).
284 (resolve_expr_ppc): New function to resolve a call to a procedure
285 pointer component (function).
286 (gfc_resolve_expr): Handle EXPR_PPC.
287 (resolve_code): Handle EXEC_CALL_PPC.
288 (resolve_fl_derived): Copy the interface for a procedure pointer
290 (resolve_symbol): Fix overlong line.
291 * st.c (gfc_free_statement): Handle EXEC_CALL_PPC.
292 * symbol.c (gfc_get_default_type): Changed first argument.
293 (gfc_set_default_type): Changed first argument of gfc_get_default_type.
294 (gfc_add_component): Initialize ts.type to BT_UNKNOWN.
295 * trans.h (gfc_conv_function_call): Renamed.
296 * trans.c (gfc_trans_code): Handle EXEC_CALL_PPC.
297 * trans-expr.c (gfc_conv_component_ref): Ditto.
298 (gfc_conv_function_val): Rename to 'conv_function_val', add new
299 argument 'expr' and handle procedure pointer components.
300 (gfc_conv_operator_assign): Renamed gfc_conv_function_val.
301 (gfc_apply_interface_mapping_to_expr): Handle EXPR_PPC.
302 (gfc_conv_function_call): Rename to 'gfc_conv_procedure_call', add new
303 argument 'expr' and handle procedure pointer components.
304 (gfc_get_proc_ptr_comp): New function to get the backend decl for a
305 procedure pointer component.
306 (gfc_conv_function_expr): Renamed gfc_conv_function_call.
307 (gfc_conv_structure): Handle procedure pointer components.
308 * trans-intrinsic.c (gfc_conv_intrinsic_funcall,
309 conv_generic_with_optional_char_arg): Renamed gfc_conv_function_call.
310 * trans-stmt.h (gfc_get_proc_ptr_comp): Add prototype.
311 * trans-stmt.c (gfc_trans_call): Renamed gfc_conv_function_call.
312 * trans-types.h (gfc_get_ppc_type): Add prototype.
313 * trans-types.c (gfc_get_ppc_type): New function to build a tree node
314 for a procedure pointer component.
315 (gfc_get_derived_type): Handle procedure pointer components.
317 2009-05-06 Tobias Burnus <burnus@net-b.de>
320 * resolve.c (resolve_symbol): Print no warning for implicitly
321 typed intrinsic functions.
323 2009-05-05 Janus Weil <janus@gcc.gnu.org>
326 * expr.c (gfc_check_pointer_assign): Check for statement functions and
327 internal procedures in procedure pointer assignments.
329 2009-04-28 Janus Weil <janus@gcc.gnu.org>
332 * resolve.c (resolve_symbol): Correctly copy the interface of a
333 PROCEDURE statement if the interface involves a RESULT variable.
335 2009-04-28 Janus Weil <janus@gcc.gnu.org>
339 * expr.c (gfc_check_pointer_assign): Correctly detect if the left hand
341 * parse.c (gfc_fixup_sibling_symbols): Don't check for ambiguity.
343 2009-04-28 Paul Thomas <pault@gcc.gnu.org>
346 * trans_expr.c (gfc_conv_procedure_call): Deep copy a derived
347 type parentheses argument if it is a variable with allocatable
350 2009-04-27 Ian Lance Taylor <iant@google.com>
352 * trans-intrinsic.c (DEFINE_MATH_BUILTIN): Add casts to enum
354 * trans-io.c (st_parameter_field): Add casts to enum type.
356 2009-04-26 Steven G. Kargl <kargl@gcc.gnu.org>
359 fortran/data.c (gfc_assign_data_value): If the lvalue is an
360 assumed character length entity in a data statement, then
361 return FAILURE to prevent segmentation fault.
363 2009-04-26 Jakub Jelinek <jakub@redhat.com>
365 * trans-decl.c: Include pointer-set.h.
366 (nonlocal_dummy_decl_pset, tree nonlocal_dummy_decls): New variables.
367 (gfc_nonlocal_dummy_array_decl): New function.
368 (gfc_get_symbol_decl): Call it for non-local dummy args with saved
370 (gfc_get_symbol_decl): Set DECL_BY_REFERENCE when needed.
371 (gfc_generate_function_code): Initialize nonlocal_dummy_decl{s,_pset},
372 chain it to outermost block's vars, destroy it afterwards.
373 * Make-lang.in (trans-decl.o): Depend on pointer-set.h.
375 2009-04-25 Janus Weil <janus@gcc.gnu.org>
378 * decl.c (gfc_match_import): Use 'sym->name' instead of 'name'.
379 They differ if the symbol has been use-renamed.
381 2009-04-24 Ian Lance Taylor <iant@google.com>
383 * gfortran.h (enum gfc_symbol_type): New named enum type, broken
384 out of struct gfc_symbol.
385 (struct gfc_symbol): Use enum gfc_symbol_type.
386 (enum gfc_array_ref_dimen_type): New named enum type, broken out
387 of struct gfc_array_ref).
388 (struct gfc_array_ref): Use enum gfc_array_ref_dimen_type.
389 (mod_pointee_as): Update declaration.
390 * decl.c (add_global_entry): Change type to enum gfc_symbol_type.
391 (gfc_mod_pointee_as): Change return type to "match".
392 * module.c (mio_array_ref): Add cast to enum type.
393 (mio_symbol): Likewise.
394 * resolve.c (resolve_global_procedure): Change type to enum
396 * trans-io.c (gfc_build_st_parameter): Change type to unsigned
399 2009-04-24 Daniel Kraft <d@domob.eu>
401 * gfortran.h (gfc_get_typebound_proc): Removed as macro, now a function.
402 (struct gfc_symtree): Moved `typebound' member inside union.
403 (struct gfc_namespace): Add `tb_sym_root' as new symtree to sort out
404 type-bound procedures there.
405 (gfc_get_tbp_symtree): New procedure.
406 * symbol.c (tentative_tbp_list): New global.
407 (gfc_get_namespace): NULL new `tb_sym_root' member.
408 (gfc_new_symtree): Removed initialization of `typebound' member.
409 (gfc_undo_symbols): Process list of tentative tbp's.
410 (gfc_commit_symbols): Ditto.
411 (free_tb_tree): New method.
412 (gfc_free_namespace): Call it.
413 (gfc_get_typebound_proc): New method.
414 (gfc_get_tbp_symtree): New method.
415 (gfc_find_typebound_proc): Adapt to structural changes of gfc_symtree
416 and gfc_namespace with regards to tbp's.
417 * dump-parse-tree.c (show_typebound): Ditto.
418 * primary.c (gfc_match_varspec): Ditto. Don't reference tbp-symbol
419 as it isn't a symbol any longer.
420 * module.c (mio_typebound_symtree): Adapt to changes.
421 (mio_typebound_proc): Ditto, create symtrees using `gfc_get_tbp_symtree'
422 rather than `gfc_get_sym_tree'.
423 (mio_f2k_derived): Ditto.
424 * decl.c (match_procedure_in_type): Ditto.
425 (gfc_match_generic): Ditto. Don't reference tbp-symbol.
426 * resolve.c (check_typebound_override): Adapt to changes.
427 (resolve_typebound_generic): Ditto.
428 (resolve_typebound_procedures): Ditto.
429 (ensure_not_abstract_walker): Ditto.
430 (ensure_not_abstract): Ditto.
431 (resolve_typebound_procedure): Ditto, ignore erraneous symbols (for
432 instance, through removed tentative ones).
433 * gfc-internals.texi (Type-bound procedures): Document changes.
435 2009-04-24 Janus Weil <janus@gcc.gnu.org>
439 * symbol.c (gfc_copy_formal_args_intr): Set attr.flavor and attr.dummy
440 for the formal arguments.
442 2009-04-21 Taras Glek <tglek@mozilla.com>
444 * f95-lang.c: Update GTY annotations to new syntax.
445 * trans-intrinsic.c: Likewise.
446 * trans-io.c: Likewise.
449 2009-04-22 Janus Weil <janus@gcc.gnu.org>
452 * decl.c (add_hidden_procptr_result): Bugfix for procptr results.
453 (match_procedure_decl): Set if_source.
454 * expr.c (gfc_check_pointer_assign): Bugfix: Return after error.
455 And: Check interface also for IFSRC_UNKNOWN (return type may be known).
456 * gfortran.h (typedef enum ifsrc): Remove IFSRC_USAGE,
457 add documentation. Rename copy_formal_args and copy_formal_args_intr.
458 * interface.c (gfc_compare_interfaces): Check for return types,
459 handle IFSRC_UNKNOWN.
460 (compare_intr_interfaces,compare_actual_formal_intr): Obsolete, removed.
461 (gfc_procedure_use): Modified handling of intrinsics.
462 * intrinsic.c (add_functions): Bugfix for "dim".
463 * resolve.c (resolve_intrinsic): New function to resolve intrinsics,
464 which copies the interface from isym to sym.
465 (resolve_procedure_expression,resolve_function): Use new function
467 (resolve_symbol): Add function attribute for externals with return type
468 and use new function 'resolve_intrinsic'.
469 * symbol.c (ifsrc_types): Remove string for IFSRC_USAGE.
470 (copy_formal_args): Renamed to gfc_copy_formal_args.
471 (copy_formal_args_intr): Renamed to gfc_copy_formal_args_intr.
472 * trans-const.c (gfc_conv_const_charlen): Handle cl==NULL.
474 2009-04-21 Joseph Myers <joseph@codesourcery.com>
476 * ChangeLog, ChangeLog-2002, ChangeLog-2003, ChangeLog-2004,
477 ChangeLog-2005, ChangeLog-2006, ChangeLog-2007, ChangeLog-2008,
478 ChangeLog.ptr, config-lang.in, ioparm.def, mathbuiltins.def: Add
479 copyright and license notices.
480 * ChangeLog, ChangeLog-2005, ChangeLog-2006, ChangeLog-2007,
481 ChangeLog-2008: Correct dates.
483 2009-04-20 Tobias Burnus <burnus@net-b.de>
486 * scanner.c (load_line): Fix bogus "&" compile-time diagnostic.
488 2009-04-20 Paul Thomas <pault@gcc.gnu.org>
491 * resolve.c (is_sym_host_assoc): New function.
492 (resolve_fl_derived): Call it when checking PRIVATE components
493 of PUBLIC derived types. Change gfc_error to a gfc_notify_std
495 (resolve_fl_namelist): Call it twice to check for host
498 2009-04-20 Ian Lance Taylor <iant@google.com>
500 * module.c (import_iso_c_binding_module): Add casts to enum type.
501 * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Change op to enum
503 (gfc_conv_intrinsic_anyall): Likewise.
504 (gfc_conv_intrinsic_arith): Likewise.
505 (gfc_conv_intrinsic_minmaxloc): Likewise.
506 (gfc_conv_intrinsic_minmaxval): Likewise.
507 (gfc_conv_intrinsic_bitop): Likewise.
508 (gfc_conv_intrinsic_singlebitop): Likewise.
509 (gfc_conv_intrinsic_strcmp): Likewise.
511 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
512 Jakub Jelinek <jakub@redhat.com>
515 * trans.h (OMPWS_WORKSHARE_FLAG, OMPWS_CURR_SINGLEUNIT,
516 OMPWS_SCALARIZER_WS, OMPWS_NOWAIT): Define.
517 (ompws_flags): New extern decl.
518 * trans-array.c (gfc_trans_scalarized_loop_end): Build OMP_FOR
519 for the outer dimension if ompws_flags allow it.
520 * trans.c (gfc_generate_code): Clear ompws_flags.
521 * trans-expr.c (gfc_trans_assignment_1): Allow worksharing
522 array assignments inside of !$omp workshare.
523 * trans-stmt.c (gfc_trans_where_3): Similarly for where statements
525 * trans-openmp.c (ompws_flags): New variable.
526 (gfc_trans_omp_workshare): Rewritten.
528 2009-04-11 Daniel Kraft <d@domob.eu>
531 * gfortran.h (struct gfc_charlen): New field `passed_length' to store
532 the actual passed string length for dummy arguments.
533 * trans-decl.c (gfc_create_string_length): Formatting fixes and added
534 assertion, moved a local variable into the innermost block it is needed.
535 (create_function_arglist): Removed TODO about the check being
536 implemented and initialize cl->passed_length here.
537 (add_argument_checking): New method.
538 (gfc_generate_function_code): Call the argument checking method.
540 2009-04-11 Janus Weil <janus@gcc.gnu.org>
543 * symbol.c (check_conflict): Reject procedure pointers for -std=f95.
545 2009-04-11 Daniel Franke <franke.daniel@gmail.com>
547 * resolve.c (resolve_global_procedure): Enable whole-file checking for
548 procedures that are declared later in the file.
550 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
553 * trans.c (gfc_allocate_with_status): Fix type mismatches
556 2009-04-10 Daniel Franke <franke.daniel@gmail.com>
559 * expr.c (find_array_section): Leave early on zero-sized arrays.
561 2009-04-09 Janus Weil <janus@gcc.gnu.org>
564 * decl.c (add_hidden_procptr_result): New function for handling
565 procedure pointer return values by adding a hidden result variable.
566 (variable_decl,match_procedure_decl,gfc_match_function_decl,
567 gfc_match_subroutine,gfc_match_end,attr_decl1): Handle procedure pointer
569 * parse.c (parse_interface): Add EXTERNAL attribute only after
570 FUNCTION/SUBROUTINE declaration is complete.
571 * primary.c (replace_hidden_procptr_result): New function for replacing
572 function symbol by hidden result variable.
573 (gfc_match_rvalue,match_variable): Replace symbol by hidden result
575 * resolve.c (resolve_contained_fntype,resolve_function,resolve_variable,
576 resolve_symbol): Allow for procedure pointer function results.
577 (resolve_fl_procedure): Conflict detection moved here from
579 * symbol.c (gfc_check_function_type): Allow for procedure pointer
581 (check_conflict): Move some conflict detection to resolution stage.
582 * trans-types.c (gfc_sym_type,gfc_get_function_type): Handle hidden
585 2009-04-08 Jakub Jelinek <jakub@redhat.com>
587 * trans-types.c (gfc_init_types): Ensure gfc_integer_types doesn't
588 contain TYPE_STRING_FLAG types.
590 2009-04-08 Janne Blomqvist <jb@gcc.gnu.org>
593 * invoke.texi (fdollar-ok): Fix typo.
595 2009-04-08 Daniel Franke <franke.daniel@gmail.com>
598 * invoke.texi (fdollar-ok): Clarify limitations.
600 2009-04-08 Paul Thomas <pault@gcc.gnu.org>
603 * trans-array.c (gfc_trans_deferred_array): Return if this
604 is a result variable.
606 2009-04-07 Janus Weil <janus@gcc.gnu.org>
609 * trans-decl.c (gfc_get_symbol_decl): Correctly set decl location for
610 procedure pointer decls.
612 2009-04-07 Janus Weil <janus@gcc.gnu.org>
615 * expr.c (gfc_check_pointer_assign): Enable interface check for
617 * gfortran.h: Add copy_formal_args_intr.
618 * interface.c (gfc_compare_interfaces): Call gfc_compare_intr_interfaces
619 if second argument is an intrinsic.
620 (compare_intr_interfaces): Correctly set attr.function, attr.subroutine
622 (compare_parameter): Call gfc_compare_interfaces also for intrinsics.
623 * resolve.c (resolve_specific_f0,resolve_specific_s0): Don't resolve
624 intrinsic interfaces here. Must happen earlier.
625 (resolve_symbol): Resolution of intrinsic interfaces moved here from
626 resolve_specific_..., and formal args are now copied from intrinsic
628 * symbol.c (copy_formal_args_intr): New function to copy the formal
629 arguments from an intinsic procedure.
631 2009-04-06 Paul Thomas <pault@gcc.gnu.org>
634 * dependency.c (ref_same_as_full_array): New function.
635 (gfc_dep_resolver): Call it.
637 2009-04-06 Janus Weil <janus@gcc.gnu.org>
640 * decl.c (match_procedure_decl): Fix double declaration problems with
641 PROCEDURE statements.
642 * symbol.c (gfc_add_type): Ditto.
644 2009-04-06 Paul Thomas <pault@gcc.gnu.org>
647 * trans-array.c (gfc_conv_array_ref): If the symbol has the
648 temporary attribute use the array_spec for the bounds.
649 * gfortran.h : Add the temporary field to the structure
651 * trans-stmt.c (forall_make_variable_temp): Set the symbol's
654 2009-04-05 Daniel Franke <franke.daniel@gmail.com>
657 * trans-array.c (gfc_trans_array_constructor_value): Shadow
658 implied do-loop variable to avoid spurious middle-end warnings.
660 2009-04-04 Tobias Burnus <burnus@net-b.de>
663 * trans-decl.c (gfc_generate_function_code): Move recursive
664 check to the right position.
666 2009-04-04 Paul Thomas <pault@gcc.gnu.org>
669 * trans-common.c (translate_common): Do not offset the whole
672 2009-04-03 Tobias Burnus <burnus@net-b.de>
675 * resolve.c (resolve_common_vars): Add FL_VARIABLE to symbol
676 if it is not a procedure pointer.
677 * primary.c (match_actual_arg): Ditto.
679 2009-03-31 Joseph Myers <joseph@codesourcery.com>
681 PR preprocessor/15638
682 * cpp.c (cb_cpp_error): Handle CPP_DL_FATAL.
684 2009-03-30 Steven G. Kargl <kargls@comcast.net>
687 * trans-stmt.c(gfc_trans_allocate): Add translation of ERRMSG.
688 (gfc_trans_deallocate): Add translation of ERRMSG. Remove stale
689 comments. Minor whitespace cleanup.
690 * resolve.c(is_scalar_expr_ptr): Whitespace cleanup.
691 (resolve_deallocate_expr (gfc_expr *e): Update error message.
692 (resolve_allocate_expr): Remove dead code. Update error message.
693 Move error checking to ...
694 (resolve_allocate_deallocate): ... here. Add additional error
695 checking for STAT, ERRMSG, and allocate-objects.
696 * match.c(gfc_match_allocate,gfc_match_deallocate): Parse ERRMSG.
697 Check for redundant uses of STAT and ERRMSG. Reword error message
698 and add checking for pointer, allocatable, and proc_pointer attributes.
700 2009-03-30 Paul Thomas <pault@gcc.gnu.org>
705 * symbol.c : Add gfc_global_ns_list.
706 * decl.c (add_global_entry): Set the namespace ('ns') field.
707 * gfortran.h : Add the resolved field to gfc_namespace. Add the
708 namespace ('ns') field to gfc_gsymbol. Add flag_whole_file to
709 gfc_option_t. Add the prototype for gfc_free_dt_list.
710 * lang.opt : Add the whole-file option.
711 * invoke.texi : Document the whole-file option.
712 * resolve.c (resolve_global_procedure): If the fwhole-file
713 option is set, reorder gsymbols to ensure that translation is
714 in the right order. Resolve the gsymbol's namespace if that
715 has not occurred and then check interfaces.
716 (resolve_function): Move call to resolve_global_procedure.
717 (resolve_call): The same.
718 (resolve_codes): Store the current labels_obstack.
719 (gfc_resolve) : Return if the namespace is already resolved.
720 trans-decl.c (gfc_get_extern_function_decl): If the whole_file
721 option is selected, use the backend_decl of a gsymbol, if it is
723 parse.c (add_global_procedure, add_global_program): If the flag
724 whole-file is set, add the namespace to the gsymbol.
725 (gfc_parse_file): On -fwhole-file, put procedure namespaces on
726 the global namespace list. Rearrange to do resolution of all
727 the procedures in a file, followed by their translation.
728 * options.c (gfc_init_options): Add -fwhole-file.
729 (gfc_handle_option): The same.
731 2009-03-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
733 * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_HUGE_VAL
734 family of intrinsics instead of BUILT_IN_INF family.
735 * trans-intrinsics.c (gfc_conv_intrinsic_nearest): Use
736 BUILT_IN_HUGE_VAL instead of BUILT_IN_INF.
738 2009-03-30 Jakub Jelinek <jakub@redhat.com>
740 * trans-types.c (gfc_sym_type, gfc_return_by_reference): For
741 sym->attr.result check sym->ns->proc_name->attr.is_bind_c.
743 2009-03-30 Joseph Myers <joseph@codesourcery.com>
745 PR rtl-optimization/323
746 * options.c (gfc_post_options): Set
747 flag_excess_precision_cmdline. Give an error for
748 -fexcess-precision=standard for processors where the option is
751 2009-03-29 Joseph Myers <joseph@codesourcery.com>
753 PR preprocessor/34695
754 * cpp.c (cb_cpp_error): New.
755 (gfc_cpp_post_options): Don't set cpp_option->inhibit_warnings.
756 Don't check cpp_errors (cpp_in).
757 (gfc_cpp_init_0): Set cb->error.
759 2009-03-29 Steven G. Kargl <kargl@gcc.gnu.org>
762 * gfortran.h: Add ARITH_PROHIBIT to arith enum.
763 expr.c (gfc_match_init_expr): Add global variable init_flag to
764 flag matching an initialization expression.
765 (check_intrinsic_op): Move no longer reachable error message to ...
766 * arith.c (arith_power): ... here. Remove gfc_ prefix in
767 gfc_arith_power. Use init_flag. Allow constant folding of x**y
768 when y is REAL or COMPLEX.
769 (eval_intrinsic): Remove restriction that y in x**y must be INTEGER
770 for constant folding.
771 * gfc_power: Update gfc_arith_power to arith_power
773 2009-03-29 Daniel Kraft <d@domob.eu>
776 * gfortran.h (struct gfc_typebound_proc): Added new flag `deferred' and
777 added a comment explaining DEFERRED binding handling.
778 * decl.c (match_binding_attributes): Really match DEFERRED attribute.
779 (match_procedure_in_type): Really match PROCEDURE(interface) syntax
780 and do some validity checks for DEFERRED and this construct.
781 * module.c (binding_overriding): New string constant for DEFERRED.
782 (mio_typebound_proc): Module-IO DEFERRED flag.
783 * resolve.c (check_typebound_override): Ensure that a non-DEFERRED
784 binding is not overridden by a DEFERRED one.
785 (resolve_typebound_procedure): Allow abstract interfaces as targets
786 for DEFERRED bindings.
787 (ensure_not_abstract_walker), (ensure_not_abstract): New methods.
788 (resolve_fl_derived): Use new `ensure_not_abstract' method for
789 non-ABSTRACT types extending ABSTRACT ones to ensure each DEFERRED
790 binding is overridden.
791 (check_typebound_baseobject): New method.
792 (resolve_compcall), (resolve_typebound_call): Check base-object of
793 the type-bound procedure call.
794 * gfc-internals.texi (Type-bound procedures): Document a little bit
795 about internal handling of DEFERRED bindings.
797 2009-03-29 Tobias Schlüter <tobi@gcc.gnu.org>
800 * gfortran.h (gfc_st_label): Fix comment.
801 (gfc_exec_op): Add statement code EXEC_END_BLOCK for end of block.
802 * parse.c (accept_statement): Use EXEC_END_BLOCK for END IF and
803 END SELECT with labels.
804 (check_do_closure): Fix formatting.
805 (parse_do_block): Fix typo in error message.
806 * resolve.c (code_stack): Remove tail member. Update comment to
807 new use of reachable_labels.
808 (reachable_labels): Rename to ...
809 (find_reachable_labels): ... this. Overhaul. Update preceding
811 (resolve_branch): Fix comment preceding function. Rewrite.
812 (resolve_code): Update call to find_reachable_labels. Add code to
813 deal with EXEC_END_BLOCK.
814 * st.c (gfc_free_statement): Add code to deal with EXEC_END_BLOCK.
815 Add 2009 to copyright years.
816 * trans.c (gfc_trans_code): Likewise on both counts.
818 2009-03-31 Paul Thomas <pault@gcc.gnu.org>
821 * expr.c (gfc_check_assign): Allow pointer components when
825 * resolve.c (check_data_variable): Treat pointer arrays with
828 2009-03-31 Paul Thomas <pault@gcc.gnu.org>
831 * trans-expr.c (gfc_trans_assignment_1): Ensure temporaries
832 have a string_length.
834 2009-03-28 Tobias Burnus <burnus@net-b.de>
837 * trans-stmt.c (gfc_trans_simple_do, gfc_trans_do):
838 Add GFC_RTCHECK_DO support.
839 * option.c (gfc_handle_runtime_check_option): Enable GFC_RTCHECK_DO.
840 * invoke.texi (-fcheck): Document "do" option.
842 2009-03-28 Paul Thomas <pault@gcc.gnu.org>
845 * trans-array.c (get_elemental_fcn_charlen): Remove.
846 (get_array_charlen): New function to replace previous.
848 2009-03-28 Paul Thomas <pault@gcc.gnu.org>
851 * parse.c (parse_derived): Do not break on finding pointer,
852 allocatable or private components.
854 2009-03-28 Tobias Burnus <burnus@net-b.de>
857 * option.c (gfc_handle_runtime_check_option): Enable recursion check.
858 * trans-decl.c (gfc_generate_function_code): Add recursion check.
859 * invoke.texi (-fcheck): Add recursive option.
861 2009-03-28 Tobias Burnus <burnus@net-b.de>
864 * resolve.c (gfc_resolve_iterator): Add zero-loop warning.
866 2009-03-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
867 Paul Thomas <pault@gcc.gnu.org>
868 Tobias Burnus <burnus@net-b.de>
870 * gfortran.h (gfc_option_t): Add rtcheck.
871 * lang.opt: New option -fcheck.
872 * libgfortran.h: Add GFC_RTCHECK_* constants.
873 * invoke.texi: Document -fcheck.
874 * options.c (gfc_handle_runtime_check_option): New function.
875 (gfc_init_options,gfc_post_options,gfc_handle_option):
878 2009-03-27 Richard Guenther <rguenther@suse.de>
880 * trans-array.c (gfc_conv_descriptor_data_addr): Use
881 gfc_build_addr_expr instead of build_fold_addr_expr.
882 (gfc_trans_allocate_array_storage, gfc_trans_array_constructor_value,
883 gfc_trans_constant_array_constructor, gfc_conv_array_data,
884 gfc_conv_expr_descriptor, gfc_conv_array_parameter): Likewise.
885 * trans-expr.c (gfc_conv_missing_dummy, gfc_conv_variable,
886 gfc_conv_function_val, gfc_conv_operator_assign,
887 gfc_conv_subref_array_arg, gfc_conv_function_call,
888 gfc_conv_expr_reference, gfc_trans_scalar_assign): Likewise.
889 * trans-intrinsic.c (gfc_conv_intrinsic_exponent,
890 gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
891 gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax_char,
892 gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_spacing,
893 gfc_conv_intrinsic_rrspacing, gfc_conv_intrinsic_set_exponent,
894 gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
895 gfc_conv_intrinsic_si_kind, gfc_conv_intrinsic_trim): Likewise.
896 * trans-io.c (gfc_trans_io_runtime_check, set_parameter_ref,
897 gfc_convert_array_to_string, gfc_trans_open, gfc_trans_close,
898 build_filepos, gfc_trans_inquire, gfc_trans_wait,
899 nml_get_addr_expr, transfer_namelist_element, build_dt,
900 gfc_trans_dt_end, transfer_array_component, transfer_expr,
901 transfer_array_desc, gfc_trans_transfer): Likewise.
902 * trans-stmt.c (gfc_trans_allocate, gfc_trans_deallocate): Likewise.
903 * trans.c (gfc_build_addr_expr): Mark the base of the address
906 2009-03-27 Tobias Burnus <burnus@net-b.de>
908 * gfortran.h (enum init_local_real.): Add GFC_INIT_REAL_SNAN.
909 (gfc_expr): Add is_snan.
910 * trans-const.c (gfc_conv_mpfr_to_tree): Support SNaN.
911 (gfc_conv_constant_to_tree): Update call to gfc_conv_mpfr_to_tree.
912 * trans-const.h (gfc_conv_mpfr_to_tree): Update prototype.
913 * resolve.c (build_default_init_expr): Update call.
914 * target-memory.c (encode_float): Ditto.
915 * trans-intrinsic.c (gfc_conv_intrinsic_aint,gfc_conv_intrinsic_mod,
917 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
919 * lang.opt: Unify help texts for -I, -Wconversion, -d, -fopenmp,
922 2009-03-06 Alexandre Oliva <aoliva@redhat.com>
924 * simplify.c (gfc_simplify_transfer): Zero-initialize the
927 2009-02-27 Tobias Burnus <burnus@net-b.de>
930 * module.c (read_md5_from_module_file): Add missing quote.
932 2009-02-27 Tobias Burnus <burnus@net-b.de>
935 * module.c (read_md5_from_module_file): Include mod version
938 2009-02-26 Paul Thomas <pault@gcc.gnu.org>
941 * interface.c (compare_type_rank_if): Return 1 if the symbols
942 are the same and deal with external procedures where one is
943 identified to be a function or subroutine by usage but the
946 2009-02-26 Paul Thomas <pault@gcc.gnu.org>
949 * trans-array.c (gfc_conv_array_initializer): Convert all
950 expressions rather than ICEing.
952 2009-02-21 Thomas Koenig <tkoenig@gcc.gnu.org>
955 * array.c (ref_dimen_size): Rename to gfc_ref_dimen_size,
956 make global. Change function name in error messages.
957 (ref_size): Change ref_dimen_size to gfc_ref_dimen_size.
958 (gfc_array_ref_shape): Likewise.
959 * gfortran.h: Add prototype for gfc_ref_dimen_size.
960 * simplify.c (simplify_bound_dim): Add ref argument.
961 If the reference isn't a full array, return one for
962 the lower bound and the extent for the upper bound.
963 (simplify_bound): For array sections, take as from the
964 argument. Add reference to all to simplify_bound_dim.
966 2009-02-19 Daniel Franke <franke.daniel@gmail.com>
968 * scanner.c (load_line): At end of line, skip '\r' without setting
971 2009-02-18 Daniel Kraft <d@domob.eu>
973 * gfortran.texi: New chapter about compiler characteristics.
974 (Compiler Characteristics): Document KIND type parameters here.
976 2009-02-18 Tobias Burnus <burnus@net-b.de>
978 * intrinsic.texi (MALLOC): Make example more portable.
980 2009-02-13 Mikael Morin <mikael.morin@tele2.fr>
983 * module.c (gfc_dump_module,gfc_use_module): Add module
986 2009-02-13 Paul Thomas <pault@gcc.gnu.org>
990 * trans-expr.c (gfc_conv_function_val): Stabilize Cray-pointer
991 function references to ensure that a valid expression is used.
992 (gfc_conv_function_call): Pass Cray pointers to procedures.
994 2009-02-03 Jakub Jelinek <jakub@redhat.com>
996 * gfortranspec.c (lang_specific_driver): Update copyright notice
999 2009-01-28 Paul Thomas <pault@gcc.gnu.org>
1003 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Use the array
1004 descriptor ubound for UBOUND, when the array lbound == 1.
1006 2009-01-27 Daniel Kraft <d@domob.eu>
1009 * trans-stmt.c (gfc_conv_elemental_dependencies): Create temporary
1010 for the real type needed to make it work for subcomponent-references.
1012 2009-01-21 Daniel Kraft <d@domob.eu>
1014 * trans-stmt.c (gfc_conv_elemental_dependencies): Cleaned up comment.
1016 2009-01-20 Paul Thomas <pault@gcc.gnu.org>
1019 * resolve.c (check_host_association): Remove the matching to
1020 correct an incorrect host association and use manipulation of
1021 the expression instead.
1023 2009-01-20 Tobias Burnus <burnus@net-b.de>
1025 * invoke.texi (RANGE): RANGE also takes INTEGER arguments.
1027 2009-01-19 Mikael Morin <mikael.morin@tele2.fr>
1030 * simplify.c (simplify_bound): Don't use array specification
1031 if variable or component has subsequent references.
1033 2009-01-17 Paul Thomas <pault@gcc.gnu.org>
1036 * module.c (write_common_0): Add argument 'this_module' and
1037 check that non-use associated common blocks are written first.
1038 (write_common): Call write_common_0 twice, once with true and
1041 2009-01-17 Paul Thomas <pault@gcc.gnu.org>
1044 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Has
1045 been absorbed into gfc_conv_intrinsic_transfer. All
1046 references to it in trans-intrinsic.c have been changed
1047 accordingly. PR fixed by using a temporary for scalar
1048 character transfer, when the source is shorter than the
1051 2009-01-17 Paul Thomas <pault@gcc.gnu.org>
1054 * module.c (write_common_0): Revert patch of 2009-01-05.
1056 2009-01-16 Janus Weil <janus@gcc.gnu.org>
1059 * expr.c (gfc_check_pointer_assign): Allow use-associated procedure
1061 * trans-decl.c (get_proc_pointer_decl,gfc_create_module_variable):
1062 Enable procedure pointers as module variables.
1064 2009-01-14 Steven G. Kargl <kargl@gcc.gnu.org>
1066 * ChangeLog-2007: Clean out svn merge droppings.
1068 2009-01-10 Paul Thomas <pault@gcc.gnu.org>
1071 * target-memory.c (encode_derived): Encode NULL.
1073 2009-01-10 Paul Thomas <pault@gcc.gnu.org>
1076 * resolve.c (check_host_association): Use the symtree name to
1077 search for a potential contained procedure, since this is the
1078 name by which it would be referenced.
1080 2009-01-06 Thomas Koenig <tkoenig@gcc.gnu.org>
1083 * interface.c (gfc_procedure_use): Don't warn about functions
1085 * symbol.c (generate_isocbinding_symbol): Mark c_loc and
1088 2009-01-05 Paul Thomas <pault@gcc.gnu.org>
1091 * module.c (write_common_0): Use the name of the symtree rather
1092 than the common block, to determine if the common has been
1095 2009-01-05 Daniel Franke <franke.daniel@gmail.com>
1098 * check.c (gfc_check_random_seed): Added size check for GET
1099 dummy argument, reworded error messages to follow common pattern.
1101 2009-01-05 Thomas Koenig <tkoenig@gcc.gnu.org>
1104 * trans-types.c (gfc_get_derived_type): Check for the
1105 presence of derived->ns->proc_name before
1106 accessing derived->ns->proc_name->attr.flavor .
1107 * resolve.c (resolve_symbol): Likewise.
1109 2009-01-05 Paul Thomas <pault@gcc.gnu.org>
1112 * gfortran.h : Add bit to gfc_expr 'user_operator'
1113 * interface.c (gfc_extend_expr): Set the above if the operator
1114 is substituted by a function.
1115 * resolve.c (check_host_association): Return if above is set.
1117 2009-01-04 Mikael Morin <mikael.morin@tele2.fr>
1120 * ChangeLog-2008: Fix function name.
1123 * dependency.c (gfc_check_argument_var_dependency):
1124 Move the check for pointerness inside the if block
1125 so that it doesn't affect the return value.
1128 * trans-stmt.c (gfc_trans_call):
1129 Add the dependency code after the loop bounds calculation one.
1131 2009-01-04 Daniel Franke <franke.daniel@gmail.com>
1133 * intrinsic.c (do_simplify): Removed already implemented TODO.
1135 2009-01-04 Daniel Franke <franke.daniel@gmail.com>
1138 * simplify.c (gfc_simplify_merge): New.
1139 * intrinsic.h (gfc_simplify_merge): New prototype.
1140 * intrinsic.c (add_functions): Added simplification for MERGE.
1142 2009-01-04 Mikael Morin <mikael.morin@tele2.fr>
1145 * gfortran.h (gfc_is_data_pointer): Added prototype
1146 * resolve.c (gfc_iso_c_func_interface):
1147 Use gfc_is_data_pointer to test for pointer attribute.
1148 * dependency.c (gfc_is_data_pointer):
1149 Support pointer-returning functions.
1151 2009-01-03 Daniel Franke <franke.daniel@gmail.com>
1153 * symbol.c (save_symbol): Don't SAVE function results.
1155 2009-01-03 Paul Thomas <pault@gcc.gnu.org>
1158 * resolve.c (resolve_call): When searching for proper host
1159 association, use symtree rather than symbol. For everything
1160 except generic subroutines, substitute the symtree in the call
1161 rather than the symbol.
1164 Copyright (C) 2009 Free Software Foundation, Inc.
1166 Copying and distribution of this file, with or without modification,
1167 are permitted in any medium without royalty provided the copyright
1168 notice and this notice are preserved.