Skip to content
Snippets Groups Projects
  1. May 20, 2009
    • Jakub Jelinek's avatar
      re PR libgomp/40174 (Memory leak when using '#pragma omp parallel') · 6dea8e99
      Jakub Jelinek authored
      	PR libgomp/40174
      	* team.c (gomp_thread_start): Destroy thr->release semaphore.
      	(gomp_free_pool_helper): Likewise.
      
      From-SVN: r147747
      6dea8e99
    • Eric Botcazou's avatar
      Fix formatting · 00c5fa1b
      Eric Botcazou authored
      From-SVN: r147740
      00c5fa1b
    • Eric Botcazou's avatar
      fold-const.c (build_fold_addr_expr_with_type): Take the address of the operand... · d98e8686
      Eric Botcazou authored
      fold-const.c (build_fold_addr_expr_with_type): Take the address of the operand of VIEW_CONVERT_EXPR.
      
      	* fold-const.c (build_fold_addr_expr_with_type): Take the address of
      	the operand of VIEW_CONVERT_EXPR.
      
      From-SVN: r147739
      d98e8686
    • H.J. Lu's avatar
      driver-i386.c (host_detect_local_cpu): Check extended family and model for Intel processors. · 37c50435
      H.J. Lu authored
      2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* config/i386/driver-i386.c (host_detect_local_cpu): Check
      	extended family and model for Intel processors.  Support Intel
      	Atom.
      
      From-SVN: r147736
      37c50435
    • Olivier Hainque's avatar
      gstab.h (stab_code_type): Define, to be used instead of the __stab_debug_code enum, made anonymous. · dbb6088f
      Olivier Hainque authored
      	* gstab.h (stab_code_type): Define, to be used instead of the
      	__stab_debug_code enum, made anonymous.  Add 2009 to the copyright
      	notice.
      	* dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
      	occurrences by stab_code_type.
      	* mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
      
      From-SVN: r147734
      dbb6088f
    • Martin Jambor's avatar
      tree-flow.h (insert_edge_copies_seq): Undeclare. · 7ec49257
      Martin Jambor authored
      2009-05-20  Martin Jambor  <mjambor@suse.cz>
      
      	* tree-flow.h (insert_edge_copies_seq): Undeclare.
      	(sra_insert_before): Likewise.
      	(sra_insert_after): Likewise.
      	(sra_init_cache): Likewise.
      	(sra_type_can_be_decomposed_p): Likewise.
      	* tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
      	* tree-sra.c (sra_type_can_be_decomposed_p): Made static.
      	(sra_insert_before): Likewise.
      	(sra_insert_after): Likewise.
      	(sra_init_cache): Likewise.
      	(insert_edge_copies_seq): Made static and moved upwards.
      
      	* tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
      	case.
      
      	* tree-flow-inline.h (contains_view_convert_expr_p): New function.
      
      	* ipa-prop.c (get_ssa_def_if_simple_copy): New function.
      	(determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
      	simple copies.
      
      From-SVN: r147733
      7ec49257
    • Eric Botcazou's avatar
      decl.c (gnat_to_gnu_entity): When discriminants affect the shape of the subtype... · 3f6f0eb2
      Eric Botcazou authored
      	* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
      	discriminants affect the shape of the subtype, retrieve the GCC type
      	directly from the original field if the GNAT types for the field and
      	the original field are the same.
      
      From-SVN: r147732
      3f6f0eb2
    • Richard Guenther's avatar
      expr.c (expand_expr_real_1): Avoid calling do_store_flag with mismatched comparison modes. · 0328ae4d
      Richard Guenther authored
      2009-05-20  Richard Guenther  <rguenther@suse.de>
      
      	* expr.c (expand_expr_real_1): Avoid calling do_store_flag
      	with mismatched comparison modes.
      
      	* gcc.c-torture/compile/20090518-1.c: New testcase.
      
      From-SVN: r147731
      0328ae4d
    • Ramana Radhakrishnan's avatar
      Fix Thumb2 bic orn · a7994a57
      Ramana Radhakrishnan authored
      2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
          
      	* config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
              (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
              * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
              with shifts for Thumb2.
              (orsi_notsi): New for orn.
              (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
              (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
              * config/arm/arm.c (const_ok_for_op): Split case for IOR for
              Thumb2.
              (arm_gen_constant): Set can_invert for IOR and Thumb2, Add
              comments. Don't invert remainder for IOR.
      
      From-SVN: r147729
      a7994a57
    • Benjamin Kosnik's avatar
      14340.cc: Abstract list type. · 875d0f10
      Benjamin Kosnik authored
      2009-05-19  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* testsuite/23_containers/list/14340.cc: Abstract list type.
      	* testsuite/23_containers/list/init-list.cc: Same.
      	* testsuite/23_containers/list/pthread5.cc: Same.
      	* testsuite/23_containers/list/invalidation/1.cc: Same.
      	* testsuite/23_containers/list/invalidation/2.cc: Same.
      	* testsuite/23_containers/list/invalidation/3.cc: Same.
      	* testsuite/23_containers/list/invalidation/4.cc: Same.
      	* testsuite/23_containers/list/modifiers/insert/25288.cc: Same.
      	* testsuite/23_containers/list/modifiers/1.cc: Same.
      	* testsuite/23_containers/list/modifiers/2.cc: Same.
      	* testsuite/23_containers/list/modifiers/3.cc: Same.
      	* testsuite/23_containers/list/modifiers/swap/1.cc: Same.
      	* testsuite/23_containers/list/modifiers/swap/2.cc: Same.
      	* testsuite/23_containers/list/modifiers/swap/3.cc: Same.
      	* testsuite/23_containers/list/cons/1.cc: Same.
      	* testsuite/23_containers/list/cons/2.cc: Same.
      	* testsuite/23_containers/list/cons/3.cc: Same.
      	* testsuite/23_containers/list/cons/4.cc: Same.
      	* testsuite/23_containers/list/cons/5.cc: Same.
      	* testsuite/23_containers/list/cons/6.cc: Same.
      	* testsuite/23_containers/list/cons/7.cc: Same.
      	* testsuite/23_containers/list/cons/clear_allocator.cc: Same.
      	* testsuite/23_containers/list/cons/8.cc: Same.
      	* testsuite/23_containers/list/cons/9.cc: Same.
      	* testsuite/23_containers/list/operations/1.cc: Same.
      	* testsuite/23_containers/list/operations/2.cc: Same.
      	* testsuite/23_containers/list/operations/3.cc: Same.
      	* testsuite/23_containers/list/operations/4.cc: Same.
      	* testsuite/23_containers/list/operations/5.cc: Same.
      	* testsuite/23_containers/list/requirements/citerators.cc: Same.
      	* testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Same.
      	* testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Same.
      	* testsuite/23_containers/list/requirements/dr438/
      	constructor_1_neg.cc: Same.
      	* testsuite/23_containers/list/requirements/dr438/
      	constructor_2_neg.cc: Same.
      	* testsuite/23_containers/list/requirements/dr438/constructor.cc: Same.
      	* testsuite/23_containers/list/requirements/
      	partial_specialization/1.cc: Same.
      	* testsuite/23_containers/list/23781.cc: Same.
      	* testsuite/23_containers/list/pthread1.cc: Same.
      	* testsuite/23_containers/list/capacity/1.cc: Same.
      	* testsuite/23_containers/list/capacity/29134.cc: Same.
      	* testsuite/23_containers/list/check_construct_destroy.cc: Same.
      	* testsuite/23_containers/list/moveable.cc: Same.
      
      	* testsuite/util/common_type/assoc/common_type.hpp: Re-break lines.
      
      From-SVN: r147728
      875d0f10
    • Zdenek Dvorak's avatar
      re PR tree-optimization/40087 (Number of iterations analysis wrong) · e36dc339
      Zdenek Dvorak authored
      	PR tree-optimization/40087
      	* tree-ssa-loop-niter.c (number_of_iterations_ne_max,
      	number_of_iterations_ne): Rename never_infinite argument.
      	(number_of_iterations_lt_to_ne, number_of_iterations_lt,
      	number_of_iterations_le): Handle pointer-type ivs when
      	exit_must_be_taken is false.
      	(number_of_iterations_cond):  Do not always assume that
      	exit_must_be_taken if the control variable is a pointer.
      
      	* gcc.dg/tree-ssa/pr40087.c: New test.
      
      From-SVN: r147727
      e36dc339
    • GCC Administrator's avatar
      Daily bump. · 03d33c2a
      GCC Administrator authored
      From-SVN: r147726
      03d33c2a
    • Jerry DeLisle's avatar
      re PR libfortran/37754 (READ I/O Performance regression from 4.3 to 4.4/4.5) · 3a546d4d
      Jerry DeLisle authored
      2009-05-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libfortran/37754
      	* io/write_float.def: Simplify format calculation.
      
      From-SVN: r147725
      3a546d4d
  2. May 19, 2009
    • Andrew Pinski's avatar
      c-typeck.c (build_binary_op): Allow % on integal vectors. · 5cfd5d9b
      Andrew Pinski authored
      2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * c-typeck.c (build_binary_op): Allow % on integal vectors.
              * doc/extend.texi (Vector Extension): Document that % is allowed too.
      
      009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * typeck.c (build_binary_op): Allow % on integal vectors.
      
      2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * gcc.dg/vector-4.c: New testcase.
              * gcc.dg/simd-1b.c: % is now allowed for integer vectors.
              * g++.dg/ext/vector16.C: New testcase.
      
      From-SVN: r147722
      5cfd5d9b
    • H.J. Lu's avatar
      re PR c/40172 (Revision 147596 breaks bootstrap) · dae279f0
      H.J. Lu authored
      2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR c/40172
      	* gcc.dg/pr40172.c: Renamed to ...
      	* gcc.dg/pr40172-1.c: This.
      
      	* gcc.dg/pr40172-2.c: New.
      	* gcc.dg/pr40172-3.c: Likewise.
      
      From-SVN: r147719
      dae279f0
    • H.J. Lu's avatar
      i386.c (ix86_avoid_jump_mispredicts): Check ASM_OUTPUT_MAX_SKIP_PAD instead of... · 2f1c7156
      H.J. Lu authored
      i386.c (ix86_avoid_jump_mispredicts): Check ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
      
      2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
      	ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
      
      From-SVN: r147718
      2f1c7156
    • Manuel López-Ibáñez's avatar
      re PR c/40172 (Revision 147596 breaks bootstrap) · 7bb27074
      Manuel López-Ibáñez authored
      2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	PR c/40172
      gcc/
      	* c.opt (Wlogical-op): Disabled by default.
      	* c-opt (c_common_post_options): Do not enable Wlogical-op with
      	Wextra.
      	* doc/invoke.texi (Wlogical-op): Likewise.
      testsuite/
      	* gcc.dg/pr40172.c: Add -Wlogical-op to dg-options.
      
      From-SVN: r147717
      7bb27074
    • Eric Botcazou's avatar
      tree-scalar-evolution.c (follow_ssa_edge_expr): Turn into CASE_CONVERT. · 5aefc6a0
      Eric Botcazou authored
      	* tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
      	into CASE_CONVERT.
      	<PLUS_EXPR>: Strip useless type conversions instead of type nops.
      	Propagate the type of the first operand.
      	<ASSERT_EXPR>: Simplify.
      	(follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
      	Rewrite using the RHS code as discriminant.
      	<NOP_EXPR>: Turn into CASE_CONVERT.
      	<PLUS_EXPR>: Propagate the type of the first operand.
      
      From-SVN: r147716
      5aefc6a0
    • Paolo Carlini's avatar
      re PR libstdc++/40184 (locale(const char* std_name) can create invalid facets... · c8036448
      Paolo Carlini authored
      re PR libstdc++/40184 (locale(const char* std_name) can create invalid facets for nonuniform locale)
      
      2009-05-19  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/40184
      	* include/bits/locale_classes.h (locale::facet::_S_lc_ctype_c_locale):
      	Declare...
      	* config/locale/gnu/c_locale.cc: ... and define.
      	* config/locale/generic/c_locale.cc: Define.
      	* src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
      	Use it.
      	* testsuite/22_locale/locale/cons/40184.cc: New.
      
      From-SVN: r147714
      c8036448
    • Steve Ellcey's avatar
      ia64-protos.h (ia64_dconst_0_5): New. · f3a83111
      Steve Ellcey authored
      	* config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
      	(ia64_dconst_0_375): New.
      	* config/ia64/ia64.c (ia64_override_options): Remove
      	-minline-sqrt-min-latency warning.
      	(ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
      	(ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
      	* config/ia64/ia64.md (*sqrt_approx): Remove.
      	(sqrtsf2): Remove #if 0.
      	(sqrtsf2_internal_thr): Rewrite and move to div.md.
      	(sqrtdf): Remove assert.
      	(sqrtdf2_internal_thr): Rewrite and move to div.md.
      	(sqrtxf2): Remove #if 0.
      	(sqrtxf2_internal_thr): Rewrite and move to div.md.
      	* div.md (sqrt_approx_rf): New.
      	(sqrtsf2_internal_thr): New implementation.
      	(sqrtsf2_internal_lat): New.
      	(sqrtdf2_internal_thr: New implementation.
      	(sqrtxf2_internal): New implementation.
      
      From-SVN: r147713
      f3a83111
    • Francois-Xavier Coudert's avatar
      * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE) · 1ffc7157
      Francois-Xavier Coudert authored
      	(WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
      	(INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
      	(INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
      	(UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
      	(INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
      	(UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
      	(INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
      	(UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
      	(SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
      	* c-common.c: ...from here.
      
      Co-Authored-By: default avatarHans-Peter Nilsson <hp@axis.com>
      
      From-SVN: r147712
      1ffc7157
    • H.J. Lu's avatar
      Replace spaces with tab. · e9351712
      H.J. Lu authored
      From-SVN: r147709
      e9351712
    • Manuel López-Ibáñez's avatar
      c-common.c (warn_logical_operator): Remove unnecessary conditionals. · db91d9ef
      Manuel López-Ibáñez authored
      2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	* c-common.c (warn_logical_operator): Remove unnecessary
      	conditionals.
      
      From-SVN: r147708
      db91d9ef
    • Kaveh R. Ghazi's avatar
      builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types. · bbb9d91f
      Kaveh R. Ghazi authored
      	* builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
      
      From-SVN: r147707
      bbb9d91f
    • Ben Elliston's avatar
      unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning assignments with memcpy calls. · ce883f54
      Ben Elliston authored
      	* unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
      	assignments with memcpy calls.
      	(add_fdes): Likewise.
      	(binary_search_unencoded_fdes): Likewise.
      	(linear_search_fdes): Eliminate type puns.
      
      From-SVN: r147705
      ce883f54
    • Richard Guenther's avatar
      tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not falsely claim to... · 377f099a
      Richard Guenther authored
      tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not falsely claim to have propagated into all uses.
      
      2009-05-19  Richard Guenther  <rguenther@suse.de>
      
      	* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
      	not falsely claim to have propagated into all uses.
      
      	* gcc.c-torture/compile/20090519-1.c: New testcase.
      
      From-SVN: r147702
      377f099a
    • Ian Lance Taylor's avatar
      cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug. · 7859dde7
      Ian Lance Taylor authored
      
      	* cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.
      	(cplus_demangle_fill_dtor): Likewise.
      
      Co-Authored-By: default avatarBen Elliston <bje@au.ibm.com>
      
      From-SVN: r147699
      7859dde7
    • Alexandre Oliva's avatar
      re PR other/40159 ("make all" ignores build failures) · 31c98f49
      Alexandre Oliva authored
      PR other/40159
      * Makefile.tpl (all): Don't assume gcc-bootstrap and
      gcc-no-bootstrap are mutually exclusive.
      * Makefile.in: Rebuilt.
      
      From-SVN: r147695
      31c98f49
    • GCC Administrator's avatar
      Daily bump. · d99e5e95
      GCC Administrator authored
      From-SVN: r147688
      d99e5e95
    • Alexandre Oliva's avatar
      re PR other/40159 ("make all" ignores build failures) · 0f501837
      Alexandre Oliva authored
      PR other/40159
      * Makefile.tpl (all): Don't end with unconditional success.
      * Makefile.in: Rebuilt.
      
      From-SVN: r147683
      0f501837
  3. May 18, 2009
    • Ben Elliston's avatar
      invoke.texi (C Dialect Options): Update OpenMP specification version to v3.0. · 848bc769
      Ben Elliston authored
      	* doc/invoke.texi (C Dialect Options): Update OpenMP specification
      	version to v3.0.
      
      From-SVN: r147682
      848bc769
    • Paolo Carlini's avatar
      re PR c++/40192 (Unable to use std::vector with typedef'd array types) · cf0e6fff
      Paolo Carlini authored
      2009-05-18  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/40192
      	* include/bits/stl_construct.h (struct _Destroy_aux): Add.
      	(_Destroy(_ForwardIterator, _ForwardIterator)): Use the latter.
      	* testsuite/23_containers/vector/40192.cc: New.
      
      From-SVN: r147680
      cf0e6fff
    • Kaz Kojima's avatar
      sh-protos.h (sh_legitimate_address_p): Remove. · 1bb99877
      Kaz Kojima authored
      	* config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
      	* config/sh/sh.c (sh_legitimate_address_p): Make static.
      	(TARGET_LEGITIMATE_ADDRESS_P): New.
      	* config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
      	* config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
      
      From-SVN: r147679
      1bb99877
    • Jonathan Wakely's avatar
      stl_pair.h (swap): Do not swap rvalues. · ff74fd13
      Jonathan Wakely authored
      2009-05-18  Jonathan Wakely  <jwakely.gcc@gmail.com>
      
      	* include/bits/stl_pair.h (swap): Do not swap rvalues.
      	* include/bits/stl_deque.h (swap): Likewise.
      	* include/bits/stl_list.h (swap): Likewise.
      	* include/bits/stl_vector.h (swap): Likewise.
      	* include/bits/stl_bvector.h (swap): Likewise.
      	* include/bits/stl_queue.h (swap): Likewise.
      	* include/bits/stl_stack.h (swap): Likewise.
      	* include/bits/stl_tree.h (swap): Likewise.
      	* include/bits/stl_map.h (swap): Likewise.
      	* include/bits/stl_multimap.h (swap): Likewise.
      	* include/bits/stl_set.h (swap): Likewise.
      	* include/bits/stl_multiset.h (swap): Likewise.
      	* include/bits/forward_list.h (swap): Likewise.
      	* include/bits/unique_ptr.h (swap): Likewise.
      	* include/debug/deque (swap): Likewise.
      	* include/debug/list (swap): Likewise.
      	* include/debug/vector (swap): Likewise.
      	* include/debug/map.h (swap): Likewise.
      	* include/debug/multimap.h (swap): Likewise.
      	* include/debug/set.h (swap): Likewise.
      	* include/debug/multiset.h (swap): Likewise.
      	* include/debug/unordered_map (swap): Likewise.
      	* include/debug/unordered_set (swap): Likewise.
      	* include/ext/vstring.h (swap): Likewise.
      	* include/tr1_impl/unordered_map (swap): Likewise.
      	* include/tr1_impl/hashtable (swap): Likewise.
      	* include/tr1_impl/unordered_set (swap): Likewise.
      	* include/std/tuple (swap): Likewise.
      	* include/std/mutex (swap): Likewise.
      	* include/std/thread (swap): Likewise.
      	(operator<<): Only output to lvalue streams.
      	* testsuite/20_util/shared_ptr/modifiers/swap_rvalue.cc: Remove.
      	* testsuite/23_containers/headers/forward_list/synopsis.cc: Adjust.
      	* testsuite/23_containers/deque/requirements/dr438/
      	assign_neg.cc: Adjust line numbers.
      	* 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/deque/requirements/dr438/
      	insert_neg.cc: Likewise.
      	* testsuite/23_containers/list/requirements/dr438/
      	assign_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/list/requirements/dr438/
      	insert_neg.cc: Likewise.
      	* testsuite/23_containers/vector/requirements/dr438/
      	assign_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.
      	* testsuite/23_containers/vector/requirements/dr438/
      	insert_neg.cc: Likewise.
      	* testsuite/30_threads/thread/swap/1.cc: Swap with lvalue and also
      	test non-member swap.
      	* testsuite/30_threads/thread/swap/2.cc: Remove.
      
      From-SVN: r147678
      ff74fd13
    • Jason Merrill's avatar
      Implement explicit conversions ops as specified in N2437. · e57d93c6
      Jason Merrill authored
      	* decl.c (grokdeclarator): Handle explicit conversion ops.
      	(check_initializer): Pass flags to store_init_value.
      	* decl2.c (maybe_emit_vtables): Likewise.
      	* init.c (expand_aggr_init_1): Likewise.
      	* call.c (convert_class_to_reference): Take flags parm,
      	check DECL_NONCONVERTING_P.
      	(build_user_type_conversion_1): Check DECL_NONCONVERTING_P.
      	(add_builtin_candidates): Simplify getting type of conversion.
      	(build_object_call): Likewise.  Check DECL_NONCONVERTING_P.
      	(implicit_conversion): Pass through LOOKUP_ONLYCONVERTING.
      	(reference_binding): Take flags parm.  Direct-initialize copy parm.
      	(add_function_candidate): Direct-initialize the copy parm.
      	(add_conv_candidate): Use LOOKUP_IMPLICIT, not LOOKUP_NORMAL.
      	(build_builtin_candidate): Add LOOKUP_ONLYCONVERTING.
      	(conditional_conversion): Likewise.
      	(convert_like_real): Only complain about DECL_NONCONVERTING_P
      	constructors.
      	(perform_implicit_conversion_flags): Add flags parm to
      	perform_implicit_conversion.  Improve diagnostics.
      	* cp-tree.h (LOOKUP_IMPLICIT): New macro.
      	(LOOKUP_COPY_PARM): New bit macro.
      	* cvt.c (build_expr_type_conversion): Check DECL_NONCONVERTING_P.
      	* typeck.c (convert_for_assignment): Take flags parm, pass it to
      	perform_implicit_conversion_flags.
      	(cp_build_modify_expr): Pass flags to convert_for_assignment.
      	(convert_for_initialization): Likewise.
      	* typeck2.c (store_init_value): Take flags parm, pass to
      	digest_init_flags.
      	(digest_init_flags): Add flags parm to digest_init.
      	(digest_init_r): Take flags parm, pass to convert_for_initialization.
      	(process_init_constructor_array): Pass it.
      	(process_init_constructor_record): Likewise.
      	(process_init_constructor_union): Likewise.
      
      From-SVN: r147677
      e57d93c6
    • Dodji Seketeli's avatar
      re PR debug/40109 (Incorrect debug info nesting for typedef statements within namespaces) · 82725547
      Dodji Seketeli authored
      Fix for PR debug/40109
      
      gcc/ChangeLog:
      PR debug/40109
      * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
      child of the containing namespace's DIE.
      
      gcc/testsuite/ChangeLog:
      PR debug/40109
      * g++.dg/debug/dwarf2/nested-1.C: New test.
      
      From-SVN: r147674
      82725547
    • Adam Nemet's avatar
      * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>, · f6a1e430
      Adam Nemet authored
      	*zero_extendhi_truncqi):  Move after the zero_extend patterns.
      	(*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
      	extend patterns.
      
      From-SVN: r147673
      f6a1e430
    • H.J. Lu's avatar
      re PR target/39942 (Nonoptimal code - leaveq; xchg %ax,%ax; retq) · 6a90d232
      H.J. Lu authored
      2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR target/39942
      	* config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
      	gen_align with gen_pad.
      	(ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
      	#ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
      
      	* config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
      	* config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
      
      	* config/i386/i386.md (align): Renamed to ...
      	(pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
      	ASM_OUTPUT_MAX_SKIP_PAD.
      
      From-SVN: r147671
      6a90d232
    • H.J. Lu's avatar
      re PR testsuite/39907 (Aligned access to unaligned address) · cf249b02
      H.J. Lu authored
      2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR testsuite/39907
      	* gcc.target/x86_64/abi/asm-support.S (snapshot_ret): Preserve
      	stack alignment.
      
      From-SVN: r147667
      cf249b02
    • Andreas Schwab's avatar
      * config.gcc: Fix variable syntax. · 3f1c917c
      Andreas Schwab authored
      From-SVN: r147666
      3f1c917c
Loading