1. 12 Feb, 2010 3 commits
  2. 11 Feb, 2010 23 commits
  3. 10 Feb, 2010 14 commits
    • re PR c++/41896 ([c++0x] Segfault because of a nested lambda function) · 2cb95a6a
      	PR c++/41896
      	* semantics.c (outer_lambda_capture_p): Use current_function_decl
      	instead of current_class_type.
      
      From-SVN: r156673
      Jason Merrill committed
    • PR c++/42983, core issue 906 · f1c3cf3c
      	PR c++/42983, core issue 906
      	* method.c (defaultable_fn_check): Check virtualness.
      	* include/std/thread (~_Impl_base): Move default out of line.
      	* libsupc++/nested_exception.h (~nested_exception): Likewise.
      
      From-SVN: r156672
      Jason Merrill committed
    • re PR c++/43016 ([C++0x] Inappropriate multiple definition error for lambda… · 7a79ff3b
      re PR c++/43016 ([C++0x] Inappropriate multiple definition error for lambda function when inside inline functions)
      
      	PR c++/43016
      	* semantics.c (maybe_add_lambda_conv_op): Set DECL_INTERFACE_KNOWN.
      
      From-SVN: r156671
      Jason Merrill committed
    • ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note instead of loop. · 56592e03
      2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
      
      	* ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
      	instead of loop.
      
      From-SVN: r156670
      Vladimir Makarov committed
    • hashtable.h: Fold in include/tr1_impl/hashtable.h contents. · ab65a4c7
      2010-02-10  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/tr1/hashtable.h: Fold in include/tr1_impl/hashtable.h
      	contents.
      	* include/tr1_impl/hashtable.h: Remove.
      	* include/tr1_impl/hashtable_policy.h: Move and rename...
      	* include/tr1/hashtable_policy.h: ... here.
      	* include/tr1_impl/unordered_map: Move and rename...
      	* include/tr1/unordered_map.h: ... here.
      	* include/tr1_impl/unordered_set: Move and rename...
      	* include/tr1/unordered_set.h: ... here.
      	* include/tr1_impl/unordered_map: Move and rename...
      	* include/tr1/unordered_map.h: ... here.
      	* include/tr1/unordered_map: Adjust.
      	* include/tr1/unordered_set: Likewise.
      	* include/Makefile.am: Adjust.
      	* include/Makefile.in: Regenerate.
      
      	* include/std/c++0x_warning.h: Move...
      	* include/bits/c++0x_warning.h: ... here.
      	* include/debug/unordered_map: Adjust.
      	* include/debug/unordered_set: Likewise.
      	* include/std/tuple: Likewise.
      	* include/std/system_error: Likewise.
      	* include/std/forward_list: Likewise.
      	* include/std/thread: Likewise.
      	* include/std/type_traits: Likewise.
      	* include/std/future: Likewise.
      	* include/std/regex: Likewise.
      	* include/std/atomic: Likewise.
      	* include/std/ratio: Likewise.
      	* include/std/random: Likewise.
      	* include/std/unordered_map: Likewise.
      	* include/std/chrono: Likewise.: Likewise.
      	* include/std/condition_variable: Likewise.
      	* include/std/mutex: Likewise.
      	* include/std/unordered_set: Likewise.
      	* include/std/array: Likewise.
      	* include/profile/unordered_map: Likewise.
      	* include/profile/unordered_set: Likewise.
      	* include/c_global/cinttypes: Likewise.
      	* include/c_global/ctgmath: Likewise.
      	* include/c_global/cfenv: Likewise.
      	* include/c_global/cstdint: Likewise.
      	* include/c_global/cstdbool: Likewise.
      	* include/c_global/ccomplex: Likewise.
      
      	* include/bits/shared_ptr.h: Do not include <bits/c++0x_warning.h>
      	at all, the file is not meant to be included by the users.
      	* include/bits/functional_hash.h: Likewise.
      	* include/bits/unique_ptr.h: Likewise.
      	* include/bits/forward_list.h: Likewise.
      
      	* testsuite/29_atomics/atomic/cons/assign_neg.cc: Adjust dg-*
      	line numbers.
      	* testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.
      	* testsuite/23_containers/forward_list/requirements/dr438/
      	assign_neg.cc: Likewise.
      	* testsuite/23_containers/forward_list/requirements/dr438/
      	insert_neg.cc: Likewise.
      	* testsuite/23_containers/forward_list/requirements/dr438/
      	constructor_1_neg.cc: Likewise.
      	* testsuite/23_containers/forward_list/requirements/dr438/
      	constructor_2_neg.cc: Likewise.
      	* testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: Likewise.
      	* testsuite/20_util/unique_ptr/assign/assign_neg.cc: Likewise.
      
      From-SVN: r156667
      Paolo Carlini committed
    • re PR tree-optimization/43017 (VRP miscompiles python with -fwrapv, II) · 5418fe84
      2010-02-10  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/43017
      	* tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
      	for wrapping signed arithmetic.
      
      	* gcc.dg/torture/pr43017.c: New testcase.
      
      From-SVN: r156666
      Richard Guenther committed
    • [multiple changes] · 7fcd5ad5
      2010-02-10  Joost VandeVondele <jv244@cam.ac.uk>
                  Tobias Burnus <burnus@net-b.de>
      
              PR fortran/40823
              * decl.c (gfc_match_subroutine): Explicitly set
              * sym->declared_at.
      
      2010-02-10  Tobias Burnus <burnus@net-b.de>
      
              PR fortran/40823
              * gfortran.dg/private_type_1.f90: Update error location.
              * gfortran.dg/invalid_interface_assignment.f90: Ditto.
              * gfortran.dg/typebound_operator_2.f03: Ditto.
              * gfortran.dg/assignment_2.f90: Ditto.
              * gfortran.dg/redefined_intrinsic_assignment.f90: Ditto.
              * gfortran.dg/binding_label_tests_9.f03: Ditto.
      
      From-SVN: r156665
      Tobias Burnus committed
    • re PR fortran/43015 (ICE with BIND(C) and -fbounds-check in mingw-w64 cross-compiler) · 975d3303
      2010-02-10  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/43015
              * trans-decl.c (gfc_generate_function_code): Only check
              actual-vs.-dummy character bounds if not bind(C).
      
      2010-02-10  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/43015
              * gfortran.dg/bind_c_usage_20.f90: New test.
      
      From-SVN: r156663
      Tobias Burnus committed
    • hashtable.h: Fold in include/tr1_impl/hashtable.h for C++0x use. · 3b2524b1
      2010-02-10  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/hashtable.h: Fold in include/tr1_impl/hashtable.h
      	for C++0x use.
      	* include/bits/hashtable_policy.h: New, copy and adjust for
      	C++0x use, include/tr1_impl/hashtable_policy.h; fix erase and
      	insert member functions per n3000.
      	* include/bits/unordered_map.h: Likewise for include/tr1_impl/
      	unordered_map.
      	* include/bits/unordered_set.h: Likewise for include/tr1_impl/
      	unordered_set.
      	* include/Makefile.am: Adjust.
      	* include/Makefile.in: Regenerate.
      	* include/tr1/unordered_map: Adjust.
      	* include/tr1/unordered_set: Likewise.
      	* include/tr1_impl/unordered_map: Adjust, now used only by tr1.
      	* include/tr1_impl/hashtable: Likewise.
      	* include/tr1_impl/hashtable_policy.h: Likewise.
      	* include/tr1_impl/unordered_set: Likewise.
      	* include/std/unordered_map: Adjust and simplify includes.
      	* include/std/unordered_set: Likewise.
      	* include/debug/unordered_map: Adjuse erase and insert members.
      	* include/debug/unordered_set: Likewise.
      	* include/profile/unordered_map: Likewise.
      	* include/profile/unordered_set: Likewise.
      	* testsuite/util/exception/safety.h: Fix for the updated erase and
      	insert member functions of the unordered_containers.
      	* testsuite/23_containers/unordered_map/erase/1.cc: New.
      	* testsuite/23_containers/unordered_map/erase/24061-map.cc: Likewise.
      	* testsuite/23_containers/unordered_map/insert/map_single.cc:
      	Likewise.
      	* testsuite/23_containers/unordered_map/insert/array_syntax.cc:
      	Likewise.
      	* testsuite/23_containers/unordered_map/insert/24061-map.cc: Likewise.
      	* testsuite/23_containers/unordered_map/insert/map_range.cc: Likewise.
      	* testsuite/23_containers/set/operators/1_neg.cc: Likewise.
      	* testsuite/23_containers/unordered_multimap/erase/1.cc: Likewise.
      	* testsuite/23_containers/unordered_multimap/erase/
      	24061-multimap.cc: Likewise.
      	* testsuite/23_containers/unordered_multimap/insert/
      	24061-multimap.cc: Likewise.
      	* testsuite/23_containers/unordered_multimap/insert/
      	multimap_range.cc: Likewise.
      	* testsuite/23_containers/unordered_multimap/insert/
      	multimap_single.cc: Likewise.
      	* testsuite/23_containers/unordered_set/erase/1.cc: Likewise.
      	* testsuite/23_containers/unordered_set/erase/24061-set.cc: Likewise.
      	* testsuite/23_containers/unordered_set/insert/set_single.cc: Likewise.
      	* testsuite/23_containers/unordered_set/insert/24061-set.cc: Likewise.
      	* testsuite/23_containers/unordered_set/insert/set_range.cc: Likewise.
      	* testsuite/23_containers/unordered_multiset/erase/1.cc: Likewise.
      	* testsuite/23_containers/unordered_multiset/erase/
      	24061-multiset.cc: Likewise.
      	* testsuite/23_containers/unordered_multiset/insert/
      	24061-multiset.cc: Likewise.
      	* testsuite/23_containers/unordered_multiset/insert/
      	multiset_range.cc: Likewise.
      	* testsuite/23_containers/unordered_multiset/insert/
      	multiset_single.cc: Likewise.
      
      	* testsuite/23_containers/set/operators/1_neg.cc: Tweak dg-errors
      	to avoid spurious fails in debug-mode.
      	* testsuite/23_containers/map/operators/1_neg.cc: Likewise.
      
      From-SVN: r156661
      Paolo Carlini committed
    • re PR fortran/42309 (Problem with a pointer array passed to a subroutine) · 45406a12
      	PR fortran/42309
      	* trans-expr.c (gfc_conv_subref_array_arg): Avoid accessing
      	info->dimen after info has been freed.
      
      From-SVN: r156659
      Jakub Jelinek committed
    • re PR debug/43010 (ICE with -femit-struct-debug-baseonly) · 92e8e53a
      	PR debug/43010
      	* dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
      	if no debug info should be emitted for it.
      
      	* g++.dg/debug/pr43010.C: New test.
      
      From-SVN: r156657
      Jakub Jelinek committed
    • sh.c (find_barrier): Skip call insn with a REG_EH_REGION note when flag_exceptions is set. · bd55b817
      	* config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
      	note when flag_exceptions is set.
      
      From-SVN: r156656
      Kaz Kojima committed
    • Add debug.h to PLUGIN_HEADERS. · 2ab43a52
      From-SVN: r156655
      Duncan Sands committed
    • re PR c/43007 (No longer folds (unsigned int) ((long long unsigned int) spi_bias / 1008)) · d977cb9c
      2010-02-10  Richard Guenther  <rguenther@suse.de>
      
      	PR c/43007
      	* tree.c (get_unwidened): Handle constants.
      	* convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
      
      	* gcc.c-torture/execute/20100209-1.c: New testcase.
      	* gcc.dg/fold-div-3.c: Likewise.
      
      From-SVN: r156653
      Richard Guenther committed