1. 10 Apr, 2005 12 commits
  2. 09 Apr, 2005 28 commits
    • Fix dg-do directive. · 2fee86e6
      From-SVN: r97932
      Steven G. Kargl committed
    • * gfortran.dg/nint_1.f90: New test. · 5f115a4b
      From-SVN: r97931
      Steven G. Kargl committed
    • simplify.c (gfc_simplify_anint): Use mpfr_round() · 8e1fa5d6
      * simplify.c (gfc_simplify_anint): Use mpfr_round()
      (gfc_simplify_dnint): ditto.
      (gfc_simplify_nint): ditto.
      
      From-SVN: r97930
      Steven G. Kargl committed
    • re PR libfortran/19106 ([4.0 only] segfault in executable for print *,sum(a,dim=2,mask=a>0)) · 50dd63a9
      2005-04-09  Thomas Koenig  <Thomas.Koenig@online.de>
      
              PR libfortran/19106
              PR libfortran/19014
              * m4/ifunction.m4 (name`'rtype_qual`_'atype_code): ditto.
              If retarray->data is NULL (i.e. the front end does not
              know the rank and dimenson of the array), fill in its
              properties and allocate memory.
              Change the assertions about rank and dimension of retarray into
              runtime errors and only check them for retarray->data != NULL.
              Do the same for correcting the stride from 0 to 1 in retarray.
              (`m'name`'rtype_qual`_'atype_code): Likewise.
              * m4/iforeach.m4 (name`'rtype_qual`_'atype_code): Likewise.
              Change assertion about rank of array to runtime error.
              (`m'name`'rtype_qual`_'atype_code): Likewise.
              * generated/all_l4.c: Regenerated.
              * generated/all_l8.c: Regenerated.
              * generated/any_l4.c: Regenerated.
              * generated/any_l8.c: Regenerated.
              * generated/count_4_l4.c: Regenerated.
              * generated/count_4_l8.c: Regenerated.
              * generated/count_8_l4.c: Regenerated.
              * generated/count_8_l8.c: Regenerated.
              * generated/maxloc0_4_i4.c: Regenerated.
              * generated/maxloc0_4_i8.c: Regenerated.
              * generated/maxloc0_4_r4.c: Regenerated.
              * generated/maxloc0_4_r8.c: Regenerated.
              * generated/maxloc0_8_i4.c: Regenerated.
              * generated/maxloc0_8_i8.c: Regenerated.
              * generated/maxloc0_8_r4.c: Regenerated.
              * generated/maxloc0_8_r8.c: Regenerated.
              * generated/maxloc1_4_i4.c: Regenerated.
              * generated/maxloc1_4_i8.c: Regenerated.
              * generated/maxloc1_4_r4.c: Regenerated.
              * generated/maxloc1_4_r8.c: Regenerated.
              * generated/maxloc1_8_i4.c: Regenerated.
              * generated/maxloc1_8_i8.c: Regenerated.
              * generated/maxloc1_8_r4.c: Regenerated.
              * generated/maxloc1_8_r8.c: Regenerated.
              * generated/maxval_i4.c: Regenerated.
              * generated/maxval_i8.c: Regenerated.
              * generated/maxval_r4.c: Regenerated.
              * generated/maxval_r8.c: Regenerated.
              * generated/minloc0_4_i4.c: Regenerated.
              * generated/minloc0_4_i8.c: Regenerated.
              * generated/minloc0_4_r4.c: Regenerated.
              * generated/minloc0_4_r8.c: Regenerated.
              * generated/minloc0_8_i4.c: Regenerated.
              * generated/minloc0_8_i8.c: Regenerated.
              * generated/minloc0_8_r4.c: Regenerated.
              * generated/minloc0_8_r8.c: Regenerated.
              * generated/minloc1_4_i4.c: Regenerated.
              * generated/minloc1_4_i8.c: Regenerated.
              * generated/minloc1_4_r4.c: Regenerated.
              * generated/minloc1_4_r8.c: Regenerated.
              * generated/minloc1_8_i4.c: Regenerated.
              * generated/minloc1_8_i8.c: Regenerated.
              * generated/minloc1_8_r4.c: Regenerated.
              * generated/minloc1_8_r8.c: Regenerated.
              * generated/minval_i4.c: Regenerated.
              * generated/minval_i8.c: Regenerated.
              * generated/minval_r4.c: Regenerated.
              * generated/minval_r8.c: Regenerated.
              * generated/product_c4.c: Regenerated.
              * generated/product_c8.c: Regenerated.
              * generated/product_i4.c: Regenerated.
              * generated/product_i8.c: Regenerated.
              * generated/product_r4.c: Regenerated.
              * generated/product_r8.c: Regenerated.
              * generated/sum_c4.c: Regenerated.
              * generated/sum_c8.c: Regenerated.
              * generated/sum_i4.c: Regenerated.
              * generated/sum_i8.c: Regenerated.
              * generated/sum_r4.c: Regenerated.
              * generated/sum_r8.c: Regenerated.
      
      2005-04-09  Thomas Koenig  <Thomas.Koenig@online.de>
      
              * gfortran.fortran-torture/execute/intrinsic_anyall.f90:
              Added test for callee-allocated arrays with write statements.
              * gfortran.fortran-torture/execute/intrinsic_count.f90: Likewise.
              * gfortran.fortran-torture/execute/intrinsic_mmloc.f90: Likewise.
              * gfortran.fortran-torture/execute/intrinsic_mmval.f90: Likewise.
              * gfortran.fortran-torture/execute/intrinsic_product.f90: Likewise.
              * gfortran.fortran-torture/execute/intrinsic_sum.f90: Likewise.
      
      From-SVN: r97929
      Thomas Koenig committed
    • Fix problems with labels with hot/cold partitioning. · e5e625da
      From-SVN: r97928
      Caroline Tice committed
    • re PR libfortran/20163 ([4.0 only] gfortran - error opening direct access file) · bd0e28a2
      2005-04-09  Thomas Koenig  <Thomas.Koenig@online.de>
      
              PR libfortran/20163
              * gfortran.dg/open-options-blanks.f:  New test.
      
      From-SVN: r97924
      Thomas Koenig committed
    • re PR libfortran/20163 ([4.0 only] gfortran - error opening direct access file) · 130bcb37
      2005-04-09  Thomas Koenig <Thomas.Koenig@online.de>
      
              PR libfortran/20163
              * runtime/string.c (compare0): Use fstrlen() to
              strip trailing blanks from option string.
      
      From-SVN: r97923
      Thomas Koenig committed
    • * cp-tree.h (cp_deprecated): Remove. · bbaa6cf6
      From-SVN: r97922
      Kazu Hirata committed
    • Makefile.am: Remove libv3test.a. · 394476c9
      
      2005-04-08  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* testsuite/Makefile.am: Remove libv3test.a.
      	* testsuite/Makefile.in: Regenerate.
      	* testsuite/lib/libstdc++.exp (v3_target_compile): Fix comments.
      
      From-SVN: r97921
      Benjamin Kosnik committed
    • fix path to the new tests in my last changelog entry. · 305ead91
      From-SVN: r97920
      Andrew Pinski committed
    • re PR fortran/13257 ([4.0 only] Error instead of warning for missing comma in format string) · 53d8a8ac
      PR fortran/13257
      
      fortran/ChangeLog:
      	* io.c (check_format): Allow an optional comma
      	between descriptors.
      
      libgfortran/ChangeLog:
      	* format.c (parse_format_list): Allow an optional comma
      	between descriptors.
      
      testsuite/ChangeLog:
      	* comma_format_extension_[1234].f: New tests.
      
      From-SVN: r97919
      Andrew Pinski committed
    • tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD and TI_VA_LIST_FPR_COUNTER_FIELD. · 9d30f3c1
      	* tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
      	and TI_VA_LIST_FPR_COUNTER_FIELD.
      	(va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
      	* tree-pass.h (pass_stdarg): Add.
      	* tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
      	* tree-stdarg.c: New file.
      	* tree-stdarg.h: New file.
      	* Makefile.in (OBJS-common): Add tree-stdarg.o.
      	(tree-stdarg.o): Add dependencies.
      	* function.h (struct function): Add va_list_gpr_size and
      	va_list_fpr_size fields.
      	* function.c (allocate_struct_function): Initialize them.
      	* target.h (struct gcc_target): Add stdarg_optimize_hook.
      	* target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
      	(TARGET_INITIALIZER): Add it.
      
      	* config/i386/i386.c (ix86_build_builtin_va_list): Initialize
      	va_list_{g,f}pr_counter_field.
      	(ix86_setup_incoming_varargs): Don't do anything if reg_save
      	area will not be used.  Only save registers that tree-stdarg.c
      	detected they need saving.
      	(ix86_va_start): Don't set up fields that won't be used.
      
      	* config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
      	va_list_{g,f}pr_counter_field.
      	(setup_incoming_varargs): Don't do anything if reg_save
      	area will not be used.  Only save registers that tree-stdarg.c
      	detected they need saving.
      	(rs6000_va_start): Don't set up fields that won't be used.
      
      	* config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
      	(alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
      	(va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
      	(TARGET_STDARG_OPTIMIZE_HOOK): Define.
      
      	* gcc.dg/tree-ssa/stdarg-1.c: New test.
      	* gcc.dg/tree-ssa/stdarg-2.c: New test.
      	* gcc.dg/tree-ssa/stdarg-3.c: New test.
      	* gcc.dg/tree-ssa/stdarg-4.c: New test.
      	* gcc.dg/tree-ssa/stdarg-5.c: New test.
      	* gcc.c-torture/execute/stdarg-4.c: New test.
      
      	* gcc.dg/vmx/varargs-1.c (f1, f2, f3): Add missing va_end.
      
      From-SVN: r97916
      Jakub Jelinek committed
    • re PR target/20795 (ICE in assign_parms) · 1b803355
      	PR target/20795
      	* config/i386/i386.c (construct_container): Pass empty aligned
      	struct, union or class in memory.
      
      	* g++.dg/abi/param2.C: New test.
      
      From-SVN: r97912
      Jakub Jelinek committed
    • * cp-tree.h (VF_BINFO_VALUE, VF_BASETYPE_VALUE): Remove. · b305db71
      From-SVN: r97911
      Kazu Hirata committed
    • cp-tree.h (EXCEPTION_CLEANUP_NAME, [...]): Remove. · ecd99204
      	* cp-tree.h (EXCEPTION_CLEANUP_NAME, B_SET, B_CLR, B_TST,
      	CONV_STATIC_CAST): Remove.
      
      From-SVN: r97910
      Kazu Hirata committed
    • cp-tree.h (EXCEPTION_CLEANUP_NAME, [...]): Remove. · a457d98c
      	* cp-tree.h (EXCEPTION_CLEANUP_NAME, B_SET, B_CLR, B_TST,
      	CONV_STATIC_CAST): Remove.
      
      From-SVN: r97908
      Kazu Hirata committed
    • * cp-tree.h (DECL_ARRAY_DELETE_OPERATOR_P): Remove. · eac02e59
      From-SVN: r97907
      Kazu Hirata committed
    • * cp-tree.h (cxx_alignof): Remove. · 9c45842f
      From-SVN: r97906
      Kazu Hirata committed
    • sched-int.h (haifa_insn_data): Remove blockage and units. · 728522c3
      	* sched-int.h (haifa_insn_data): Remove blockage and units.
      	(INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
      	ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
      	MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
      
      From-SVN: r97905
      Kazu Hirata committed
    • dominance.c, [...]: Fix comment typos. · f3b569ca
      	* dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
      	tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
      	config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
      	config/rs6000/predicates.md: Fix comment typos.
      
      From-SVN: r97904
      Kazu Hirata committed
    • cfglayout.c (copy_bbs): Rename n_edges to num_edges. · 7b0cab99
      	* cfglayout.c (copy_bbs): Rename n_edges to num_edges.
      	* cfgloop.c (get_loop_exit_edges): Likewise.
      	* cfgloopmanip.c (fix_irreducible_loops): Likewise.
      	(unloop): Likewise.
      	* loop-unroll.c (analyze_insns_in_loop): Likewise.
      	* tree-cfg.c (dump_cfg_status): Likewise.
      
      Co-Authored-By: Steven Bosscher <stevenb@suse.de>
      
      From-SVN: r97903
      Jan Hubicka committed
    • predicates.md (altivec_register_operand): Remove redundant match_code test. · 5b296c8a
              * config/rs6000/predicates.md (altivec_register_operand): Remove
              redundant match_code test.
              (gpc_reg_operand): Same.
              (cc_reg_operand): Same.
              (cc_reg_not_cr0_operand): Same.
      
      From-SVN: r97902
      David Edelsohn committed
    • Forgotten hunk from my last merge patch: · 0be0a2be
      	* final.c (output_addr_const): Do not call mark_referenced.
      
      From-SVN: r97897
      Jan Hubicka committed
    • tree-ssa.texi: Add immediate use documentation. · 43ae1e1c
      
      
      2005-04-09  Andrew MacLeod  <amacleod@redhat.com>
      
      	* doc/tree-ssa.texi: Add immediate use documentation.
      
      From-SVN: r97895
      Andrew MacLeod committed
    • arm.c (FL_WBUF): Define. · abac3b49
      	* arm.c (FL_WBUF): Define.
      	(arm_tune_strongarm): Renamed from arm_is_strong.  All uses changed.
      	(arm_is_6_or_7): Delete.
      	(arm_tune_wbuf): New.
      	(arm_override_options): Set arm_tune_wbuf.
      	* arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
      	(arm_is_6_or_7): Delete declaration.
      	(arm_tune_wbuf): New declartion.
      	* arm.md (is_strongarm): Derive from arm_tune_strongarm.
      	(model_wbuf): Derive from arm_tune_wbuf.
      	* arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
      	(arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
      	(arm740t): Mark CPUs as having a write buffer.
      
      From-SVN: r97894
      Richard Earnshaw committed
    • match.c (match_arithmetic_if): Remove gfc_ prefix and correct comment according… · 835d64ab
      match.c (match_arithmetic_if): Remove gfc_ prefix and correct comment according to GNU coding style.
      
      	* match.c (match_arithmetic_if): Remove gfc_ prefix and correct
      	comment according to GNU coding style.
      
      From-SVN: r97890
      Francois-Xavier Coudert committed
    • i386.md (*fp_jcc_7_387): Use 'const0_operand' instead of 'const_double_operand'… · 17153653
      i386.md (*fp_jcc_7_387): Use 'const0_operand' instead of 'const_double_operand' in operand 2 constraints.
      
      	* config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
      	of 'const_double_operand' in operand 2 constraints.  Update enable
      	condition.
      
      From-SVN: r97887
      Uros Bizjak committed
    • * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL) · d8b42d06
      	(BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
      	* optabs.h (enum optab_index): Add new OTI_lfloor.
      	(lfloor_optab): Define corresponding macro.
      	* optabs.c (init_optabs): Initialize lfloor_optab.
      	* genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
      	and lfloordi2 patterns.
      
      	* builtins.c (expand_builtin_int_roundingfn): New prototype.
      	(expand_builtin_int_roundingfn): New function.
      	(fold_builtin_int_roundingfn): New prototype.
      	(fold_builtin_int_roundingfn): New function, renamed from
      	fold_builtin_lround.
      	Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
      	BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
      	(fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
      	BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
      	(mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
      	(expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
      	BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
      
      	* convert.c (convert_to_integer): Convert (long int)floor{,f,l},
      	into lfloor built-in function and (long long int)floor{,f,l} into
      	llfloor built-in function.
      	* fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
      	BUILT_IN_LLFLOOR.
      
      testsuite:
      
      	* gcc.dg/builtins-53.c: New test.
      
      From-SVN: r97886
      Uros Bizjak committed