1. 09 Feb, 2011 4 commits
  2. 08 Feb, 2011 1 commit
  3. 07 Feb, 2011 2 commits
  4. 06 Feb, 2011 3 commits
  5. 05 Feb, 2011 1 commit
  6. 02 Feb, 2011 2 commits
  7. 01 Feb, 2011 1 commit
    • re PR fortran/47565 ([OOP] Segfault with TBP) · 0f0a4367
      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
      Janus Weil committed
  8. 31 Jan, 2011 4 commits
    • re PR fortran/47455 ([OOP] internal compiler error: in fold_convert_loc, at fold-const.c:2028) · 463ec822
      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
      Janus Weil committed
    • re PR fortran/47519 (Deferred-length string wrong results with character intrinsic functions) · fabb6f8e
      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
      Paul Thomas committed
    • re PR fortran/47463 ([OOP] ICE in gfc_add_component_ref) · b6c77bcb
      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
      Janus Weil committed
    • configure.ac (gcc_cv_ld_static_option): Define. · c6092243
      	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
      Rainer Orth committed
  9. 30 Jan, 2011 3 commits
    • re PR fortran/47042 (ICE with character pointer in function) · 1ca99f75
      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
      Tobias Burnus committed
    • re PR fortran/47042 (ICE with character pointer in function) · 86d7449c
      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
      Tobias Burnus committed
    • re PR fortran/47523 (Concatenation with deferred length character with lhs variable) · dafdf269
      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
      Paul Thomas committed
  10. 29 Jan, 2011 1 commit
    • re PR fortran/47531 (SHAPE misses KIND= support) · 7320cf09
      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
      Tobias Burnus committed
  11. 28 Jan, 2011 3 commits
    • re PR fortran/47507 (PURE functions with VALUE arguments invalidly rejectd) · 36ea267b
      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
      Tobias Burnus committed
    • gfortran.texi (Fortran 2003 status): Mention support for nonconstant namelist variables. · 5582f599
      2011-01-28  Tobias Burnus  <burnus@net-b.de>
      
              * gfortran.texi (Fortran 2003 status): Mention support for
              nonconstant namelist variables.
      
      From-SVN: r169371
      Tobias Burnus committed
    • re PR fortran/45170 ([F2003] allocatable character lengths) · 8d51f26f
      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
      Paul Thomas committed
  12. 27 Jan, 2011 2 commits
  13. 26 Jan, 2011 1 commit
    • re PR fortran/47339 (Fortran 2003/2008: Valid NAMELIST rejected; Fortran 95:… · 19d36107
      re PR fortran/47339 (Fortran 2003/2008: Valid NAMELIST rejected; Fortran 95: 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
      Tobias Burnus committed
  14. 25 Jan, 2011 1 commit
  15. 23 Jan, 2011 1 commit
  16. 22 Jan, 2011 2 commits
  17. 21 Jan, 2011 2 commits
  18. 18 Jan, 2011 1 commit
  19. 17 Jan, 2011 2 commits
  20. 16 Jan, 2011 1 commit
  21. 13 Jan, 2011 2 commits