1. 14 Nov, 2016 3 commits
  2. 13 Nov, 2016 19 commits
    • Add array support to std::shared_ptr for C++17 · b2343559
      	* doc/xml/manual/status_cxx2017.xml: Update status.
      	* doc/html/manual/status.html: Regenerate.
      	* include/bits/shared_ptr.h (shared_ptr(unique_ptr<_Yp, _Del>)): Add
      	extension constructor to maintain C++14 behaviour.
      	* include/bits/shared_ptr_base.h (__sp_array_delete): Add new struct.
      	(__shared_count(_Ptr, false_type), __shared_count(_Ptr, true_type)):
      	New constructors.
      	(__sp_compatible_with, __sp_is_constructible): Add specializations
      	for array support.
      	(__sp_is_constructible_arr, __sp_is_constructible_arrN): New helpers.
      	(__shared_ptr_access): New base class for observer member functions.
      	(__shared_ptr::element_type): Use remove_extent.
      	(__shared_ptr::_UniqCompatible): Add __sp_compatible_with check.
      	(__shared_ptr(_Yp*)): Use tag dispatching to call new __shared_count
      	constructor.
      	(__shared_ptr(unique_ptr<_Yp, _Del>)): Add extension constructor.
      	(__shared_ptr::operator*, __shared_ptr::operator->): Remove and
      	inherit from __shared_ptr_access base class.
      	(__shared_ptr::__has_esft_base): Return false for array types.
      	(__weak_ptr::element_type): Use remove_extent.
      	* include/experimental/bits/shared_ptr.h (__libfund_v1): Remove.
      	(__shared_ptr<__libfund_v1<_Tp>>): Remove specializations.
      	(__wak_ptr<__libfund_v1<_Tp>>): Likewise.
      	(experimental::__sp_compatible_v): Redefine using
      	__sp_compatible_with.
      	(experimental::__sp_is_constructible_v): Redefine using
      	__sp_is_constructible.
      	(get_deleter, operator<<): Change argument from __shared_ptr to
      	shared_ptr.
      	* testsuite/20_util/shared_ptr/cons/array.cc: New test.
      	* testsuite/20_util/shared_ptr/cons/unique_ptr_array.cc: Adjust for
      	new behaviour.
      	* testsuite/20_util/shared_ptr/observers/array.cc: Test observers for
      	arrays.
      	* testsuite/20_util/shared_ptr/observers/array_neg.cc: New test.
      
      From-SVN: r242369
      Jonathan Wakely committed
    • pr78268.C: New test. · a2b4c188
      gcc/testsuite/ChangeLog:
      
      2016-11-13  Kugan Vivekanandarajah  <kuganv@linaro.org>
      
      	* g++.dg/torture/pr78268.C: New test.
      
      gcc/ChangeLog:
      
      2016-11-13  Kugan Vivekanandarajah  <kuganv@linaro.org>
      
      	* ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
      	(propagate_vr_accross_jump_function): Handle unary expressions.
      	* ipa-prop.c (ipa_set_jf_unary_pass_through): New.
      	(load_from_param_1): New.
      	(load_from_unmodified_param): Factor common part into load_from_param_1.
      	(load_from_param): New.
      	(compute_complex_assign_jump_func): Handle unary expressions.
      	(update_jump_functions_after_inlining): Likewise.
      	(ipa_write_jump_function): Likewise.
      	(ipa_read_jump_function): Likewise.
      
      From-SVN: r242368
      Kugan Vivekanandarajah committed
    • Implement P0403R1, Literal suffixes for basic_string_view. · 17018005
      * include/std/string_view
      (operator""sv(const char*, size_t)): New.
      (operator""sv(const wchar_t*, size_t)): Likewise.
      (operator""sv(const char16_t*, size_t)): Likewise.
      (operator""sv(const char32_t*, size_t)): Likewise.
      * testsuite/21_strings/basic_string_view/literals/types.cc: New.
      * testsuite/21_strings/basic_string_view/literals/values.cc: Likewise.
      * testsuite/experimental/string_view/literals/values.cc: Add
      tests for literals with embedded NULs.
      
      From-SVN: r242367
      Ville Voutilainen committed
    • re PR tree-optimization/35503 (Warning about restricted pointers?) · 975672f3
      2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
      
      	PR c/35503
      	* doc/invoke.texi: Document Wrestrict.
      	* pretty-print.c (pp_format): Add case for "Z" specifier.
      	(test_pp_format): Test "Z" specifier.
      c-family/
      	* c-common.h (warn_for_restrict): Declare.
      	* c-warn.c: Include gcc-rich-location.h.
      	(warn_for_restrict): New function.
      	* c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
      	(gcc_cdiag_char_table): Likewise.
      	(gcc_cxxdiag_char_table): Likewise.
      	* c.opt (Wrestrict): New option.
      c/
      	* c-parser.c (c_parser_postfix_expression_after_primary): Call
      	warn_for_restrict.
      cp/
      	* parser.c (cp_parser_postfix_pexpression): Call warn_for_restrict.
      testsuite/
      	* c-c++-common/pr35503-1.c: New test.
      	* c-c++-common/pr35503-2.c: Likewise.
      	* c-c++-common/pr35503-3.c: Likewise.
      	* gcc.dg/format/gcc_diag-1.c: Add tests for "Z" specifier.
      
      From-SVN: r242366
      Prathamesh Kulkarni committed
    • decl.c (gnat_to_gnu_entity): In assertion about known Esize... · 8d5a1b4f
      	* gcc-interface/decl.c (gnat_to_gnu_entity): In assertion about known
      	Esize, protect with !is_type and change !Unknown_Esize to Known_Esize.
      
      From-SVN: r242363
      Bob Duff committed
    • re PR rtl-optimization/78232 (FAIL: gcc.dg/torture/pr48124-4.c) · a4ba1151
      	PR rtl-optimization/78232
      	PR rtl-optimization/78248
      	* gcc.dg/ubsan/pr78248.c: New test.
      
      From-SVN: r242362
      Uros Bizjak committed
    • decl.c (gnat_to_gnu_entity): Look at the underlying type for the signedness of the type. · 47605312
      	* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
      	Look at the underlying type for the signedness of the type.
      
      From-SVN: r242361
      Eric Botcazou committed
    • decl.c (annotate_value): Deal specially with negative constants. · c0c54de6
      	* gcc-interface/decl.c (annotate_value) <INTEGER_CST>: Deal specially
      	with negative constants.
      
      From-SVN: r242360
      Eric Botcazou committed
    • utils2.c (gnat_protect_expr): Also protect only the address if the expression is… · 96826e28
      utils2.c (gnat_protect_expr): Also protect only the address if the expression is the component of a dereference.
      
      	* gcc-interface/utils2.c (gnat_protect_expr): Also protect only the
      	address if the expression is the component of a dereference.
      	Do not use a reference type for the final temporary reference.
      
      From-SVN: r242358
      Eric Botcazou committed
    • Makefile.in (NO_OMIT_ADAFLAGS): Define. · 854c00dd
      	* gcc-interface/Makefile.in (NO_OMIT_ADAFLAGS): Define.
      	(a-except.o): Replace -fno-inline with NO_INLINE_ADAFLAGS.
      	(s-memory.o): New rule.
      	(tracebak.o): Replace -fno-omit-frame-pointer with NO_OMIT_ADAFLAGS.
      
      From-SVN: r242357
      Eric Botcazou committed
    • c-ada-spec.c (print_ada_declaration): For typedef declarations... · 4be719cd
      	* c-ada-spec.c (print_ada_declaration): For typedef declarations, look
      	for nested types only if the type is a record or union and dump SLOC.
      
      From-SVN: r242356
      Eric Botcazou committed
    • ipa-icf.c (sem_function::merge): Do not create a wrapper also if the original… · 4ebd491f
      ipa-icf.c (sem_function::merge): Do not create a wrapper also if the original function needs a static chain.
      
      	* ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
      	original function needs a static chain.
      
      From-SVN: r242354
      Eric Botcazou committed
    • re PR target/78336 (powerpc-darwin bootstrap broken (probably by 241930)) · 499266dc
              PR target/78336
              * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
              ASM_OUTPUT_DEF.
      
      From-SVN: r242353
      David Edelsohn committed
    • re PR fortran/60952 ([F03] Problem using "end" as a type-bound procedure and contained procedure) · f9d49cd1
      2016-11-13  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/60952
      	* decl.c (match_procedure_in_type): Apply the FL_PROCEDURE attribute
      	to the target procedure.
      
      2016-11-13  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/60952
      	* gfortran.dg/typebound_proc_34.f90: New test.
      
      From-SVN: r242352
      Janus Weil committed
    • re PR fortran/66366 ([OOP] ICE on invalid with non-allocatable CLASS variable) · 9cbf8673
      2016-11-13  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/66366
      	* resolve.c (resolve_component): Move check for C437
      	to ...
      	* decl.c (build_struct): ... here. Fix indentation.
      
      2016-11-13  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/66366
      	* gfortran.dg/class_57.f90: Changed error message.
      	* gfortran.dg/class_60.f90: New test.
      
      From-SVN: r242351
      Janus Weil committed
    • CWG 2233 - default arg and parameter pack · 559f2bbc
      	* typeck.c (convert_arguments): Handle default arg followed by none.
      
      From-SVN: r242350
      Jason Merrill committed
    • Fix constexpr lvalue use of __real and __imag. · dc8d2d00
      	* constexpr.c (potential_constant_expression_1): REALPART_EXPR and
      	IMAGPART_EXPR can be lvalues.
      
      From-SVN: r242349
      Jason Merrill committed
    • DR 374 - specialization in outer namespace · ba1e69c0
      	PR c++/56840
      	* pt.c (check_specialization_namespace): Allow any enclosing
      	namespace.
      	(check_unqualified_spec_or_inst): New.
      	(check_explicit_specialization): Call it.
      	* parser.c (cp_parser_elaborated_type_specifier)
      	(cp_parser_class_head): Call it.
      
      From-SVN: r242348
      Jason Merrill committed
    • Daily bump. · 478eca64
      From-SVN: r242345
      GCC Administrator committed
  3. 12 Nov, 2016 9 commits
  4. 11 Nov, 2016 9 commits