1. 16 Mar, 2017 10 commits
    • PR libstdc++/79980 fix BOM detection, maxcode checks, UCS2 handling · bcd682e1
      	PR libstdc++/79980
      	* include/bits/locale_conv.h (__do_str_codecvt): Set __count on
      	error path.
      	* src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
      	for manipulating codecvt_mode values.
      	(read_utf16_bom): Compare input to BOM constants instead of integral
      	constants that depend on endianness.  Take mode parameter by
      	reference and adjust it, to distinguish between no BOM present and
      	UTF-16BE BOM present.
      	(ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
      	(surrogates): New enumeration type.
      	(utf16_in, utf16_out): Add surrogates parameter to choose between
      	UTF-16 and UCS2 behaviour.
      	(utf16_span, ucs2_span): Use std::min not std::max.
      	(ucs2_out): Use std::min not std::max.  Disallow surrogate pairs.
      	(ucs2_in): Likewise. Adjust calls to read_utf16_bom.
      	* testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
      	* testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
      
      From-SVN: r246200
      Jonathan Wakely committed
    • PR libstdc++/79511 fix endianness of UTF-16 data · 02e12bda
      	PR libstdc++/79511
      	* src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
      	as a surrogate pair.
      	(__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
      	for internal representation.
      	(__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
      	* testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
      
      From-SVN: r246199
      Jonathan Wakely committed
    • PR libstdc++/80064 make heap algorithms work with function types · 8d85abab
      	PR libstdc++/80064
      	* include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
      	(pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
      	invalid instantiations using function types for _Compare argument.
      	* testsuite/25_algorithms/make_heap/80064.cc: New test.
      
      From-SVN: r246197
      Jonathan Wakely committed
    • PR libstdc++/67440 make pretty printers work with GDB 7.6 again · 7acc5349
      	PR libstdc++/67440
      	* python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
      	for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
      
      From-SVN: r246196
      Jonathan Wakely committed
    • 2017-03-16 Tamar Christina <tamar.christina@arm.com> · d78607f5
      	* config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
      	Change ins into fmov.
      
      From-SVN: r246190
      Tamar Christina committed
    • [AArch64] Use 'x' constraint for vector HFmode multiplication by indexed element instructions · 6d06971d
      	* config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
      	* config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
      	Use h_con constraint for operand 1.
      	(*aarch64_fnma4_elt_from_dup<mode>): Likewise.
      	(*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
      
      From-SVN: r246189
      Kyrylo Tkachov committed
    • re PR tree-optimization/71437 (Performance regression after r235817) · f5a3ad8a
      	PR tree-optimization/71437
      	* tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
      	(record_temporary_equivalences): Use it.
      
      From-SVN: r246187
      Jeff Law committed
    • re PR tree-optimization/71437 (Performance regression after r235817) · a3d514f2
      	PR tree-optimization/71437
      	* tree-ssa-dom.c (struct cond_equivalence): Moved from here into
      	tree-ssa-scopedtables.
      	(lookup_avail_expr, build_and_record_new_cond): Likewise.
      	(record_conditions, record_cond, vuse_eq): Likewise.
      	(record_edge_info): Adjust to API tweak of record_conditions.
      	(simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
      	(record_temporary_equivalences, optimize_stmt): Likewise.
      	(eliminate_redundant_computations): Likewise.
      	(record_equivalences_from_stmt): Likewise.
      	* tree-ssa-scopedtables.c: Include options.h and params.h.
      	(vuse_eq): New function, moved from tree-ssa-dom.c
      	(build_and_record_new_cond): Likewise.
      	(record_conditions): Likewise.  Accept vector of conditions rather
      	than edge_equivalence structure for first argument.
      	for the first argument.
      	(avail_exprs_stack::lookup_avail_expr): New member function, moved
      	from tree-ssa-dom.c.
      	(avail_exprs_stack::record_cond): Likewise.
      	* tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
      	from tree-ssa-dom.c.
      	(avail_exprs_stack): Add new member functions lookup_avail_expr
      	and record_cond.
      	(record_conditions): Declare.
      
      From-SVN: r246186
      Jeff Law committed
    • Daily bump. · 47ee2e07
      From-SVN: r246185
      GCC Administrator committed
  2. 15 Mar, 2017 20 commits
  3. 14 Mar, 2017 10 commits
    • re PR middle-end/80020 (gcc confused about aligned_alloc argument order) · 5d9a283a
      	PR middle-end/80020
      	* builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
      	* builtins.def (aligned_alloc): Use it.
      
      	PR middle-end/80020
      	* gcc.dg/attr-alloc_size-6.c: Correct aligned_alloc argument order.
      	* gcc.dg/attr-alloc_size-7.c: Same.
      	* gcc.dg/attr-alloc_size-9.c: Same.
      	* gcc.dg/builtin-alloc-size.c: Same.
      	* gcc.dg/pr80020.c: New test.
      
      From-SVN: r246145
      Martin Sebor committed
    • re PR c/79936 (ICE with -Walloc-size-larger-than=32767) · 6bf29a7e
      	PR c/79936
      	* Makefile.in (GTFILES): Add calls.c.
      	* calls.c: Include "gt-calls.h".
      
      From-SVN: r246144
      Martin Sebor committed
    • re PR rtl-optimization/79728 (ICE in setup_pressure_classes, at ira.c:912) · 4692943d
      	PR rtl-optimization/79728
      	* regs.h (struct target_regs): New field
      	x_contains_allocatable_regs_of_mode.
      	(contains_allocatable_regs_of_mode): New macro.
      	* reginfo.c (init_reg_sets_1): Initialize it, and change
      	contains_reg_of_mode so it includes global regs as well.
      	* reload.c (push_reload): Use contains_allocatable_regs_of_mode
      	rather than contains_regs_of_mode.
      
      	PR rtl-optimization/79728
      	* gcc.target/i386/sse-globalreg.c: New test.
      
      From-SVN: r246138
      Bernd Schmidt committed
    • Document options that can't be combined with -fcheck-pointer-bounds. · 6c841832
      2017-03-14  Martin Liska  <mliska@suse.cz>
      
      	* doc/invoke.texi: Document options that can't be combined with
      	-fcheck-pointer-bounds.
      
      From-SVN: r246130
      Martin Liska committed
    • Document -Wchkp (PR middle-end/79831). · 54d5850a
      2017-03-14  Martin Liska  <mliska@suse.cz>
      
      	PR middle-end/79831
      	* doc/invoke.texi (-Wchkp): Document the option.
      
      From-SVN: r246129
      Martin Liska committed
    • PR libstdc++/79162 disambiguate assignment from string_view · 4f83482f
      	PR libstdc++/79162
      	* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
      	(basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
      	with a constrained template.
      	[!_GLIBCXX_USE_CXX11_ABI]
      	(basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
      	* testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
      	* testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
      
      From-SVN: r246128
      Jonathan Wakely committed
    • PR c++/79393 DR 1658 workaround · 9b74f933
      	PR c++/79393 DR 1658 workaround
      	* method.c (synthesized_method_base_walk): Inihibit abstract class
      	virtual base access check here.
      	(synthesized_method_walk): Not here.
      
      From-SVN: r246126
      Nathan Sidwell committed
    • Install gcov-dump. · 92759508
      2017-03-14  Martin Liska  <mliska@suse.cz>
      
      	* Makefile.in: Install gcov-dump.
      
      From-SVN: r246125
      Martin Liska committed
    • Do not ICE on an invalid input for MV. · f7486ecb
      2017-03-14  Martin Liska  <mliska@suse.cz>
      
      	* multiple_target.c (expand_target_clones): Bail out for
      	an invalid attribute.
      
      From-SVN: r246124
      Martin Liska committed
    • alias.c (struct alias_set_entry): Pack properly. · 34e82342
      2017-03-14  Richard Biener  <rguenther@suse.de>
      
      	* alias.c (struct alias_set_entry): Pack properly.
      	* cfgloop.h (struct loop): Likewise.
      	* cse.c (struct set): Likewise.
      	* ipa-utils.c (struct searchc_env): Likewise.
      	* loop-invariant.c (struct invariant): Likewise.
      	* lra-remat.c (struct cand): Likewise.
      	* recog.c (struct change_t): Likewise.
      	* rtl.h (struct address_info): Likewise.
      	* symbol-summary.h (function_summary): Likewise.
      	* tree-loop-distribution.c (struct partition): Likewise.
      	* tree-object-size.c (struct object_size_info): Likewise.
      	* tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
      	* tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
      	* tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
      	* tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
      	* tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
      	* tree-vectorizer.h (struct _loop_vec_info): Likewise.
      	(struct _stmt_vec_info): Likewise.
      
      From-SVN: r246121
      Richard Biener committed