1. 10 Feb, 2010 22 commits
    • 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
    • re PR lto/42985 (Internal compiler error: in ipcp_iterate_stage with different opt level) · 563cb662
      2010-02-10  Martin Jambor  <mjambor@suse.cz>
      
      	PR lto/42985
      	* ipa-prop.c (ipa_update_after_lto_read): Count parameters and
      	check for variable argument counts independently.
      
      From-SVN: r156651
      Martin Jambor committed
    • sh.c (find_barrier): Increase length for non delayed conditional branches. · 9e3c399e
      * config/sh/sh.c (find_barrier): Increase length for non delayed
      conditional branches.
      
      From-SVN: r156649
      Christian Bruel committed
    • sh.c (find_barrier): Don't emit a CP inside the GP setting. · e938feb4
      * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
      
      From-SVN: r156648
      Christian Bruel committed
    • builtins.c (set_builtin_user_assembler_name): Also handle ffs if int is smaller than word. · cbb1ab10
      	* builtins.c (set_builtin_user_assembler_name): Also handle
      	ffs if int is smaller than word.
      
      	* gcc.dg/builtin-ffs-1.c: New test.
      
      From-SVN: r156646
      Jakub Jelinek committed
    • Make-lang.in (cp/cvt.o, [...]): Depend on intl.h. · f25a2b52
      2010-02-10  Shujing Zhao  <pearly.zhao@oracle.com>
      
              * Make-lang.in (cp/cvt.o, cp/parser.o, cp/search.o): Depend on intl.h.
              * cvt.c (warn_ref_binding): Wrap the messages into G_() for easy
              translation.
              * parser.c (cp_parser_postfix_expression, cp_parser_new_type_id)
              (cp_parser_cast_expression, cp_parser_condition, cp_parser_decltype)
              (cp_parser_parameter_declaration)
              (cp_parser_exception_specification_opt)
              (cp_parser_exception_declaration): Likewise.
              * pt.c (check_default_tmpl_args): Likewise.
              * search.c (lookup_field_r): Likewise.
      
      From-SVN: r156645
      Shujing Zhao committed
    • streambuf: Adjust doxygen group markup. · 0eb95b0d
      2010-02-09  Benjamin Kosnik  <bkoz@redhat.com>
      
              * include/std/streambuf: Adjust doxygen group markup.
              * include/std/functional: Same.
              * include/ext/vstring.h: Same.
              * include/ext/pb_ds/assoc_container.hpp: Same.
              * include/ext/stdio_filebuf.h: Same.
              * include/ext/stdio_sync_filebuf.h: Same.
              * include/bits/localefwd.h: Same.
              * include/bits/functional_hash.h: Same.
              * include/bits/locale_classes.h: Same.
              * include/bits/locale_facets.h: Same.
              * include/bits/ios_base.h: Same.
              * include/bits/codecvt.h: Same.
              * include/bits/locale_facets_nonio.h: Same.
      
              * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
              * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
      
      From-SVN: r156644
      Benjamin Kosnik committed
    • re PR fortran/42999 (bogus error: Parameter 'i' at (1) has not been declared or… · 52f12678
      re PR fortran/42999 (bogus error: Parameter 'i' at (1) has not been declared or is a variable, which does not reduce to a constant expression)
      
      2010-02-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
      
      	PR fortran/42999
      	* gfortran.dg/array_constructor_35.f90: New test.
      
      From-SVN: r156643
      Jerry DeLisle committed
    • re PR fortran/42999 (bogus error: Parameter 'i' at (1) has not been declared or… · db9633ec
      re PR fortran/42999 (bogus error: Parameter 'i' at (1) has not been declared or is a variable, which does not reduce to a constant expression)
      
      2010-02-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
      
      	PR fortran/42999
      	* array.c (gfc_constant_ac): Do not prevent expansion of constructors
      	with iterators.
      
      From-SVN: r156642
      Jerry DeLisle committed
    • re PR middle-end/42973 (IRA apparently systematically making reload too busy on… · b09495c1
      re PR middle-end/42973 (IRA apparently systematically making reload too busy on 2 address instructions with 3 operands)
      
      2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
      
      	PR middle-end/42973
      	* ira-conflicts.c (get_dup): Remove.
      	(process_reg_shuffles): Add new parameter.  Use it as an
      	additional guard for copy generation.
      	(add_insn_allocno_copies): Rewrite.
      
      From-SVN: r156641
      Vladimir Makarov committed
    • Daily bump. · 7dfbafe4
      From-SVN: r156640
      GCC Administrator committed
  2. 09 Feb, 2010 15 commits
  3. 08 Feb, 2010 3 commits