1. 12 Nov, 2007 9 commits
    • * de.po, zh_CN.po: Update. · 3aa64f2c
      From-SVN: r130104
      Joseph Myers committed
    • stl_deque.h (deque<>::push_back<>(_Args...), [...]): Add. · 7ffec97f
      2007-11-12  Chris Jefferson  <chris@bubblescope.net>
      	    Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/stl_deque.h (deque<>::push_back<>(_Args...),
      	deque<>::push_front<>(_Args...), emplace<>(iterator, _Args...),
      	insert(iterator, _Tp&&), _M_push_back_aux<>(_Args&&...),
      	_M_push_front_aux<>(_Args&&...), _M_insert_aux<>(iterator,
      	_Args&&...)): Add.
      	* include/deque/deque.tcc (insert(iterator, value_type&&),
      	emplace<>(iterator, _Args...), _M_push_back_aux<>(_Args&&...),
      	_M_push_front_aux<>(_Args&&...), _M_insert_aux<>(iterator,
      	_Args&&...)): Define.
      	(_M_insert_aux(iterator, size_type, const value_type&),
      	_M_insert_aux<>(iterator, _ForwardIterator, _ForwardIterator,
      	size_type)): Use _GLIBCXX_MOVE3, _GLIBCXX_MOVE_BACKWARD3,
      	__uninitialized_move*, __uninitialized_fill_move,
      	__uninitialized_copy_move, when possible.
      	* include/bits/stl_uninitialized.h (__uninitialized_copy_copy,
      	__uninitialized_fill_copy, __uninitialized_copy_fill): Remove.
      	(__uninitialized_copy_move, __uninitialized_move_copy,
      	__uninitialized_move_fill, __uninitialized_fill_move): Add.
      	* include/debug/deque (deque<>::push_back<>(_Args...),
      	deque<>::push_front<>(_Args...), emplace<>(iterator, _Args...),
      	insert(iterator, _Tp&&)): Add.
      	* testsuite/23_containers/deque/modifiers/moveable.cc: Enable.
      	* testsuite/23_containers/deque/capacity/moveable.cc: Likewise.
      	* testsuite/23_containers/deque/cons/moveable.cc: Likewise.
      	* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
      	Adjust dg-error line numbers.
      	* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
      	Likewise.
      	* testsuite/23_containers/deque/requirements/dr438/
      	constructor_1_neg.cc: Likewise.
      	* testsuite/23_containers/deque/requirements/dr438/
      	constructor_2_neg.cc: Likewise.
      
      	* include/debug/vector (vector<>::insert(iterator, _Tp&&)): Minor
      	tweak, prefer std::move.
      
      Co-Authored-By: Paolo Carlini <pcarlini@suse.de>
      
      From-SVN: r130102
      Chris Jefferson committed
    • re PR middle-end/34070 (Wrong code for (int)x%4) · 916c75b4
      2007-11-12  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/34070
      	* fold-const.c (fold_binary): If testing for non-negative
      	operands with tree_expr_nonnegative_warnv_p make sure to
      	use op0 which has all (sign) conversions retained.
      
      	* gcc.c-torture/execute/pr34070-1.c: New testcase.
      	* gcc.c-torture/execute/pr34070-2.c: Likewise.
      
      From-SVN: r130098
      Richard Guenther committed
    • re PR tree-optimization/34027 (-Os code size nearly doubled) · 65648dd4
      2007-11-12  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/34027
      	* fold-const.c (fold_binary): Fold n - (n / m) * m to n % m.
      	(fold_binary): Fold unsinged FLOOR_DIV_EXPR to TRUNC_DIV_EXPR.
      
      	* gcc.dg/pr34027-1.c: New testcase.
      	* gcc.dg/pr34027-2.c: Likewise.
      
      From-SVN: r130097
      Richard Guenther committed
    • re PR tree-optimization/33953 (internal compiler error: vector VEC(tree,base)… · 50d76c24
      re PR tree-optimization/33953 (internal compiler error: vector VEC(tree,base) index domain error, in vectorizable_operation at tree-vect-transform.c:4017)
      
      	PR tree-optimization/33953
      	* tree-vect-transform.c (vectorizable_operation): In case of SLP,
      	allocate vec_oprnds1 according to the number of created vector
      	statements. In case of shift with scalar argument, store scalar operand
      	for every vector statement to be created for the SLP node. Fix a
      	comment.
      
      From-SVN: r130096
      Ira Rosen committed
    • Fix erroneous ChangeLog change · 7803a05d
      From-SVN: r130094
      Tom Tromey committed
    • re PR c++/17577 (#pragma implementation no longer diagnoses use after file to which it applies) · f1e20710
      gcc/cp
      	PR c++/17577:
      	* lex.c (handle_pragma_implementation): Use cpp_included_before.
      gcc/testsuite
      	PR c++/17577:
      	* g++.dg/ext/pr17577.h: New file.
      	* g++.dg/ext/pr17577.C: New file.
      libcpp
      	PR c++/17557:
      	* include/cpplib.h (cpp_included_before): Declare.
      	* files.c (struct file_hash_entry) <location>: New field.
      	(_cpp_find_file): Initialize new field.
      	(make_cpp_dir): Likewise.
      	(cpp_included_before): New function.
      
      From-SVN: r130093
      Tom Tromey committed
    • re PR c++/8570 (line number in error message is badly placed with illegal… · b131ad7c
      re PR c++/8570 (line number in error message is badly placed with illegal template friend declaration)
      
      2007-11-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR c++/8570
      cp/
      	* pt.c (redeclare_class_template): Update error message. Use a
      	note to show the previous declaration.
      	(tsubst_friend_class): Use the location of the friend template as
      	the input location before calling redeclare_class_template.
      testsuite/
      	* g++.old-deja/g++.ns/template13.C: Update expected output.
      	* g++.old-deja/g++.pt/friend23.C: Likewise.
      	* g++.dg/warn/pr8570.C: New.
      
      From-SVN: r130092
      Manuel López-Ibáñez committed
    • Daily bump. · acd7ad0a
      From-SVN: r130090
      GCC Administrator committed
  2. 11 Nov, 2007 6 commits
  3. 10 Nov, 2007 12 commits
  4. 09 Nov, 2007 11 commits
    • Maxim Kuvyrkov <maxim@codesourcery.com> · 0a1766b2
      	* gcc/sched-deps.c (sched_analyze_insn): Use MOVE_BARRIER
      	instead of TRUE_BARRIER for jumps.  Add register dependencies
      	even when reg_pending_barrier is set.
      
      
      Co-Authored-By: Maxim Kuvyrkov <maxim@codesourcery.com>
      
      From-SVN: r130052
      Alexander Monakov committed
    • stl_deque.h (deque<>::operator=(deque&&)): Implement resolution of DR 675, call clear first. · cbc6c888
      2007-11-09  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/stl_deque.h (deque<>::operator=(deque&&)): Implement
      	resolution of DR 675, call clear first.
      	* include/bits/stl_list.h (list<>::operator=(list&&)): Likewise.
      	* include/bits/stl_bvector.h (vector<bool>::operator=(vector&&)):
      	Likewise.
      	* include/bits/stl_vector.h (vector<>::operator=(vector&&)): Likewise.
      	* include/bits/stl_map.h (map<>::operator=(map&&)): Likewise.
      	* include/bits/stl_multimap.h (multimap<>::operator=(multimap&&)):
      	Likewise.
      	* include/bits/stl_multiset.h (multiset<>::operator=(multiset&&)):
      	Likewise.
      	* include/bits/stl_set.h (set<>::operator=(set&&)): Likewise.
      	* include/debug/map.h (map<>::operator=(map&&)): Likewise.
      	* include/debug/set.h (set<>::operator=(set&&)): Likewise.
      	* include/debug/multimap.h (multimap<>::operator=(multimap&&)):
      	Likewise.
      	* include/debug/multiset.h (multiset<>::operator=(multiset&&)):
      	Likewise.
      	* include/debug/deque (deque<>::operator=(deque&&)): Likewise.
      	* include/debug/list (list<>::operator=(list&&)): Likewise. 
      	* include/debug/vector (vector<>::operator=(vector&&)): Likewise.
      	* testsuite/23_containers/multimap/moveable.cc: Adjust.
      	* testsuite/23_containers/multiset/moveable.cc: Likewise.
      	* testsuite/23_containers/set/moveable.cc: Likewise.
      	* testsuite/23_containers/map/moveable.cc: Likewise.
      	* testsuite/20_util/pair/moveable.cc: Likewise.
      	* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
      	Adjust dg-error line numbers.
      	* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
      	Likewise.
      	* testsuite/23_containers/deque/requirements/dr438/
      	constructor_1_neg.cc: Likewise.
      	* testsuite/23_containers/deque/requirements/dr438/
      	constructor_2_neg.cc: Likewise.
      	* testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
      	Likewise.
      	* testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
      	Likewise.
      	* testsuite/23_containers/list/requirements/dr438/
      	constructor_1_neg.cc: Likewise.
      	* testsuite/23_containers/list/requirements/dr438/
      	constructor_2_neg.cc: Likewise.
       	* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
      	Likewise.
      	* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
      	Likewise.
      	* testsuite/23_containers/vector/requirements/dr438/
      	constructor_1_neg.cc: Likewise.
      	* testsuite/23_containers/vector/requirements/dr438/
      	constructor_2_neg.cc: Likewise.
      
      From-SVN: r130051
      Paolo Carlini committed
    • haifa-sched.c (haifa_classify_insn): Rename to ... · ac4a7e21
      	* gcc/haifa-sched.c (haifa_classify_insn): Rename to ...
      	(haifa_classify_rtx): ...  this.  Improve handling of COND_EXECs,
      	handle PARALLELs by recursing.  Use it ...  
      	(haifa_classify_insn): ...  here.  Reimplement.
      
      From-SVN: r130050
      Alexander Monakov committed
    • re PR libstdc++/34032 (-std=c++0x causes undeclared symbols errors on cygwin) · 18f310b7
      2007-11-09  Paolo Carlini  <pcarlini@suse.de>
      
      	PR libstdc++/34032
      	* acinclude.m4 ([GLIBCXX_ENABLE_C99], [GLIBCXX_CHECK_C99_TR1]):
      	Use -std=c++98 instead of the default -std=gnu++98.
      	* configure: Regenerate.
      
      From-SVN: r130047
      Paolo Carlini committed
    • bitmap.h (bitmap_single_bit_set_p): Declare. · 76e910c6
      2007-11-09  Richard Guenther  <rguenther@suse.de>
      
      	* bitmap.h (bitmap_single_bit_set_p): Declare.
      	* bitmap.c (bitmap_single_bit_set_p): New function.
      	* tree-ssa-alias.c (add_may_alias_for_new_tag): Use it.
      	(maybe_create_global_var): Use bitmap_empty_p.
      
      From-SVN: r130045
      Richard Guenther committed
    • re PR rtl-optimization/34012 (Pessimization caused by fwprop) · de266950
      	PR rtl-optimization/34012
      	* fwprop.c (try_fwprop_subst): Do not replace if the new
      	SET_SRC has a higher cost than the old one.
      
      	* gcc.target/i386/pr34012.c: New test.
      
      Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
      
      From-SVN: r130043
      Paolo Bonzini committed
    • re PR rtl-optimization/33732 (gcc.c-torture/execute/longlong.c execution at -O3) · 96cdfb52
      	PR rtl-optimization/33732
      	* reload.c (push_reload): Check that the REG_DEAD note was referring
      	to a hardreg or to a pseudo that has been assigned exactly one hardreg
      	before considering it in order to select the reload register.
      	(combine_reloads): Likewise.
      	(find_dummy_reload): Likewise.
      
      From-SVN: r130042
      Eric Botcazou committed
    • tree-flow.h (struct ptr_info_def): Make escape_mask a ENUM_BITFIELD. · 91a17a34
      2007-11-09  Richard Guenther  <rguenther@suse.de>
      
      	* tree-flow.h (struct ptr_info_def): Make escape_mask a
      	ENUM_BITFIELD.
      	(struct ptr_info_def): Likewise.
      	(enum escape_type): Also use bit zero.
      
      From-SVN: r130041
      Richard Guenther committed
    • re PR target/33604 (Revision 119502 causes significantly slower results with… · 6aaa4013
      re PR target/33604 (Revision 119502 causes significantly slower results with 4.3/4.4 compared to 4.2)
      
      2007-11-09  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/33604
      	* tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
      	Disregard changes in CV qualifiers of pointed to types for
      	forward propagating ADDR_EXPRs.
      	* tree-ssa-ccp.c (fold_stmt_r): Preserve volatileness of the original
      	expression.
      
      	* g++.dg/tree-ssa/pr33604.C: New testcase.
      	* gcc.dg/pr32721.c: Adjust pattern.
      
      From-SVN: r130040
      Richard Guenther committed
    • dse.c (find_shift_sequence): Always choose an integer mode for new_mode. · 06acf7d0
      gcc/
      	* dse.c (find_shift_sequence): Always choose an integer mode for
      	new_mode.
      	(replace_read): Require both the read and store mode to be
      	integer ones.  Remove a then-redundant FLOAT_P check.
      
      gcc/testsuite/
      	* gcc.target/mips/dse-1.c: Disable.
      
      From-SVN: r130039
      Richard Sandiford committed
    • Daily bump. · ea9d4a19
      From-SVN: r130033
      GCC Administrator committed
  5. 08 Nov, 2007 2 commits