From patchwork Tue Jan 3 10:55:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 89628 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp7947239qgi; Tue, 3 Jan 2017 02:56:06 -0800 (PST) X-Received: by 10.84.197.129 with SMTP id n1mr135031206pld.30.1483440966417; Tue, 03 Jan 2017 02:56:06 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id i21si53982714pgj.273.2017.01.03.02.56.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jan 2017 02:56:06 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-445212-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-445212-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-445212-patch=linaro.org@gcc.gnu.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; q=dns; s=default; b=lFViX1ynW6dcr9XU/ GxzDMlLj6TAy0MHa6MzX8x6ZJf1XG8IlWbid5L0Ys6u4LBxnNdA++qjlfiqF0vMg XBrqybrKwULjx5b8kD55TbjnSp4bky/wL/58Y2eEv5/nfcVdmJtu1NbQc3vnn/zO ml4bMh7/oYKcIjE6M/FO73g9x0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=default; bh=jx1WjtD6VvKRB4x/Fjb6jkd 7K2Y=; b=UhTCe5cOjlI697Evklwi/u7LhsDjV/6d0wj8jNTTHcuxKh2PScDhoVh mVzJjQW118pX1I/+S0UEgiDBMslmOeplJzsa7ACLSmL0glu02r6ZEgZDSbXbi0zy gWJMRc1a4myptJgzIWpMIbOxFnapgPmNCZNWoNb3VHBcC1D5adLo= Received: (qmail 30471 invoked by alias); 3 Jan 2017 10:55:18 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 30442 invoked by uid 89); 3 Jan 2017 10:55:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=BAYES_40, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=edward, Edward, lcm, UD:html, v X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 03 Jan 2017 10:55:13 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F34B281239; Tue, 3 Jan 2017 10:55:12 +0000 (UTC) Received: from localhost (ovpn-116-51.ams2.redhat.com [10.36.116.51]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v03AtBAh031736; Tue, 3 Jan 2017 05:55:12 -0500 Date: Tue, 3 Jan 2017 10:55:10 +0000 From: Jonathan Wakely To: Jakub Jelinek Cc: Gerald Pfeifer , Jason Merrill , gcc-patches@gcc.gnu.org Subject: Re: [C++ PATCH] Implement LWG2296 helper intrinsic Message-ID: <20170103105509.GC895@redhat.com> References: <20161007192330.GJ7282@tucnak.redhat.com> <20170101145323.GX21933@tucnak> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170101145323.GX21933@tucnak> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.7.1 (2016-10-04) On 01/01/17 15:53 +0100, Jakub Jelinek wrote: >On Sun, Jan 01, 2017 at 10:27:24AM -0400, Gerald Pfeifer wrote: >> On Fri, 7 Oct 2016, Jakub Jelinek wrote: >> > The following patch adds __builtin_addressof with the semantics it has in >> > clang, i.e. it is a constexpr & operator alternative that never uses the >> > overloaded & operator. >> >> Nice! >> >> Are you planning to document this in gcc-7/changes.html ? > >We shouldn't document the builtin, but that std::addressof is usable in >constexpr contexts. I'll defer documentation thereof to Jon, together with >other libstdc++ changes. I've committed this to wwwdocs. ? htdocs/gcc-7/.changes.html.swp Index: htdocs/gcc-7/changes.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-7/changes.html,v retrieving revision 1.32 diff -u -r1.32 changes.html --- htdocs/gcc-7/changes.html 27 Nov 2016 12:54:13 -0000 1.32 +++ htdocs/gcc-7/changes.html 3 Jan 2017 10:54:01 -0000 @@ -287,13 +287,30 @@ std::chrono::round, and std::chrono::abs;
  • - std::clamp; + std::clamp, std::gcd, std::lcm, + 3-dimensional std::hypot; +
  • +
  • std::shared_mutex;
  • +
  • std::default_searcher, + std::boyer_moore_searcher and + std::boyer_moore_horspool_searcher; +
  • +
  • + Extraction and re-insertion of map and set nodes, try_emplace + members for maps, and functions for accessing containers + std::size, std::empty, and + std::data;
  • + std::shared_ptr support for arrays, std::shared_ptr<T>::weak_type, std::enable_shared_from_this<T>::weak_from_this(), and std::owner_less<void>;
  • +
  • std::as_const, std::not_fn, + std::has_unique_object_representations, + constexpr std::addressof. +
  • Thanks to Daniel Krügler, Tim Shen, Edward Smith-Rowland, and Ville Voutilainen for work on the C++17 support.