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. 09 Sep, 2005 1 commit
  3. 07 Aug, 2005 1 commit
    • kargl's avatar
      2005-08-07 Janne Blomqvist <jblomqvi@cc.hut.fi> · 6c306f90
      kargl authored
              PR fortran/22390
              * dump-parse-tree.c (gfc_show_code_node): Add case for FLUSH.
              * gfortran.h: Add enums for FLUSH.
              * io.c (gfc_free_filepos,match_file_element,match_filepos): Modify
              comment appropriately.  (gfc_match_flush): New function.
              * match.c (gfc_match_if): Add match for flush.
              * match.h: Add prototype.
              * parse.c (decode_statement): Add flush to 'f' case.
              (next_statement): Add case for flush. (gfc_ascii_statement): Likewise.
              * resolve.c (resolve_code): Add flush case.
              * st.c (gfc_free_statement): Add flush case.
              * trans-io.c: Add prototype for flush.
              (gfc_build_io_library_fndecls): Build fndecl for flush.
              (gfc_trans_flush): New function.
              * trans-stmt.h: Add prototype.
              * trans.c (gfc_trans_code): Add case for flush.
      
      2005-08-07  Janne Blomqvist  <jblomqvi@cc.hut.fi>
      
              PR fortran/22390
              * io/backspace.c: File removed, contents moved to ...
              * io/endfile.c: Ditto.
              * io/rewind.c: Ditto.
              * io/file_pos.c: New file, ... here.
              * Makefile.am: Add file_pos.c to list, remove obsolete files.
              * Makefile.in: Regenerated.
      
      2005-08-07  Janne Blomqvist <jblomqvi@cc.hut.fi>
                  Steven G. Kargl <kargls@comcast.net>
      
              PR fortran/22390
              * gfortran.dg/flush_1.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102835 138bc75d-0d04-0410-961f-82ee72b054a4
      6c306f90
  4. 25 Jun, 2005 1 commit
  5. 03 May, 2005 1 commit
  6. 05 Apr, 2005 1 commit
    • fengwang's avatar
      2005-04-05 Feng Wang <fengwang@nudt.edu.cn> · a270dc8e
      fengwang authored
      	PR fortran/15959
      	PR fortran/20713
      
      	* array.c (resolve_character_array_constructor): New function. Set
      	constant character array's character length.
      	(gfc_resolve_array_constructor): Use it.
      	* decl.c (add_init_expr_to_sym): Set symbol and initializer character
      	length.
      	(gfc_set_constant_character_len): New function. Set constant character
      	expression according the given length.
      	* match.h (gfc_set_constant_character_len): Add prototype.
      
      2005-04-05  Feng Wang  <fengwang@nudt.edu.cn>
      
      	* gfortran.dg/pr15959.f90: New test.
      	* gfortran.dg/string_pad_trunc.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97613 138bc75d-0d04-0410-961f-82ee72b054a4
      a270dc8e
  7. 29 Aug, 2004 1 commit
    • tobi's avatar
      fortran/ · b4f45d02
      tobi authored
      PR fortran/13910
      * decl.c (free_variable, free_value, gfc_free_data, var_list,
      var_element, top_var_list, match_data_constant, top_val_list,
      gfc_match_data): Move here from match.c.
      (match_old_style_init): New function.
      (variable_decl): Match old-style initialization.
      * expr.c (gfc_get_variable_expr): New function.
      * gfortran.h (gfc_get_variable_expr): Add prototype.
      * gfortran.texi: Start documentation for supported extensions.
      * match.c: Remove the functions moved to decl.c.
      * match.h (gfc_match_data): Move prototype to under decl.c.
      * symbol.c (gfc_find_sym_tree, gfc_find_symbol): Add/correct
      comments.
      
      testsuite/
      PR fortran/13910
      * gfortran.dg/oldstyle_1.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86729 138bc75d-0d04-0410-961f-82ee72b054a4
      b4f45d02
  8. 10 Jul, 2004 1 commit
    • tobi's avatar
      PR fortran/16336 · 403ddc45
      tobi authored
      * decl.c (gfc_match_save): Use-associated common block
      doesn't collide.
      * gfortran.h (gfc_common_head): Add new field 'name'.
      Fix typo in comment after #endif.
      * match.c (gfc_get_common): Add new argument from_common,
      mangle name if flag is set, fill in new field in structure
      gfc_common_head.
      (match_common): Set new arg in call to gfc_get_common,
      use-associated common block doesn't collide.
      * match.h (gfc_get_common): Adapt prototype.
      * module.c (load_commons): Set new arg in call to
      gfc_get_common.
      * symbol.c (free_common_tree): New function.
      (gfc_free_namespace): Call new function.
      * trans-common.c (several functions): Remove argument
      'name', use name from gfc_common_head instead.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84476 138bc75d-0d04-0410-961f-82ee72b054a4
      403ddc45
  9. 30 Jun, 2004 1 commit
    • tobi's avatar
      fortran/ · 39351103
      tobi authored
      PR fortran/16161
      * decl.c (gfc_match_type_spec): Rename second argument to
      'implicit_flag', reverse meaning. Don't match_char_spec if
      'implicit_flag' is set. Rename to ...
      (match_type_spec): ... this.
      (gfc_match_implicit_none, match_implicit_range): Move here
      from match.c.
      (gfc_match_implicit): Move here from match.c, try to
      match_char_len if match_implicit_range doesn't succeed for
      CHARACTER implicits. Call renamed fucntion match_type_spec.
      (gfc_match_data_decl, match_prefix): Call renamed function
      match_type_spec.
      * match.c (gfc_match_implicit_none, match_implicit_range,
      gfc_match_implicit): Move to decl.c.
      * match.h (gfc_match_implicit_none, gfc_match_implicit):
      Move protoypes to section 'decl.c'.
      (gfc_match_type_spec): Remove prototype.
      
      testsuite/
      PR fortran/16161
      * gfortran.fortran-torture/compile/implicit.f90: Add test
      for implicit character.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83907 138bc75d-0d04-0410-961f-82ee72b054a4
      39351103
  10. 29 Jun, 2004 3 commits
    • tobi's avatar
      Revert previous accidental commit. · ed46775e
      tobi authored
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83875 138bc75d-0d04-0410-961f-82ee72b054a4
      ed46775e
    • tobi's avatar
      * dump-parse-tree.c (show_common): New function. · 553fbf58
      tobi authored
      (gfc_show_namespace): Show commons.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83874 138bc75d-0d04-0410-961f-82ee72b054a4
      553fbf58
    • tobi's avatar
      2004-06-29 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de> · 82f5ee13
      tobi authored
      Andrew Vaught  <andyv@firstinter.net>
      
      PR fortran/13249
      PR fortran/15481
      * declc (gfc_match_save): Adapt to new common structures,
      don't allow saving USE-associated common.
      * dump-parse-tree (gfc_show_attr): (saved_)common are not
      symbol attributes any longer.
      (gfc_show_symbol): Don't show old-style commons any longer.
      (gfc_show_namespace): Adapt call to gfc_traverse_symtree to new
      interface.
      * gfortran.h (symbol_attribute): Remove common and saved_common
      attributes.
      (gfc_symbol): Remove common_head element.
      (gfc_common_head): New struct.
      (gfc_get_common_head): New macro.
      (gfc_symtree): Add field 'common' to union.
      (gfc_namespace): Add field 'common_root'; change type of field
      'blank_common' to blank_common.
      (gfc_add_data): New prototype.
      (gfc_traverse_symtree): Expect a symtree as first argument
      instead of namespace.
      * match.c (gfc_get_common): New function.
      (match_common_name): Change to take char * as argument, adapt,
      fix bug with empty name.
      (gfc_match_common): Adapt to new data structures. Disallow
      redeclaration of USE-associated COMMON-block. Fix bug with
      empty common.
      (var_element): Adapt to new common structures.
      * match.h (gfc_get_common): Declare.
      * module.c: Add 2004 to copyright years, add commons to module
      file layout description.
      (ab_attribute, attr_bits, mio_symbol_attributes): Remove code
      for removed attributes.
      (mio_symbol): Adapt to new way of storing common relations.
      (load_commons): New function.
      (read_module): Skip common list on first pass, load_commons at
      second.
      (write_commons): New function.
      (write_module): Call write_commons().
      * symbol.c (gfc_add_saved_comon, gfc_add_common): Remove
      functions related to removed attributes.
      (gfc_add_data): New function.
      (gfc_clear_attr): Don't set removed attributes.
      (gfc_copy_attr): Don't copy removed attributes.
      (traverse_symtree): Remove.
      (gfc_traverse_symtree): Don't traverse symbol
      tree of the passed namespace, but require a symtree to be passed
      instead. Unify with traverse_symtree.
      (gfc_traverse_ns): Call gfc_traverse_symtree according to new
      interface.
      (save_symbol): Remove setting of removed attribute.
      * trans-common.c (gfc_sym_mangled_common_id): Change to
      take 'char *' argument instead of 'gfc_symbol'.
      (build_common_decl, new_segment, translate_common): Adapt to new
      data structures, add new
      argument name.
      (create_common): Adapt to new data structures, add new
      argument name. Fix typo in intialization of derived types.
      (finish_equivalences): Add second argument in call to
      create_common.
      (named_common): take 'gfc_symtree' instead of 'gfc_symbol'.
      (gfc_trans_common): Adapt to new data structures.
      * trans-decl.c (gfc_create_module_variables): Also output
      symbols from commons.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83871 138bc75d-0d04-0410-961f-82ee72b054a4
      82f5ee13
  11. 15 May, 2004 1 commit
    • 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
  12. 14 May, 2004 1 commit
    • tobi's avatar
      * Make-lang.in, arith.c, arith.h, array.c, bbt.c, check.c, · c84b470d
      tobi authored
      decl.c, dependency.c, dependency.h, dump-parse-tree.c, error.c,
      expr.c, f95-lang.c, gfortran.h, interface.c, intrinsic.c,
      intrinsic.h, io.c, iresolve.c, lang-specs.h, match.c, match.h,
      matchexp.c, misc.c, module.c, options.c, parse.c, parse.h,
      primary.c, resolve.c, scanner.c, simplify.c, st.c, symbol.c,
      trans-array.c, trans-array.h, trans-common.c, trans-const.c,
      trans-const.h, trans-decl.c, trans-expr.c, trans-intrinsic.c,
      trans-io.c, trans-stmt.c, trans-stmt.h, trans-types.c,
      trans-types.h, trans.c, trans.h: Update copyright years and
      boilerplate.
      * data.c: Likewise, also removed two whitespace-only lines.
              * gfortranspec.c, lang.opt: Update copyright years.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81839 138bc75d-0d04-0410-961f-82ee72b054a4
      c84b470d
  13. 13 May, 2004 1 commit