1. 11 Apr, 2005 12 commits
    • libiberty.h (fopen_unlocked, [...]): Provide prototypes for new functions. · 78a7dc90
      include:
      	* libiberty.h (fopen_unlocked, fdopen_unlocked, freopen_unlocked):
      	Provide prototypes for new functions.
      
      libiberty:
      	* Makefile.in (CFILES): Add fopen_unlocked.c.
      	(REQUIRED_OFILES): Add ./fopen_unlocked.o.
      	Regenerate dependencies.
      
      	* configure.ac: Check for stdio_ext.h and __fsetlocking.
      
      	* fopen_unlocked.c: New file.
      
      	* functions.texi, configure, config.in: Regenerate.
      
      From-SVN: r97977
      Kaveh R. Ghazi committed
    • sparc.c: Use gcc_assert and gcc_unreachable. · f5f7d171
      2005-04-11  James A. Morrison  <phython@gcc.gnu.org>
      
              * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable.
              * config/sparc/sparc.h: Likewise.
              * config/sparc/sparc.md: Likewise.
      
      From-SVN: r97976
      James A. Morrison committed
    • * tree-vrp.c: Fix a comment typo. · 977ec5f8
      From-SVN: r97974
      Kazu Hirata committed
    • * tree-vrp.c (maybe_add_assert_expr): Move a comment. · 8e774944
      From-SVN: r97973
      Kazu Hirata committed
    • Add missing ChangeLog entry. · edc2eb9e
      From-SVN: r97972
      Devang Patel committed
    • re PR tree-optimization/20920 (ICE with eh and VRP) · 9fabf0d4
      
      	PR tree-optimization/20920
      	* tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
      	SSA_NAME flows through an abnormal edge.
      	* tree-vrp.c (infer_value_range): Ignore SSA names that flow
      	through abnormal edges.
      	(maybe_add_assert_expr): Likewise.
      
      	PR tree-optimization/20920
      	* g++.dg/tree-ssa/pr20920.C: New test.
      
      From-SVN: r97971
      Diego Novillo committed
    • * config/s390/s390.h (s390_tune_string, s390_arch_string) · f5db779b
      	(s390_warn_framesize_string, s390_warn_dynamicstack_string)
      	(s390_stack_size_string, s390_stack_guard_string, target_flags)
      	(MASK_HARD_FLOAT, MASK_SMALL_EXEC, MASK_DEBUG_ARG, MASK_64BIT)
      	(MASK_ZARCH, MASK_MVCLE, MASK_TPF_PROFILING, MASK_NO_FUSED_MADD)
      	(MASK_BACKCHAIN, MASK_PACKED_STACK, TARGET_HARD_FLOAT)
      	(TARGET_SOFT_FLOAT, TARGET_SMALL_EXEC, TARGET_DEBUG_ARG)
      	(TARGET_64BIT, TARGET_ZARCH, TARGET_MVCLE, TARGET_TPF_PROFILING)
      	(TARGET_NO_FUSED_MADD, TARGET_FUSED_MADD, TARGET_BACKCHAIN)
      	(TARGET_PACKED_STACK, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
      	* config/s390/s390.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
      	(TARGET_HANDLE_OPTION): Likewise.
      	(s390_tune): Initialize to PROCESSOR_max.
      	(s390_arch_string): Make static.
      	(s390_tune_string, s390_warn_framesize_string): Delete.
      	(s390_warn_dynamicstack_string, s390_stack_size_string): Delete.
      	(s390_stack_guard_string, s390_warn_dynamicstack_p): Delete.
      	(s390_handle_arch_option, s390_handle_option): New functions.
      	(override_options): Remove parsing of option strings.
      	* config/s390/s390.opt: New file.
      
      From-SVN: r97968
      Richard Sandiford committed
    • tree-complex.c (expand_vector_operations): Call update_stmt_if_modified. · 84971f01
      2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
      
      	* tree-complex.c (expand_vector_operations): Call
      	update_stmt_if_modified.
      
      From-SVN: r97966
      Paolo Bonzini committed
    • tree-vect-analyze (vect_determine_vectorization_factor): Do not use GET_MODE_NUNITS. · 57d1677d
      2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
      
      	* tree-vect-analyze (vect_determine_vectorization_factor):
      	Do not use GET_MODE_NUNITS.
      	* tree-vect-transform.c (vect_get_vec_def_for_operand,
      	(vectorizable_load, vect_transform_loop): Likewise.
      
      From-SVN: r97965
      Paolo Bonzini committed
    • * builtins.def (BUILT_IN_LCEIL, BUILT_IN_LCEILF, BUILT_IN_LCEILL) · f94b1661
      	(BUILT_IN_LLCEIL, BUILT_IN_LLCEILF, BUILT_IN_LLCEILL): New.
      	* optabs.h (enum optab_index): Add new OTI_lceil.
      	(lceil_optab): Define corresponding macro.
      	* optabs.c (init_optabs): Initialize lceil_optab.
      	* genopinit.c (optabs): Implement lceil_optab using lceilsi2
      	and lceildi2 patterns.
      
      	* builtins.c (expand_builtin_int_roundingfn): Handle
      	BUILT_IN_LCEIL{,F,L} and BUILT_IN_LLCEIL{,F,L}.
      	(fold_builtin_int_roundingfn): Handle BUILT_IN_LCEIL{,F,L} and
      	BUILT_IN_LLCEIL{,F,L}.
      	(fold_builtin_1): Fold BUILT_IN_LCEIL{,F,L} and
      	BUILT_IN_LLCEIL{,F,L} using fold_builtin_int_roundingfn.
      	(mathfn_built_in): Handle BUILT_IN LCEIL and BUILT_IN_LLCEIL.
      	(expand_builtin): Expand BUILT_IN_LCEIL{,F,L} and
      	BUILT_IN_LLCEIL{,F,L} using expand_builtin_int_roundingfn.
      
      	* convert.c (convert_to_integer): Convert (long int)ceil{,f,l},
      	into lceil built-in function and (long long int)ceil{,f,l} into
      	llceil built-in function.
      	* fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LCEIL and
      	BUILT_IN_LLCEIL.
      testsuite:
      
      	* gcc.dg/builtins-53.c: Also check (int)ceil* and
      	(long long int)ceil*.
      
      From-SVN: r97964
      Uros Bizjak committed
    • quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from zero. · 0dbca307
      	* pa/quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from
      	zero.
      
      From-SVN: r97961
      John David Anglin committed
    • Daily bump. · dcec6a4d
      [[Split portion of a mixed commit.]]
      
      From-SVN: r97958.2
      GCC Administrator committed
  2. 10 Apr, 2005 16 commits
  3. 09 Apr, 2005 12 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