1. 09 Jan, 2006 2 commits
    • fengwang's avatar
      fortran ChangeLog entry: · 77100724
      fengwang authored
      2006-01-09  Feng Wang  <fengwang@nudt.edu.cn>
      
      	PR fortran/12456
      	* trans-expr.c (gfc_to_single_character): New function that converts
      	string to single character if its length is 1.
      	(gfc_build_compare_string):New function that compare string and handle
      	single character specially.
      	(gfc_conv_expr_op): Use gfc_build_compare_string.
      	(gfc_trans_string_copy): Use gfc_to_single_character.
      	* trans-intrinsic.c (gfc_conv_intrinsic_strcmp): Use
      	gfc_build_compare_string.
      	* trans.h (gfc_build_compare_string): Add prototype.
      
      testsuite ChangeLog entry:
      2006-01-09  Feng Wang  <fengwang@nudt.edu.cn>
      
      	PR fortran/12456
      	* gfortran.dg/single_char_string.f90: New test.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109489 138bc75d-0d04-0410-961f-82ee72b054a4
      77100724
    • fengwang's avatar
      fortran/ · 9829d9b7
      fengwang authored
      2006-01-09  Feng Wang  <fengwang@nudt.edu.cn>
      
      	* simplify.c (gfc_simplify_char): Use UCHAR_MAX instead of literal
      	constant.
      	(gfc_simplify_ichar): Get the result from unsinged char and in the
      	range 0 to UCHAR_MAX instead of CHAR_MIN to CHAR_MAX.
      
      Testsuite ChangeLog entry:
      2006-01-09  Feng Wang  <fengwang@nudt.edu.cn>
      
      	* gfortran.dg/intrinsic_i_char.f90: New test.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109488 138bc75d-0d04-0410-961f-82ee72b054a4
      9829d9b7
  2. 08 Jan, 2006 2 commits
  3. 07 Jan, 2006 2 commits
    • tobi's avatar
      fortran/ · 9b435b6d
      tobi authored
      * decl.c (gfc_match_function_decl): Correctly error out in case of
      omitted function argument list.
      testsuite/
      * gfortran.dg/func_decl_1.f90: New.
      * gfortran.dg/array_alloc_1.f90: Fix wrong function declaration.
      * gfortran.dg/array_alloc_2.f90: Likewise.
      * gfortran.dg/char_result_8.f90: Likewise.
      * gfortran.dg/dup_save_1.f90: Likewise.
      * gfortran.dg/dup_save_2.f90: Likewise.
      * gfortran.dg/f2c_6.f90: Likewise.
      * gfortran.dg/f2c_7.f90: Likewise.
      * gfortran.dg/func_result_2.f90: Likewise.
      * gfortran.fortran-torture/execute/pr23373-2.f90: Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109451 138bc75d-0d04-0410-961f-82ee72b054a4
      9b435b6d
    • pault's avatar
      2006-01-07 Paul Thomas <pault@gcc.gnu.org> · 6bfab0c0
      pault authored
      	PR fortran/22146
      	* trans-array.c (gfc_reverse_ss): Remove static attribute.
      	(gfc_walk_elemental_function_args): Replace gfc_expr * argument for
      	the function call with the corresponding gfc_actual_arglist*.  Change
      	code accordingly.
      	(gfc_walk_function_expr): Call to gfc_walk_elemental_function_args
      	now requires the actual argument list instead of the expression for
      	the function call.
      	* trans-array.h: Modify the prototype for gfc_walk_elemental_function_args
      	and provide a prototype for gfc_reverse_ss.
      	* trans-stmt.h (gfc_trans_call): Add the scalarization code for the case
      	where an elemental subroutine has array valued actual arguments.
      
      	PR fortran/25029
      	PR fortran/21256
      	PR fortran/20868
      	PR fortran/20870
      	* resolve.c (check_assumed_size_reference): New function to check for upper
      	bound in assumed size array references.
      	(resolve_assumed_size_actual): New function to do a very restricted scan
      	of actual argument expressions of those procedures for which incomplete
      	assumed size array references are not allowed.
      	(resolve_function, resolve_call): Switch off assumed size checking of
      	actual arguments, except for elemental procedures and intrinsic
      	inquiry functions, in some circumstances.
      	(resolve_variable): Call check_assumed_size_reference.
      
      2006-01-07  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/22146
      	* gfortran.dg/elemental_subroutine_1.f90: New test.
      	* gfortran.dg/elemental_subroutine_2.f90: New test.
      
      	PR fortran/25029
      	PR fortran/21256
      	* gfortran.dg/assumed_size_refs_1.f90: New test.
      
      	PR fortran/20868
      	PR fortran/20870
      	* gfortran.dg/assumed_size_refs_2.f90: New test.
      	* gfortran.dg/initialization_1.f90: Change warning message.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109449 138bc75d-0d04-0410-961f-82ee72b054a4
      6bfab0c0
  4. 06 Jan, 2006 3 commits
  5. 05 Jan, 2006 1 commit
    • eedelman's avatar
      2006-01-05 Erik Edelmann <eedelman@gcc.gnu.org> · 2c35ee8c
      eedelman authored
              PR fortran/23675
              * expr.c (gfc_expr_set_symbols_referenced): New function.
              * gfortran.h: Add a function prototype for it.
              * resolve.c (resolve_function): Use it for
              use associated character functions lengths.
              * expr.c, gfortran.h, resolve.c: Updated copyright years.
      
      
      testsuite/
      2006-01-05  Erik Edelmann  <eedelman@gcc.gnu.org>
      
              PR fortran/23675
              gfortran.dg/char_result_11.f90: New.
      
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109368 138bc75d-0d04-0410-961f-82ee72b054a4
      2c35ee8c
  6. 03 Jan, 2006 1 commit
  7. 02 Jan, 2006 1 commit
    • kargl's avatar
      PR fortran/24640 · e143c705
      kargl authored
      * parse.c (next_free): Check for whitespace after the label.
      * match.c (gfc_match_small_literal_int): Initialize cnt variable.
      
      * gfortran.dg/label_2.f90: New test.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109246 138bc75d-0d04-0410-961f-82ee72b054a4
      e143c705
  8. 01 Jan, 2006 1 commit
  9. 30 Dec, 2005 1 commit
    • eedelman's avatar
      fortran/ · 4d4b9f0e
      eedelman authored
      2005-12-30  Erik Edelmann  <eedelman@gcc.gnu.org>
      
              PR fortran/22607
              * trans-decl.c(gfc_get_extern_function_decl): Don't set
              DECL_IS_PURE (fndecl) = 1 for return-by-reference
              functions.
      
              fortran/PR 25396
              * interface.c (gfc_extend_expr): Initialize
              e->value.function.name to NULL.
      
      
      
      testsuite/
      2005-12-30  Erik Edelmann  <eedelman@gcc.gnu.org>
      
              PR fortran/22607
              * gfortran-dg/pure_byref_3.f90: New.
      
              fortran/PR 25396
              * gfortran.dg/userdef_operator_1.f90: New.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109171 138bc75d-0d04-0410-961f-82ee72b054a4
      4d4b9f0e
  10. 29 Dec, 2005 1 commit
    • pault's avatar
      2005-12-29 Paul Thomas <pault@gcc.gnu.org> · 0c370067
      pault authored
      	PR fortran/25532
      	* trans-types.c (copy_dt_decls_ifequal): Copy declarations for
      	components of derived type components by recursing into
      	gfc_get_derived_type.
      
      2005-12-29  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/25532
      	*gfortran.dg/host_used_types_1.f90: Check that host associated
      	derived type components of derived types are properly declared
      	in contained procedures.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109138 138bc75d-0d04-0410-961f-82ee72b054a4
      0c370067
  11. 28 Dec, 2005 2 commits
  12. 24 Dec, 2005 1 commit
    • pault's avatar
      2005-12-24 Paul Thomas <pault@gcc.gnu.org> · d02358e8
      pault authored
      	PR fortran/25029
      	PR fortran/21256
      	* resolve.c (check_assumed_size_reference, resolve_assumed_size_actual):
      	Remove because of regressions caused by patch.
      	(resolve_function, resolve_call, resolve_variable): Remove assumed size
      	checks because of regressionscaused by patch.
      
      	PR fortran/25029
      	PR fortran/21256
      	* gfortran.dg/initialization_1.f90: Remove tests of intrinsic functions
      	with incorrect assumed size references.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109039 138bc75d-0d04-0410-961f-82ee72b054a4
      d02358e8
  13. 23 Dec, 2005 1 commit
    • pault's avatar
      2005-12-23 Paul Thomas <pault@gcc.gnu.org> · a08df2f0
      pault authored
      	PR fortran/25029
      	PR fortran/21256
      	*resolve.c(resolve_function): Remove assumed size checking for SIZE
      	and UBOUND and rely on their built-in checking.
      
      2005-12-23  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/25029
      	PR fortran/21256
      	*gfortran.dg/initialization_1.f90: Add test of SIZE.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109009 138bc75d-0d04-0410-961f-82ee72b054a4
      a08df2f0
  14. 22 Dec, 2005 2 commits
    • tobi's avatar
      fortran/ · ac42ecbd
      tobi authored
      	PR fortran/18990
      	* gfortran.h (gfc_charlen): Add resolved field.
      	* expr.c (gfc_specification_expr): Accept NULL argument.
      	* resolve.c (gfc_resolve_charlen, gfc_resolve_derived): New.
      	(gfc_resolve_symbol): Resolve derived type definitions.  Use
      	resolve_charlen to resolve character lengths.
      testsuite/
      	PR fortran/18990
      	* gfortran.dg/der_charlen_1.f90: New.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108946 138bc75d-0d04-0410-961f-82ee72b054a4
      ac42ecbd
    • pault's avatar
      2005-12-22 Paul Thomas <pault@gcc.gnu.org> · 840e5aa1
      pault authored
      	PR fortran/20889
      	*resolve.c(resolve_structure_cons): Do not attempt to convert
      	the type of mismatched pointer type components, except when
      	the constructor component is BT_UNKNOWN; emit error instead.
      
      	PR fortran/25029
      	PR fortran/21256
      	*resolve.c(check_assumed_size_reference): New function to check for upper
      	bound in assumed size array references.
      	(resolve_assumed_size_actual): New function to do a very restricted scan
      	of actual argument expressions of those procedures for which incomplete
      	assumed size array references are not allowed.
      	(resolve_function, resolve_call): Switch off assumed size checking of
      	actual arguments, except for elemental procedures and array valued
      	intrinsics; excepting LBOUND.
      	(resolve_variable): Call check_assumed_size_reference.
      
      	PR fortran/19362
      	PR fortran/20244
      	PR fortran/20864
      	PR fortran/25391
      	*interface.c(gfc_compare_types): Broken into two.
      	(gfc_compare_derived_types): Second half of gfc_compare_types with
      	corrections for a missing check that module name is non-NULL and
      	a check for private components.
      	*symbol.c(gfc_free_dt_list): New function.
      	(gfc_free_namespace): Call gfc_free_dt_list.
      	*resolve.c(resolve_symbol): Build the list of derived types in the
      	symbols namespace.
      	*gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
      	derived_types to gfc_namespace.  Provide a prototye for the new
      	function gfc_compare_derived_types.
      	*trans_types.c(gfc_get_derived_type): Test for the derived type being
      	available in the host namespace. In this case, the host backend
      	declaration is used for the structure and its components.  If an
      	unbuilt, equal structure that is not use associated is found in the
      	host namespace, build it there and then.  On exit,traverse the
      	namespace of the derived type to see if there are equal but unbuilt.
      	If so, copy the structure and its component declarations.
      	(copy_dt_decls_ifequal): New functions to copy declarations to other
      	equal structure types.
      
      	PR fortran/20862
      	* io.c (gfc_match_format): Make the appearance of a format statement
      	in a module specification block an error.
      
      	PR fortran/23152
      	* match.c (gfc_match_namelist): Set assumed shape arrays in
      	namelists as std=GFC_STD_GNU and assumed size arrays as an
      	unconditional error.
      
      	PR fortran/25069
      	* match.c (gfc_match_namelist): Set the respecification of a USE
      	associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
      	on no error.
      
      	PR fortran/25053
      	PR fortran/25063
      	PR fortran/25064
      	PR fortran/25066
      	PR fortran/25067
      	PR fortran/25068
      	PR fortran/25307
      	* io.c (resolve_tag): Change std on IOSTAT != default integer to
      	GFC_STD_GNU and change message accordingly.  Add same error for
      	SIZE.
      	(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
      	set it when tags are being matched.
      	(gfc_resolve_dt): Remove tests that can be done before resolution
      	and add some of the new ones here.
      	(check_io_constraints): New function that checks for most of the
      	data transfer constraints. Some of these were previously done in
      	match_io, from where this function is called, and some were done
      	in gfc_resolve_dt.
      	(match_io): Remove most of the tests of constraints and add the
      	call to check_io_constraints.
      
      2005-12-22  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/20889
      	*gfortran.dg/pointer_component_type_1.f90: New test.
      
      	PR fortran/25029
      	PR fortran/21256
      	*gfortran.dg/assumed_size_refs.f90: New test for the conditions that
      	should give an error with assumed size array refernces and checks those
      	that should not.
      	*gfortran.dg/gfortran.dg/pr15140.f90: Give the assumed size array
      	reference an upper bound so that it does not generate an error.
      
      	PR fortran/19362
      	PR fortran/20244
      	PR fortran/20864
      	PR fortran/25391
      	*gfortran.dg/used_dummy_types_1.f90: New test.
      	*gfortran.dg/used_dummy_types_2.f90: New test.
      	*gfortran.dg/used_dummy_types_3.f90: New test.
      	*gfortran.dg/used_dummy_types_4.f90: New test.
      	*gfortran.dg/used_dummy_types_5.f90: New test.
      
      	PR fortran/23152
      	*gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
      	group already being USE associated.
      	*gfortran.dg/assumed_shape_nml.f90: New test.
      	*gfortran.dg/assumed_size_nml.f90: New test.
      
      	PR fortran/20862
      	PR fortran/25053
      	PR fortran/25063
      	PR fortran/25064
      	PR fortran/25066
      	PR fortran/25067
      	PR fortran/25068
      	PR fortran/25307
      	* gfortran.dg/io_constraints_1.f90: New test.
      	* gfortran.dg/io_constraints_1.f90: New test.
      	* gfortran.dg/iostat_3.f90: Change wording of warning.
      	 * gfortran.dg/g77/19981216-0.f:  the same.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108943 138bc75d-0d04-0410-961f-82ee72b054a4
      840e5aa1
  15. 21 Dec, 2005 1 commit
    • eedelman's avatar
      fortran/ · 22263458
      eedelman authored
      2005-12-21  Erik Edelmann  <eedelman@gcc.gnu.org>
      
              PR fortran/25423
              * parse.c (parse_where_block): break instead of "fall
               through" after parsing nested WHERE construct.
      
      
      testsuite/
      2005-12-21  Erik Edelmann  <eedelman@gcc.gnu.org>
      
              PR fortran/25423
              gfortran.dg/where_nested_1.f90: New.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108902 138bc75d-0d04-0410-961f-82ee72b054a4
      22263458
  16. 18 Dec, 2005 1 commit
    • pault's avatar
      2005-12-18 Paul Thomas <pault@gcc.gnu.org> · 0c989284
      pault authored
      	PR fortran/25018
      	*expr.c(check_inquiry): Return FAILURE if there is no symtree to
      	provide a name. Error/warning for assumed character length argument
      	to LEN for an initialization expression, using GFC_GNU_STD. Add an
      	argument to flag that the expression is not restricted.
      	(check_init_expr): Improve the message for a failing variable.
      	(gfc_match_init_expr): Call check_enquiry again to make sure that
      	unsimplified expressions are not causing unnecessary errors.
      
      2005-12-18  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/25018
      	*gfortran.dg/initialization_1.f90: New test.
      	*gfortran.dg/enum_5.f90: Change dg-error to new message.
      	*gfortran.dg/g77/980616-0.f: The same.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108753 138bc75d-0d04-0410-961f-82ee72b054a4
      0c989284
  17. 17 Dec, 2005 2 commits
    • kargl's avatar
      PR fortran/25458 · fb6e45cd
      kargl authored
      	* simplify.c (gfc_simplify_ibset, gfc_simplify_not): Add call to
      	twos_complement.
      
      	* gfortran.dg/chkbits.f90: New test.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108720 138bc75d-0d04-0410-961f-82ee72b054a4
      fb6e45cd
    • kargl's avatar
      2005-12-17 Steven G. Kargl <kargls@comcast.net> · be7f01a1
      kargl authored
      	* decl.c (gfc_match_old_kind_spec,match_type_spec): Use gfc_std_notify
      	to report nonstandard intrinsic type declarations.
      
      	* gfortran.dg/imag_1.f: Fix nonstandard type declarations.
      	* gfortran.dg/nested_modules_1.f90: Ditto.
      	* gfortran.dg/hollerith_f95.f90: Ditto.
      	* gfortran.dg/select_5.f90: Ditto.
      	* gfortran.dg/secnds.f: Ditto.
      	* gfortran.dg/hollerith2.f90: Ditto.
      	* gfortran.dg/imag_2.f: Ditto.
      	* gfortran.dg/ftell_2.f90: Ditto.
      	* gfortran.dg/malloc_free_1.f90: Ditto.
      	* gfortran.dg/logint-1.f: Ditto.
      	* gfortran.dg/recursive_statement_functions.f90: Ditto.
      	* gfortran.dg/e_d_fmt.f90: Ditto.
      	* gfortran.dg/hollerith_legacy.f90: Ditto.
      	* gfortran.dg/logint-2.f: Ditto.
      	* gfortran.dg/enum_5.f90: Ditto.
      	* gfortran.dg/f2c_2.f90: Ditto.
      	* gfortran.dg/pr17143.f90: Ditto.
      	* gfortran.dg/namelist_14.f90: Ditto.
      	* gfortran.dg/logint-3.f: Ditto.
      	* gfortran.dg/spread_scalar_source.f90: Ditto.
      	* gfortran.dg/fmt_read_bz_bn.f90: Ditto.
      	* gfortran.dg/namelist_11.f: Ditto.
      	* gfortran.dg/g77/intrinsic-unix-bessel.f: Ditto.
      	* gfortran.dg/g77/20010519-1.f
      	* gfortran.dg/g77/alpha1.f: Ditto.
      	* gfortran.dg/g77/990115-1.f: Ditto.
      	* gfortran.dg/g77/erfc.f: Ditto.
      	* gfortran.dg/g77/19990313-3.f: Ditto.
      	* gfortran.dg/g77/f90-intrinsic-numeric.f: Ditto.
      	* gfortran.dg/g77/20010426.f: Ditto.
      	* gfortran.dg/g77/19990313-0.f: Ditto.
      	* gfortran.dg/g77/f90-intrinsic-mathematical.f: Ditto.
      	* gfortran.dg/g77/20000629-1.f: Ditto.
      	* gfortran.dg/g77/970125-0.f: Ditto.
      	* gfortran.dg/g77/8485.f: Ditto.
      	* gfortran.dg/g77/f90-intrinsic-bit.f: Ditto.
      	* gfortran.dg/g77/19990313-1.f: Ditto.
      	* gfortran.dg/g77/int8421.f: Ditto.
      	* gfortran.dg/g77/19990305-0.f: Ditto.
      	* gfortran.dg/g77/947.f: Ditto.
      	* gfortran.dg/g77/19990905-2.f: Ditto.
      	* gfortran.dg/g77/cabs.f: Ditto.
      	* gfortran.dg/g77/19990313-2.f: Ditto.
      	* gfortran.dg/g77/20020307-1.f: Ditto.
      	* gfortran.dg/g77/dcomplex.f: Ditto.
      	* gfortran.dg/g77/19990502-1.f: Ditto.
      	* gfortran.dg/g77/19981216-0.f: Ditto.
      	* gfortran.dg/common_4.f90: Ditto.
      	* gfortran.dg/entry_4.f90: Ditto.
      	* gfortran.dg/equiv_constraint_2.f90: Ditto.
      	* gfortran.dg/g77_intrinsics_funcs.f: Ditto.
      	* gfortran.dg/namelist_12.f: Ditto.
      	* gfortran.dg/scale_1.f90: Ditto.
      	* gfortran.dg/modulo_1.f90
      	* gfortran.dg/hollerith.f90: Ditto.
      	* gfortran.dg/direct_io_3.f90: Ditto.
      	* gfortran.dg/ftell_1.f90: Ditto.: Ditto.
      	* gfortran.dg/gnu_logical_1.F: Ditto.
      	* gfortran.dg/unf_io_convert_1.f90: Ditto.
      	* gfortran.dg/assign_1.f90: Ditto.
      	* gfortran.dg/g77_intrinsics_sub.f: Ditto.
      	* gfortran.dg/pr23095.f: Ditto.
      	* gfortran.dg/read_float_1.f90: Ditto.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108715 138bc75d-0d04-0410-961f-82ee72b054a4
      be7f01a1
  18. 16 Dec, 2005 7 commits
    • jvdelisle's avatar
      2005-12-16 Jerry DeLisle <jvdelisle@gcc.gnu.org> · 645ce7b5
      jvdelisle authored
      	PR fortran/24268
      	* io.c (format_lex): Allow whitespace within text of format specifier.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108695 138bc75d-0d04-0410-961f-82ee72b054a4
      645ce7b5
    • kargl's avatar
      2005-12-10 Steven G. Kargl <kargls@comcast.net> · a26cd850
      kargl authored
       
              PR fortran/25106
              PR fortran/25055
              * match.c (gfc_match_small_literal_int): Add cnt argument;
              (gfc_match_st_label,gfc_match_stopcode): Account for cnt argument.
              * match.h (gfc_match_small_literal_int): Update prototype.
              * decl.c (match_char_length,gfc_match_old_kind_spec): Account for cnt.
              * parse.c (next_free): Ditto.
              * primary.c (match_kind_param): Ditto.
      
              gfortran.dg/label_1.f90: New test.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108692 138bc75d-0d04-0410-961f-82ee72b054a4
      a26cd850
    • rguenth's avatar
      2005-12-16 Richard Guenther <rguenther@suse.de> · ac47d547
      rguenth authored
      	* trans.h (tree): Remove declaration of gfc_build_function_call.
      	* trans.c (gfc_build_function_call): Remove.
      	(gfc_build_array_ref): Use build_function_call_expr.
      	(gfc_trans_runtime_check): Likewise.
      	* trans-array.c (gfc_trans_allocate_array_storage): Likewise.
      	(gfc_grow_array): Likewise.
      	(gfc_trans_array_ctor_element): Likewise.
      	(gfc_trans_array_constructor_value): Likewise.
      	(gfc_array_allocate): Likewise.
      	(gfc_array_deallocate): Likewise.
      	(gfc_trans_auto_array_allocation): Likewise.
      	(gfc_trans_dummy_array_bias): Likewise.
      	(gfc_conv_array_parameter): Likewise.
      	* trans-expr.c (gfc_conv_power_op): Likewise.
      	(gfc_conv_string_tmp): Likewise.
      	(gfc_conv_concat_op): Likewise.
      	(gfc_conv_expr_op): Likewise.
      	(gfc_trans_string_copy): Likewise.
      	* trans-decl.c (build_entry_thunks): Likewise.
      	(gfc_generate_function_code): Likewise.
      	(gfc_generate_constructors): Likewise.
      	* trans-io.c (gfc_trans_open): Likewise.
      	(gfc_trans_close): Likewise.
      	(build_filepos): Likewise.
      	(gfc_trans_inquire): Likewise.
      	(transfer_namelist_element): Likewise.
      	(build_dt): Likewise.
      	(gfc_trans_dt_end): Likewise.
      	(transfer_expr): Likewise.
      	(transfer_array_desc): Likewise.
      	* trans-stmt.c (gfc_trans_pause): Likewise.
      	(gfc_trans_stop): Likewise.
      	(gfc_trans_character_select): Likewise.
      	(gfc_do_allocate): Likewise.
      	(gfc_trans_assign_need_temp): Likewise.
      	(gfc_trans_pointer_assign_need_temp): Likewise.
      	(gfc_trans_forall_1): Likewise.
      	(gfc_trans_where): Likewise.
      	(gfc_trans_allocate): Likewise.
      	(gfc_trans_deallocate): Likewise.
      	* trans-intrinsic.c (gfc_conv_intrinsic_aint): Likewise.
      	(gfc_conv_intrinsic_lib_function): Likewise.
      	(gfc_conv_intrinsic_exponent): Likewise.
      	(gfc_conv_intrinsic_abs): Likewise.
      	(gfc_conv_intrinsic_sign): Likewise.
      	(gfc_conv_intrinsic_ctime): Likewise.
      	(gfc_conv_intrinsic_fdate): Likewise.
      	(gfc_conv_intrinsic_ttynam): Likewise.
      	(gfc_conv_intrinsic_ishftc): Likewise.
      	(gfc_conv_intrinsic_len_trim): Likewise.
      	(gfc_conv_intrinsic_index): Likewise.
      	(gfc_conv_intrinsic_size): Likewise.
      	(gfc_conv_intrinsic_strcmp): Likewise.
      	(gfc_conv_intrinsic_adjust): Likewise.
      	(gfc_conv_associated): Likewise.
      	(gfc_conv_intrinsic_scan): Likewise.
      	(gfc_conv_intrinsic_verify): Likewise.
      	(call_builtin_clz): Likewise.
      	(gfc_conv_intrinsic_si_kind): Likewise.
      	(gfc_conv_intrinsic_sr_kind): Likewise.
      	(gfc_conv_intrinsic_trim): Likewise.
      	(gfc_conv_intrinsic_repeat): Likewise.
      	(gfc_conv_intrinsic_iargc): Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108687 138bc75d-0d04-0410-961f-82ee72b054a4
      ac47d547
    • rguenth's avatar
      2005-12-16 Richard Guenther <rguenther@suse.de> · 4fa2c167
      rguenth authored
      	* trans.h (gfc_build_indirect_ref): Remove declaration.
      	* trans.c (gfc_build_indirect_ref): Remove.
      	* trans-array.c (gfc_trans_array_ctor_element): Use
      	build_fold_indirect_ref instead of gfc_build_indirect_ref.
      	(gfc_trans_array_constructor_value): Likewise.
      	(gfc_conv_array_index_offset): Likewise.
      	(gfc_conv_scalarized_array_ref): Likewise.
      	(gfc_conv_array_ref): Likewise.
      	(gfc_trans_dummy_array_bias): Likewise.
      	(gfc_conv_expr_descriptor): Likewise.
      	(gfc_conv_array_parameter): Likewise.
      	* trans-decl.c (gfc_finish_cray_pointee): Likewise.
      	(gfc_get_symbol_decl): Likewise.
      	* trans-expr.c (gfc_conv_substring): Likewise.
      	(gfc_conv_component_ref): Likewise.
      	(gfc_conv_variable): Likewise.
      	(gfc_add_interface_mapping): Likewise.
      	(gfc_conv_function_call): Likewise.
      	* trans-intrinsic.c (gfc_conv_intrinsic_ichar): Likewise.
      	(gfc_conv_intrinsic_transfer): Likewise.
      	* trans-io.c (nml_get_addr_expr): Likewise.
      	(transfer_namelist_element): Likewise.
      	(transfer_expr): Likewise.
      	* trans-stmt.c (gfc_trans_nested_forall_loop): Likewise.
      	(allocate_temp_for_forall_nest_1): Likewise.
      	(gfc_trans_forall_1): Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108678 138bc75d-0d04-0410-961f-82ee72b054a4
      4fa2c167
    • rguenth's avatar
      2005-12-16 Richard Guenther <rguenther@suse.de> · fafa1b40
      rguenth authored
              * ChangeLog: Fix missing file names.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108652 138bc75d-0d04-0410-961f-82ee72b054a4
      fafa1b40
    • rguenth's avatar
      2005-12-16 Richard Guenther <rguenther@suse.de> · 9596685a
      rguenth authored
      	(gfc_conv_descriptor_data_addr): Use build_fold_addr_expr where
      	appropriate.
      	(gfc_trans_allocate_array_storage): Likewise.
      	(gfc_trans_array_constructor_value): Likewise.
      	(gfc_conv_array_data): Likewise.
      	(gfc_conv_expr_descriptor): Likewise.
      	(gfc_conv_array_parameter): Likewise.
      	(gfc_conv_variable): Likewise.
      	(gfc_conv_function_val): Likewise.
      	(gfc_conv_function_call): Likewise.
      	(gfc_conv_expr_reference): Likewise.
      	(gfc_conv_intrinsic_ctime): Likewise.
      	(gfc_conv_intrinsic_fdate): Likewise.
      	(gfc_conv_intrinsic_ttynam): Likewise.
      	(gfc_conv_intrinsic_si_kind): Likewise.
      	(gfc_conv_intrinsic_trim): Likewise.
      	(set_parameter_ref): Likewise.
      	(gfc_convert_array_to_string): Likewise.
      	(gfc_trans_open): Likewise.
      	(gfc_trans_close): Likewise.
      	(build_filepos): Likewise.
      	(gfc_trans_inquire): Likewise.
      	(nml_get_addr_expr): Likewise.
      	(transfer_namelist_element): Likewise.
      	(build_dt): Likewise.
      	(gfc_trans_dt_end): Likewise.
      	(transfer_array_component): Likewise.
      	(transfer_expr): Likewise.
      	(transfer_array_desc): Likewise.
      	(gfc_trans_transfer): Likewise.
      	(gfc_trans_allocate): Likewise.
      	(gfc_trans_deallocate): Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108633 138bc75d-0d04-0410-961f-82ee72b054a4
      9596685a
    • kazu's avatar
      * dependency.c, resolve.c, trans-array.c: Fix comment typos. · 22046c26
      kazu authored
      	* gfortran.texi: Fix typos.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108624 138bc75d-0d04-0410-961f-82ee72b054a4
      22046c26
  19. 15 Dec, 2005 1 commit
    • eedelman's avatar
      fortran/ · fc41ffae
      eedelman authored
      2005-12-14  Erik Edelmann  <eedelman@gcc.gnu.org>
      
              PR fortran/18197
              * resolve.c (resolve_formal_arglist): Remove code to set
              the type of a function symbol from it's result symbol.
      
      
      testsuite/
      2005-12-14  Erik Edelmann  <eedelman@gcc.gnu.org>
      
              PR fortran/18197
              * gfortran.dg/dummy_functions_1.f90: New.
      
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108555 138bc75d-0d04-0410-961f-82ee72b054a4
      fc41ffae
  20. 13 Dec, 2005 2 commits
    • rguenth's avatar
      2005-12-13 Richard Guenther <rguenther@suse.de> · ce825331
      rguenth authored
      	* trans-expr.c (gfc_conv_substring): Use fold_build2 and
      	build_int_cst.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108476 138bc75d-0d04-0410-961f-82ee72b054a4
      ce825331
    • rsandifo's avatar
      gcc/fortran/ · 018ef8b8
      rsandifo authored
      	* Make-lang.in (fortran/trans-resolve.o): Depend on
      	fortran/dependency.h.
      	* gfortran.h (gfc_expr): Add an "inline_noncopying_intrinsic" flag.
      	* dependency.h (gfc_get_noncopying_intrinsic_argument): Declare.
      	(gfc_check_fncall_dependency): Change prototype.
      	* dependency.c (gfc_get_noncopying_intrinsic_argument): New function.
      	(gfc_check_argument_var_dependency): New function, split from
      	gfc_check_fncall_dependency.
      	(gfc_check_argument_dependency): New function.
      	(gfc_check_fncall_dependency): Replace the expression parameter with
      	separate symbol and argument list parameters.  Generalize the function
      	to handle dependencies for any type of expression, not just variables.
      	Accept a further argument giving the intent of the expression being
      	tested.  Ignore	intent(in) arguments if that expression is also
      	intent(in).
      	* resolve.c: Include dependency.h.
      	(find_noncopying_intrinsics): New function.
      	(resolve_function, resolve_call): Call it on success.
      	* trans-array.h (gfc_conv_array_transpose): Declare.
      	(gfc_check_fncall_dependency): Remove prototype.
      	* trans-array.c (gfc_conv_array_transpose): New function.
      	* trans-intrinsic.c (gfc_conv_intrinsic_function): Don't use the
      	libcall handling if the expression is to be evaluated inline.
      	Add a case for handling inline transpose()s.
      	* trans-expr.c (gfc_trans_arrayfunc_assign): Adjust for the new
      	interface provided by gfc_check_fncall_dependency.
      
      libgfortran/
      	* m4/matmul.m4: Use a different order in the special case of a
      	transposed first argument.
      	* generated/matmul_c4.c, generated/matmul_c8.c, generated/matmul_c10.c,
      	* generated/matmul_c16.c, generated/matmul_i4.c, generated/matmul_i8.c,
      	* generated/matmul_i10.c, generated/matmul_r4.c, generated/matmul_r8.c
      	* generated/matmul_r10.c, generated/matmul_r16.c: Regenerated.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108459 138bc75d-0d04-0410-961f-82ee72b054a4
      018ef8b8
  21. 12 Dec, 2005 1 commit
  22. 11 Dec, 2005 1 commit
  23. 10 Dec, 2005 3 commits
    • fxcoudert's avatar
      PR fortran/25068 · 2e97472c
      fxcoudert authored
      	* io.c (resolve_tag): Add correct diagnostic for F2003 feature.
      
      	* gfortran.dg/iostat_3.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108360 138bc75d-0d04-0410-961f-82ee72b054a4
      2e97472c
    • tkoenig's avatar
      2005-12-10 Thomas Koenig <Thomas.Koenig@online.de> · 9e94d29f
      tkoenig authored
      	PR fortran/23815
      	* io.c (top level):  Add convert to io_tag.
      	(resolve_tag):  convert is GFC_STD_GNU.
      	(match_open_element):  Add convert.
      	(gfc_free_open):  Likewise.
      	(gfc_resolve_open):  Likewise.
      	(gfc_free_inquire):  Likewise.
      	(match_inquire_element):  Likewise.
      	* dump-parse-tree.c (gfc_show_code_node):  Add
      	convet for open and inquire.
      	gfortran.h: Add convert to gfc_open and gfc_inquire.
      	* trans-io.c (gfc_trans_open):  Add convert.
      	(gfc_trans_inquire):  Likewise.
      	* ioparm.def:  Add convert to open and inquire.
      	* gfortran.texi:  Document CONVERT.
      
      2005-12-10  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR fortran/23815
      	* io/file_pos.c (unformatted_backspace):  If flags.convert
      	does not equal CONVERT_NATIVE, reverse the record marker.
      	* io/open.c:  Add convert_opt[].
      	(st_open):  If no convert option is given, set CONVERT_NATIVE.
      	If CONVERT_BIG or CONVERT_LITTLE are given, set flags.convert to
      	CONVERT_NATIVE or CONVERT_SWAP (depending on wether we have
      	a big- or little-endian system).
      	* io/transfer.c (unformatted_read):  Remove unused attribute
      	from arguments.
      	If we need to reverse
      	bytes, break up large transfers into a loop.  Split complex
      	numbers into its two parts.
      	(unformatted_write):  Likewise.
      	(us_read):  If flags.convert does not equal CONVERT_NATIVE,
      	reverse the record marker.
      	(next_record_w): Likewise.
      	(reverse_memcpy):  New function.
      	* io/inquire.c (inquire_via_unit):  Implement convert.
      	* io/io.h (top level):  Add enum unit_convert.
      	Add convert to st_parameter_open and st_parameter_inquire.
      	Define IOPARM_OPEN_HAS_CONVERT and IOPARM_INQUIRE_HAS_CONVERT.
      	Increase padding for st_parameter_dt.
      	Declare reverse_memcpy().
      
      2005-12-10  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR fortran/23815
      	* gfortran.dg/unf_io_convert_1.f90:  New test.
      	* gfortran.dg/unf_io_convert_2.f90:  New test.
      	* gfortran.dg/unf_io_convert_3.f90:  New test.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108358 138bc75d-0d04-0410-961f-82ee72b054a4
      9e94d29f
    • sayle's avatar
      · ee85d7fa
      sayle authored
      	PR fortran/22527
      	* f95-lang.c (gfc_truthvalue_conversion): Use a zero of the correct
      	integer type when building an inequality.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108341 138bc75d-0d04-0410-961f-82ee72b054a4
      ee85d7fa