1. 24 Sep, 2004 2 commits
  2. 20 Sep, 2004 2 commits
    • hubicka's avatar
      PR middle-end/16460 · 9d95b2b0
      hubicka authored
      	* cgraph.c (cgraph_unnest_node): New function.
      	(c_finalize): Rename to ....
      	(c_warn_unused_result_recursivly): ... this one; do only the warning
      	(finish_function): Finalize the toplevel function; do not lower nested tree.
      	* cgraph.h (cgraph_unnest_node): Declare.
      	* cgraphunit.c (decide_is_function_needed): Do not use cgraph
      	nestedness datastructure.
      	* cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
      	* reload1.c (set_label_offsets): Fix call of set_label_offsets.
      	* tree-nested.c (finlize_nesting_tree_1):  Use un-nesting code.
      
      	* utils.c (gnat_finalize): Remove.
      	(end_subprog_body): Directly call cgraph_finalize_function;
      	do not lower the nested functions.
      
      	* trans-decl.c (build_entry_thunks): Finalize the function; do not lower
      	tree.
      	(gfc_generate_function_code): Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87770 138bc75d-0d04-0410-961f-82ee72b054a4
      9d95b2b0
    • tobi's avatar
      fortran/ · 5eab5239
      tobi authored
      PR fortran/15957
      * simplify.c (gfc_simplify_reshape): Set shape of return value
      correctly.
      
      testsuite/
      PR fortran/15957
      * gfortran.dg/pr15957.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87764 138bc75d-0d04-0410-961f-82ee72b054a4
      5eab5239
  3. 17 Sep, 2004 2 commits
    • zack's avatar
      2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com> · ce45a448
      zack authored
      	    Zack Weinberg  <zack@codesourcery.com>
      
      	* alias.c (find_base_decl): Remove unreachable case '3' block.
      	* expr.c (safe_from_p): Abort if passed a type.
      	* tree-gimple.c (recalculate_side_effects): Abort if passed
      	anything other than an expression.
      	* tree-ssa-pre.c (phi_translate): Return expr immediately if
      	is_gimple_min_invariant is true for it.  Reorder cases for clarity.
      	Abort on un-handled tree classes.
      	(valid_in_set): Likewise.
      	* tree.c (tree_code_class_strings): New static data.
      
      	* tree.h (enum tree_code_class): New.
      	(tree_code_class_strings): Declare.
      	(TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
      	(REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
      	(STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
      	(TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
      	(checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
      
      	* tree.def, c-common.def, objc/objc-t...
      ce45a448
    • pbrook's avatar
      * gfortran.h (struct gfc_linebuf): Don't use C99 empty arrays. · 49f9826a
      pbrook authored
      	(gfc_linebuf_header_size): Define.
      	* scanner.c (load_file): Use it.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87655 138bc75d-0d04-0410-961f-82ee72b054a4
      49f9826a
  4. 16 Sep, 2004 4 commits
  5. 15 Sep, 2004 4 commits
  6. 14 Sep, 2004 1 commit
  7. 09 Sep, 2004 1 commit
    • dberlin's avatar
      Toplevel: · 39a1c4e9
      dberlin authored
      2004-09-09  Daniel Berlin  <dberlin@dberlin.org>
      
      	* Makefile.def: Remove libbanshee.
      	* Makefile.tpl: Ditto.
      	* configure.in: Ditto.
      	* Makefile.in: Regen.
      	* configure: Ditto.
      
      gcc/
      
      2004-09-09  Daniel Berlin  <dberlin@dberlin.org>
      
      	* Makefile.in: Remove libbanshee, tree-alias-*.
      	Remove tree-alias-common.h dependencies.
      	* common.opt: Remove -ftree-points-to.
      	* configure.ac: Remove libbanshee.
      	* flags.h: Remove pta_type, flag_tree_points_to.
      	* gengtype.c (open_base_files): Remove tree-alias-type.h.
      	* opts.c (OPT_ftree_points_to): Remove.
      	* toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
      	* tree-dfa.c: Remove tree-alias-common.h
      	* tree-into-ssa.c: Ditto.
      	* tree-outof-ssa.c: Ditto.
      	* tree-ssa-copyrename.c: Ditto.
      	* tree-ssa-live.c: Ditto.
      	* tree-optimize.c: Ditto.
      	* tree-ssa.c: Ditto.
      	Remove pass_build_pta, pass_del_pta.
      	* tree-pass.h: Ditto.
      	* tree-ssa-alias.c: Remove tree-alias-common.h.
      	(struct alias_stats_d):	Remove pta_queries, pta_resolved.
      	(pass_may_alias): Re...
      39a1c4e9
  8. 08 Sep, 2004 2 commits
  9. 07 Sep, 2004 1 commit
    • pbrook's avatar
      2004-09-07 Per Bothner <per@bothner.com> · b31f705b
      pbrook authored
      	Paul Brook  <paul@codesourcery.com>
      
      	* error.c (show_locus): Handle mapped locations.
      	* f95-lang.c (gfc_be_parse_file): Initialize mapped locations.
      	* gfortran.h: Include input.h.
      	(struct gfc_linebuf): Use source_location.
      	* scanner.c (get_file): Initialize linemap.
      	(preprocessor_line): Pass extra argument to get_file.
      	(load_file): Ditto.  Setup linemap.
      	(gfc_new_file): Handle mapped locations.
      	* trans-common.c (build_field, build_equiv_decl, build_common_decl):
      	Set decl source locations.
      	(gfc_trans_common): Set blank common block location.
      	* trans-decl.c (gfc_set_decl_location): New function.
      	(gfc_get_label_decl, gfc_get_symbol_decl): Use it.
      	(trans_function_start): Move call to gfc_set_backend_locus..
      	(build_function_decl): ... to here.
      	(build_entry_thunks): Set and restore the backend locus.
      	(gfc_generate_constructors): Remove excess arguments to
      	init_function_start.
      	(gfc_generate_block_data): Add comments.  Set the decl locus.
      	* trans-io.c (set_error_locus): Handle mapped locations.
      	* trans.c (gfc_get_backend_locus, gfc_get_backend_locus): Ditto.
      	(gfc_trans_code): Use SET_EXPR_LOCATION.
      	(gfc_generate_code): Override the location of the new symbol.
      	* trans.h (gfc_set_decl_location): Add prototype.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87142 138bc75d-0d04-0410-961f-82ee72b054a4
      b31f705b
  10. 02 Sep, 2004 2 commits
  11. 01 Sep, 2004 2 commits
    • tobi's avatar
      fortran/ · 1e812509
      tobi authored
      PR fortran/15327
      * trans-intrinsic.c (gfc_conv_intrinsic_merge): Do the right thing for
      strings.
      
      testsuite/
      PR fortran/15327
      * gfortran.dg/merge_char_1.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86940 138bc75d-0d04-0410-961f-82ee72b054a4
      1e812509
    • tobi's avatar
      fortran/ · 2978704c
      tobi authored
      PR fortran/16400
      PR fortran/16404
      (port from g95)
      * resolve.c (resolve_transfer): New function.
      (resolve_code): Call resolve_transfer in case of EXEC_TRANSFER.
      
      testsuite/
      PR fortran/16404
      * gfortran.dg/der_io_1.f90: XFAIL illegal testcase.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86931 138bc75d-0d04-0410-961f-82ee72b054a4
      2978704c
  12. 31 Aug, 2004 6 commits
  13. 30 Aug, 2004 4 commits
    • pbrook's avatar
      * trans-types.h: Add comments. · b496d698
      pbrook authored
      	(intmax_type_node, string_type_node, const_string_type_node): Remove.
      libgfortran/
      	* libgfortran.h: Add comments.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86810 138bc75d-0d04-0410-961f-82ee72b054a4
      b496d698
    • rth's avatar
      * Make-lang.in (fortran/f95-lang.o): Update dependencies. · 90ba9145
      rth authored
              (fortran/trans-decl.o, fortran/trans-types.o): Likewise.
              * gfortran.h (gfc_integer_info): Add c_char, c_short, c_int,
              c_long, c_long_long.
              (gfc_logical_info): Add c_bool.
              (gfc_real_info): Add mode_precision, c_float, c_double, c_long_double.
              * trans-array.c (gfc_array_allocate): Use TYPE_PRECISION
              rather than gfc_int[48]_type_node for allocate choice.
              * trans-decl.c (gfc_build_intrinsic_function_decls): Cache
              local copies of some kind type nodes.
              (gfc_build_builtin_function_decls): Likewise.
              * trans-expr.c (gfc_conv_power_op): Likewise.
              * trans-intrinsic.c (gfc_conv_intrinsic_index,
              gfc_conv_intrinsic_scan, gfc_conv_intrinsic_verify,
              gfc_conv_intrinsic_trim, gfc_conv_intrinsic_repeat): Likewise.
              * trans-stmt.c (gfc_trans_pause, gfc_trans_stop,
              gfc_trans_character_select, gfc_trans_allocate): Likewise.
              * trans-io.c (gfc_pint4_type_node): Move into ...
              (gfc_build_io_library_fndecls): ... here.  Cache local copies of
              some kind type nodes.
              * trans-types.c (gfc_type_nodes): Remove.
              (gfc_character1_type_node, gfc_strlen_type_node): New.
              (gfc_integer_types, gfc_logical_types): New.
              (gfc_real_types, gfc_complex_types): New.
              (gfc_init_kinds): Fill in real mode_precision.
              (gfc_build_int_type, gfc_build_real_type): New.
              (gfc_build_complex_type, gfc_build_logical_type): New.
              (c_size_t_size): New.
              (gfc_init_types): Loop over kinds.
              (gfc_get_int_type, gfc_get_real_type): Use gfc_validate_kind.
              (gfc_get_complex_type, gfc_get_logical_type): Likewise.
              (gfc_get_character_type_len): Likewise.
              (gfc_type_for_size): Loop over kinds; use a reduced set of
              unsigned type nodes.
              (gfc_type_for_mode): Loop over kinds.
              (gfc_signed_or_unsigned_type): Use gfc_type_for_size.
              (gfc_unsigned_type, gfc_signed_type): Use gfc_signed_or_unsigned_type.
              * trans-types.h (F95_INT1_TYPE, F95_INT2_TYPE, F95_INT4_TYPE,
              F95_INT8_TYPE, F95_INT16_TYPE, F95_REAL4_TYPE, F95_REAL8_TYPE,
              F95_REAl16_TYPE, F95_COMPLEX4_TYPE, F95_COMPLEX8_TYPE,
              F95_COMPLEX16_TYPE, F95_LOGICAL1_TYPE, F95_LOGICAL2_TYPE,
              F95_LOGICAL4_TYPE, F95_LOGICAL8_TYPE, F95_LOGICAL16_TYPE,
              F95_CHARACTER1_TYPE, NUM_F95_TYPES, gfc_type_nodes,
              gfc_int1_type_node, gfc_int2_type_node, gfc_int4_type_node,
              gfc_int8_type_node, gfc_int16_type_node, gfc_real4_type_node,
              gfc_real8_type_node, gfc_real16_type_node, gfc_complex4_type_node,
              gfc_complex8_type_node, gfc_complex16_type_node,
              gfc_logical1_type_node, gfc_logical2_type_node,
              gfc_logical4_type_node, gfc_logical8_type_node,
              gfc_logical16_type_node, gfc_strlen_kind): Remove.
              (gfc_character1_type_node): Turn in to a variable.
              (gfc_strlen_type_node): Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86806 138bc75d-0d04-0410-961f-82ee72b054a4
      90ba9145
    • tobi's avatar
      fortran/ · 9ec7c303
      tobi authored
      * gfortran.h (gfc_namespace): Add new field is_block_data.
      * parse.c (accept_statement): Remove special handling for BLOCK DATA.
      (parse_block_data): Record BLOCK DATA name, set is_block_data field.
      * trans.c (gfc_generate_code): Handle BLOCK DATA units.
      * trans.h (gfc_generate_block_data): Add prototype.
      * trans-decl.c (gfc_generate_block_data): New function.
      
      testsuite/
      * gfortran.dg/blockdata_1.f90: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86796 138bc75d-0d04-0410-961f-82ee72b054a4
      9ec7c303
    • rth's avatar
      * trans-const.c (gfc_conv_mpz_to_tree): Use mpz_export. · 2e80d033
      rth authored
              * trans-types.c (gfc_init_kinds): Reject integer kinds larger
              than two HOST_WIDE_INT.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86749 138bc75d-0d04-0410-961f-82ee72b054a4
      2e80d033
  14. 29 Aug, 2004 2 commits
    • 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
    • pbrook's avatar
      2004-08-29 Steven G. Kargl <kargls@comcast.net> · 158e0e64
      pbrook authored
      	Paul Brook  <paul@codesourcery.com>
      
      	* check.c (gfc_check_besn, gfc_check_g77_math1): New functions.
      	* f95-lang.c (DO_DEFINE_MATH_BUILTIN): Define.
      	(DEFINE_MATH_BUILTIN, DEFINE_MATH_BUILTIN_C): Use it.
      	(build_builtin_fntypes): New function.
      	(gfc_init_builtin_functions): Use it.
      	* gfortran.h (enum gfc_generic_isym_id): Add GFC_ISYM_{J,Y}{0,1,N}
      	and GFC_ISYM_ERF{,C}.
      	(gfc_c_int_kind): Declare.
      	* intrinsic.c (add_functions): Add [d]bes* and [d]erf*.
      	* intrinsic.h (gfc_check_besn, gfc_check_g77_math1, gfc_resolve_besn,
      	gfc_resolve_g77_math1): Add prototypes.
      	* resolve.c (gfc_resolve_besn, gfc_resolve_g77_math1): New functions.
      	* mathbuiltins.def: Add comment.  Change third argument.  Use
      	DEFINE_MATH_BUILTIN_C.  Add bessel and error functions.
      	* trans-intrinsic.c (BUILT_IN_FUNCTION): Define.
      	(DEFINE_MATH_BUILTIN, DEFINE_MATH_BUILTIN_C): Use it.
      	* trans-types.c (gfc_c_int_kind): Declare.
      	(gfc_init_kinds): Set it.
      testsuite/
      	* gfortran.dg/g77/README: Update.
      	* gfortran.dg/g77/erfc.f: Copy from g77.f-torture.
      	* gfortran.dg/g77/intrinsic-unix-bessel.f: Ditto.
      	* gfortran.dg/g77/intrinsic-unix-erf.f: Ditto.
      libgfortran/
      	* intrinsics/bessel.c: New file.
      	* intrinsics/erf.c: New file.
      	* Makefie.am: Add intrinsics/bessel.c and intrinsics/erf.c.
      	* configure.ac: Test for C99 Bessel and Error functions.
      	* Makefile.in: Regenerate.
      	* config.h.in: Regenerate.
      	* configure: Regenerate.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86727 138bc75d-0d04-0410-961f-82ee72b054a4
      158e0e64
  15. 28 Aug, 2004 2 commits
    • pbrook's avatar
      2004-08-29 Steven G. Kargl <kargls@comcast.net> · adad6c74
      pbrook authored
      	Paul Brook  <paul@codesourcery.com>
      
      	* gfortran.h (enum gfc_generic_isym_id): Add GFC_ISYM_GET?ID.
      	(gfc_check_f, gfc_simplify_f): Add f0.
      	* intrinsic.c (do_check): Call f0.  Flatten.
      	(add_sym_0): Fix prototype.  Set f0.
      	(add_functions): Add getgid, getgid and getuid.
      	(resolve_intrinsic): Remove obsolete comment.
      	(do_simplify): Call f0.
      	* intrinsic.h (gfc_resolve_getgid, gfc_resolve_getpid,
      	gfc_resolve_getuid): Add prototypes.
      	* iresolve.c (gfc_resolve_getgid, gfc_resolve_getpid,
      	gfc_resolve_getuid): New functions.
      	* trans-intrinsic.c (gfc_conv_intrinsic_function): Handle
      	GFC_ISYM_GET?ID.
      libgfortran/
      	* Makefile.am: Add intrinsics/getXid.c.
      	* configure.ac: Add tests for get{g,p,u}id.
      	* config.h.in: Regenerate.
      	* Makefile.in: Regenerate.
      	* configure: Regenerate.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86703 138bc75d-0d04-0410-961f-82ee72b054a4
      adad6c74
    • tobi's avatar
      * error.c (gfc_error_init_1): Remove blank line in front of · e5964744
      tobi authored
      function body. Add missing blank.
      (gfc_buffer_error, error_char, error_string): Remove blank line in
      front of function body.
      (show_locus): Add comma in comment.
      (gfc_clear_warning, gfc_warning_check, gfc_clear_error,
      gfc_push_error, gfc_pop_error): Remove blank line in front of
      function body.
      (gfc_get_errors): Typo fix in comment in front of function. Remove
      blank line in front of function body.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86691 138bc75d-0d04-0410-961f-82ee72b054a4
      e5964744
  16. 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
  17. 26 Aug, 2004 2 commits
    • rth's avatar
      * arith.c: Include system.h, not real system headers. · a4bdae7c
      rth authored
              (MPZ_NULL, MPF_NULL, DEF_GFC_INTEGER_KIND, DEF_GFC_LOGICAL_KIND,
              DEF_GFC_REAL_KIND, GFC_SP_KIND, GFC_SP_PREC, GFC_SP_EMIN, GFC_SP_EMAX,
              GFC_DP_KIND, GFC_DP_PREC, GFC_DP_EMIN, GFC_DP_EMAX, GFC_QP_KIND,
              GFC_QP_PREC, GFC_QP_EMIN, GFC_QP_EMAX): Remove.
              (gfc_integer_kinds, gfc_logical_kinds, gfc_real_kinds,
              gfc_index_integer_kind, gfc_default_integer_kind,
              gfc_default_real_kind,gfc_default_double_kind,
              gfc_default_character_kind, gfc_default_logical_kind,
              gfc_default_complex_kind, validate_integer, validate_real,
              validate_logical, validate_character,
              gfc_validate_kind): Move to trans-types.c.
              (gfc_set_model_kind): Use gfc_validate_kind.
              (gfc_set_model): Just copy the current precision to default.
              (gfc_arith_init_1): Use mpfr precision 128 for integer setup.
              * f95-lang.c (gfc_init_decl_processing): Invoke gfc_init_kinds.
              * gf...
      a4bdae7c
    • tobi's avatar
      * check.c (gfc_check_atan2): New function. · 5dc679c5
      tobi authored
      * intrinsic.c (add_functions): Use gfc_check_atan2 for ATAN2
      * intrinsic.h (gfc_check_atan2): Add prototype.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86628 138bc75d-0d04-0410-961f-82ee72b054a4
      5dc679c5