1. 21 Jun, 2006 1 commit
  2. 20 Jun, 2006 2 commits
    • kargl's avatar
      2006-06-20 Steven G. Kargl <kargls@comcast.net> · 545ee732
      kargl authored
              * simplify.c (gfc_simplify_rrspacing): Initialize and clear mpfr_t
              variable.
      
              * gfortran.dg/rrspacing_1.f90: New test.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114821 138bc75d-0d04-0410-961f-82ee72b054a4
      545ee732
    • pault's avatar
      2006-06-20 Paul Thomas <pault@gcc.gnu.org> · dd5b9961
      pault authored
      	PR fortran/25049
      	PR fortran/25050
      	* check.c (non_init_transformational): New function.
      	(find_substring_ref): New function to signal use of disallowed
      	transformational intrinsic in an initialization expression.
      	(gfc_check_all_any): Call previous if initialization expr.
      	(gfc_check_count): The same.
      	(gfc_check_cshift): The same.
      	(gfc_check_dot_product): The same.
      	(gfc_check_eoshift): The same.
      	(gfc_check_minloc_maxloc): The same.
      	(gfc_check_minval_maxval): The same.
      	(gfc_check_gfc_check_product_sum): The same.
      	(gfc_check_pack): The same.
      	(gfc_check_spread): The same.
      	(gfc_check_transpose): The same.
      	(gfc_check_unpack): The same.
      
      	PR fortran/18769
      	*intrinsic.c (add_functions): Add gfc_simplify_transfer.
      	*intrinsic.h : Add prototype for gfc_simplify_transfer.
      	*simplify.c (gfc_simplify_transfer) : New function to act as
      	placeholder for eventual implementation.  Emit error for now.
      
      	PR fortran/16206
      	* expr.c (find_array_element): Eliminate cond...
      dd5b9961
  3. 18 Jun, 2006 3 commits
  4. 17 Jun, 2006 1 commit
  5. 16 Jun, 2006 1 commit
    • fxcoudert's avatar
      PR fortran/27965 · 9482d0e5
      fxcoudert authored
      	* trans-array.c (gfc_conv_ss_startstride): Correct the runtime
      	conditions for bounds-checking. Check for nonzero stride.
      	Don't check the last dimension of assumed-size arrays. Fix the
      	dimension displayed in the error message.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114724 138bc75d-0d04-0410-961f-82ee72b054a4
      9482d0e5
  6. 15 Jun, 2006 1 commit
    • tkoenig's avatar
      2006-06-15 Thomas Koenig <Thomas.Koenig@online.de> · 97944d89
      tkoenig authored
      	* trans-array.h (gfc_trans_create_temp_array):  Add bool
      	argument.
      	* trans-arrray.c (gfc_trans_create_temp_array): Add extra
      	argument "function" to show if we are translating a function.
      	If we are translating a function, perform checks whether
      	the size along any argument is negative.  In that case,
      	allocate size 0.
      	(gfc_trans_allocate_storage):  Add function argument (as
      	false) to gfc_trans_create_temp_array call.
      	* trans-expr.c (gfc_conv_function_call):  Add function
      	argument (as true) to gfc_trans_create_temp_array call.
      	* trans-stmt.c (gfc_conv_elemental_dependencies): Add
      	function argument (as false) to gfc_trans_create_temp_array
      	call.
      	* trans-intrinsic.c:  Likewise.
      
      2006-06-15  Thomas Koenig <Thomas.Koenig@online.de>
      
      	* gfortran.dg/allocate_zerosize_2.f90:  New test case.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114677 138bc75d-0d04-0410-961f-82ee72b054a4
      97944d89
  7. 09 Jun, 2006 2 commits
    • pault's avatar
      2006-06-10 Paul Thomas <pault@gcc.gnu.org> · d77f260f
      pault authored
      	PR fortran/24558
      	PR fortran/20877
      	PR fortran/25047
      	* decl.c (get_proc_name): Add new argument to flag that a
      	module function entry is being treated. If true, correct
      	error condition, add symtree to module namespace and add
      	a module procedure.
      	(gfc_match_function_decl, gfc_match_entry,
      	gfc_match_subroutine): Use the new argument in calls to
      	get_proc_name.
      	* resolve.c (resolve_entries): ENTRY symbol reference to
      	to master entry namespace if a module function.
      	* trans-decl.c (gfc_create_module_variable): Return if
      	the symbol is an entry.
      	* trans-exp.c (gfc_conv_variable): Check that parent_decl
      	is not NULL.
      
      2006-06-10  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/24558
      	* gfortran.dg/entry_6.f90: New test.
      
      	PR fortran/20877
      	PR fortran/25047
      	* gfortran.dg/entry_7.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114526 138bc75d-0d04-0410-961f-82ee72b054a4
      d77f260f
    • jakub's avatar
      PR fortran/27916 · d678a061
      jakub authored
      	* trans-openmp.c (gfc_omp_clause_default_ctor): New function.
      	* trans.h (gfc_omp_clause_default_ctor): New prototype.
      	* f95-lang.c (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Define.
      
      	* testsuite/libgomp.fortran/pr27916-1.f90: New test.
      	* testsuite/libgomp.fortran/pr27916-2.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114520 138bc75d-0d04-0410-961f-82ee72b054a4
      d678a061
  8. 08 Jun, 2006 3 commits
  9. 07 Jun, 2006 1 commit
    • pault's avatar
      2006-06-07 Paul Thomas <pault@gcc.gnu.org> · c6b395dd
      pault authored
      	PR fortran/23091
      	* resolve.c (resolve_fl_variable): Error if an automatic
      	object has the SAVE attribute.
      
      	PR fortran/24168
      	* expr.c (simplify_intrinsic_op): Transfer the rank and
      	the locus to the simplified expression.
      
      	PR fortran/25090
      	PR fortran/25058
      	* gfortran.h : Add int entry_id to gfc_symbol.
      	* resolve.c : Add static variables current_entry_id and
      	specification_expr.
      	(resolve_variable): During code resolution, check if a
      	reference to a dummy variable in an executable expression
      	is preceded by its appearance as a parameter in an entry.
      	Likewise check its specification expressions.
      	(resolve_code): Update current_entry_id on EXEC_ENTRY.
      	(resolve_charlen, resolve_fl_variable): Set and reset
      	specifiaction_expr.
      	(is_non_constant_shape_array): Do not return on detection
      	of a variable but continue to resolve all the expressions.
      	(resolve_codes): set current_entry_id to an out of range
      	value.
      
      2006-06-07  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/23091
      	* gfortran.dg/saved_automatic_1.f90: New test.
      
      	PR fortran/24168
      	* gfortran.dg/array_simplify_1.f90: New test.
      
      	PR fortran/25090
      	* gfortran.dg/entry_dummy_ref_1.f90: New test.
      
      	PR fortran/25058
      	* gfortran.dg/entry_dummy_ref_2.f90: New test.
        
      
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114461 138bc75d-0d04-0410-961f-82ee72b054a4
      c6b395dd
  10. 06 Jun, 2006 2 commits
  11. 05 Jun, 2006 3 commits
    • fxcoudert's avatar
      PR libfortran/27895 · dd94eeca
      fxcoudert authored
      	* resolve.c (compute_last_value_for_triplet): New function.
      	(check_dimension): Correctly handle zero-sized array sections.
      	Add checking on last element of array sections.
      
      	* gfortran.dg/bounds_check_3.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114414 138bc75d-0d04-0410-961f-82ee72b054a4
      dd94eeca
    • kargl's avatar
      2006-06-05 Steven G. Kargl <kargls@comcast.net> · 28778287
      kargl authored
              * data.c (gfc_assign_data_value):  Fix comment typo.  Remove
              a spurious return.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114406 138bc75d-0d04-0410-961f-82ee72b054a4
      28778287
    • pault's avatar
      2006-06-05 Paul Thomas <pault@gcc.gnu.org> · e0cff9dc
      pault authored
      	PR fortran/14067
      	* data.c (create_character_intializer): Add warning message
      	for truncated string.
      
      	PR fortran/16943
      	* symbol.c : Include flags.h.
      	(gfc_add_type): If a procedure and types are the same do not
      	throw an error unless standard is less than gnu or pedantic.
      
      	PR fortran/20838
      	* parse.c (parse_do_block): Error if named block do construct
      	does not have a named enddo.
      
      	PR fortran/27655
      	* check.c (gfc_check_associated): Pick up EXPR_NULL for pointer
      	as well as target and put error return at end of function.
      
      2006-06-05  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/14067
      	* gfortran.dg/data_char_1.f90: Add messages for truncated
      	strings.
      
      	PR fortran/16943
      	* gfortran.dg/func_decl_2.f90: New test.
      
      	PR fortran/20838
      	* gfortran.dg/do_2.f90: New test.
      
      	PR fortran/27655
      	* gfortran.dg/associated_3.f90: New test.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114385 138bc75d-0d04-0410-961f-82ee72b054a4
      e0cff9dc
  12. 03 Jun, 2006 1 commit
    • fxcoudert's avatar
      * trans.c (gfc_msg_bounds, gfc_msg_fault, gfc_msg_wrong_return): · 97c2a00c
      fxcoudert authored
      	Add strings for common runtime error messages.
      	(gfc_trans_runtime_check): Add a locus argument, use a string
      	and not a string tree for the message.
      	* trans.h (gfc_trans_runtime_check): Change prototype accordingly.
      	(gfc_msg_bounds, gfc_msg_fault, gfc_msg_wrong_return): Add proto.
      	* trans-const.c (gfc_strconst_bounds, gfc_strconst_fault,
      	gfc_strconst_wrong_return, gfc_strconst_current_filename): Remove.
      	(gfc_init_constants): Likewise.
      	* trans-const.h: Likewise.
      	* trans-decl.c (gfc_build_builtin_function_decls): Call to
      	_gfortran_runtime_error has only one argument, the message string.
      	* trans-array.h (gfc_conv_array_ref): Add a symbol argument and a
      	locus.
      	* trans-array.c (gfc_trans_array_bound_check): Build precise
      	error messages.
      	(gfc_conv_array_ref): Use the new symbol argument and the locus
      	to build more precise error messages.
      	(gfc_conv_ss_startstride): More precise error messages.
      	* trans-expr.c (gfc_conv_variable): Give symbol reference and
      	locus to gfc_conv_array_ref.
      	(gfc_conv_function_call): Use the new prototype for
      	gfc_trans_runtime_check.
      	* trans-stmt.c (gfc_trans_goto): Build more precise error message.
      	* trans-io.c (set_string): Likewise.
      	* trans-intrinsic.c (gfc_conv_intrinsic_bound): Use new prototype
      	for gfc_trans_runtime_check.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114346 138bc75d-0d04-0410-961f-82ee72b054a4
      97c2a00c
  13. 01 Jun, 2006 3 commits
    • tkoenig's avatar
      2006-06-01 Thomas Koenig <Thomas.Koenig@online.de> · 031c3cd8
      tkoenig authored
      	PR fortran/27715
      	* arith.c:  Cast the characters from the strings to unsigned
      	char to avoid values less than 0 for extended ASCII.
      
      2006-06-01  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR fortran/27715
      	* gfortran.dg/extended_char_comparison_1.f:  New test.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114317 138bc75d-0d04-0410-961f-82ee72b054a4
      031c3cd8
    • bothner's avatar
      * data.c (gfc_assign_data_value): Handle USE_MAPPED_LOCATION. · 00b9f416
      bothner authored
      	* scanner.c (gfc_gobble_whitespace): Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114310 138bc75d-0d04-0410-961f-82ee72b054a4
      00b9f416
    • pault's avatar
      2006-06-01 Paul Thomas <pault@gcc.gnu.org> · e815d37d
      pault authored
      	PR fortran/25098
      	PR fortran/25147
      	* interface.c (compare_parameter): Return 1 if the actual arg
      	is external and the formal is a procedure.
      	(compare_actual_formal): If the actual argument is a variable
      	and the formal a procedure, this an error.  If a gsymbol exists
      	for a procedure of the same name, this is not yet resolved and
      	the error is cleared.
      
      	* trans-intrinsic.c (gfc_conv_associated): Make provision for
      	zero array length or zero string length contingent on presence
      	of target, for consistency with standard.
      
      2006-06-01  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/25098
      	* gfortran.dg/dummy_procedure_1.f90: New test.
      
      	PR fortran/25147
      	* gfortran.dg/dummy_procedure_2.f90: New test.
      
      	* gfortran.dg/associated_2.f90: Correct to make consistent with
      	standard.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114296 138bc75d-0d04-0410-961f-82ee72b054a4
      e815d37d
  14. 30 May, 2006 1 commit
    • kargl's avatar
      2006-05-30 Asher Langton <langton2@llnl.gov> · a7c1e504
      kargl authored
      	* symbol.c (check_conflict): Allow external, function, and
      	subroutine attributes with Cray pointees.
      	* trans-expr.c (gfc_conv_function_val): Translate Cray pointees
      	that point to procedures.
      	* gfortran.texi: Document new feature.
      
      	* gfortran.dg/cray_pointers_7.f90: New test.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114252 138bc75d-0d04-0410-961f-82ee72b054a4
      a7c1e504
  15. 29 May, 2006 4 commits
  16. 28 May, 2006 1 commit
  17. 27 May, 2006 2 commits
  18. 26 May, 2006 3 commits
    • fxcoudert's avatar
      PR fortran/27524 · f6f5efdc
      fxcoudert authored
      	* trans-array.c (gfc_trans_dummy_array_bias): Don't use stride as
      	a temporary variable when -fbounds-check is enabled, since its
      	value will be needed later.
      
      	* gfortran.dg/bounds_check_1.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114142 138bc75d-0d04-0410-961f-82ee72b054a4
      f6f5efdc
    • tkoenig's avatar
      2006-05-26 Thomas Koenig <Thomas.Koenig@online.de> · e9b8ed17
      tkoenig authored
      	PR fortran/23151
      	* io.c (match_io):  print (1,*) is an error.
      
      2006-05-26  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR fortran/23151
      	* gfortran.dg/inquire_9.f90:  Fix illegal print syntax.
      	* gfortran.dg/print_parentheses_1.f:  New test.
      	* gfortran.dg/print_parentheses_2.f90:  New test.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114138 138bc75d-0d04-0410-961f-82ee72b054a4
      e9b8ed17
    • pault's avatar
      2006-05-26 Paul Thomas <pault@gcc.gnu.org> · 7544787a
      pault authored
      	PR fortran/27709
      	* resolve.c (find_array_spec): Add gfc_symbol, derived, and
      	use to track repeated component references.
      
      	PR fortran/27155
      	PR fortran/27449
      	* trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Use
      	se->string_length throughout and use memcpy to populate the
      	expression returned to the scalarizer.
      	(gfc_size_in_bytes): New function.
      
      2006-05-26  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/27709
      	* gfortran.dg/spec_expr_4.f90: New test.
      
      	PR fortran/27155
      	* gfortran.dg/transfer_array_intrinsic_4.f90: New test.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114127 138bc75d-0d04-0410-961f-82ee72b054a4
      7544787a
  19. 21 May, 2006 2 commits
    • pault's avatar
      2006-05-21 Paul Thomas <pault@gcc.gnu.org> · 84c27833
      pault authored
      	PR fortran/27613
      	* primary.c (gfc_match_rvalue): Test if symbol represents a
      	direct recursive function reference.  Error if array valued,
      	go to function0 otherwise.
      
      2006-05-21  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/27613
      	* gfortran.dg/recursive_reference_1.f90: New test.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113951 138bc75d-0d04-0410-961f-82ee72b054a4
      84c27833
    • pault's avatar
      2006-05-21 Paul Thomas <pault@gcc.gnu.org> · 9960dc89
      pault authored
      	PR fortran/25746
      	* interface.c (gfc_extend_assign): Use new code EXEC_ASSIGN_CALL.
      	* gfortran.h : Put EXEC_ASSIGN_CALL in enum.
      	* trans-stmt.c (gfc_conv_elemental_dependencies): New function.
      	(gfc_trans_call): Call it.  Add new boolian argument to flag
      	need for dependency checking. Assert intent OUT and IN for arg1
      	and arg2.
      	(gfc_trans_forall_1): Use new code EXEC_ASSIGN_CALL.
      	trans-stmt.h : Modify prototype of gfc_trans_call.
      	trans.c (gfc_trans_code): Add call for EXEC_ASSIGN_CALL.
      	st.c (gfc_free_statement): Free actual for EXEC_ASSIGN_CALL.
      	* dependency.c (gfc_check_fncall_dependency): Don't check other
      	against itself.
      
      	PR fortran/25090
      	* resolve.c : Remove resolving_index_expr.
      	(entry_parameter): Remove.
      	(gfc_resolve_expr, resolve_charlen, resolve_fl_variable): Remove
      	calls to entry_parameter and references to resolving_index_expr.
      
      	PR fortran/27584
      	* check.c (gfc_check_associated): Replace NULL assert with an
      	error message, since it is possible to generate bad code that
      	has us fall through to here..
      
      	PR fortran/19015
      	* iresolve.c (maxloc, minloc): If DIM is not present, pass the
      	rank of ARRAY as the shape of the result.  Otherwise, pass the
      	shape of ARRAY, less the dimension DIM.
      	(maxval, minval): The same, when DIM is present, otherwise no
      	change.
      
      2006-05-21  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/25746
      	* gfortran.dg/elemental_subroutine_3.f90: New test.
      
      	PR fortran/25090
      	* gfortran.dg/entry_dummy_ref_1.f90: Remove.
      
      	PR fortran/27584
      	* gfortran.dg/associated_target_1.f90: New test.
      
      	PR fortran/19015
      	* gfortran.dg/maxloc_shape_1.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113949 138bc75d-0d04-0410-961f-82ee72b054a4
      9960dc89
  20. 20 May, 2006 2 commits
    • hjl's avatar
      Fix a typo. · 3b5f7660
      hjl authored
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113942 138bc75d-0d04-0410-961f-82ee72b054a4
      3b5f7660
    • hjl's avatar
      gcc/fortran/ · 97f99a6c
      hjl authored
      2006-05-19  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR fortran/27662
      	* trans-array.c (gfc_conv_expr_descriptor): Don't zere the
      	first stride to indicate a temporary.
      	* trans-expr.c (gfc_conv_function_call): Likewise.
      
      gcc/testsuite/
      
      2006-05-19  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR fortran/27662
      	* gfortran.dg/temporary_1.f90: New file.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113922 138bc75d-0d04-0410-961f-82ee72b054a4
      97f99a6c
  21. 18 May, 2006 1 commit