summaryrefslogtreecommitdiff
path: root/gcc/fortran
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 2012-02-07 Tobias Burnus <burnus@net-b.de>burnus2012-02-072-0/+12
| | | | | | | | | | | | | | | PR fortran/51514 * trans-expr.c (gfc_conv_procedure_call): Add _data component for calls of scalar CLASS actuals to TYPE dummies. 2012-02-07 Tobias Burnus <burnus@net-b.de> PR fortran/51514 * gfortran.dg/class_to_type_2.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183954 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-05 Thomas König <tkoenig@gcc.gnu.org>tkoenig2012-02-052-0/+23
| | | | | | | | | | | | | | | | PR fortran/48847 * trans-decl.c: Warn about unused dummy procedure arguments if -Wunused-dummy-argument is specified. Suppress middle-end warnings about procedure arguments. 2012-02-05 Thomas König <tkoenig@gcc.gnu.org> PR fortran/48847 * gfortran.dg/warn_unused_dummy_argument_3.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183916 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-05 Paul Thomas <pault@gcc.gnu.org>pault2012-02-053-3/+19
| | | | | | | | | | | | | | | | | | | | | | | * trans-array.c (gfc_array_allocate): Zero memory for all class array allocations. * trans-stmt.c (gfc_trans_allocate): Ditto for class scalars. PR fortran/52102 * trans-stmt.c (gfc_trans_allocate): Before correcting a class array reference, ensure that 'dataref' points to the _data component that is followed by the array reference.. 2012-02-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/52102 * gfortran.dg/class_48.f90 : Add test of allocate class array component with source in subroutine test3. Remove commenting out in subroutine test4, since branching on unitialized variable is now fixed (no PR for this last.). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183915 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-02 Mikael Morin <mikael@gcc.gnu.org>mikael2012-02-024-5/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | PR fortran/41587 PR fortran/46356 PR fortran/51754 PR fortran/50981 * class.c (insert_component_ref, class_data_ref_missing, gfc_fix_class_refs): New functions. * gfortran.h (gfc_fix_class_refs): New prototype. * trans-expr.c (gfc_conv_expr): Remove special case handling and call gfc_fix_class_refs instead. 2012-02-02 Mikael Morin <mikael@gcc.gnu.org> PR fortran/41587 * gfortran.dg/class_array_10.f03: New test. PR fortran/46356 * gfortran.dg/class_array_11.f03: New test. PR fortran/51754 * gfortran.dg/class_array_12.f03: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183853 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-02 Paul Thomas <pault@gcc.gnu.org>pault2012-02-022-13/+63
| | | | | | | | | | | | | PR fortran/52012 * trans-expr.c (fcncall_realloc_result): If variable shape is correct, retain the bounds, whatever they are. 2012-02-02 Paul Thomas <pault@gcc.gnu.org> PR fortran/52012 * gfortran.dg/realloc_on_assign_11.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183849 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-02 Tobias Burnus <burnus@net-b.de>burnus2012-02-022-0/+6
| | | | | | | | | | | | | | PR fortran/52093 * simplify.c (gfc_simplify_size): Handle INTRINSIC_PARENTHESES. 2012-02-02 Tobias Burnus <burnus@net-b.de> PR fortran/52093 * gfortran.dg/shape_7.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183848 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-01 Thomas König <tkoenig@gcc.gnu.org>tkoenig2012-02-012-0/+70
| | | | | | | | | | | | | | | PR fortran/51958 * frontend-passes.c (convert_elseif): New function. (optimize_namespace): Call it. 2012-02-01 Thomas König <tkoenig@gcc.gnu.org> PR fortran/51958 * gfortran.dg/function_optimize_10.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183812 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-01 Tobias Burnus <burnus@net-b.de>burnus2012-02-012-2/+17
| | | | | | | | | | | | | | | | PR fortran/52024 * module.c (MOD_VERSION): Bump. (mio_typebound_proc): Read/write is_operator from/to the .mod file. 2012-02-01 Tobias Burnus <burnus@net-b.de> PR fortran/52024 * gfortran.dg/typebound_operator_14.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183808 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-01 Tobias Burnusburnus2012-02-012-1/+7
| | | | | | | | | | | | | | | PR fortran/52059 * trans-expr.c (gfc_conv_procedure_call): Add array ref only to variables. 2012-02-01 Tobias Burnus PR fortran/52059 * gfortran.dg/elemental_function_1.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183807 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-01-31 Tobias Burnus <burnus@net-b.de>burnus2012-01-314-1/+15
| | | | | | | | | | | | | | | | | | PR fortran/52024 * gfortran.h (gfc_tbp_generic): Store whether the generic is an operator. * decl.c (gfc_match_generic): Set that flag. * resolve.c (check_generic_tbp_ambiguity): Use it in the gfc_compare_interfaces check. 2012-01-31 Tobias Burnus <burnus@net-b.de> PR fortran/52024 * gfortran.dg/typebound_generic_11.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183771 138bc75d-0d04-0410-961f-82ee72b054a4