1. 03 Jun, 2004 3 commits
  2. 02 Jun, 2004 1 commit
    • tobi's avatar
      fortran/ · 0daaddd8
      tobi authored
      PR fortran/15557
      * data.c (assign_substring_data_value): New function.
      (gfc_assign_data_value): Call the new function if we're dealing
      with a substring LHS.
      
      testsuite/
      PR fortran/15557
      * gfortran.fortran-torture/execute/data_3.f90: New testcase.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82570 138bc75d-0d04-0410-961f-82ee72b054a4
      0daaddd8
  3. 01 Jun, 2004 1 commit
  4. 31 May, 2004 1 commit
  5. 30 May, 2004 3 commits
    • tobi's avatar
      PR fortran/14067 · 39fd2abe
      tobi authored
      * trans-const.c (gfc_conv_string_init): Allow variable string
      length lower than initialization string length.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82457 138bc75d-0d04-0410-961f-82ee72b054a4
      39fd2abe
    • pbrook's avatar
      PR fortran/15620 · dbe60343
      pbrook authored
      	* trans-decl.c (gfc_shadow_sym, gfc_restore_sym): New functions.
      	* trans-expr.c (gfc_trans_string_copy): New function.
      	(gfc_conv_statement_function): Use them.  Create temp vars.  Enforce
      	character lengths.
      	(gfc_conv_string_parameter): Use gfc_trans_string_copy.
      	* trans-stmt.c (gfc_trans_forall_1): Use gfc_{shadow,restore}_sym.
      	* trans.h (struct gfc_saved_var): Define.
      	(gfc_shadow_sym, gfc_restore_sym): Add prototypes.
      testsuite/
      	* gfortran.fortran-torture/execute/st_function_1.f90: New test.
      	* gfortran.fortran-torture/execute/st_function_2.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82452 138bc75d-0d04-0410-961f-82ee72b054a4
      dbe60343
    • pbrook's avatar
      * iresolve.c (gfc_resolve_random_number): Clean up conditional. · f36ac248
      pbrook authored
      libgfortran/
      	* libgfortran.h (random_seed): Update prototype.
      	* intrinsics/random.c: Disable old implementation and add new one.
      testsuite/
      	* gfortran.fortran-torture/execute/random_1.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82443 138bc75d-0d04-0410-961f-82ee72b054a4
      f36ac248
  6. 29 May, 2004 3 commits
  7. 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...
      cbb9e6aa
  8. 26 May, 2004 2 commits
    • sayle's avatar
      · edf8cff6
      sayle authored
      	* io.c (format_asterisk): Silence compiler warnings by correcting
      	the number of elements of a "locus" initializer.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82301 138bc75d-0d04-0410-961f-82ee72b054a4
      edf8cff6
    • sayle's avatar
      · 4b4d8a7e
      sayle authored
      	PR fortran/13912
      	* matchexp.c: Allow unary operators after arithmetic operators
      	as a GNU extension.
      	(match_ext_mult_operand, match_ext_add_operand): New functions.
      	(match_mult_operand): Tweak to call match_ext_mult_operand.
      	(match_add_operand): Tweak to call match_ext_mult_operand.
      	(match_level_2): Rearrange to call match_ext_add_operand.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82277 138bc75d-0d04-0410-961f-82ee72b054a4
      4b4d8a7e
  9. 23 May, 2004 4 commits
  10. 22 May, 2004 6 commits
  11. 21 May, 2004 2 commits
    • sayle's avatar
      · 61fa81cc
      sayle authored
      	* io.c (check_format): As a GNU extension, allow the comma after a
      	string literal to be optional in a format.  Use gfc_notify_std to
      	issue an error/warning as appropriate.
      
      	* io/format.c (parse_format_list): Allow the comma after a string
      	literal to be optional.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82109 138bc75d-0d04-0410-961f-82ee72b054a4
      61fa81cc
    • sayle's avatar
      · 87102a15
      sayle authored
      	* io.c (check_format): Use gfc_notify_std to determine whether to
      	issue an error/warning for omitting the digits from the X format.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82106 138bc75d-0d04-0410-961f-82ee72b054a4
      87102a15
  12. 20 May, 2004 1 commit
    • sayle's avatar
      · 9e0ae3fb
      sayle authored
      	* io.c (format_item): Allow the number before the X format to
      	be optional when not -pedantic.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82067 138bc75d-0d04-0410-961f-82ee72b054a4
      9e0ae3fb
  13. 19 May, 2004 2 commits
    • pbrook's avatar
      Credit Feng Wang <fengwang@nudt.edu.cn> in ChangeLog. · 4dd8c9c9
      pbrook authored
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82023 138bc75d-0d04-0410-961f-82ee72b054a4
      4dd8c9c9
    • pbrook's avatar
      * f95-lang.c (gfc_init_builtin_functions): Use vold_list_node. · 76834664
      pbrook authored
      	Create decls for __builtin_pow{,f}.
      	* gfortran.h (PREFIX_LEN): Define.
      	* trans-decl.c (gfor_fndecl_math_powi): Add.
      	(gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove.
      	(gfc_build_intrinsic_function_decls): Create decls for powi.
      	* trans-expr.c (powi_table): Add.
      	(gfc_conv_integer_power): Remove.
      	(gfc_conv_powi): New function.
      	(gfc_conv_cst_int_power): New function.
      	(gfc_conv_power_op): Use new powi routines.
      	* trans.h (struct gfc_powdecl_list): Add.
      	(gfor_fndecl_math_powi): Add.
      	(gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove.
      testsuite/
      	* gfortran.fortran-torture/execute/power.f90: Test constant integers.
      libgfortran/
      	* Makefile.am (i_pow_c): Set it. Add build rule.
      	(gfor_built_src): Use it.
      	(m4_files): add m4/pow.m4.
      	* Makefile.in: Regenerate.
      	* m4/pow.m4: New file.
      	* generated/pow_*.c: Regenerate.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82014 138bc75d-0d04-0410-961f-82ee72b054a4
      76834664
  14. 18 May, 2004 4 commits
  15. 17 May, 2004 2 commits
  16. 16 May, 2004 3 commits
  17. 15 May, 2004 1 commit
    • tobi's avatar
      PR fortran/13742 · 6cbc841e
      tobi authored
      * decl.c (add_init_expr_to_sym): Verify that COMMON variable is
      not initialized in a disallowed fashion.
      * match.c (gfc_match_common): Likewise.
      (var_element): Verify that variable is not in the blank COMMON,
      if it is in a common.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81899 138bc75d-0d04-0410-961f-82ee72b054a4
      6cbc841e