1. 11 Apr, 2005 19 commits
    • configure.ac (fixincludes_UNLOCKED_FUNCS): New. · 0d667716
      fixincludes:
      	* configure.ac (fixincludes_UNLOCKED_FUNCS): New.
      	(AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for fixincludes_UNLOCKED_FUNCS.
      	* system.h (putchar, getc, getchar, clearerr, feof, fileno,
      	fflush, fgetc, fgets, ferror, fread): Redefine to the associated
      	_unlocked function.
      	(fwrite_unlocked): Fix prototype.
      
      	* configure, config.h.in: Regenerate.
      
      gcc:
      	PR/17092
      	* configure.ac (gcc_UNLOCKED_FUNCS): New.
      	(AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
      	* system.h (putchar, getc, getchar, clearerr, feof, fileno,
      	fflush, fgetc, fgets, ferror, fread): Redefine to the associated
      	_unlocked function.
      	(fwrite_unlocked): Fix prototype.
      
      	* configure, config.in: Regenerate.
      
      libcpp:
      	* configure.ac (libcpp_UNLOCKED_FUNCS): New.
      	(AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS.
      	* system.h (putchar, getc, getchar, clearerr, feof, fileno,
      	fflush, fgetc, fgets, ferror, fread): Redefine to the associated
      	_unlocked function.
      	(fwrite_unlocked): Fix prototype.
      
      	* configure, config.in: Regenerate.
      
      From-SVN: r97986
      Kaveh R. Ghazi committed
    • tree-ssa-loop-im.c: Include real.h. · 37cca405
              * tree-ssa-loop-im.c: Include real.h.
              (determine_invariantness_stmt): If real division divisor is
              invariant and flag_unsafe_math_optimizations enabled, generate
              invariant reciprocal for hoisting.
              * Makefile.in (tree-ssa-loop-im.o): Add real.h dependency.
      
      From-SVN: r97983
      David Edelsohn committed
    • re PR tree-optimization/20926 (ICE: tree check, in recent builds) · 94589120
      
      2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
      
      	Fix PR tree-optimization/20926
      
      	* tree-ssa-alias.c (add_type_alias): Handle subvars.
      
      From-SVN: r97982
      Daniel Berlin committed
    • rs6000.c (rs6000_emit_vector_select): Fix vector select operand ordering. · 19f1ebc7
             * config/rs6000.c (rs6000_emit_vector_select): Fix vector select
             operand ordering.
      
      From-SVN: r97981
      Devang Patel committed
    • fold-const.c (fold_binary_op_with_conditional_arg): use fold_buildN instead of… · 6405f32f
      fold-const.c (fold_binary_op_with_conditional_arg): use fold_buildN instead of "fold (buildN" in some non obvious places.
      
      2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
      
              * fold-const.c (fold_binary_op_with_conditional_arg):
              use fold_buildN instead of "fold (buildN" in some
              non obvious places.
              (fold_unary): Likewise.
              (fold_binary): Likewise.
      
      From-SVN: r97980
      Andrew Pinski committed
    • re PR tree-optimization/20612 (ICE in verify_ssa for -ftree-loop-linear) · e5e656a4
      2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
      
      	Fix PR tree-optimization/20612
      	* lambda-code.c (lambda_loopnest_to_gcc_loopnest): Fix increment
      	handling
      	(perfect_nestify): preheaderbb is *not* part of loop of the
      	old destination.
      
      From-SVN: r97979
      Daniel Berlin committed
    • alias-1.c: New test. · d3010d72
      2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
      
              * gcc.dg/tree-ssa/alias-1.c: New test.
      2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
      
              * tree-ssa-alias.c (may_alias_p): If the variable
              is a global variable and the pointer is parameter
              and -fargument-noalias-global is used, then
              the pointer cannot alias the variable.
      
      From-SVN: r97978
      Andrew Pinski committed
    • 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 5 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