summaryrefslogtreecommitdiffstats
path: root/gcc/fortran
Commit message (Collapse)AuthorAgeFilesLines
...
* 2012-05-04 Tobias Burnus <burnus@net-b.de>burnus2012-05-042-0/+8
| | | | | | | | | | | | | | | | PR fortran/53111 * resolve.c (resolve_fl_derived): Fix -std=f95 diagnostic for generic vs. DT names. 2012-05-04 Tobias Burnus <burnus@net-b.de> PR fortran/53111 * gfortran.dg/constructor_7.f90: New. * gfortran.dg/constructor_8.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187174 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-05-03 Tobias Burnus <burnus@net-b.de>burnus2012-05-032-38/+16
| | | | | | | | | | | | | | | | PR fortran/52864 * interface.c (compare_parameter_intent): Remove. (check_intents): Remove call, handle CLASS pointer. (compare_actual_formal): Handle CLASS pointer. 2012-05-03 Tobias Burnus <burnus@net-b.de> PR fortran/52864 * gfortran.dg/pointer_intent_7.f90: New. * gfortran.dg/pure_formal_3.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187076 138bc75d-0d04-0410-961f-82ee72b054a4
* * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.chubicka2012-04-302-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c (cgraph_add_to_same_comdat_group): Remove. (cgraph_add_asm_node): Move to cgraphunit.c. (cgraph_make_decl_local): Move to symtab.c (cgraph_make_node_local_1): Update. (cgraph_can_remove_if_no_direct_calls_and): Update. (used_from_object_file_p): Update. (resolution_used_from_other_file_p): Move to symtab.c (cgraph_used_from_object_file_p): move to symtab.c (verify_cgraph_node): Verify same comdat groups. * cgraph.h (cgraph_asm_node): Rename to ... (asm_node): ... this one. (cgraph_asm_nodes): Rename to ... (asm_nodes): ... this one. (symtab_add_to_same_comdat_group): New function. (symtab_dissolve_same_comdat_group_list): New function. (symtab_used_from_object_file_p): Declare. (symtab_make_decl_local): Declare. (cgraph_add_to_same_comdat_group): Remove. (cgraph_add_asm_node): Remove. (cgraph_used_from_object_file_p, varpool_used_from_object_file_p): Remove. (cgraph_finalize_compilation_unit): Rename to ... (finalize_compilation_unit): ... this one. (cgraph_optimize): Rename to .... (compile): ... this one. (add_asm_node): Declare. (fixup_same_cpp_alias_visibility): Declare. (cgraph_make_decl_local): Remove. (varpool_assemble_pending_decls): Rename to ... (varpool_output_variables): ... this one. (varpool_remove_unreferenced_decls): Remove. * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups. (preserve_function_body_p): Make static. * toplev.c (compile_file): Update comments; update. * cgraphunit.c: Update comments. (cgraph_expand_all_functions): Rename to ... (expand_all_functions): ... this one; update. (cgraph_mark_functions_to_output): Rename to ... (mark_functions_to_output): ... this one; cleanup. (cgraph_output_pending_asms): Remove prototype. (asm_nodes, asm_last_node): New static vars. (cgraph_process_new_functions): Update. (cgraph_reset_node): Cleanup; add comment. (cgraph_add_new_function): Update. (cgraph_output_pending_asms): Rename to ... (output_asm_statements): ... this one. (add_asm_node): New function. (fixup_same_cpp_alias_visibility): New function based on code in cgraph_analyze_function. (cgraph_analyze_function): Use it. (cgraph_order_sort): Update. (cgraph_output_in_order): Update. (cgraph_function_versioning): Update. (cgraph_optimize): Rename to ... (compile): ... this one; initialize streamer hooks here. (cgraph_finalize_compilation_unit): Rename to ... (finalize_compilation_unit): ... this one; do not initialize streamer hook here. * lto-streamer-out.c (lto_output_toplevel_asms): Update. * dwarf2out.c: Update ocmment. * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group. * method.c (use_thunk): Likewise. * semantics.c (maybe_add_lambda_conv_op): Likewise. * decl2.c (maybe_emit_vtables): Likewise. (cp_write_global_declarations): Use finalize_compilation_unit. * parser.c (cp_parser_asm_definition): Use add_asm_node. * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node * c-decl.c (c_write_global_declarations): Use finalize_compilation_unit. * langhooks.c (write_global_declarations): Update. * ipa.c (cgraph_externally_visible_p): Update. (dissolve_same_comdat_group_list): Remove. (function_and_variable_visibility): Update. * symtab.c: Inlcude lto-streamer.h and rtl.h (ld_plugin_symbol_resolution_names): New. (symtab_add_to_same_comdat_group): New. (symtab_dissolve_same_comdat_group_list): New. (resolution_used_from_other_file_p): Move here from cgraph.c (symtab_used_from_object_file_p): New. (symtab_make_decl_local): New. * passes.c (register_pass): Update comments. * c-parser.c (c_parser_asm_definition): Update. * varpool.c (varpool_analyze_node): Use fixup_same_cpp_alias_visibility. (varpool_remove_unreferenced_decls): Make static. (varpool_assemble_pending_decls): Rename to ... (varpool_output_variables): ... this one; call varpool_remove_unreferenced_decls. (varpool_used_from_object_file_p): Remove. * gogo-tree.cc (Gogo::write_globals): Use finalize_compilation_unit. * gcc-interface/utils.c (rest_of_subprog_body_compilation): Update comment. (gnat_write_global_declarations): Use finalize_compilation_unit. * f95-lang.c (gfc_finish): Update comments. * lto.c (lto_main): Use compile (). * lto-partition.c (partition_cgraph_node_p): Use symtab_used_from_object_file_p. (partition_varpool_node_p): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186998 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-04-29 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig2012-04-292-0/+16
| | | | | | | | | | | | | | | PR fortran/53148 * frontend-passes.c (create_var): If the statement has a label, put the label around the block. 2012-04-29 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/53148 * gfortran.dg/function_optimize_12.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186942 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-04-25 Tobias Burnus <burnus@net-b.de>burnus2012-04-256-6/+78
| | | | | | | | | | | | | | | | | | | | | | PR fortran/52196 * lang.opt (Wrealloc-lhs, Wrealloc-lhs-all): New flags. * gfortran.h (gfc_option_t): Add them. * options.c (gfc_init_options, gfc_post_options, gfc_handle_option): Handle them. * invoke.texi: Document them. * trans-expr.c (realloc_lhs_warning): New function. (gfc_trans_arrayfunc_assign, alloc_scalar_allocatable_for_assignment, gfc_trans_assignment_1): Use it. 2012-04-25 Tobias Burnus <burnus@net-b.de> PR fortran/52196 * gfortran.dg/realloc_on_assign_14.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186806 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/steven2012-04-184-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | * targhooks.c (default_case_values_threshold): Fix code style nit. * stmt.c (add_case_node, expand_case): Move logic to remove/reduce case range and type folding from here... * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE type, as documented in tree.def fortran/ * trans-decl.c (gfc_trans_entry_master_switch): Build SWITCH_EXPR with NULL_TREE type instead of void_type_node. * trans-io.c (io_result): Likewise. * trans-stmt.c (gfc_trans_integer_select, gfc_trans_character_select): Likewise. go/ * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR with NULL_TREE type instead of void_type_node. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186579 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-04-12 Tobias Burnus <burnus@net-b.de>burnus2012-04-162-4/+16
| | | | | | | | | | | | | | | PR fortran/52864 * expr.c (gfc_check_vardef_context): Fix assignment check for pointer components. 2012-04-16 Tobias Burnus <burnus@net-b.de> PR fortran/52864 * gfortran.dg/pointer_intent_6.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186507 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-04-16 Janus Weil <janus@gcc.gnu.org>janus2012-04-162-4/+7
| | | | | | | | | | | | | | | PR fortran/52968 * class.c (gfc_build_class_symbol): Make sure the 'f2k_derived' namespace is present. 2012-04-16 Janus Weil <janus@gcc.gnu.org> PR fortran/52968 * gfortran.dg/typebound_call_23.f03: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186486 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-04-15 Janus Weil <janus@gcc.gnu.org>janus2012-04-152-1/+7
| | | | | | | | | | | | | | | PR fortran/51082 * trans-expr.c (gfc_conv_expr_reference): Check if the expression is a simple function call (or a more involved PPC reference). 2012-04-15 Janus Weil <janus@gcc.gnu.org> PR fortran/51082 * gfortran.dg/proc_ptr_comp_34.f90: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186465 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-04-14 Tobias Burnus <burnus@net-b.de>burnus2012-04-155-1/+30
| | | | | | | | | | | | | | | | | | | | | PR fortran/52916 PR fortran/40973 * gfortran.h (symbol_attribute): Add public_used. * interface.c (check_sym_interfaces, check_uop_interfaces, gfc_check_interfaces): Set it. * resolve.c (resolve_typebound_procedure): Ditto. * trans-decl.c (build_function_decl): Use it. 2012-04-14 Tobias Burnus <burnus@net-b.de> PR fortran/52916 PR fortran/40973 * gfortran.dg/public_private_module_3.f90: New. * gfortran.dg/public_private_module_4.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186464 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-04-11 Tobias Burnus <burnus@net-b.de>burnus2012-04-112-3/+12
| | | | | | | | | | | | | | PR fortran/52729 * resolve.c (resolve_symbol): Fix searching for parent NS decl. 2012-04-11 Tobias Burnus <burnus@net-b.de> PR fortran/52729 * gfortran.dg/block_11.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186318 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-04-08 Tobias Burnus <burnus@net-b.de>burnus2012-04-082-3/+14
| | | | | | | | | | | | | | | | | | | PR fortran/52751 * trans-decl.c (gfc_finish_var_decl): Don't set TREE_PUBLIC for PRIVATE module variables without C-binding label. PR fortran/40973 * trans-decl.c (build_function_decl): Ditto for procedures. 2012-04-08 Tobias Burnus <burnus@net-b.de> PR fortran/40973 PR fortran/52751 * gfortran.dg/public_private_module_2.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186223 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-04-07 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig2012-04-072-2/+24
| | | | | | | | | | | | | | | PR fortran/52893 * frontend-passes.c: Keep track of wether we are in an implicit DO loop; do not do function elimination if we are. 2012-04-07 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/52893 * gfortran.dg/function_optimize_11.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186213 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-04-06 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig2012-04-062-3/+24
| | | | | | | | | | | | | | | PR fortran/52668 * module.c: Only mark symbols as use_only if they have been imported via an only list. 2012-04-06 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/52668 * gfortran.dg/use_only_6.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186199 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-03-28 Paul Thomas <pault@gcc.gnu.org>pault2012-03-283-4/+13
| | | | | | | | | | | | | | | | | | | | | | | Tobias Burnus <burnus@gcc.gnu.org> PR fortran/52652 * match.c (gfc_match_allocate, gfc_match_deallocate): Change "not.. or" to "neither.. nor". * parse.c (decode_specification_statement): Correct error in chpice of matching function for "allocatable". 2012-03-28 Paul Thomas <pault@gcc.gnu.org> Tobias Burnus <burnus@gcc.gnu.org> PR fortran/52652 * gfortran.dg/allocate_class_1.f90 : Change error test. * gfortran.dg/allocate_with_typespec_4.f90 : Change error test. * gfortran.dg/allocate_alloc_opt_1.f90 : Change error test. * gfortran.dg/deallocate_alloc_opt_1.f90 : Change error test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185924 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove unused GFC_MAX_LINE macro.jb2012-03-232-1/+4
| | | | | | | | | 2012-03-23 Janne Blomqvist <jb@gcc.gnu.org> * gfortran.h (GFC_MAX_LINE): Remove unused macro. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185728 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/52559fxcoudert2012-03-192-11/+15
| | | | | | | | | | * error.c (gfc_widechar_display_length): Consider tabs as one character wide, as they're displayed as spaces. (show_locus): Move tab handling to... (print_wide_char_into_buffer): ... here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185517 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-03-17 Tobias Burnus <burnus@net-b.de>burnus2012-03-172-10/+29
| | | | | | | | | | | | | | | PR fortran/52585 * trans-intrinsic.c (gfc_conv_associated): Fix handling of procpointer dummy arguments. 2012-03-17 Tobias Burnus <burnus@net-b.de> PR fortran/52585 * gfortran.dg/proc_ptr_36.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185485 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't use BUILT_IN_IROUND for __float128.jb2012-03-162-4/+10
| | | | | | | | | | | 2012-03-16 Janne Blomqvist <jb@gcc.gnu.org> * trans-intrinsic.c (build_round_expr): Don't use BUILT_IN_IROUND for __float128. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185453 138bc75d-0d04-0410-961f-82ee72b054a4
* Enable BUILT_IN_IROUND.jb2012-03-154-15/+36
| | | | | | | | | | | | | | | 2012-03-15 Janne Blomqvist <jb@gcc.gnu.org> * f95-lang.c (gfc_init_builtin_functions): Initialize BUILT_IN_IROUND. * mathbuiltins.def: Add IROUND. * trans-intrinsic.c (build_round_expr): Use BUILT_IN_IROUND if type size matches. (gfc_build_intrinsic_lib_fndecls): Build iround functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185442 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-03-12 Richard Guenther <rguenther@suse.de>rguenth2012-03-122-1/+5
| | | | | | | | | | | | | | | | | | lto/ * lto-lang.c (builtin_type_for_size): Use lto_type_for_size. fortran/ * f95-lang.c (builtin_type_for_size): Use gfc_type_for_size. c-common/ * c-common.c (c_common_get_narrower): Use c_common_type_for_size. (builtin_type_for_size): Likewise. * config/alpha/alpha.c (alpha_gimplify_va_arg): Use build_nonstandard_integer_type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185229 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-03-12 Tobias Burnus <burnus@net-b.de>burnus2012-03-122-0/+13
| | | | | | | | | | | | | | | PR fortran/52542 * decl.c (match_procedure_decl): If the interface is bind(C), the procedure is as well. 2012-03-12 Tobias Burnus <burnus@net-b.de> PR fortran/52542 * gfortran.dg/proc_ptr_35.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185215 138bc75d-0d04-0410-961f-82ee72b054a4
* * convert.c (convert): Fold BOOLEAN_TYPE types to the proper variant.steven2012-03-102-1/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185174 138bc75d-0d04-0410-961f-82ee72b054a4
* * Make-lang.in (convert.o): Depend on convert.h.steven2012-03-094-84/+42
| | | | | | | | | | | | | | | * convert.c: Header and comment cleanups. (gfc_thruthvalue_conversion): Rename static function to truthvalue_conversion. Do not use 'internal_error' from here, use 'gcc_unreachable' instead. (convert): Do not use 'error' for conversions to void, use 'gcc_unreachable' instead. Likewise for conversions to non-scalar types. Do not hanlde ENUMERAL_TYPE, the front end never creates them. Clean up #if 0 code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185160 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-03-08 Tobias Burnus <burnus@net-b.de>burnus2012-03-082-1/+11
| | | | | | | | | | | | | | | PR fortran/52469 * trans-types.c (gfc_get_function_type): Handle backend_decl of a procedure pointer. 2012-03-08 Tobias Burnus <burnus@net-b.de> PR fortran/52469 * gfortran.dg/proc_ptr_34.f90 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185109 138bc75d-0d04-0410-961f-82ee72b054a4
* * f95-lang.c (yyerror, yylex): Remove.steven2012-03-067-159/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | (clear_binding_stack): Remove, fold into its only user. (LANG_HOOKS_PRINT_IDENTIFIER): Do not re-define. (ridpointers): Remove. (gfc_eh_initialized_p): Make static. (gfc_truthvalue_conversion): Move to convert.c. (gfc_be_parse_file): Clear binding level stack when done. (gfc_print_identifier): Remove. (pushlevel): Remove ignored 'ignore' argument. Update all callers. (poplevel): Remove unused 'reverse' argument. Update all callers. (ggc_p): Remove. (gfc_builtin_function): Make static. Do not attempt to make RTL for builtin functions. * convert.c (gfc_truthvalue_conversion): Moved here from f95-lang.c, and made static. * trans.h (pushlevel, poplevel): Adjust prototypes. (gfc_truthvalue_conversion, gfc_builtin_function): Remove prototypes. * trans-openmp.c: Update calls to pushlevel and poplevel. * trans.c: Likewise. * trans-decl.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185015 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran/mikael2012-03-044-0/+46
| | | | | | | | | | | | | | | | | PR fortran/50981 * gfortran.h (gfc_is_class_container_ref): New prototype. * class.c (gfc_is_class_container_ref): New function. * trans-expr.c (gfc_conv_procedure_call): Add a "_data" component reference to polymorphic actual arguments. testsuite/ PR fortran/50981 * gfortran.dg/elemental_optional_args_5.f03: Add subcomponent actual argument checks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184904 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran/mikael2012-03-042-2/+35
| | | | | | | | | | | | | | PR fortran/50981 * trans-expr.c (gfc_conv_procedure_call): Save se->ss's value. Handle the case of unallocated arrays passed to elemental procedures. testsuite/ PR fortran/50981 * gfortran.dg/elemental_optional_args_5.f03: Add array checks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184896 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran/mikael2012-03-044-12/+24
| | | | | | | | | | | | | * trans.h (struct gfc_ss_info): Move can_be_null_ref component from the data::scalar subcomponent to the toplevel. * trans-expr.c (gfc_conv_expr): Update component reference. * trans-array.c (gfc_add_loop_ss_code): Ditto. (gfc_walk_elemental_function_args): Ditto. Move the conditional setting the field out of the scalar-only block. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184893 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/36160fxcoudert2012-03-042-11/+56
| | | | | | | | | | * error.c (gfc_widechar_display_length, gfc_wide_display_length): New functions. (print_wide_char_into_buffer): Return length written. (show_locus): Fix locus displayed when wide characters are present. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184884 138bc75d-0d04-0410-961f-82ee72b054a4
* * module.c (gfc_use_module): Improve error message some more.fxcoudert2012-03-042-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184883 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/52313fxcoudert2012-03-032-12/+12
| | | | | | | * module.c (gfc_use_module): Improve error messages. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184864 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-03-03 Tobias Burnus <burnus@net-b.de>burnus2012-03-032-1/+7
| | | | | | | | | | | | | | | PR fortran/48820 * resolve.c (resolve_actual_arglist): Properly reset assumed_type_expr_allowed. 2012-03-03 Tobias Burnus <burnus@net-b.de> PR fortran/48820 * gfortran.dg/assumed_type_3.f90: Undo previous commit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184863 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-03-03 Tobias Burnus <burnus@net-b.de>burnus2012-03-037-8/+39
| | | | | | | | | | | | | | | | | | | | | | | * lang.opt (Wc-binding-type): New flag. * options.c (gfc_init_options, gfc_handle_option): Handle it. * invoke.texi (Wc-binding-type): Document it. * gfortran.h (gfc_option_t): Add warn_c_binding_type. * decl.c (verify_bind_c_sym): Handle -Wc-binding-type. * symbol.c (gfc_set_default_type, verify_bind_c_derived_type): Ditto. 2012-03-03 Tobias Burnus <burnus@net-b.de> * gfortran.dg/bind_c_dts_4.f03: Add dg-options -Wc-binding-type. * gfortran.dg/bind_c_implicit_vars.f03: Ditto. * gfortran.dg/bind_c_usage_8.f03: Ditto. * gfortran.dg/c_kind_tests_2.f03: Ditto. * gfortran.dg/class_30.f90: Remove dg-warning line. * gfortran.dg/bind_c_usage_25.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184858 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-03-03 Tobias Burnus <burnus@net-b.de>burnus2012-03-0311-8/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR fortran/48820 * decl.c (gfc_match_decl_type_spec): Support type(*). (gfc_verify_c_interop): Allow type(*). * dump-parse-tree.c (show_typespec): Handle type(*). * expr.c (gfc_copy_expr): Ditto. * interface.c (compare_type_rank, compare_parameter, compare_actual_formal, gfc_procedure_use): Ditto. * libgfortran.h (bt): Add BT_ASSUMED. * misc.c (gfc_basic_typename, gfc_typename): Handle type(*). * module.c (bt_types): Ditto. * resolve.c (assumed_type_expr_allowed): New static variable. (resolve_actual_arglist, resolve_variable, resolve_symbol): Handle type(*). * trans-expr.c (gfc_conv_procedure_call): Ditto. * trans-types.c (gfc_typenode_for_spec, gfc_get_dtype): Ditto. 2012-03-03 Tobias Burnus <burnus@net-b.de> PR fortran/48820 * gfortran.dg/assumed_type_1.f90: New. * gfortran.dg/assumed_type_2.f90: New. * gfortran.dg/assumed_type_3.f90: New. * gfortran.dg/assumed_type_4.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184852 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-03-02 Tobias Burnus <burnus@net-b.de>burnus2012-03-022-1/+6
| | | | | | | | | PR fortran/52325 * primary.c (gfc_match_varspec): Add missing ;. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184790 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-03-02 Tobias Burnus <burnus@net-b.de>burnus2012-03-022-0/+19
| | | | | | | | | | | | | | | | | | PR fortran/52325 * primary.c (gfc_match_varspec): Add diagnostic for % with nonderived types. 2012-03-02 Tobias Burnus <burnus@net-b.de> PR fortran/52325 * gfortran.dg/derived_comp_array_ref_8.f90: New. * gfortran.dg/nullify_2.f90: Update dg-error. * gfortran.dg/nullify_4.f90: Ditto. * gfortran.dg/pointer_init_6.f90: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184785 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-03-02 Tobias Burnus <burnus@net-b.de>burnus2012-03-023-5/+17
| | | | | | | | | | | | | | | | | PR fortran/52270 * expr.c (gfc_check_vardef_context): Fix check for intent-in polymorphic pointer . * interface.c (compare_parameter): Allow passing TYPE to intent-in polymorphic pointer. 2012-03-02 Tobias Burnus <burnus@net-b.de> PR fortran/52270 * gfortran.dg/class_51.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184784 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-03-02 Tobias Burnus <burnus@net-b.de>burnus2012-03-022-1/+7
| | | | | | | | | | | | | | | PR fortran/52452 * resolve.c (resolve_intrinsic): Don't search for a function if we know that it is a subroutine. 2012-03-02 Tobias Burnus <burnus@net-b.de> PR fortran/52452 * gfortran.dg/intrinsic_8.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184778 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-29 Paul Thomas <pault@gcc.gnu.org>pault2012-02-292-0/+8
| | | | | | | | | | | | | | | PR fortran/52386 * trans-expr.c (fcncall_realloc_result): Dereference the descriptor if needed. 2012-02-29 Paul Thomas <pault@gcc.gnu.org> PR fortran/52386 * gfortran.dg/realloc_on_assign_13.f90 : New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184651 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-22 Tobias Burnus <burnus@net-b.de>burnus2012-02-222-4/+5
| | | | | | | | | | | | | | PR fortran/52335 * io.c (gfc_match_open): Remove bogus F2003 DELIM= check. 2012-02-22 Tobias Burnus <burnus@net-b.de> PR fortran/52335 * gfortran.dg/io_constraints_10.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184485 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-18 Tobias Burnus <burnus@net-b.de>burnus2012-02-182-2/+9
| | | | | | | | | | | | | | | | | | | | | PR fortran/52295 * interface.c (check_interface0): Internal procs in generic interfaces are allowed in Fortran 2008. 2012-02-18 Tobias Burnus <burnus@net-b.de> PR fortran/52295 * gfortran.dg/interface_35.f90: Use -std=f2003. * gfortran.dg/proc_ptr_comp_20.f90: Remove dg-warning. * gfortran.dg/interface_assignment_4.f90: Ditto. * gfortran.dg/bessel_1.f90: Ditto. * gfortran.dg/func_result_6.f90: Ditto. * gfortran.dg/hypot_1.f90: Ditto. * gfortran.dg/proc_ptr_comp_21.f90: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184372 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-17 Tobias Burnus <burnus@net-b.de>burnus2012-02-172-1/+7
| | | | | | | | | | | Roland Stigge <stigge@antcom.de> PR translation/52273 * interface.c (compare_actual_formal): Fix typo "at at". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184334 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-17 Tobias Burnus <burnus@net-b.de>burnus2012-02-172-1/+5
| | | | | | | | * gfortran.texi (Q exponent-letter): Fix grammar. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184333 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-17 Tobias Burnus <burnus@net-b.de>burnus2012-02-173-5/+11
| | | | | | | | | | * gfortran.texi (Status): Fix typos. * invoke.texi (ffixed-form, fstack-arrays): Spell Fortran with a majuscule. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184332 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-17 Tobias Burnus <burnus@net-b.de>burnus2012-02-176-11/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Roland Stigge <stigge@antcom.de> PR translation/52232 PR translation/52234 PR translation/52245 PR translation/52246 PR translation/52262 PR translation/52273 * io.c (gfc_match_open): Fix typo. * interface.c (compare_actual_formal): Ditto. * lang.opt (freal-4-real-8, freal-4-real-16, freal-8-real-16): * Ditto. * match.c (alloc_opt_list, gfc_match_nullify): Ditto. * check.c (gfc_check_associated, gfc_check_null): Ditto. 2012-02-17 Tobias Burnus <burnus@net-b.de> PR translation/52232 PR translation/52234 PR translation/52245 PR translation/52246 PR translation/52262 PR translation/52273 * gfortran.dg/coarray_22.f90: Update dg-error. * gfortran.dg/allocate_alloc_opt_4.f90: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184331 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/fortran/mikael2012-02-122-1/+28
| | | | | | | | | | | | | | PR fortran/50981 * trans-stmt.c (gfc_get_proc_ifc_for_call): New function. (gfc_trans_call): Use gfc_get_proc_ifc_for_call. gcc/testsuite/ PR fortran/50981 * gfortran.dg/elemental_optional_args_5.f03: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184142 138bc75d-0d04-0410-961f-82ee72b054a4
* * trans-array.c (gfc_walk_elemental_function_args,mikael2012-02-124-6/+17
| | | | | | | | | | | | gfc_walk_function_expr): Move call to gfc_get_proc_ifc_for_expr out of gfc_walk_elemental_function_args. * trans-stmt.c (gfc_trans_call): Ditto. * trans-array.h (gfc_get_proc_ifc_for_expr): New prototype. (gfc_walk_elemental_function_args): Update prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184141 138bc75d-0d04-0410-961f-82ee72b054a4
* * trans-array.c (gfc_get_proc_ifc_for_expr): New function.mikael2012-02-122-18/+40
| | | | | | | | | (gfc_walk_elemental_function_args): Move code to gfc_get_proc_ifc_for_expr and call it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184139 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-08 Tobias Burnus <burnus@net-b.de>burnus2012-02-082-7/+11
| | | | | | | | | | | | | | PR fortran/52151 * trans-expr.c (fcncall_realloc_result): Set also the stride. 2012-02-08 Tobias Burnus <burnus@net-b.de> PR fortran/52151 * gfortran.dg/realloc_on_assign_12.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184016 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud