From patchwork Fri Jun 14 14:04:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1116013 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-502967-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="OIre/3up"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45QMmr2Nm8z9s9G for ; Sat, 15 Jun 2019 00:04:42 +1000 (AEST) 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:subject:message-id:mime-version:content-type; q=dns; s= default; b=MPM6iQKD9MY9BGvUnN2hrd3iQ2OLkIwgkcpUKEhyFevKVt3uuA8YE dAaYwzFdcyMQb2q7rxwrnoNs7bfV0SYcm8wpAuf0PCzlnZ9JguRED0znBt0cFvmF R0oPkoYW5dKGkBzM6He2YEw+HGw9NGVrwclCeQBxlViNV755lwYDH8= 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:subject:message-id:mime-version:content-type; s= default; bh=CngLQg/jgLX0gZqciyhGh8QZ5Hg=; b=OIre/3up+4cEoVZNCZ2D rAPMy+tn5r90Fb9yLMOkcRXF/ukgf0Yh0htMqVJFnzpeT0gNBZ63lBoXNKmAUpT3 0VYWv+9mj0ovg5xdA6BRJhNAB1cplBHHwr9JqGtAitxbx5K+ddPlWugenon4VhE9 J7veXhwrZhI84TswWVLKFyI= Received: (qmail 60741 invoked by alias); 14 Jun 2019 14:04:35 -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 60726 invoked by uid 89); 14 Jun 2019 14:04:35 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-15.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=*define, ssh, his 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; Fri, 14 Jun 2019 14:04:34 +0000 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B24FD2F8BF7; Fri, 14 Jun 2019 14:04:26 +0000 (UTC) Received: from localhost (unknown [10.33.36.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5F6911001B1A; Fri, 14 Jun 2019 14:04:25 +0000 (UTC) Date: Fri, 14 Jun 2019 15:04:24 +0100 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [PATCH] Add __cpp_lib_bind_front macro to header Message-ID: <20190614140424.GA24519@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.11.3 (2019-02-01) * include/std/version (__cpp_lib_bind_front): Add missing macro. Tested x86_64-linux, committed to trunk. I'll backport t his to gcc-9-branch too. This missing macro was found by the following script I used for testing an installed compiler: #!/bin/sh : ${CXX:=$HOME/gcc/latest/bin/g++} for dialect in c++ gnu++ do for i in 98 11 14 17 2a; do echo ===$dialect$i=== echo '#include ' | $CXX -D_GLIBCXX_VERSION_INCLUDED -E -std=$dialect$i -dD -xc++ - | grep '^[[:blank:]]*#[[:blank:]]*define[[:blank:]]*__cpp_' | sort -u > /tmp/perfilemacros echo '#include ' | $CXX -E -std=$dialect$i -dD -xc++ - | grep '^[[:blank:]]*#[[:blank:]]*define[[:blank:]]*__cpp_' | sort -u > /tmp/versionmacros diff -up /tmp/perfilemacros /tmp/versionmacros done done commit e3cc480c4e4601ee97baa96d36952331ffc867d4 Author: redi Date: Fri Jun 14 14:03:16 2019 +0000 Add __cpp_lib_bind_front macro to header * include/std/version (__cpp_lib_bind_front): Add missing macro. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272288 138bc75d-0d04-0410-961f-82ee72b054a4 diff --git a/libstdc++-v3/include/std/version b/libstdc++-v3/include/std/version index cef4f1f8e9c..e300fc38bc7 100644 --- a/libstdc++-v3/include/std/version +++ b/libstdc++-v3/include/std/version @@ -150,6 +150,7 @@ #if __cplusplus > 201703L // c++2a +#define __cpp_lib_bind_front 201902L #define __cpp_lib_bounded_array_traits 201902L #if __cpp_impl_destroying_delete # define __cpp_lib_destroying_delete 201806L