1. 29 Jan, 2007 16 commits
    • configure, [...]: Rebuilt. · acd724f6
      	* configure, Makefile.in: Rebuilt.
      	* Makefile.am (bin_SCRIPTS): Never install scripts/jar.
      	* configure.ac (BASH_JAR): Removed conditional.
      	(JAR): Prefer the jar found by AC_CHECK_PROGS.
      
      From-SVN: r121301
      Tom Tromey committed
    • stl_uninitialized.h (uninitialized_copy(const char*, const char*, char*),… · 263e3c33
      stl_uninitialized.h (uninitialized_copy(const char*, const char*, char*), [...]): Remove, just forward to std::copy.
      
      2007-01-29  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/stl_uninitialized.h (uninitialized_copy(const char*,
      	const char*, char*), uninitialized_copy(const wchar_t*, const wchar_t*,
      	wchar_t*)): Remove, just forward to std::copy.
      
      From-SVN: r121300
      Paolo Carlini committed
    • Makefile.in: Rebuilt. · acb966f2
      	* Makefile.in: Rebuilt.
      	* Makefile.am (interpret.lo): New target.  Add -fwrap to
      	AM_CXXFLAGS.
      
      From-SVN: r121299
      Tom Tromey committed
    • Checking in updated class file · e0e4be2e
      From-SVN: r121298
      Tom Tromey committed
    • enc_filebuf.h: Resurrect, update. · 4ffe6e87
      2007-01-29  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* include/ext/enc_filebuf.h: Resurrect, update.
      	* include/ext/codecvt_specializations.h: Remove
              _GLIBCXX_USE_ICONV, _GLIBCXX_USE_ENCODING_STATE.
      	* include/bits/localefwd.h: Remove declaration for __enc_traits.
      	* docs/html/22_locale/codecvt.html: Change __enc_traits to
      	encoding_state.
      	* scripts/testsuite_flags.in: Remove ICONV.
      
      	* configure.ac: Remove GLIBCXX_CHECK_ICONV_SUPPORT.
      	* acinclude.m4 (GLIBCXX_CHECK_ICONV_SUPPORT): Remove.
      	* crossconfig.m4: Remove use of GLIBCXX_CHECK_ICONV_SUPPORT.
      	* config.h.in: Remove HAVE_ICONV_CLOSE, HAVE_ICONV_OPEN,
      	HAVE_NL_LANGINFO, _GLIBCXX_USE_ICONV.
      	* include/Makefile.am: Uglify ICONV_CONST.
      	* configure: Regenerate.
      	* aclocal.m4: Regenerate.
      	* Makefile.in: Regenerate.
      	* src/Makefile.in: Regenerate.
      	* po/Makefile.in: Regenerate.
      	* libmath/Makefile.in: Regenerate.
      	* include/Makefile.in: Regenerate.
      	* libsupc++/Makefile.in: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      
      	* testsuite/ext/enc_filebuf/wchar_t/13189.cc: Use
      	dg-require-iconv, fix up for encoding_state changes.
      	* testsuite/ext/enc_filebuf/char/13189.cc: Same.
      	* testsuite/ext/enc_filebuf/char/13598.cc: Same.
      	* testsuite/22_locale/codecvt/unicode: Move...
      	* testsuite/22_locale/codecvt/unicode/char.cc: Move...
      	* testsuite/22_locale/codecvt/unicode/1.cc: Move...
      	* testsuite/22_locale/codecvt/unicode/wchar_t.cc: Move...
      	* testsuite/ext/codecvt: New.
      	* testsuite/ext/codecvt/char-1.cc: ...here. Also, use dg-require-iconv.
      	* testsuite/ext/codecvt/char-2.cc: ...here. Same.
      	* testsuite/ext/codecvt/1.cc: ...here. Same.
      	* testsuite/ext/codecvt/wchar_t.cc: ...here. Same.
      	* testsuite/22_locale/locale/cons/unicode: Delete directory.
      	* testsuite/22_locale/locale/cons/unicode/1.cc: Move...
      	* testsuite/22_locale/locale/cons/unicode.cc: ...here.
      
      From-SVN: r121297
      Benjamin Kosnik committed
    • jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED): Define. · 68254f23
              * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
              Define.
              [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
              gcj. All jvmti object types now are defined to be their
              corresponding java classes.
              * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
              jthread to Thread*.
              (_Jv_JVMTI_ResumeThread): Likewise.
              (_Jv_JVMTI_InterruptThread): Likewise.
              (_Jv_JVMTI_SetEventNotificationMode): Likewise.
              * gnu/classpath/jdwp/natVMVirtualMachine.cc
              (jdwpClassPrepareCB): Likewise.
              (jdwpThreadEndCB): Likewise.
              (jdwpThreadStartCB): Likewise.
              (jdwpVMInitCB): Likewise.
      
      From-SVN: r121296
      Keith Seitz committed
    • re PR tree-optimization/30630 (Trunk GCC hangs while compiling cpu2k6/perlbench at -O2) · 48e540b0
      2007-01-29  Daniel Berlin  <dberlin@dberlin.org>
      
      	PR tree-optimization/30630
      	* tree-ssa-structalias.c (do_complex_constraint): Mark correct
      	variable as changed.
      
      From-SVN: r121295
      Daniel Berlin committed
    • altivec-24.c: New test. · 99af1cca
      2007-01-29  Josh Conner  <jconner@apple.com>
      
      	* gcc.target/powerpc/altivec-24.c: New test.
      
      From-SVN: r121294
      Josh Conner committed
    • re PR c++/28266 (ICE on invalid default variable) · abc67de1
              PR c++/28266
              * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
              expanded only once even if an error occurs.
      
      From-SVN: r121288
      Simon Martin committed
    • SecurityManager.java: Load and initialize java.security.Security. · ff5157e5
      2007-01-26  Andrew Haley  <aph@redhat.com>
      
              * java/lang/SecurityManager.java: Load and initialize
              java.security.Security.
      
      From-SVN: r121287
      Andrew Haley committed
    • SecurityManager.java: Load and initialize java.security.Security. · b70b9fc3
      2007-01-26  Andrew Haley  <aph@redhat.com>
      
              * java/lang/SecurityManager.java: Load and initialize
              java.security.Security.
      
      From-SVN: r121286
      Andrew Haley committed
    • natClass.cc (initializeClass): Re-throw SecurityExceptions. · 6b05e791
      2007-01-26  Andrew Haley  <aph@redhat.com>
      
              * java/lang/natClass.cc (initializeClass): Re-throw
              SecurityExceptions.
              * java/lang/natVMClassLoader.cc (loadClass): checkPackageAccess.
              * java/lang/ClassLoader.java: (loadClass): Likewise.
      
      From-SVN: r121285
      Andrew Haley committed
    • class.c (add_method_1): Mark fndecl as external unless we are compiling it into this object file. · 2631dfdd
      2007-01-29  Andrew Haley  <aph@redhat.com>
      
              * class.c (add_method_1): Mark fndecl as external unless we are
              compiling it into this object file.
      
      From-SVN: r121284
      Andrew Haley committed
    • re PR fortran/30554 ([4.1 only] ICE in mio_pointer_ref at module.c:1945) · aec78e73
      2007-01-29  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/30554
      	* module.c (read_module): If a symbol is excluded by an ONLY
      	clause, check to see if there is a symtree already loaded. If
      	so, attach the symtree to the pointer_info.
      
      2007-01-29  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/30554
      	* gfortran.dg/used_dummy_types_6.f90: New test.
      
      From-SVN: r121281
      Paul Thomas committed
    • gcov-io.h (__gcov_indirect_call_profiler): Declare. · 098b68ad
      	* gcov-io.h (__gcov_indirect_call_profiler): Declare.
      	(__gcov_average_profiler): Likewise.
      	(__gcov_ior_profiler): Likewise.
      	(__gcov_merge_ior): Likewise.
      
      From-SVN: r121280
      Ben Elliston committed
    • Daily bump. · a905bb8d
      From-SVN: r121277
      GCC Administrator committed
  2. 28 Jan, 2007 18 commits
    • builtins.c (expand_builtin_memset): Fix typo in my last patch. · 52ca6d35
      
      	* builtins.c (expand_builtin_memset): Fix typo in my last patch.
      	* value-prof.c (stringop_block_profile): Likewise.
      
      From-SVN: r121272
      Jan Hubicka committed
    • expr.c (emit_block_move_via_movmem, [...]): Add variant handling histograms; add wrapper. · 079a182e
      	* expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall): Add
      	variant handling histograms; add wrapper.
      	(clear_storage_via_libcall): Export.
      	(emit_block_move_hints): Break out from ...; add histograms.
      	(emit_block_move): ... this one.
      	(clear_storage_hints): Break out from ...; add histograms.
      	(clear_storage): ... this one.
      	(set_storage_via_memset): Handle histogram.
      	* expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
      	(clear_storage_hints, clear_storage_via_libcall): Declare.
      	(set_storage_via_setmem): Update prototype.
      	* doc/md.texi (movmem, setmem): Document new arguments.
      
      	* value-prof.c (dump_histogram_value, tree_find_values_to_profile): Add
      	new histograms.
      	(stringop_block_profile): New global function.
      	(tree_stringops_values_to_profile): Profile block size and alignment.
      	* value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
      	HIST_TYPE_IOR.
      	(struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
      	(stringop_block_profile): Declare.
      	* builtins.c: Include value-prof.h.
      	(expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
      	* gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
      	(GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
      	(GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
      	* profile.c (instrument_values): Add new counters.
      	* cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
      	calls.
      	* tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
      	(tree_init_edge_profiler): Build new profilers.
      	(tree_gen_average_profiler, tree_gen_ior_profiler): New.
      	(pass_tree_profile): Add dump.
      	(tree_profile_hooks): Update.
      	* Makefile.in (LIBGCOV): Add new constants.
      	* libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
      	__gcov_ior_profiler): New.
      	* i386.md (movmem/setmem expanders): Add new optional arguments.
      
      From-SVN: r121270
      Jan Hubicka committed
    • * MAINTAINERS (spu port): Add myself. · 2472200d
      From-SVN: r121269
      David Edelsohn committed
    • large-size-array-3.c: Correct test case (portability). · 7217a9eb
      
      	* gcc.dg/large-size-array-3.c: Correct test case (portability).
      
      From-SVN: r121266
      Roger Sayle committed
    • 2007-01-28 Michele Sandri <gpointorama@gmail.com> · 94468b1c
      	* gnu/java/nio/channels/natFileChannelWin32.cc
      	(lock): Implemented.
      	(unlock): Implemented.
      
      From-SVN: r121265
      Michele Sandri committed
    • locale_facets.tcc (num_get<>::do_get(iter_type, iter_type, ios_base&,… · 226a2e08
      locale_facets.tcc (num_get<>::do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&), [...]): -Wconversion and -Woverflow fixes.
      
      2007-01-28  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
      	iter_type, ios_base&, ios_base::iostate&, bool&),
      	num_put<>::_M_insert_int(_OutIter, ios_base&, _CharT, _ValueT)):
      	-Wconversion and -Woverflow fixes.
      	* include/bits/istream.tcc (operator>>(int&), operator>>(short&)):
      	Likewise.
      	* include/std/valarray (valarray<>::shift, cshift): Likewise.
      
      From-SVN: r121264
      Paolo Carlini committed
    • re PR c++/28988 (g++ does not check first type name in pseudo-destructor-name) · 5cf10afb
      2007-01-28  Andrew Pinski  <pinskia@gmail.com>
      
              PR C++/28988
              * semantics.c (finish_pseudo_destructor_expr): Check the
              destrutor name by calling check_dtor_name.
      
      2007-01-28  Andrew Pinski  <pinskia@gmail.com>
      
              PR C++/28988
              * g++.dg/expr/dtor4.C: New test.
      
      From-SVN: r121261
      Andrew Pinski committed
    • tree-ssa-loop-unswitch.c: Include tree-inline.h. · 7f9bc51b
      	* tree-ssa-loop-unswitch.c: Include tree-inline.h.
      	(tree_unswitch_single_loop): Pass eni_size_weights to
      	tree_num_loop_insns.
      	* tree-ssa-loop-manip.c: Include tree-inline.h.
      	(can_unroll_loop_p): Pass eni_size_weights to
      	tree_num_loop_insns.
      	* tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
      	Pass eni_size_weights to estimate_num_insns.
      	* tree.h (init_inline_once): Export.
      	* toplev.c (backend_init): Call init_inline_once.
      	* cgraphunit.c (cgraph_process_new_functions,
      	cgraph_analyze_function): Pass eni_inlining_weights to
      	estimate_num_insns.
      	* ipa-inline.c (compute_inline_parameters): Ditto.
      	* tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
      	to estimate_num_insns.
      	(try_unroll_loop_completely): Pass eni_size_weights to
      	tree_num_loop_insns.
      	* tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
      	ot estimate_num_insns.
      	* tree-ssa-loop-prefetch.c: Include tree-inline.h.
      	(loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
      	* tree-inline.c (eni_inlining_weights, eni_size_weights,
      	eni_time_weights): New variables.
      	(init_inline_once): Initialize them.
      	(struct eni_data): Mew.
      	(estimate_num_insns_1, estimate_num_insns): Use weights.
      	* tree-inline.h (struct eni_weights_d): New.
      	(eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
      	(estimate_num_insns): Declaration changed.
      	* cfgloop.h (tree_num_loop_insns): Declaration changed.
      	* Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
      	tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
      
      	* gcc.dg/tree-ssa/loop-23.c: New test.
      
      From-SVN: r121260
      Zdenek Dvorak committed
    • tree-data-ref.c (conflict_fn): Assert that the number of affine relations in the… · b39c6706
      tree-data-ref.c (conflict_fn): Assert that the number of affine relations in the conflict function is valid.
      
      	* tree-data-ref.c (conflict_fn): Assert that the number of affine
      	relations in the conflict function is valid.
      
      From-SVN: r121259
      Zdenek Dvorak committed
    • re PR bootstrap/30469 (profiledbootstrap no longer works) · 9891ec5f
      	PR bootstrap/30469
      	* Makefile.in (CFLAGS): Forcibly remove -fprofile-generate and
      	-fprofile-use.
      
      From-SVN: r121257
      Daniel Jacobowitz committed
    • ipa-cp.c (ipcp_insert_stage, [...]): Support for SSA. · 3cc1cccc
      2007-01-25  Razya Ladelsky  <razya@il.ibm.com>
      
              * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
              (ipcp_driver): Change to static definition.
              Add dumping of the ifunctions.
              (constant_val_insert): Remove unused parameter. Support for SSA.
              (ipcp_propagate_const): Support for SSA.
              (ipcp_profile_bb_print): Print only analyzed nodes.
              (ipcp_replace_map_create): Remove support for Fortran constant
              for now.
              * ipa-prop.c (ipa_method_modify_stmt,
              ipa_callsite_compute_param): Support for SSA.
              * ipa-prop.h (ipcp_driver): Remove declaration.
              (IS_VALID_TREE_MAP_INDEX): Add define.
      
      From-SVN: r121256
      Razya Ladelsky committed
    • re PR fortran/30389 ([4.1 only] ACHAR() intrinsic gives erroneous errors in constant-folding.) · 34462c28
      2007-01-28  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR libfortran/30389
      	* gfortran.h:  Remove gfc_simplify_init_1.
      	* arith.h:  Remove third argument from gfc_compare_string.
      	* arith.c(gfc_compare_expression):  Remove third argument
      	from call to gfc_compare_string.
      	(gfc_compare_string):  Remove third argument xcoll_table.
      	Remove use of xcoll_table.
      	* misc.c(gfc_init_1):  Remove call to gfc_simplify_init_1.
      	* simplify.c(ascii_table):  Remove.
      	(xascii_table): Likewise.
      	(gfc_simplify_achar):  ICE if extract_int fails.  Remove use of
      	ascii_table.  Warn if -Wsurprising and value < 0 or > 127.
      	(gfc_simplify_char):  ICE if extract_int fails. Error if
      	value < 0 or value > 255.
      	(gfc_simplify_iachar):  Remove use of xascii_table.
      	Char values outside of 0..255 are an ICE.
      	(gfc_simplify_lge):  Remove use of xascii_table.
      	(gfc_simplify_lgt):  Likewise.
      	(gfc_simplify_lle):  Likewise.
      	(gfc_simplify_llt):  Likewise.
      	(invert_table):  Remove.
      	(gfc_simplify_init_1):  Remove.
      
      2007-01-28  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR libfortran/30389
      	* gfortran.dg/achar_2.f90:  New test.
      	* gfortran.dg/achar_3.f90:  New test.
      
      From-SVN: r121255
      Thomas Koenig committed
    • 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
  3. 27 Jan, 2007 6 commits