1. 28 Jan, 2007 5 commits
    • common.opt: Add fstrict-overflow. · eeef0e45
      ./:	* common.opt: Add fstrict-overflow.
      	* opts.c (decode_options): Set flag_strict_overflow if -O2.
      	* flags.h (TYPE_OVERFLOW_WRAPS): Define.
      	(TYPE_OVERFLOW_UNDEFINED): Define.
      	(TYPE_OVERFLOW_TRAPS): Define.  This replaces TYPE_TRAP_SIGNED.
      	Replace all uses.
      	* tree.h (TYPE_TRAP_SIGNED): Don't define.
      	* fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
      	(fold_negate_expr): Likewise.
      	(make_range): Likewise.
      	(extract_muldiv_1): Likewise.
      	(maybe_canonicalize_comparison): Likewise.
      	(fold_comparison): Likewise.
      	(fold_binary): Likewise.
      	(tree_expr_nonnegative_p): Likewise.
      	(tree_expr_nonzero_p): Likewise.
      	* tree-vrp.c (compare_values): Likewise.
      	(extract_range_from_binary_expr): Likewise.
      	(extract_range_from_unary_expr): Likewise.
      	* tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
      	Likewise.
      	(nowrap_type_p): Likewise.
      	* tree-scalar-evolution.c (simple_iv): Likewise.
      	* fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
      	(build_range_check): Likewise.
      	(extract_muldiv_1): Likewise.
      	(fold_comparison): Likewise.
      	* tree-vrp.c (vrp_int_const_binop): Likewise.
      	(extract_range_from_unary_expr): Likewise.
      	* convert.c (convert_to_integer): Likewise.
      	* fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
      	(fold_comparison): Likewise.
      	(fold_binary): Likewise.
      	* optabs.c (optab_for_tree_code): Likewise.
      	* tree-vectorizer.c (vect_is_simple_reduction): Likewise.
      	* simplify-rtx.c (simplify_const_relational_operation): Check
      	flag_strict_overflow and flag_trapv.
      	(simplify_const_relational_operation): Likewise.
      	* doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
      	(Optimize Options): Add -fstrict-overflow to -O2 list.  Document
      	-fstrict-overflow.
      testsuite/:
      	* gcc.dg/strict-overflow-1.c: New test.
      	* gcc.dg/no-strict-overflow-1.c: New test.
      	* gcc.dg/strict-overflow-2.c: New test.
      	* gcc.dg/no-strict-overflow-2.c: New test.
      	* gcc.dg/strict-overflow-3.c: New test.
      	* gcc.dg/no-strict-overflow-3.c: New test.
      	* gcc.dg/strict-overflow-4.c: New test.
      	* gcc.dg/no-strict-overflow-4.c: New test.
      	* gcc.dg/fold-mod-1.c: Add -fstrict-overflow option.
      	* gcc.dg/pr15784-1.c: Likewise.
      	* gcc.dg/pr20922-1.c: Likewise.
      	* gcc.dg/pr20922-3.c: Likewise.
      	* gcc.dg/pr20922-4.c: Likewise.
      	* gcc.dg/pr20922-6.c: Likewise.
      	* gcc.dg/compare-4.c: Likewise.
      	* gcc.dg/torture/pr26898-1.c: Likewise.
      	* gcc.dg/tree-ssa/divide-1.c: Likewise.
      	* gcc.dg/tree-ssa/divide-2.c: Likewise.
      	* gcc.dg/tree-ssa/divide-3.c: Likewise.
      	* gcc.dg/tree-ssa/divide-4.c: Likewise.
      	* gcc.dg/tree-ssa/pr14490-1.c: Likewise.
      	* gcc.dg/tree-ssa/pr14490-3.c: Likewise.
      	* gcc.dg/tree-ssa/pr21082.c: Likewise.
      	* gcc.dg/tree-ssa/pr26899.c: Likewise.
      	* g++.dg/tree-ssa/pr21082.C: Likewise.
      
      From-SVN: r121254
      Ian Lance Taylor committed
    • tree.c (tree_fold_gcd): Delete. · b73a6056
      
      	* tree.c (tree_fold_gcd): Delete.
      	* tree.h (tree_fold_gcd): Remove prototype.
      	* tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
      	test whether one constant integer is a multiple of another.  Instead
      	call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
      	* fold-const.c (multiple_of_p):  We've determined both TOP and
      	BOTTOM are integer constants so we can call int_const_binop directly
      	instead of the more generic const_binop.
      
      From-SVN: r121253
      Roger Sayle committed
    • fold-const.c (size_binop): In the fast-paths for X+0... · 74890d7b
      
      	* fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
      	1*X check that the constant hasn't overflowed, to preserve the
      	TREE_OVERFLOW bit.
      	(round_up): Provide an efficient implementation when rouding-up an
      	INTEGER_CST to a power-of-two.
      
      	* gcc-dg/large-size-array-3.c: New test case.
      
      From-SVN: r121252
      Roger Sayle committed
    • Daily bump. · 5e851559
      From-SVN: r121250
      GCC Administrator committed
  2. 27 Jan, 2007 12 commits
  3. 26 Jan, 2007 17 commits
  4. 25 Jan, 2007 6 commits
    • re PR fortran/30437 (-Wno-all is rejected (even when fortran is not included)) · 4428e682
      2007-01-25  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR fortran/30437
      fortran/
      	* lang.opt (Wall): Remove RejectNegative.
      	* options.c (gfc_handle_option): Wall can be disabled.
      	(set_Wall): Add a parameter for disabling Wall.
      testsuite/	
      	* gcc.dg/Wall.c: New.
      	* gcc.dg/Wno-all.c: New.
      	* gfortran.dg/Wall.f90: New.
      	* gfortran.dg/Wno-all.f90: New.
      
      From-SVN: r121186
      Manuel López-Ibáñez committed
    • jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare. · 161a649c
              * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.
              * gnu/classpath/jdwp/natVMVirtualMachine.cc
              (_Jv_GetJDWP_JVMTIEnv): New function.
              * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement.
              (getSignature): Implement.
              (getModifiers): Implement.
      
      From-SVN: r121185
      Keith Seitz committed
    • re PR target/25127 (internal compiler error: in rs6000_emit_prologue, at… · 22fa69da
      re PR target/25127 (internal compiler error: in rs6000_emit_prologue, at config/rs6000/rs6000.c:14039)
      
      2007-01-24  Geoffrey Keating  <geoffk@apple.com>
      
      	PR 25127
      	* config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
      	save Altivec registers in an eh_return function.
      	(compute_vrsave_mask): Likewise.
      	(rs6000_stack_info): Correct AIX/Darwin stack alignment computation
      	for saving Altivec registers.
      	(rs6000_emit_prologue): Don't allocate stack twice in
      	eh_return function.  Correct expected value of altivec_save_offset
      	when using save_world.  Describe save of R0 to stack when using
      	save_world.  Describe stack pointer adjustment when using
      	save_world.  Remove duplicated eh_return parameter register saving.
      	Update sp_offset variable after save_world.
      	* config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
      	darwin-world.asm.
      	(LIB2FUNCS_EXTRA): Add darwin-world.asm.
      	* config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
      	implies Altivec.
      
      Index: gcc/testsuite/ChangeLog
      2007-01-24  Geoffrey Keating  <geoffk@apple.com>
      
      	* gcc.target/powerpc/darwin-ehreturn-1.c: New.
      	* g++.dg/eh/simd-2.C: Also run on Darwin.
      	* g++.dg/eh/simd-3.C: New.
      	* g++.dg/eh/simd-4.C: New.
      
      From-SVN: r121184
      Geoffrey Keating committed
    • configure, [...]: Rebuilt. · 9fe94447
      2007-01-25  Andrew Haley  <aph@redhat.com>
      
      	* configure, Makefile.in, include/config.h.in: Rebuilt.
      	* Makefile.am (libgcj_la_LIBADD): Removed $(LIBMAGIC).
      	* configure.ac: Don't check for libmagic.
      	* java/net/natVMURLConnection.cc (p_magic_open, p_magic_load,
      	p_magic_close, p_magic_buffer): New globals.
      	(init): Look up 'magic' functions.
      	(guessContentTypeFromBuffer): Updated.
      
      From-SVN: r121183
      Andrew Haley committed
    • re PR target/30272 (Build failure under SGI Irix (GFortran)) · a942e89f
      2007-01-25  Daniel Franke <franke.daniel@gmail.com>
      
              PR target/30272
              * inclhack.def(broken_cabs): Also remove definition of cabsl.
              * fixincl.x: Regenerate.
              * tests/base/math.h: Update.
      
      From-SVN: r121182
      Daniel Franke committed
    • * config.gcc (ia64*-*-hpux*): Make posix threads the default. · 79e8b6c0
      From-SVN: r121180
      Steve Ellcey committed