1. 03 Dec, 2005 1 commit
    • fxcoudert's avatar
      PR fortran/25106 · 90ba4622
      fxcoudert authored
      	* parse.c (next_free): Use new prototype for gfc_match_st_label.
      	Correctly emit hard error if a label is zero.
      	* match.c (gfc_match_st_label): Never allow zero as a valid
      	label.
      	(gfc_match, gfc_match_do, gfc_match_goto): Use new prototype for
      	gfc_match_st_label.
      	* primary.c (): Use new prototype for gfc_match_st_label.
      	* io.c (): Likewise.
      	* match.h: Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107999 138bc75d-0d04-0410-961f-82ee72b054a4
      90ba4622
  2. 27 Nov, 2005 1 commit
  3. 10 Nov, 2005 1 commit
    • tobi's avatar
      fortran/ · d4848c67
      tobi authored
      PR fortran/24643
      * primary.c (match_varspec): Check for implicitly typed CHARACTER
      variables before matching substrings.
      
      testsuite/
      PR fortran/24643
      * gfortran.dg/implicit_6.f90, gfortran.dg/implicit_7.f90: New.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106753 138bc75d-0d04-0410-961f-82ee72b054a4
      d4848c67
  4. 14 Oct, 2005 1 commit
  5. 20 Sep, 2005 1 commit
  6. 17 Sep, 2005 1 commit
    • fxcoudert's avatar
      PR fortran/15586 · 41481754
      fxcoudert authored
      	* arith.c (gfc_arith_error): Add translation support
      	for error messages.
      	* array.c (gfc_match_array_ref): Likewise.
      	(gfc_match_array_spec): Likewise.
      	* check.c (must_be): Add msgid convention to third argument.
      	(same_type_check): Add translation support for error message.
      	(rank_check): Likewise.
      	(kind_value_check): Likewise.
      	(gfc_check_associated): Correct typo.
      	(gfc_check_reshape): Add translation support for error message.
      	(gfc_check_spread): Likewise.
      	* error.c (error_printf): Add nocmsgid convention to argument.
      	(gfc_warning, gfc_notify_std, gfc_warning_now, gfc_warning_check)
      	(gfc_error, gfc_error_now): Likewise.
      	(gfc_status): Add cmsgid convention to argument.
      	* expr.c (gfc_extract_int): Add translation support
              for error messages.
      	(gfc_check_conformance): Add msgid convention to argument.
      	(gfc_check_pointer_assign): Correct tabbing.
      	* gfortran.h: Include intl.h header. Remove prototype
      	for gfc_article.
      	* gfortranspec.c: Include intl.h header.
      	(lang_specific_driver): Add translation support for --version.
      	* io.c (check_format): Add translation support for
      	error message.
      	(format_item_1): Likewise.
      	(data_desc): Likewise.
      	* matchexp.c: Likewise.
      	* misc.c (gfc_article): Remove function.
      	* module.c (bad_module): Use msgid convention. Add
      	translation support for error messages.
      	(require_atom): Add translation support for error messages.
      	* parse.c (gfc_ascii_statement): Likewise.
      	(gfc_state_name): Likewise.
      	* primary.c (match_boz_constant): Reorganise error
      	messages for translations.
      	* resolve.c (resolve_entries): Likewise.
      	(resolve_operator): Add translation support for error messages.
      	(gfc_resolve_expr): Use msgid convention. Reorganise error
              messages for translations.
      	(resolve_symbol): Add translation support for error messages.
      	* symbol.c (gfc_add_procedure): Remove use of gfc_article function.
      	* trans-const.c (gfc_build_string_const): Use msgid convention.
      
      	* exgettext: Add a new nocmsgid convention for arguments
      	that should be marked as no-c-format.
      	* gcc.pot: Regenerate.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104372 138bc75d-0d04-0410-961f-82ee72b054a4
      41481754
  7. 09 Sep, 2005 1 commit
    • pault's avatar
      2005-09-09 Paul Thomas <pault@gcc.gnu.org> · 2b685f8e
      pault authored
      	PR fortran/18878
      	* module.c (find_use_name_n): Based on original
      	find_use_name. Either counts number of use names for a
      	given real name or returns use name n.
      	(find_use_name, number_use_names): Interfaces to the
      	function find_use_name_n.
      	(read_module): Add the logic and calls to these functions,
      	so that mutiple reuses of the same real name are loaded.
      
      2005-09-09  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/22304
      	PR fortran/23270
      	PR fortran/18870
      	PR fortran/16511
      	PR fortran/17917
      	* gfortran.h: Move definition of BLANK_COMMON_NAME from trans-
      	common.c so that it is accessible to module.c. Add common_head
      	field to gfc_symbol structure. Add field for the equivalence
      	name AND new attr field, in_equivalence.
      	* match.c (gfc_match_common, gfc_match_equivalence): In loops
      	that flag common block equivalences, emit an error if the
      	common blocks are different, using sym->common_head as the
      	common block identifier. Ensure that symbols that are equivalence
      	associated with a common block are marked as being in_common.
      	* module.c (write_blank_common): New.
      	(write_common): Use unmangled common block name.
      	(load_equiv): New function ported from g95.
      	(read_module): Call load_equiv.
      	(write_equiv): New function ported from g95. Correct
      	string referencing for gfc functions. Give module
      	equivalences a unique name.
      	(write_module): Call write_equiv and write_blank_common.
      	* primary.c (match_variable) Old gfc_match_variable, made
      	static and third argument provided to indicate if parent
      	namespace to be visited or not.
      	(gfc_match_variable) New. Interface to match_variable.
      	(gfc_match_equiv_variable) New. Interface to match_variable.
      	* trans-common.c (finish_equivalences): Provide the call
      	to create_common with a gfc_common_header so that
      	module equivalences are made external, rather than local.
      	(find_equivalences): Ensure that all members in common block
      	equivalences are marked as used. This prevents the subsequent
      	call to this function from making local unions.
      	* trans-decl.c (gfc_generate_function_code): Move the call to
      	gfc_generate_contained_functions to after the call to
      	gfc_trans_common so the use-associated, contained common
      	blocks produce the correct references.
      	(gfc_create_module_variable): Return for equivalenced symbols
      	with existing backend declaration.
      
      2005-09-09  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/18878
      	* gfortran.dg/module_double_reuse.f90: New.
      
      2005-09-09  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/23270
      	PR fortran/22304
      	PR fortran/18870
      	PR fortran/17917
      	PR fortran/16511
      	* gfortran.dg/common_equivalence_1.f: New.
      	* gfortran.dg/common_equivalence_2.f: New.
      	* gfortran.dg/common_equivalence_3.f: New.
      	* gfortran.dg/contained_equivalence_1.f90: New.
      	* gfortran.dg/module_blank_common.f90: New.
      	* gfortran.dg/module_commons_1.f90: New.
      	* gfortran.dg/module_equivalence_1.f90: New.
      	* gfortran.dg/nested_modules_1.f90: New.
      	* gfortran.dg/g77/19990905-0.f: Remove XFAIL, rearrange
      	equivalences and add comment to connect the test with
      	the PR.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104060 138bc75d-0d04-0410-961f-82ee72b054a4
      2b685f8e
  8. 27 Aug, 2005 1 commit
  9. 06 Aug, 2005 2 commits
    • fxcoudert's avatar
      * primary.c (match_hollerith_constant): Fix typo. · ed33a255
      fxcoudert authored
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102814 138bc75d-0d04-0410-961f-82ee72b054a4
      ed33a255
    • jakub's avatar
      PR fortran/18833 · a3c2bc5e
      jakub authored
      	PR fortran/20850
      	* primary.c (match_varspec): If equiv_flag, don't look at sym's
      	attributes, call gfc_match_array_ref up to twice and don't do any
      	substring or component processing.
      	* resolve.c (resolve_equivalence): Transform REF_ARRAY into
      	REF_SUBSTRING or nothing if needed.  Check that substrings
      	don't have zero length.
      
      	* gfortran.dg/equiv_1.f90: New test.
      	* gfortran.dg/equiv_2.f90: New test.
      	* gfortran.fortran-torture/execute/equiv_2.f90: New test.
      	* gfortran.fortran-torture/execute/equiv_3.f90: New test.
      	* gfortran.fortran-torture/execute/equiv_4.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102801 138bc75d-0d04-0410-961f-82ee72b054a4
      a3c2bc5e
  10. 14 Jul, 2005 1 commit
    • jakub's avatar
      * gfortran.h (MAX_ERROR_MESSAGE): Remove. · 19895fc1
      jakub authored
      	(gfc_error_buf): Add allocated and index fields.  Change message
      	field from array to a pointer.
      	* error.c (use_warning_buffer, error_ptr, warning_ptr): Remove.
      	(cur_error_buffer): New variable.
      	(error_char): Use cur_error_buffer->{message,index} instead of
      	{warning,error}_{buffer.message,ptr}.  Reallocate message buffer
      	if too small.
      	(gfc_warning, gfc_notify_std, gfc_error, gfc_error_now): Setup
      	cur_error_buffer and its index rather than {warning,error}_ptr
      	and use_warning_buffer.
      	(gfc_warning_check, gfc_error_check): Don't print anything if
      	message is NULL.
      	(gfc_push_error): Allocate saved message with xstrdup.
      	(gfc_pop_error): Free saved message with gfc_free.
      	(gfc_free_error): New function.
      	* primary.c (match_complex_constant): Call gfc_free_error if
      	gfc_pop_error will not be called.
      	* match.c (gfc_match_st_function): Likewise.
      
      	* gfortran.dg/g77/cpp6.f: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102015 138bc75d-0d04-0410-961f-82ee72b054a4
      19895fc1
  11. 08 Jul, 2005 1 commit
  12. 07 Jul, 2005 2 commits
    • steven's avatar
      * primary.c (match_hollerith_constant): Use int, not unsigned int, · 55c9782e
      steven authored
      	for the hollerith length.  Fix indentation.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101707 138bc75d-0d04-0410-961f-82ee72b054a4
      55c9782e
    • fengwang's avatar
      For the 60th anniversary of Chinese people��s Anti-Japan war victory. · 169f9d09
      fengwang authored
      2005-07-07  Feng Wang  <fengwang@nudt.edu.cn>
      
      	PR fortran/16531
      	PR fortran/15966
      	PR fortran/18781
      	* arith.c (gfc_hollerith2int, gfc_hollerith2real,
      	gfc_hollerith2complex, gfc_hollerith2character, gfc_hollerith2logical):
      	New functions.
      	(eval_intrinsic): Don't evaluate if Hollerith constant arguments exist.
      	* arith.h (gfc_hollerith2int, gfc_hollerith2real,
      	gfc_hollerith2complex, gfc_hollerith2character, gfc_hollerith2logical):
      	Add prototypes.
      	* expr.c (free_expr0): Free memery allocated for Hollerith constant.
      	(gfc_copy_expr): Allocate and copy string if Expr is from Hollerith.
      	(gfc_check_assign): Enable conversion from Hollerith to other.
      	* gfortran.h (bt): Add BT_HOLLERITH.
      	(gfc_expr): Add from_H flag.
      	* intrinsic.c (gfc_type_letter): Return 'h' for BT_HOLLERITH.
      	(add_conversions): Add conversions from Hollerith constant to other.
      	(do_simplify): Don't simplify if  Hollerith constant arguments exist.
      	* io.c (resolve_tag): Enable array in FORMAT tag under GFC_STD_GNU.
      	* misc.c (gfc_basetype_name): Return "HOLLERITH" for BT_HOLLERITH.
      	(gfc_type_name): Print "HOLLERITH" for BT_HOLLERITH.
      	* primary.c (match_hollerith_constant): New function.
      	(gfc_match_literal_constant): Add match Hollerith before Integer.
      	* simplify.c (gfc_convert_constant): Add conversion from Hollerith
      	to other.
      	* trans-const.c (gfc_conv_constant_to_tree): Use VIEW_CONVERT_EXPR to
      	convert Hollerith constant to tree.
      	* trans-io.c (gfc_convert_array_to_string): Get array's address and
      	length to set string expr.
      	(set_string): Deal with array assigned Hollerith constant and character
      	array.
      	* gfortran.texi: Document Hollerith constants as extention support.
      
      2005-07-07  Feng Wang  <fengwang@nudt.edu.cn>
      
      	PR fortran/16531
      	PR fortran/15966
      	PR fortran/18781
      	* gfortran.dg/hollerith.f90: New.
      	* gfortran.dg/hollerith2.f90: New.
      	* gfortran.dg/hollerith3.f90: New.
      	* gfortran.dg/hollerith4.f90: New.
      	* gfortran.dg/hollerith_f95.f90: New.
      	* gfortran.dg/hollerith_legacy.f90: New.
      	* gfortran.dg/g77/cpp4.F: New. Port from g77.
      
      2005-07-07  Feng Wang  <fengwang@nudt.edu.cn>
      
      	PR fortran/16531
      	* io/transfer.c (formatted_transfer): Enable FMT_A on other types to
      	support Hollerith constants.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101688 138bc75d-0d04-0410-961f-82ee72b054a4
      169f9d09
  13. 25 Jun, 2005 1 commit
  14. 20 Jun, 2005 1 commit
    • fxcoudert's avatar
      * gfortran.h: Add flag_backslash compile-time option. · 2467f78d
      fxcoudert authored
      	* lang.opt: Add support for -fbackslash option.
      	* options.c: Likewise.
      	* primary.c: Implement behavior for -fno-backslash.
      	* invoke.texi: Add doc for -fbackslash option.
      	* gfortran.texi: Remove mention of -fno-backslash as a
      	possible extension.
      	* gfortran.dg/backslash_1.f90: New test.
      	* gfortran.dg/backslash_2.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101216 138bc75d-0d04-0410-961f-82ee72b054a4
      2467f78d
  15. 18 Jun, 2005 1 commit
  16. 25 Apr, 2005 1 commit
    • pbrook's avatar
      2005-04-25 Paul Brook <paul@codesourcery.com> · 10f8ef8c
      pbrook authored
      	Steven G. Kargl  <kargls@comcast.net>
      
      	PR fortran/20879
      	* check.c (gfc_check_ichar_iachar): New function.
      	* instinsic.h (gfc_check_ichar_iachar): Add prototype.
      	* intrinsic.c (add_functions): Use it.
      	* primary.c (match_varspec, gfc_match_rvalue): Clear incorrect
      	character expression lengths.
      
      testsuite/
      	* gfortran.dg/ichar_1.f90: New file.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98686 138bc75d-0d04-0410-961f-82ee72b054a4
      10f8ef8c
  17. 05 Mar, 2005 1 commit
    • kargl's avatar
      PR 19936 · dea4362c
      kargl authored
      * primary.c (match_complex_constant): Mangled complex constant may
      be an implied do-loop.  Give implied do-loop matcher a chance.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95951 138bc75d-0d04-0410-961f-82ee72b054a4
      dea4362c
  18. 28 Feb, 2005 1 commit
    • kargl's avatar
      PR fortran/20058 · cca126f0
      kargl authored
      * trans-types.c (gfc_max_integer_kind): Declare
        (gfc_init_kinds): Initialize it.
      * gfortran.h (gfc_max_integer_kind): extern it.
      * primary.c (match_boz_constant): Use it; remove gfortran extension
        of kind suffixes on BOZ literal constants
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95643 138bc75d-0d04-0410-961f-82ee72b054a4
      cca126f0
  19. 24 Feb, 2005 2 commits
  20. 23 Feb, 2005 1 commit
    • tobi's avatar
      * gfortran.h (gfc_component, gfc_actual_arglist, gfc_user_op): Make · 2ef746b7
      tobi authored
      'name' a 'const char *'.
      (gfc_symbol): Likewise, also for 'module'.
      (gfc_symtree): Make 'name' a 'const char *'.
      (gfc_intrinsic_sym): Likewise, also for 'lib_name'.
      (gfc_get_gsymbol, gfc_find_gsymbol): Add 'const' qualifier to
      'char *' argument.
      (gfc_intrinsic_symbol): Use 'gfc_get_string' instead of 'strcpy' to
      initialize 'SYM->module'.
      * check.c (gfc_check_minloc_maxloc, check_reduction): Check for NULL
      pointer instead of empty string.
      * dump-parse-tree.c (gfc_show_actual_arglist): Likewise.
      * interface.c (gfc_compare_types): Adapt check to account for possible
      NULL pointer.
      (compare_actual_formal): Check for NULL pointer instead of empty
      string.
      * intrinsic.c (gfc_current_intrinsic, gfc_current_intrinsic_arg):
      Add 'const' qualifier.
      (conv_name): Return a heap allocated string.
      (find_conv): Add 'const' qualifier to 'target'.
      (add_sym): Use 'gfc_get_string' instead of 'strcpy'.
      (make_generic): Check for NULL pointer instead of emptystring.
      (make_alias): Use 'gfc_get_string' instead of 'strcpy'.
      (add_conv): No need to strcpy result from 'conv_name'.
      (sort_actual): Check for NULL pointer instead of emptystring.
      * intrinsic.h (gfc_current_intrinsic, gfc_current_intrinsic_arg):
      Adapt prototype.
      * module.c (compare_true_names): Compare pointers instead of strings
      for 'module' member.
      (find_true_name): Initialize string fields with gfc_get_string.
      (mio_pool_string): New function.
      (mio_internal_string): Adapt comment.
      (mio_component_ref, mio_component, mio_actual_arg): Use
      'mio_pool_string' instead of 'mio_internal_string'.
      (mio_symbol_interface): Add 'const' qualifier to string arguments.
      Add level of indirection. Use 'mio_pool_string' instead of
      'mio_internal_string'.
      (load_needed, read_module): Use 'gfc_get_string' instead of 'strcpy'.
      (write_common, write_symbol): Use 'mio_pool_string' instead of
      'mio_internal_string'.
      (write_symbol0, write_symbol1): Likewise, also check for NULL pointer
      instead of empty string.
      (write_operator, write_generic): Pass correct type variable to
      'mio_symbol_interface'.
      (write_symtree): Use 'mio_pool_string' instead of
      'mio_internal_string'.
      * primary.c (match_keyword_arg): Adapt check to possible
      case of NULL pointer.  Use 'gfc_get_string' instead of 'strcpy'.
      * symbol.c (gfc_add_component, gfc_new_symtree, delete_symtree,
      gfc_get_uop, gfc_new_symbol): Use 'gfc_get_string' instead of
      'strcpy'.
      (ambiguous_symbol): Check for NULL pointer instead of empty string.
      (gfc_find_gsymbol, gfc_get_gsymbol): Add 'const' qualifier on string
      arguments.
      * trans-array.c (gfc_trans_auto_array_allocation): Check for NULL
      pointer instead of empty string.
      * trans-decl.c (gfc_sym_mangled_identifier,
      gfc_sym_mangled_function_id, gfc_finish_var_decl, gfc_get_symbol_decl,
      gfc_get_symbol_decl): Likewise.
      * trans-io.c (gfc_new_nml_name_expr): Add 'const' qualifier to
      argument.  Copy string instead of pointing to it.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95472 138bc75d-0d04-0410-961f-82ee72b054a4
      2ef746b7
  21. 07 Feb, 2005 1 commit
    • tobi's avatar
      * gfortran.h (gfc_add_dimension, gfc_add_result, gfc_add_save, · 950683ed
      tobi authored
      gfc_add_dummy, gfc_add_generic, gfc_add_in_common, gfc_add_data,
      gfc_add_in_namelist, gfc_add_sequence, gfc_add_function,
      gfc_add_subroutine, gfc_add_access, gfc_add_flavor, gfc_add_entry,
      gfc_add_procedure): Add argument.
      * array.c (gfc_set_array_spec), decl.c (var_element, get_proc_name,
      gfc_match_null, match_type_spec, match_attr_spec,
      gfc_match_formal_arglist, match_result, gfc_match_function_decl):
      Update callers to match.
      (gfc_match_entry) : Likewise, fix comment typo.
      (gfc_match_subroutine, attr_decl1, gfc_add_dimension,
      access_attr_decl, do_parm, gfc_match_save, gfc_match_modproc,
      gfc_match_derived_decl): Update callers.
      * interface.c (gfc_match_interface): Likewise.
      * match.c (gfc_match_label, gfc_add_flavor,
      gfc_match_call, gfc_match_common, gfc_match_block_data,
      gfc_match_namelist, gfc_match_module, gfc_match_st_function):
      Likewise.
      * parse.c (parse_derived, parse_interface, parse_contained),
      primary.c (gfc_match_rvalue, gfc_match_variable): Likewise.
      * resolve.c (resolve_formal_arglist, resolve_entries): Update callers.
      * symbol.c (check_conflict, check_used): Add new 'name' argument,
      use when printing error message.
      (gfc_add_dimension, gfc_add_result, gfc_add_save, gfc_add_dummy,
      gfc_add_generic, gfc_add_in_common, gfc_add_data,
      gfc_add_in_namelist, gfc_add_sequence, gfc_add_function,
      gfc_add_subroutine, gfc_add_access, gfc_add_flavor, gfc_add_entry,
      gfc_add_procedure): Add new 'name' argument.  Pass along to
      check_conflict and check_used.
      (gfc_add_allocatable, gfc_add_external, gfc_add_intrinsic,
      gfc_add_optional, gfc_add_pointer, gfc_add_target, gfc_add_elemental,
      gfc_add_pure, gfc_add_recursive, gfc_add_intent,
      gfc_add_explicit_interface, gfc_copy_attr): Pass NULL for new
      argument in calls to any of the modified functions.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94718 138bc75d-0d04-0410-961f-82ee72b054a4
      950683ed
  22. 23 Jan, 2005 1 commit
    • pbrook's avatar
      2004-01-23 Paul Brook <paul@codesourcery.com> · d99109cb
      pbrook authored
      	Steven G. Kargl  <kargls@comcast.net>
      
      	PR fortran/17941
      	* arith.c (gfc_convert_real): Remove sign handling.
      	* primary.c (match_digits): Allow whitespace after initial sign.
      	(match_real_const): Handle signs here.  Allow whitespace after
      	initial sign.  Remove dead code.
      	(match_const_complex_part): Remove.
      	(match_complex_part): Use match_{real,integer}_const.
      	(match_complex_constant): Cross-promote integer types.
      testsuite/
      	* gfortran.dg/real_const_1.f: New test.
      	* gfortran.dg/real_const_2.f90: New test.
      	* gfortran.dg/complex_int_1.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94127 138bc75d-0d04-0410-961f-82ee72b054a4
      d99109cb
  23. 22 Jan, 2005 1 commit
    • pbrook's avatar
      2005-01-22 Paul Brook <paul@codesourcery.com> · e311e7c3
      pbrook authored
      	* primary.c (gfc_match_rvalue): Only apply implicit type if variable
      	does not have an explicit type.
      	(gfc_match_variable): Resolve implicit derived types in all cases.
      	Resolve contained function types from their own namespace, not the
      	parent.
      	* resolve.c (resolve_contained_fntype): Remove duplicate sym->result
      	checking.  Resolve from the contained namespace, not the parent.
      testsuite/
      	* gfortran.dg/implicit_2.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94066 138bc75d-0d04-0410-961f-82ee72b054a4
      e311e7c3
  24. 15 Jan, 2005 1 commit
  25. 03 Jan, 2005 1 commit
    • rth's avatar
      * arith.c: Add system.h; remove string.h · 7436502b
      rth authored
              * decl.c: Ditto
              * matchexp.c: Ditto
              * parse.c: Ditto
              * resolve.c: Ditto
              * st.c: Ditto
              * check.c: Remove stdlib.h and stdarg.h
              * error.c: Remove stdlib.h, stdarg.h, stdio.h, string.h
              * expr.c: Add system.h; remove stdarg.h, stdio.h, and string.h
              * f95-lang.c: Add system.h; remove stdio.h
              * interface.c: Add system.h; remove stdlib.h and string.h
              * intrinsic.c: Remove stdarg.h, stdio.h, and string.h
              * io.c: Remove string.h
              * simplify.c: Ditto
              * match.c: Remove stdarg.h and string.h
              * misc.c: Update copyright; add system.h; remove stdlib.h,
              string.h, and sys/stat.h
              * module.c: Add system.h; remove string.h, stdio.h, errno.h,
              unistd.h, and time.h
              * option.c: Remove string.h and stdlib.h
              * primary.c: Ditto
              * scanner.c: Update copyright; add system.h; remove stdlib.h,
              stdio.h, string.h, and strings.h
              * symbol.c: Add system.h; remove stdlib.h, stdio.h, and string.h
              * trans-array.c: Remove stdio.h and gmp.h
              * trans-const.c: Ditto
              * trans-expr.c: Ditto
              * trans-io.c: Ditto
              * trans-stmt.c: Ditto
              * trans.c: Ditto
              * trans-intrinsic.c: Remove stdio.h and string.h
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92866 138bc75d-0d04-0410-961f-82ee72b054a4
      7436502b
  26. 08 Nov, 2004 1 commit
  27. 07 Oct, 2004 1 commit
    • tobi's avatar
      fortran/ · 4d6b4af6
      tobi authored
      * primary.c (match_boz_constant): Allow kind parameter suffixes.
      Move standard warning further to the front.
      
      testsuite/
      * gfortran.fortran-torture/execute/intrinsic_mvbits.f90,
      gfortran.dg/ishft.f90: Add more tests.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88690 138bc75d-0d04-0410-961f-82ee72b054a4
      4d6b4af6
  28. 31 Aug, 2004 1 commit
  29. 27 Aug, 2004 1 commit
    • tobi's avatar
      * gfortran.h (gfc_default_*_kind): Remove prototypes, add extern · b8a891cb
      tobi authored
      variable declaration of same name.
      * arith.c, check.c, decl.c, dump_parse_tree.c, expr.c,
      intrinsic.c, io.c, iresolve.c, match.c, options.c, primary.c,
      resolve.c, simplify.c, symbol.c, trans-const.c, trans-io.c:
      Replace all calls to gfc_default_*_kind with variable accesses.
      * trans-types.c: Same as above.
      (gfc_default_*_kind_1): Rename to gfc_default_*_kind, remove
      static qualifier. Replace all occurences.
      (gfc_default_*_kind): Remove functions.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86662 138bc75d-0d04-0410-961f-82ee72b054a4
      b8a891cb
  30. 26 Aug, 2004 1 commit
    • rth's avatar
      * arith.c (gfc_validate_kind): Add may_fail argument; abort if · f2d4ef3b
      rth authored
              false and we don't validate the kind.
              (gfc_check_integer_range, gfc_check_real_range): Update to match.
              * check.c (kind_check): Likewise.
              * decl.c (gfc_match_old_kind_spec, gfc_match_kind_spec): Likewise.
              (match_char_spec, match_logical_spec): Likewise.
              * gfortran.h (gfc_validate_kind): Likewise.
              * options.c (gfc_handle_option): Likewise.
              * primary.c (match_integer_constant, match_real_constant,
              match_string_constant, match_logical_constant,
              match_const_complex_part): Likewise.
              * simplify.c (get_kind, gfc_simplify_bit_size, gfc_simplify_digits,
              gfc_simplify_epsilon, gfc_simplify_huge, gfc_simplify_ibclr,
              gfc_simplify_ibset, gfc_simplify_ishft, gfc_simplify_ishftc,
              gfc_simplify_maxexponent, gfc_simplify_minexponent,
              gfc_simplify_nearest, gfc_simplify_not, gfc_simplify_precision,
              gfc_simplify_radix, gfc_simplify_range, gfc_simplify_rrspacing,
              gfc_simplify_scale, gfc_simplify_spacing, gfc_simplify_tan,
              gfc_simplify_tiny): Likewise.
              * trans-intrinsic.c (gfc_conv_intrinsic_aint, gfc_conv_intrinsic_mod,
              gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
              prepare_arg_info): Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86608 138bc75d-0d04-0410-961f-82ee72b054a4
      f2d4ef3b
  31. 06 Aug, 2004 1 commit
    • pbrook's avatar
      2004-08-06 Steven G. Kargl <kargls@comcast.net> · 4b1085db
      pbrook authored
      	* arith.c: Add #define for model numbers.  Remove global GMP variables.
      	(natural_logarithm,common_logarithm,exponential,sine,
      	cosine,arctangent,hypercos,hypersine ): Remove.
      	(gfc_mpfr_to_mpz,gfc_set_model_kind,gfc_set_model): New functions.
      	(arctangent2,gfc_arith_init_1,gfc_arith_done_1
      	gfc_check_real_range, gfc_constant_result, gfc_range_check,
      	gfc_arith_uminus,gfc_arith_plus, gfc_arith_minus, gfc_arith_times,
      	gfc_arith_divide,complex_reciprocal,complex_pow_ui,
      	gfc_arith_power,gfc_compare_expr,compare_complex,gfc_convert_real,
      	gfc_convert_complex,gfc_int2real,gfc_int2complex,
      	gfc_real2int,gfc_real2real,gfc_real2complex,
      	gfc_complex2int,gfc_complex2real,gfc_complex2complex): Convert GMP
      	to MPFR, use new functions.
      	* arith.h: Remove extern global variables.
      	(natural_logarithm,common_logarithm,exponential, sine, cosine,
      	arctangent,hypercos,hypersine): Remove prototypes.
      	(arctangent2): Update prototype from GMP to MPFR.
      	(gfc_mpfr_to_mpz, gfc_set_model_kind,gfc_set_model): Add prototypes.
      	* dump-parse-tree.c (gfc_show_expr): Convert GMP to MPFR.
      	* expr.c (free_expr0,gfc_copy_expr): Convert GMP to MPFR.
      	* gfortran.h (GFC_REAL_BITS): Remove.
      	(arith): Add ARITH_NAN.
      	Include mpfr.h.  Define GFC_RND_MODE.
      	Rename GCC_GFORTRAN_H GFC_GFC_H.
      	(gfc_expr): Convert GMP to MPFR.
      	* module.c: Add arith.h, correct type in comment.
      	(mio_gmp_real): Convert GMP to MPFR.
      	(mio_expr):  Use gfc_set_model_kind().
      	* primary.c:  Update copyright date with 2004.
      	(match_real_constant,match_const_complex_part): Convert GMP to MPFR.
      	* simplify.c: Remove global GMP variables
      	(gfc_simplify_abs,gfc_simplify_acos,gfc_simplify_aimag,
      	gfc_simplify_aint,gfc_simplify_dint,gfc_simplify_anint,
      	gfc_simplify_dnint,gfc_simplify_asin,gfc_simplify_atan,
      	gfc_simplify_atan2,gfc_simplify_ceiling,simplify_cmplx,
      	gfc_simplify_conjg,gfc_simplify_cos,gfc_simplify_cosh,
      	gfc_simplify_dim,gfc_simplify_dprod,gfc_simplify_epsilon,
      	gfc_simplify_exp,gfc_simplify_exponent,gfc_simplify_floor,
      	gfc_simplify_fraction,gfc_simplify_huge,gfc_simplify_int,
      	gfc_simplify_ifix,gfc_simplify_idint,gfc_simplify_log,
      	gfc_simplify_log10,simplify_min_max,gfc_simplify_mod,
      	gfc_simplify_modulo,gfc_simplify_nearest,simplify_nint,
      	gfc_simplify_rrspacing,gfc_simplify_scale,
      	gfc_simplify_set_exponent,gfc_simplify_sign,gfc_simplify_sin,
      	gfc_simplify_sinh,gfc_simplify_spacing,gfc_simplify_sqrt,
      	gfc_simplify_tan,gfc_simplify_tanh,gfc_simplify_tiny,
      	gfc_simplify_init_1,gfc_simplify_done_1):  Convert GMP to MPFR.
      	Use new functions.
      	* trans-const.c (gfc_conv_mpfr_to_tree): Rename from
      	gfc_conv_mpf_to_tree.  Convert it to use MPFR
      	(gfc_conv_constant_to_tree): Use it.
      	* trans-const.h: Update prototype for gfc_conv_mpfr_to_tree().
      	* trans-intrinsic.c: Add arith.h, remove gmp.h
      	(gfc_conv_intrinsic_aint,gfc_conv_intrinsic_mod): Convert GMP to MPFR.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85652 138bc75d-0d04-0410-961f-82ee72b054a4
      4b1085db
  32. 11 Jul, 2004 1 commit
  33. 09 Jul, 2004 1 commit
    • tobi's avatar
      fortran/ · 787a55d2
      tobi authored
      2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
      
      PR fortran/15481
      PR fortran/13372
      PR fortran/13575
      PR fortran/15978
      * module.c (write_symbol, write_symtree): Remove workaround.
      * primary.c (match_actual_arglist): Enhance comment.
      (gfc_match_rvalue): Handle function call with first argument
      a keyword argument correctly.
      * resolve.c (resolve_symbol): Change call to
      gfc_set_default_type to issue error if no implicit type
      can be found.
      * trans-decl.c (gfc_create_module_variable): Remove workaround.
      
      testsuite/
      PR fortran/15481
       PR fortran/13372
       PR fortran/13575
       PR fortran/15978
      * gfortran.fortran-torture/compile/implicit_2.f90: New test.
      
      Also fixed David Billinghursts ChangeLog entry to use GMT
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84373 138bc75d-0d04-0410-961f-82ee72b054a4
      787a55d2
  34. 27 May, 2004 1 commit
    • tobi's avatar
      * gfortran.h (gfc_current_locus, gfc_set_locus): Remove. · cbb9e6aa
      tobi authored
      (gfc_current_locus): Declare new global variable.
      * scanner.c (gfc_current_locus, gfc_set_locus): Remove.
      (gfc_current_locus1): Rename ...
      (gfc_current_locus): ... to this.
      (gfc_at_eof, gfc_at_bol, gfc_at_eol, gfc_advance_line, next_char,
      skip_fixed_comments, skip_free_comments, gfc_next_char_literal,
      gfc_peek_char, gfc_gobble_whitespace, gfc_new_file): Use
      gfc_current_locus instead of gfc_current_locus1, gfc_set_locus()
      and gfc_current_locus(), respectively.
      * array.c (match_subscript, gfc_match_array_ref, match_array_list,
      match_array_cons_element, gfc_match_array_constructor):
      Read/modify gfc_current_locus instead of calling gfc_set_locus()
      and gfc_current_locus().
      * decl.c (gfc_match_null, variable_decl, gfc_match_kind_spec,
      match_attr_spec, gfc_match_function_decl, gfc_match_end,
      attr_decl1, gfc_match_save): Likewise.
      * error.c (error_print, gfc_internal_error): Likewise.
      * expr.c (gfc_int_expr, gfc_default_logical_kind): Likewise.
      * interface.c (gfc_add_interface): Likewise.
      * io.c (gfc_match_format, match_dt_format, match_dt_element,
      match_io_iterator, match_io): Likewise.
      * match.c (gfc_match_space, gfc_match_eos,
      gfc_match_small_literal_int, gfc_match_st_label,
      gfc_match_strings, gfc_match_name, gfc_match_iterator,
      gfc_match_char, gfc_match, gfc_match_assignment,
      gfc_match_pointer_assignment, gfc_match_if, gfc_match_do,
      gfc_match_nullify, gfc_match_call, match_implicit_range,
      gfc_match_implicit, gfc_match_data, match_case_selector,
      gfc_match_case, match_forall_iterator): Likewise.
      * matchexp.c (gfc_match_defined_op_name, next_operator,
      match_level_1, match_mult_operand, match_ext_mult_operand,
      match_add_operand, match_ext_add_operand, match_level_2,
      match_level_3, match_level_4, match_and_operand, match_or_operand,
      match_equiv_operand, match_level_5, gfc_match_expr): Likewise.
      * module.c (gfc_match_use, mio_array_ref, mio_expr): Likewise.
      * parse.c (match_word, decode_statement, next_free, next_fixed,
      add_statement, verify_st_order, parse_if_block, gfc_parse_file):
      Likewise.
      * primary.c (match_digits, match_integer_constant,
      match_boz_constant, match_real_constant, match_substring,
      next_string_char, match_charkind_name, match_string_constant,
      match_logical_constant, match_const_complex_part,
      match_complex_constant, match_actual_arg, match_keyword_arg,
      gfc_match_actual_arglist, gfc_match_structure_constructor,
      gfc_match_rvalue, gfc_match_variable): Likewise.
      * st.c (gfc_get_code): Likewise.
      * symbol.c (check_conflict, check_used, check_done,
      duplicate_attr, add_flavor, gfc_add_procedure, gfc_add_intent,
      gfc_add_access, gfc_add_explicit_interface, gfc_add_type,
      gfc_add_component, gfc_reference_st_label, gfc_new_symbol): Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82320 138bc75d-0d04-0410-961f-82ee72b054a4
      cbb9e6aa
  35. 22 May, 2004 1 commit
    • pbrook's avatar
      * invoke.texi: Document -Wunderflow and spell check. · 9857bf0d
      pbrook authored
      	* lang.opt: Add Wunderflow.
      	* gfortran.h (gfc_option_t): Add warn_underflow option.
      	* options.c (gfc_init_options, set_Wall): Use it.
      	* primary.c (match_real_constant): Explicitly handle UNDERFLOW.
      	* arith.c (gfc_arith_uminus, gfc_arith_plus, gfc_arith_minus,
      	gfc_arith_times, gfc_arith_divide, gfc_arith_power, gfc_real2real,
      	gfc_real2complex, gfc_complex2real, gfc_complex2complex): Ditto.
      	* arith.c (common_logarithm): Fix typo in comment.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82130 138bc75d-0d04-0410-961f-82ee72b054a4
      9857bf0d
  36. 15 May, 2004 2 commits
    • tobi's avatar
      testsuite: · b9da0959
      tobi authored
      PR fortran/13826
      PR fortran/13940
      * gfortran.fortran-torture/compile/data_1.f90: New test.
      (add second test)
      
      fortran:
      * primary.c (match_boz_constant): Use gfc_notify_std() for
      issuing a warning or an error.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81892 138bc75d-0d04-0410-961f-82ee72b054a4
      b9da0959
    • tobi's avatar
      fortran: · d88b1bc0
      tobi authored
      PR fortran/13826
      * primary.c (match_structure_constructor): Rename ...
      (gfc_match_structure_constructor): ... to this. Make non-static.
      (gfc_match_rvalue): Call renamed function.
      * match.h (gfc_match_structure_constructor): Declare.
      * match.c (gfc_match_data_constant): Handle structure
      constructor.
      
      testsuite:
      PR fortran/13826
      * gfortran.fortran-torture/compile/data_1.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81891 138bc75d-0d04-0410-961f-82ee72b054a4
      d88b1bc0