aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
AgeCommit message (Collapse)AuthorFilesLines
2011-02-20re PR fortran/47797 (Debug: Odd first break point for subroutine breakp w/ ↵Tobias Burnus3-6/+36
allocatables) 2011-02-20 Tobias Burnus <burnus@net-b.de> PR fortran/47797 * trans-decl.c (gfc_trans_deferred_vars): Use gfc_set_backend_locus and gfc_restore_backend_locus to have better debug locations. * trans-array.c (gfc_trans_deferred_array): Ditto. From-SVN: r170347
2011-02-20re PR fortran/45077 (ICE with -fwhole-file in fold_convert_loc, at ↵Paul Thomas4-43/+81
fold-const.c:2021) 2011-02-20 Paul Thomas <pault@gcc.gnu.org> PR fortran/45077 PR fortran/44945 * trans-types.c (gfc_get_derived_type): Remove code that looks for decls in gsym and add call to gfc_get_module_backend_decl. * trans.h : Add prototype for gfc_get_module_backend_decl. * trans-decl.c (gfc_get_module_backend_decl): New function. (gfc_get_symbol_decl): Call it. 2011-02-20 Paul Thomas <pault@gcc.gnu.org> PR fortran/45077 PR fortran/44945 * gfortran.dg/whole_file_28.f90 : New test. * gfortran.dg/whole_file_29.f90 : New test. From-SVN: r170337
2011-02-19re PR fortran/47348 (wrong string length with array constructor)Paul Thomas2-50/+62
2011-02-19 Paul Thomas <pault@gcc.gnu.org> PR fortran/47348 * trans-array.c (get_array_ctor_all_strlen): Move up in file. (get_array_ctor_var_strlen): Add block dummy and add call to get_array_ctor_all_strlen instead of giving up on substrings. Call gcc_unreachable for default case. (get_array_ctor_strlen): Add extra argument to in call to get_array_ctor_var_strlen. 2011-02-19 Paul Thomas <pault@gcc.gnu.org> PR fortran/47348 * gfortran.dg/array_constructor_36.f90 : New test. * gfortran.dg/bounds_check_10.f90 : Change dg-output message to allow for comparison between different elements of the array constructor at different levels of optimization. From-SVN: r170317
2011-02-18re PR fortran/47789 ([F03] Structure constructor of type extending DT with ↵Janus Weil2-0/+12
no components) 2011-02-18 Janus Weil <janus@gcc.gnu.org> PR fortran/47789 * primary.c (gfc_match_structure_constructor): Handle empty parent types. 2011-02-18 Janus Weil <janus@gcc.gnu.org> PR fortran/47789 * gfortran.dg/derived_constructor_comps_4.f90: New. From-SVN: r170291
2011-02-182011-02-18 Tobias BurnusTobias Burnus2-3/+14
PR fortran/47775 * trans-expr.c (arrayfunc_assign_needs_temporary): Use esym to check whether the specific procedure returns an allocatable or pointer. 2011-02-18 Tobias Burnus PR fortran/47775 * gfortran.dg/func_result_6.f90: New. From-SVN: r170289
2011-02-18re PR fortran/45586 (ICE non-trivial conversion at assignment)Michael Matz5-0/+203
PR fortran/45586 * gfortran.h (struct gfc_component): Add norestrict_decl member. * trans.h (struct lang_type): Add nonrestricted_type member. * trans-expr.c (gfc_conv_component_ref): Search fields with correct parent type. * trans-types.c (mirror_fields, gfc_nonrestricted_type): New. (gfc_sym_type): Use it. testsuite/ PR fortran/45586 * gfortran.dg/lto/pr45586_0.f90: New test. * gfortran.dg/typebound_proc_20.f90: Ditto. * gfortran.dg/typebound_proc_21.f90: Ditto. From-SVN: r170284
2011-02-18re PR fortran/47768 (ICE: printing a derived-type variable with proc-pointer ↵Janus Weil2-0/+14
components) 2011-02-18 Janus Weil <janus@gcc.gnu.org> PR fortran/47768 * resolve.c (resolve_transfer): Reject variables with procedure pointer components. 2011-02-18 Janus Weil <janus@gcc.gnu.org> PR fortran/47768 * gfortran.dg/proc_ptr_comp_30.f90: New. From-SVN: r170271
2011-02-18re PR fortran/47767 ([OOP] SELECT TYPE fails to execute correct TYPE IS block)Janus Weil4-37/+49
2011-02-18 Janus Weil <janus@gcc.gnu.org> PR fortran/47767 * gfortran.h (gfc_check_access): Removed prototype. (gfc_check_symbol_access): Added prototype. * module.c (gfc_check_access): Renamed to 'check_access', made static. (gfc_check_symbol_access): New function, basically a shortcut for 'check_access'. (write_dt_extensions,write_symbol0,write_generic,write_symtree): Use 'gfc_check_symbol_access'. (write_operator,write_module): Renamed 'gfc_check_access'. * resolve.c (resolve_fl_procedure,resolve_fl_derived, resolve_fl_namelist,resolve_symbol,resolve_fntype): Use 'gfc_check_symbol_access'. 2011-02-18 Janus Weil <janus@gcc.gnu.org> PR fortran/47767 * gfortran.dg/class_40.f03: New. From-SVN: r170269
2011-02-16re PR fortran/47745 ([OOP] Segfault with CLASS(*) and derived type dummy ↵Janus Weil6-13/+42
arguments) 2011-02-16 Janus Weil <janus@gcc.gnu.org> PR fortran/47745 * class.c (gfc_build_class_symbol): Set 'class_ok' attribute. * decl.c (build_sym,attr_decl1): Move setting of 'class_ok' into 'gfc_build_class_symbol'. (gfc_match_decl_type_spec): Reject unlimited polymorphism. * interface.c (matching_typebound_op): Check for 'class_ok' attribute. * match.c (select_type_set_tmp): Move setting of 'class_ok' into 'gfc_build_class_symbol'. * primary.c (gfc_variable_attr): Check for 'class_ok' attribute. 2011-02-16 Janus Weil <janus@gcc.gnu.org> PR fortran/47745 * gfortran.dg/class_39.f03: New. From-SVN: r170223
2011-02-15re PR fortran/47633 (Result of COMPILER_VERSION() has NULL byte appended)Steven G. Kargl2-3/+8
2011-02-15 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/47633 . simplify.c (gfc_simplify_compiler_version): Fix off-by-one issue. From-SVN: r170195
2011-02-14re PR fortran/47730 ([OOP] ICE on invalid source in connection with SELECT TYPE)Janus Weil2-0/+6
2011-02-14 Janus Weil <janus@gcc.gnu.org> PR fortran/47730 * parse.c (gfc_build_block_ns): Commit 'block@' symbol. 2011-02-14 Janus Weil <janus@gcc.gnu.org> PR fortran/47730 * gfortran.dg/select_type_22.f03: New. From-SVN: r170157
2011-02-14re PR fortran/47728 ([OOP] ICE on invalid CLASS declaration)Janus Weil3-3/+11
2011-02-14 Janus Weil <janus@gcc.gnu.org> PR fortran/47728 * class.c (gfc_build_class_symbol): Give a fatal error on polymorphic arrays. * primary.c (gfc_match_varspec): Avoid ICE for invalid class declaration. 2011-02-14 Janus Weil <janus@gcc.gnu.org> PR fortran/47728 * gfortran.dg/class_38.f03: New. From-SVN: r170144
2011-02-14re PR fortran/47349 (missing warning: Actual argument contains too few elements)Janus Weil2-6/+9
2011-02-14 Janus Weil <janus@gcc.gnu.org> PR fortran/47349 * interface.c (get_expr_storage_size): Handle derived-type components. 2011-02-14 Janus Weil <janus@gcc.gnu.org> PR fortran/47349 * gfortran.dg/argument_checking_18.f90: New. From-SVN: r170125
2011-02-13re PR fortran/47569 (gfortran does not detect that the parameters for ↵Tobias Burnus2-25/+54
passing a partial string to a subroutine are incorrect) 2011-02-13 Tobias Burnus <burnus@net-b.de> PR fortran/47569 * interface.c (compare_parameter): Avoid ICE with character components. 2011-02-13 Tobias Burnus <burnus@net-b.de> * gfortran.dg/argument_checking_13.f90: Update dg-error. * gfortran.dg/argument_checking_17.f90: New. From-SVN: r170110
2011-02-12class.c (gfc_build_class_symbol): Reject polymorphic arrays.Janus Weil3-5/+20
2011-02-12 Janus Weil <janus@gcc.gnu.org> * class.c (gfc_build_class_symbol): Reject polymorphic arrays. * decl.c (build_sym,build_struct,attr_decl1): Use return value of 'gfc_build_class_symbol'. 2011-02-12 Janus Weil <janus@gcc.gnu.org> * gfortran.dg/allocate_derived_1.f90: Modified as polymorphic arrays are temporarily disabled. * gfortran.dg/class_7.f03: Ditto. * gfortran.dg/coarray_14.f90: Ditto. * gfortran.dg/typebound_proc_13.f03: Ditto. From-SVN: r170092
2011-02-12re PR fortran/45586 (ICE non-trivial conversion at assignment)Michael Matz2-17/+18
2011-02-12 Michael Matz <matz@suse.de> Janus Weil <janus@gcc.gnu.org> Tobias Burnus <burnus@net-b.de> PR fortran/45586 * trans-expr.c (conv_parent_component_references): Avoid unintendent skipping of parent compounds. Co-Authored-By: Janus Weil <janus@gcc.gnu.org> Co-Authored-By: Tobias Burnus <burnus@net-b.de> From-SVN: r170072
2011-02-11re PR fortran/47550 (PURE with VALUE and w/o INTENT: add gfc_notify_std ↵Tobias Burnus2-8/+28
(GFC_STD_F2008 ?) 2011-02-11 Tobias Burnus <burnus@net-b.de> PR fortran/47550 * resolve.c (resolve_formal_arglist): PURE with VALUE and no INTENT: Add -std= diagnostics. 2011-02-11 Tobias Burnus <burnus@net-b.de> PR fortran/47550 * gfortran.dg/pure_formal_2.f90: New. From-SVN: r170060
2011-02-09re PR fortran/47352 ([F03] ICE with proc-pointers in generic procedures)Janus Weil2-1/+10
2011-02-09 Janus Weil <janus@gcc.gnu.org> PR fortran/47352 * resolve.c (resolve_procedure_interface): If interface has a result variable, copy the typespec and set result pointer to self. 2011-02-09 Janus Weil <janus@gcc.gnu.org> PR fortran/47352 * gfortran.dg/proc_decl_25.f90: New. From-SVN: r169987
2011-02-09re PR fortran/47463 ([OOP] ICE in gfc_add_component_ref)Janus Weil2-1/+5
2011-02-09 Janus Weil <janus@gcc.gnu.org> PR fortran/47463 * resolve.c (resolve_typebound_subroutine): Remove erroneous line. 2011-02-09 Janus Weil <janus@gcc.gnu.org> PR fortran/47463 * gfortran.dg/typebound_assignment_2.f03: New. From-SVN: r169985
2011-02-09re PR fortran/47637 ([OOP] Memory leak involving INTENT(OUT) CLASS argument ↵Janus Weil2-0/+31
w/ allocatable components) 2011-02-09 Janus Weil <janus@gcc.gnu.org> PR fortran/47637 * trans-decl.c (init_intent_out_dt): Handle CLASS arguments. 2011-02-09 Janus Weil <janus@gcc.gnu.org> PR fortran/47637 * gfortran.dg/auto_dealloc_2.f90: New. From-SVN: r169978
2011-02-09io.c (match_io_element): Do not set dt if not inquire.Jerry DeLisle2-1/+6
2011-02-08 Jerry DeLisle <jvdelisle@gcc.gnu.org> * io.c (match_io_element): Do not set dt if not inquire. From-SVN: r169961
2011-02-08re PR fortran/45290 ([F08] pointer initialization)Janus Weil2-1/+19
2011-02-08 Janus Weil <janus@gcc.gnu.org> PR fortran/45290 * expr.c (gfc_check_assign_symbol): Reject pointers as pointer initialization target. 2011-02-08 Janus Weil <janus@gcc.gnu.org> PR fortran/45290 * gfortran.dg/pointer_init_6.f90: New. From-SVN: r169948
2011-02-07More style fixes from RalfJanne Blomqvist2-21/+21
From-SVN: r169893
2011-02-07texinfo fixes suggested by Ralf WildenhuesJanne Blomqvist3-19/+26
Co-Authored-By: Ralf Wildenhues <Ralf.Wildenhues@gmx.de> From-SVN: r169892
2011-02-06Add thread-safety section to menuJanne Blomqvist2-0/+6
From-SVN: r169865
2011-02-06Document libgfortran thread-safetyJanne Blomqvist3-2/+56
From-SVN: r169864
2011-02-06re PR fortran/47592 (Multiple function invocation with ALLOCATE ↵Paul Thomas2-45/+52
(SOURCE=REPEAT('x',bar()))) 2011-02-06 Paul Thomas <pault@gcc.gnu.org> PR fortran/47592 * trans-stmt.c (gfc_trans_allocate): For deferred character length allocations with SOURCE, store to the values and string length to avoid calculating twice. Replace gfc_start_block with gfc_init_block to avoid unnecessary contexts and to keep declarations of temporaries where they should be. Tidy up the code a bit. 2011-02-06 Paul Thomas <pault@gcc.gnu.org> PR fortran/47592 * gfortran.dg/allocate_with_source_1 : New test. From-SVN: r169862
2011-02-05PR 42434 Update SYSTEM_CLOCK documentationJanne Blomqvist2-9/+29
From-SVN: r169854
2011-02-02re PR fortran/47082 ([OOP] ICE in gfc_conv_component_ref)Janus Weil3-1/+29
2011-02-02 Janus Weil <janus@gcc.gnu.org> Paul Thomas <pault@gcc.gnu.org> PR fortran/47082 * trans-expr.c (gfc_trans_class_init_assign): Add call to gfc_get_derived_type. * module.c (read_cleanup): Do not use unique_symtrees for vtabs or vtypes. 2011-02-02 Janus Weil <janus@gcc.gnu.org> Paul Thomas <pault@gcc.gnu.org> PR fortran/47082 * gfortran.dg/class_37.f03 : New test. Co-Authored-By: Paul Thomas <pault@gcc.gnu.org> From-SVN: r169767
2011-02-02re PR fortran/47572 ([OOP] Invalid: Allocatable polymorphic with init ↵Janus Weil2-1/+7
expression.) 2011-02-02 Janus Weil <janus@gcc.gnu.org> PR fortran/47572 * resolve.c (resolve_fl_variable): Handle polymorphic allocatables. 2011-02-02 Janus Weil <janus@gcc.gnu.org> PR fortran/47572 * gfortran.dg/class_36.f03: New. From-SVN: r169520
2011-02-01re PR fortran/47565 ([OOP] Segfault with TBP)Janus Weil2-1/+7
2011-02-01 Janus Weil <janus@gcc.gnu.org> PR fortran/47565 * trans-expr.c (gfc_conv_structure): Handle constructors for procedure pointer components with allocatable result. 2011-02-01 Janus Weil <janus@gcc.gnu.org> PR fortran/47565 * gfortran.dg/typebound_call_20.f03: New. From-SVN: r169480
2011-01-31re PR fortran/47455 ([OOP] internal compiler error: in fold_convert_loc, at ↵Janus Weil2-4/+9
fold-const.c:2028) 2011-01-31 Janus Weil <janus@gcc.gnu.org> PR fortran/47455 * trans-expr.c (gfc_conv_procedure_call): Handle procedure pointers with pointer or allocatable result. 2011-01-31 Janus Weil <janus@gcc.gnu.org> PR fortran/47455 * gfortran.dg/typebound_call_19.f03: New. From-SVN: r169455
2011-01-31re PR fortran/47519 (Deferred-length string wrong results with character ↵Paul Thomas4-21/+73
intrinsic functions) 2011-01-31 Paul Thomas <pault@gcc.gnu.org> PR fortran/47519 * trans-stmt.c (gfc_trans_allocate): Improve handling of deferred character lengths with SOURCE. * iresolve.c (gfc_resolve_repeat): Calculate character length from source length and ncopies. * dump-parse-tree.c (show_code_node): Show MOLD and SOURCE expressions for ALLOCATE. 2011-01-31 Paul Thomas <pault@gcc.gnu.org> PR fortran/47519 * gfortran.dg/allocate_deferred_char_scalar_2.f03: New test. From-SVN: r169444
2011-01-31re PR fortran/47463 ([OOP] ICE in gfc_add_component_ref)Janus Weil2-4/+9
2011-01-31 Janus Weil <janus@gcc.gnu.org> PR fortran/47463 * resolve.c (resolve_typebound_subroutine): Bug fix for the case of an argument of a typebound assignment being a component. 2011-01-31 Janus Weil <janus@gcc.gnu.org> PR fortran/47463 * gfortran.dg/typebound_assignment_1.f03: New. From-SVN: r169443
2011-01-31configure.ac (gcc_cv_ld_static_option): Define.Rainer Orth2-2/+7
gcc: * configure.ac (gcc_cv_ld_static_option): Define. (gcc_cv_ld_dynamic_option): Define. (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive instead. (HAVE_LD_STATIC_DYNAMIC): Update message. (LD_STATIC_OPTION): Define. (LD_DYNAMIC_OPTION): Define. * configure: Regenerate. * config.in: Regenerate. * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS && HAVE_LD_STATIC_DYNAMIC]: Use them. gcc/cp: * g++spec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use LD_STATIC_OPTION, LD_DYNAMIC_OPTION. gcc/fortran: * gfortranspec.c (add_arg_libgfortran) [HAVE_LD_STATIC_DYNAMIC] Use LD_STATIC_OPTION, LD_DYNAMIC_OPTION. gcc/go: * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use LD_STATIC_OPTION, LD_DYNAMIC_OPTION. From-SVN: r169435
2011-01-30re PR fortran/47042 (ICE with character pointer in function)Tobias Burnus2-0/+14
2011-01-31 Tobias Burnus <burnus@net-b.de> PR fortran/47042 * resolve.c (resolve_fl_procedure): Reject stmt functions with pointer/allocatable attribute. 2011-01-31 Tobias Burnus <burnus@net-b.de> PR fortran/47042 * gfortran.dg/stmt_func_1.f90: New. From-SVN: r169415
2011-01-30re PR fortran/47042 (ICE with character pointer in function)Tobias Burnus2-0/+30
2011-01-31 Tobias Burnus <burnus@net-b.de> PR fortran/47042 * interface.c (gfc_procedure_use): Add explicit interface check * for pointer/allocatable functions. 2011-01-31 Tobias Burnus <burnus@net-b.de> PR fortran/47042 * gfortran.dg/interface_34.f90: New. From-SVN: r169414
2011-01-30re PR fortran/47523 (Concatenation with deferred length character with lhs ↵Paul Thomas2-2/+22
variable) 2011-01-30 Paul Thomas <pault@gcc.gnu.org> PR fortran/47523 * trans-expr.c (gfc_trans_assignment_1): If the rhs is an op expr and is assigned to a deferred character length scalar, make sure that the function is called before reallocation, so that the length is available. Include procedure pointer and procedure pointer component rhs as well. 2011-01-30 Paul Thomas <pault@gcc.gnu.org> PR fortran/47523 * trans-expr.c (gfc_trans_assignment_1): If the rhs is an op expr and is assigned to a deferred character length scalar, make sure that the function is called before reallocation, so that the length is available. Include procedure pointer and procedure pointer component rhs as well. PR fortran/45170 PR fortran/35810 PR fortran/47350 * gfortran.dg/allocatable_function_5.f90: New test not added by mistake on 2011-01-28. From-SVN: r169413
2011-01-29re PR fortran/47531 (SHAPE misses KIND= support)Tobias Burnus7-19/+44
2011-01-29 Tobias Burnus <burnus@net-b.de> PR fortran/47531 * check.c (gfc_check_shape): Support kind argument in SHAPE. * intrinsic.c (add_functions): Ditto. * resolve.c (gfc_resolve_shape): Ditto. * simplify.c (gfc_simplify_shape): Ditto. * intrinsic.h (gfc_check_shape, gfc_resolve_shape, gfc_simplify_shape): Update prototypes. * intrinisc.text (SHAPE): Document kind argument. 2011-01-29 Tobias Burnus <burnus@net-b.de> PR fortran/47531 * gfortran.dg/shape_6.f90: New. From-SVN: r169392
2011-01-28re PR fortran/47507 (PURE functions with VALUE arguments invalidly rejectd)Tobias Burnus2-5/+13
2011-01-28 Tobias Burnus <burnus@net-b.de> PR fortran/47507 * resolve.c (resolve_formal_arglist): Allow arguments with VALUE attribute also without INTENT. 2011-01-28 Tobias Burnus <burnus@net-b.de> PR fortran/47507 * gfortran.dg/pure_formal_1.f90: New. From-SVN: r169372
2011-01-28gfortran.texi (Fortran 2003 status): Mention support for nonconstant ↵Tobias Burnus2-0/+8
namelist variables. 2011-01-28 Tobias Burnus <burnus@net-b.de> * gfortran.texi (Fortran 2003 status): Mention support for nonconstant namelist variables. From-SVN: r169371
2011-01-28re PR fortran/45170 ([F2003] allocatable character lengths)Paul Thomas10-60/+510
2011-01-28 Paul Thomas <pault@gcc.gnu.org> Tobias Burnus <burnus@gcc.gnu.org> PR fortran/45170 PR fortran/35810 PR fortran/47350 * interface.c (compare_actual_formal): An allocatable or pointer deferred length actual is only allowed if the formal argument is also deferred length. Clean up whitespace. * trans-expr.c (gfc_conv_procedure_call): Pass string length for deferred character length formal arguments by reference. Do the same for function results. (gfc_trans_pointer_assignment): Do not do runtime check of lhs and rhs character lengths, if deferred length lhs. In this case set the lhs character length to that of the rhs. (gfc_conv_string_parameter): Remove assert that string length is an integer type. (is_scalar_reallocatable_lhs): New function. (alloc_scalar_allocatable_for_assignment): New function. (gfc_trans_assignment_1): Call above new function. If the rhs is a deferred character length itself, makes ure that the function is called before reallocation, so that the length is available. (gfc_trans_asssignment): Remove error about assignment to deferred length character variables. * gfortran.texi : Update entry about (re)allocation on assignment. * trans-stmt.c (gfc_trans_allocate): Add code to handle deferred length character variables. * module.c (mio_typespec): Transfer deferred characteristic. * trans-types.c (gfc_get_function_type): New code to generate hidden typelist, so that those character lengths that are passed by reference get the right type. * resolve.c (resolve_contained_fntype): Supress error for deferred character length functions. (resolve_function, resolve_fl_procedure) The same. (check_symbols): Remove the error that support for entity with deferred type parameter is not yet implemented. (resolve_fl_derived): The same. match.c (alloc_opt_list): Allow MOLD for deferred length object. * trans-decl.c (gfc_get_symbol_decl): For deferred character length dummies, generate a local variable for string length. (create_function_arglist): Hidden length can be a pointer. (gfc_trans_deferred_vars): For deferred character length results and dummies, assign the string length to the local variable from the hidden argument on entry and the other way round on exit, as appropriate. 2011-01-28 Paul Thomas <pault@gcc.gnu.org> Tobias Burnus <burnus@gcc.gnu.org> PR fortran/45170 PR fortran/35810 PR fortran/47350 * gfortran.dg/realloc_on_assign_3.f03: New test. * gfortran.dg/realloc_on_assign_4.f03: New test. * gfortran.dg/realloc_on_assign_5.f90: New test. * gfortran.dg/allocatable_function_5.f90: New test. * gfortran.dg/allocate_deferred_char_scalar_1.f90: New test. * gfortran.dg/deferred_type_param_2.f90: Remove two "not yet implemented" dg-errors. Co-Authored-By: Tobias Burnus <burnus@gcc.gnu.org> From-SVN: r169356
2011-01-27re PR fortran/47474 (Wrong code with allocatable scalar, allocatable ↵Tobias Burnus2-5/+13
components as function result) 2011-01-27 Tobias Burnus <burnus@net-b.de> PR fortran/47474 * trans-decl.c (gfc_generate_function_code): Fix init of allocatable result variable with allocatable components. From-SVN: r169340
2011-01-27re PR fortran/47472 (Rules printed by -M option contains duplicate slash ↵Tobias Burnus2-1/+8
when -J option is used) 2011-01-27 Tobias Burnus <burnus@net-b.de> PR fortran/47472 * options.c (gfc_handle_module_path_options): Save module path without trailing slash as include path. From-SVN: r169323
2011-01-26re PR fortran/47339 (Fortran 2003/2008: Valid NAMELIST rejected; Fortran 95: ↵Tobias Burnus4-66/+78
Invalid namelist objects accepted) 2011-01-26 Tobias Burnus <burnus@net-b.de> PR fortran/47339 PR fortran/43062 * match.c (gfc_match_namelist): Allow assumed-length characters. * resolve.c (resolve_fl_namelist): Adapt and add error messages. * symbol.c (check_conflict): Allow allocatables in NML for * F2003. * trans-io.c (nml_get_addr_expr,transfer_namelist_element): Changes due to that change. 2011-01-26 Tobias Burnus <burnus@net-b.de> PR fortran/47339 PR fortran/43062 * fortran.dg/namelist_69.f90: New test. * fortran.dg/namelist_70.f90: New test. * fortran.dg/namelist_assumed_char.f90: Modify dg-error, augment * test. * fortran.dg/namelist_3.f90: Adapt test. * fortran.dg/namelist_34.f90: Ditto. * fortran.dg/namelist_35.f90: Ditto. * fortran.dg/namelist_5.f90: Ditto. * fortran.dg/namelist_63.f90: Ditto. * gfortran.dg/alloc_comp_constraint_1.f90: Ditto. From-SVN: r169282
2011-01-25re PR fortran/47448 (Invalid check for ASSIGNMENT(=))Tobias Burnus2-2/+9
2011-01-25 Tobias Burnus <burnus@net-b.de> PR fortran/47448 * interface.c (gfc_check_operator_interface): Fix defined-assignment check. 2011-01-25 Tobias Burnus <burnus@net-b.de> PR fortran/47448 * gfortran.dg/redefined_intrinsic_assignment_2.f90: New. From-SVN: r169228
2011-01-23re PR fortran/47421 (Wrong-code: Value of scalar ALLOCATABLE ↵Tobias Burnus2-3/+10
CHARACTER(len=n) dummy is mangled) 2011-01-23 Tobias Burnus <burnus@net-b.de> PR fortran/47421 * trans-decl.c (gfc_trans_deferred_vars): Do not nullify scalar allocatable dummy arguments. 2011-01-23 Tobias Burnus <burnus@net-b.de> PR fortran/47421 * gfortran.dg/allocatable_scalar_12.f90: New. From-SVN: r169145
2011-01-22re PR fortran/38536 (ICE with C_LOC in resolve.c due to not properly going ↵Thomas Koenig2-0/+49
through expr->ref) 2011-01-22 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/38536 * resolve.c (gfc_iso_c_func_interface): For C_LOC, check for array sections followed by component references which are illegal. Also check for coindexed arguments. 2011-01-22 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/38536 * gfortran.dg/c_loc_tests_16.f90: New test. From-SVN: r169130
2011-01-22re PR fortran/47399 ([OOP] ICE with TBP of a PARAMETER)Tobias Burnus2-1/+10
2011-01-22 Tobias Burnus <burnus@net-b.de> PR fortran/47399 * primary.c (gfc_match_varspec): Relax gcc_assert to allow for PARAMETER TBP. 2011-01-22 Tobias Burnus <burnus@net-b.de> PR fortran/47399 * gfortran.dg/typebound_proc_19.f90: New. From-SVN: r169126
2011-01-21re PR fortran/47394 (Internal compiler error when error count limit is reached)Tobias Burnus3-5/+12
2011-01-21 Tobias Burnus <burnus@net-b.de> PR fortran/47394 * error.c (gfc_error_now, gfc_fatal_error, gfc_error_check): Use defined instead of magic number exit status codes. * scanner.c (include_line, gfc_new_file): Ditto. From-SVN: r169104