1. 21 Oct, 2016 5 commits
  2. 20 Oct, 2016 27 commits
    • array.c (gfc_match_array_constructor): Remove set, but unused variable. · 45f596d9
      2016-10-20  Steven G. Kargl  <kargl@gcc.gnu.org>
      
      	* array.c (gfc_match_array_constructor): Remove set, but unused
      	variable.
      
      From-SVN: r241388
      Steven G. Kargl committed
    • i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ and IX86_BUILTIN_HUGE_VALQ here ... · a7cfe836
      	* config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
      	and IX86_BUILTIN_HUGE_VALQ here ...
      	(ix86_expand_builtin): ... not here.
      
      From-SVN: r241387
      Uros Bizjak committed
    • wdate-time.c: Restored test case. · f3ecd50f
      2016-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              * c-c++-common/wdate-time.c: Restored test case.
              * g++.dg/warn/Wconversion-real.C: Deleted empty file.
      
      From-SVN: r241385
      Bernd Edlinger committed
    • runtime: rewrite interface code into Go · 6b752cfa
          
          I started to copy the Go 1.7 interface code, but the gc and gccgo
          representations of interfaces are too different.  So instead I rewrote
          the gccgo interface code from C to Go.  The code is largely the same as
          it was, but the names are more like those used in the gc runtime.
          
          I also copied over the string comparison functions, and tweaked the
          compiler to use eqstring when comparing strings for equality.
          
          Reviewed-on: https://go-review.googlesource.com/31591
      
      From-SVN: r241384
      Ian Lance Taylor committed
    • * g++.dg/cpp1z/inline-var1.C (w): Initialize to 64 + 2. · fceabe50
      From-SVN: r241383
      Jakub Jelinek committed
    • * doc/gty.texi (for_user): Use @item next to @findex. · 8e92bce9
      From-SVN: r241382
      Jakub Jelinek committed
    • re PR target/78037 (Incorrect code generated at optimization level -O2 for tzcnt and binary and) · f56ea76e
      	PR target/78037
      	* config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
      	(__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
      	(__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
      	* config/i386/lzcntintrin.h (__lzcnt_u16): Call
      	__builtin_ia32_lzcnt_u16.
      	(__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
      	(__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
      	* config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
      	(ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
      	(bmi_tzcnt_<mode>): New expander.
      	(*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
      	(*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
      	(clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
      	(lzcnt_<mode>): New expander.
      	(*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
      	(*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
      	* config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
      	(UINT64_FTYPE_UINT64): New.
      	* config/i386/i386-builtin.def (__builtin_clzs): Remove description.
      	(__builtin_ia32_lzcnt_u16): New description.
      	(__builtin_ia32_lzcnt_u32): Ditto.
      	(__builtin_ia32_lzcnt_u64): Ditto.
      	(__builtin_ctzs): Remove description.
      	(__builtin_ia32_tzcnt_u16): New description.
      	(__builtin_ia32_tzcnt_u32): Ditto.
      	(__builtin_ia32_tzcnt_u64): Ditto.
      	* config/i386/i386.c (ix86_expand_args_builtin): Handle
      	UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
      
      testsuite/ChangeLog:
      
      	PR target/78037
      	* gcc.target/i386/pr78037.c: New test.
      
      From-SVN: r241381
      Uros Bizjak committed
    • Do not fixup edges for a thunk in LTRANS (PR lto/78049) · 3e23d1bc
      	PR lto/78049
      	* lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
      	comparison with STMT_UID_NOT_IN_RANGE.
      	(fixup_call_stmt_edges): Do not fixup edges of a thunk in
      	LTRANS.
      
      From-SVN: r241380
      Martin Liska committed
    • compare-elim.c (conforming_compare): Accept UNSPECs. · 2c35bbe1
      	* compare-elim.c (conforming_compare): Accept UNSPECs.
      	(find_comparison_dom_walker::before_dom_children): Deal with
      	instructions both using and killing the flags register.
      	(equivalent_reg_at_start): New function extracted from...
      	(try_eliminate_compare): ...here.  Use it and add support for
      	registers and UNSPECs as second operand of the compare.
      	* config/visium/visium-modes.def (CCV): New.
      	* config/visium/predicates.md (visium_v_comparison_operator): New.
      	(visium_branch_operator): Deal with CCV mode.
      	* config/visium/visium.c (visium_select_cc_mode): Likewise.
      	(output_cbranch): Likewise.
      	* config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
      	(uaddv<mode>4): New expander.
      	(addv<mode>4): Likewise.
      	(add<mode>3_insn_set_carry): New instruction.
      	(add<mode>3_insn_set_overflow): Likewise.
      	(addsi3_insn_set_overflow): Likewise.
      	(usubv<mode>4): New expander.
      	(subv<mode>4): Likewise.
      	(sub<mode>3_insn_set_carry): New instruction.
      	(sub<mode>3_insn_set_overflow): Likewise.
      	(subsi3_insn_set_overflow): Likewise.
      	(unegv<mode>3): New expander.
      	(negv<mode>3): Likewise.
      	(neg<mode>2_insn_set_overflow): New instruction.
      	(addv_tst<mode>): Likewise.
      	(subv_tst<mode>): Likewise.
      	(negv_tst<mode>): Likewise.
      	(cbranch<mode>4_addv_insn): New splitter and instruction.
      	(cbranch<mode>4_subv_insn): Likewise.
      	(cbranch<mode>4_negv_insn): Likewise.
      
      From-SVN: r241379
      Eric Botcazou committed
    • tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication. · 40b8428e
      2016-10-20  Richard Biener  <rguenther@suse.de>
      
      	* tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
      	Handle decls possibly not bound.
      	* tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
      	nothing_id for decls that might not be bound if we are interested
      	for the address.
      	(get_constraint_for_component_ref): Deal with that.
      
      From-SVN: r241378
      Richard Biener committed
    • c-common.c (c_common_truthvalue_conversion): Fix the comment. · eff89e01
      2016-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              * c-common.c (c_common_truthvalue_conversion): Fix the comment.
      
      From-SVN: r241377
      Bernd Edlinger committed
    • loop splitting · 28df8730
      (approved at https://gcc.gnu.org/ml/gcc-patches/2015-12/msg00648.html )
      
      	* common.opt (-fsplit-loops): New flag.
      	* passes.def (pass_loop_split): Add.
      	* opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
      	(enable_fdo_optimizations): Add loop splitting.
      	* timevar.def (TV_LOOP_SPLIT): Add.
      	* tree-pass.h (make_pass_loop_split): Declare.
      	* tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
      	* tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
      	* tree-ssa-loop-split.c: New file.
      	* Makefile.in (OBJS): Add tree-ssa-loop-split.o.
      	* doc/invoke.texi (fsplit-loops): Document.
      	* doc/passes.texi (Loop optimization): Add paragraph about loop
      	splitting.
      
      testsuite/
      	* gcc.dg/loop-split.c: New test.
      	* gcc.dg/tree-ssa/ifc-9.c: Update.
      	* gcc.dg/tree-ssa/ifc-10.c: Update.
      
      From-SVN: r241374
      Michael Matz committed
    • Prepare shared_ptr for array support · a2e0054e
      	* include/backward/auto_ptr.h (__shared_ptr(auto_ptr&&))
      	(shared_ptr(auto_ptr&&)): Adjust template parameter lists.
      	* include/bits/shared_ptr.h (__sp_compatible_with)
      	(__sp_is_constructible): New helper traits for shared_ptr.
      	(shared_ptr::_Convertible): Replace with _Constructible.
      	(shared_ptr::_Constructible, shared_ptr::_Assignable): Forward checks
      	to base class.
      	(shared_ptr::shared_ptr, shared_ptr::operator=): Constrain template
      	with _Constructible and _Assignable.
      	(shared_ptr::shared_ptr(shared_ptr<_Tp1>, _Tp*)): Use element_type
      	instead of _Tp.
      	(operator<): Likewise.
      	(operator>): Define in terms of operator<.
      	(static_pointer_cast, const_pointer_cast, dynamic_pointer_cast): Use
      	element_type instead of _Tp.
      	(reinterpret_pointer_cast): Define for C++17.
      	(weak_ptr::_Convertible): Replace with _Constructible.
      	(weak_ptr::_Constructible, weak_ptr::_Assignable): Forward checks
      	to base class.
      	(weak_ptr::weak_ptr, weak_ptr::operator=): Constrain templates
      	with _Constructible and _Assignable.
      	* include/bits/shared_ptr_base.h (__shared_ptr::_Convertible): Replace
      	with _Compatible.
      	(__shared_ptr::_SafeConv): New constraint for incoming raw pointers.
      	(__shared_ptr::_Compatible): New constraint for converting from
      	other types of shared_ptr and weak_ptr.
      	(__shared_ptr::_Assignable): Define in terms of _Compatible.
      	(__shared_ptr::_UniqCompatible, __shared_ptr::_UniqAssignable): New
      	constraints for converting from unique_ptr.
      	(__shared_ptr::__shared_ptr, __shared_ptr::operator=): Constrain
      	template with _SaveConf, _Compatible and _Assignable. Remove
      	__glibcxx_function_requires concept checks. Add static assertion for
      	deleter expression being well-formed.
      	(__shared_ptr::__shared_ptr(__shared_ptr<_Tp1>, _Tp*))
      	(__shared_ptr::operator*, __shared_ptr::operator->)
      	(__shared_ptr::get, __shared_ptr::_M_ptr): Use element_type instead
      	of _Tp.
      	(operator<): Likewise.
      	(operator>): Define in terms of operator<.
      	(static_pointer_cast, const_pointer_cast, dynamic_pointer_cast): Use
      	element_type instead of _Tp.
      	(reinterpret_pointer_cast): Define for C++17.
      	(weak_ptr::_Convertible): Replace with _Compatible.
      	(weak_ptr::_Compatible, weak_ptr::_Assignable): New constraints for
      	conversions from other types of weak_ptr and shared_ptr.
      	(__weak_ptr::__weak_ptr, __weak_ptr::operator=): Constrain templates
      	with _Constructible and _Assignable.
      	(__weak_ptr::_M_ptr): Use element_type instead of _Tp.
      	* testsuite/20_util/shared_ptr/assign/auto_ptr_neg.cc: Adjust
      	dg-error pattern.
      	* testsuite/20_util/shared_ptr/cons/auto_ptr.cc: Test conversions.
      	* testsuite/20_util/shared_ptr/cons/unique_ptr.cc: Likewise.
      	* testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
      	* testsuite/20_util/shared_ptr/casts/reinterpret.cc: New test.
      
      From-SVN: r241373
      Jonathan Wakely committed
    • Do the operator= SFINAE in the return type for optional, · f320e6a0
      not in the template parameters.
      * include/std/optional (operator=(_Up&&)): Move SFINAE
      from template parameters to the return type.
      (operator=(const optional<_Up>&)): Likewise.
      (operator=(optional<_Up>&&)): Likewise.
      
      From-SVN: r241372
      Ville Voutilainen committed
    • Tweak whitespace in std::allocator files · 88b3e631
      	* include/bits/allocator.h: Remove trailing whitespace, tab-indent.
      	* include/ext/new_allocator.h: Likewise.
      
      From-SVN: r241371
      Jonathan Wakely committed
    • Makefile (x86-64/Linux): Restore missing pairs. · 2e20345f
      	* gcc-interface/Makefile (x86-64/Linux): Restore missing pairs.
      	(x86/Darwin): Likewise.
      
      From-SVN: r241369
      Nicolas Roche committed
    • class.c (gfc_build_class_symbol): Set the kind of _len to gfc_charlen_int_kind… · 40cc684d
      class.c (gfc_build_class_symbol): Set the kind of _len to gfc_charlen_int_kind to catch changes of the charlen kind.
      
      gcc/fortran/ChangeLog:
      
      2016-10-20  Andre Vehreschild  <vehre@gcc.gnu.org>
      
      	* class.c (gfc_build_class_symbol): Set the kind of _len to
      	gfc_charlen_int_kind to catch changes of the charlen kind.
      
      From-SVN: r241367
      Andre Vehreschild committed
    • pr35356-1.c: Update. · 6c1a9e41
      2016-10-20  Richard Biener  <rguenther@suse.de>
      
      	* gcc.dg/graphite/pr35356-1.c: Update.
      
      From-SVN: r241366
      Richard Biener committed
    • PR78052 Define std::allocator<void>::{construct,destroy} · 1d6360c8
      	PR libstdc++/78052
      	* include/bits/allocator.h (allocator<void>::construct)
      	(allocator<void>::destroy): Define.
      	* testsuite/20_util/allocator/void.cc: New test.
      
      From-SVN: r241365
      Jonathan Wakely committed
    • Add more tests for enable_shared_from_this ambiguities · 4f63d614
      	* testsuite/20_util/enable_shared_from_this/56383.cc: Add tests for
      	additional ambiguous cases.
      
      From-SVN: r241364
      Jonathan Wakely committed
    • cgraphunit.c (analyze_functions): Set node->definition to false to signal symbol removal to... · 775669c1
      2016-10-20  Richard Biener  <rguenther@suse.de>
      
      	* cgraphunit.c (analyze_functions): Set node->definition to
      	false to signal symbol removal to debug_hooks->late_global_decl.
      	* ipa.c (symbol_table::remove_unreachable_nodes): When not in
      	WPA signal symbol removal to the debuginfo machinery.
      	* dwarf2out.c (dwarf2out_late_global_decl): Instead of
      	using early_finised to guard the we're called for symbol
      	removal case look at the symtabs definition flag.
      	(gen_variable_die): Remove redundant check.
      
      From-SVN: r241363
      Richard Biener committed
    • S/390: Add fallthrough comment in md file. · a65593a4
      gcc/ChangeLog:
      
      2016-10-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
      
      	* config/s390/s390.md ("prefetch"): Add fallthrough comment.
      
      From-SVN: r241362
      Andreas Krebbel committed
    • re PR c++/77446 (Suspicious "non-constant condition for static assertion" error) · a2923dba
      2016-10-20  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/77446
      	* g++.dg/cpp1y/pr77446.C: New.
      
      From-SVN: r241361
      Paolo Carlini committed
    • re PR tree-optimization/53979 (((a ^ b) | a) not optimized to (a | b)) · 2066ef6a
      2016-10-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
      
      	PR tree-optimization/53979
      	* match.pd ((a ^ b) | a -> a | b): New pattern.
      
      testsuite/
      	* gcc.dg/pr53979-1.c: New test-case.
      	* gcc.dg/pr53979-2.c: Likewise.
      
      From-SVN: r241360
      Prathamesh Kulkarni committed
    • Daily bump. · d480863a
      From-SVN: r241359
      GCC Administrator committed
  3. 19 Oct, 2016 8 commits
    • pa64-hpux-lib.h: New file. · 4c6d7494
      libgcc/
      	* config/pa/pa64-hpux-lib.h: New file.  
      	(EH_FRAME_SECTION_NAME): Rename to __LIBGCC_EH_FRAME_SECTION_NAME__.
      	(DTORS_SECTION_ASM_OP): Rename to __LIBGCC_DTORS_SECTION_ASM_OP__.
      	* config.host (tm_file): Add pa/pa64-hpux-lib.h to tm_file on
      	hppa*64*-*-hpux11*.
      gcc/
      	* config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
      	config/pa/pa64-hpux-lib.h.
      	(PA_CRTBEGIN_HACK): Likewise.
      	(DTOR_LIST_BEGIN): Likewise.
      
      From-SVN: r241356
      John David Anglin committed
    • c-common.c (c_common_truthvalue_conversion): Warn only for signed integer shift… · 4c712374
      c-common.c (c_common_truthvalue_conversion): Warn only for signed integer shift ops in boolean context.
      
      2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              * c-common.c (c_common_truthvalue_conversion): Warn only for signed
              integer shift ops in boolean context.
      
      testsuite:
      2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              * c-c++-common/Wint-in-bool-context-2.c: New test.
      
      From-SVN: r241354
      Bernd Edlinger committed
    • Make std::enable_shared_from_this cope with ambiguity · f3070dab
      	* include/backward/auto_ptr.h (__shared_ptr(auto_ptr&&)): Call
      	_M_enable_shared_from_this_with instead of
      	__enable_shared_from_this_helper.
      	* include/bits/shared_ptr.h (__enable_shared_from_this_helper):
      	Remove overload for std::enable_shared_from_this..
      	(__enable_shared_from_this_base): Define friend function to select a
      	std::enable_shared_from_this base class.
      	* include/bits/shared_ptr_base.h (__enable_shared_from_this_helper):
      	Remove all overloads.
      	(__shared_ptr): Change all relevant constructors to call
      	_M_enable_shared_from_this_with instead of
      	__enable_shared_from_this_helper.
      	(__shared_ptr::__efst_base_t, __shared_ptr::__has_efst_base): Helpers
      	to detect accessible and unambiguous enable_shared_from_this bases.
      	(__shared_ptr::_M_enable_shared_from_this_with): New function to
      	replace __enable_shared_from_this_helper overloads.
      	(__enable_shared_from_this_helper): Remove overload for
      	std::__enable_shared_from_this.
      	(__enable_shared_from_this_base): Define friend function to select a
      	std::__enable_shared_from_this base class.
      	* include/experimental/bits/shared_ptr.h (experimental::shared_ptr):
      	Change relevant constructors to call _M_enable_shared_from_this_with.
      	(experimental::shared_ptr::__efst_base_t)
      	(experimental::shared_ptr::__has_efst_base): Helpers to detect
      	accessible and unambiguous enable_shared_from_this bases.
      	(experimental::shared_ptr::_M_enable_shared_from_this_with): Define.
      	(experimental::__enable_shared_from_this_helper): Remove overload for
      	std::experimental::enable_shared_from_this.
      	(experimental::__expt_enable_shared_from_this_base): Define friend
      	function to select a std::experimental::enable_shared_from_this base.
      	* testsuite/experimental/memory/shared_ptr/cons/
      	enable_shared_from_this.cc: New test.
      	* testsuite/experimental/memory/shared_ptr/cons/unique_ptr_ctor.cc:
      	Adjust expected behaviour for shared_ptr<A[]>.
      
      From-SVN: r241353
      Jonathan Wakely committed
    • dtio_17.f90: Fix test. · bdcf8e7c
      2016-10-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	* gfortran.dg/dtio_17.f90: Fix test.
      
      From-SVN: r241352
      Jerry DeLisle committed
    • Walloca-1.c: Adjust test for !lp64 targets. · ec1748d4
      	* gcc.dg/Walloca-1.c: Adjust test for !lp64 targets.
      	* gcc.dg/Walloca-2.c: Same.
      
      From-SVN: r241351
      Aldy Hernandez committed
    • Fix copy&paste error in __gnu_debug::vector · 36e2520b
      	* include/debug/vector (__gnu_debug::vector::emplace_back): Fix return
      	type.
      
      From-SVN: r241350
      Jonathan Wakely committed
    • Fix incorrect comment about std::auto_ptr · 181f50b6
      	* include/backward/auto_ptr.h (dauto_ptr): Correct comment about
      	conversions from auto_ptr<Derived> rvalues to auto_ptr<Base>.
      	* testsuite/20_util/auto_ptr/assign_neg.cc: Remove redundant dg-error
      	directives that only match notes, not errors.
      
      From-SVN: r241349
      Jonathan Wakely committed
    • arm.c (arm_emit_coreregs_64bit_shift): Clear the result register only if "in"… · c6cc81d6
      arm.c (arm_emit_coreregs_64bit_shift): Clear the result register only if "in" and "out" are different registers.
      
      2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
              register only if "in" and "out" are different registers.
      
      From-SVN: r241348
      Bernd Edlinger committed