Message ID | 20220921074540.863318-1-jwakely@redhat.com |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp1808170wrt; Wed, 21 Sep 2022 00:47:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6mgNLqIcDjCI4F04nQNoqXsmutJ5NOMiylsvlwi6BeG6GluTgBUResB8JeNuAVhtaJ4D+u X-Received: by 2002:aa7:dc10:0:b0:440:b446:c0cc with SMTP id b16-20020aa7dc10000000b00440b446c0ccmr23758748edu.34.1663746445298; Wed, 21 Sep 2022 00:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663746445; cv=none; d=google.com; s=arc-20160816; b=Hqmec5umIZI1HasMC/PB7SNFD1hKY86ruvgV8AUNMxpyHh2yjme1RvtQEwq9NTq49d VU+r9AYCb9O9nlcMOOGHdoOVJbxK2tN9tPKd0dPFlbOmk71iQDwaDzqU8VPD1p9Lj379 +Oy/FP8mNlGyNs3io3X809xSZjwp5QWlTPT1Cux9UBJrrqsB3KGKfothZ26Im+OOUFk6 ag1UEGvRj1fUNUm5gKtJAbJo+0OI1EMTvz9aIWovdjVhIISPd/z1ar4Dd/n5twqGdgNY EZlTQHq/gkmbGWiz+Tjk78P5lo8jqWh0JWO8I712GtUKsRzva59EElguPVYhEvjLrKDv k3Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=30/ep7CpVTZV2pbb2IH2DV3q46PjHEIMrxHNOWujCfU=; b=hf5e0a3sC5x4Ym2B9Ee2dbtxT/pPvmZS3muzfQ+dUshyNVQi1eain5bN/JvizeCIr6 rcmOo6OPTVMhZ2f2OteVo1VFnBjFCkY+DeORshqevN0tQ/SAs1UkVIxhNYuwkt9aSO3G av4xQfcsukUqhcqnunibAHQOLs6jmZnyIZ0WGtsqyJv5dmw/UdyPdJ0NK9CpoRmMNL51 o/B6jKb5WrgMHA3Csbj5SbczMG8i2HDf/Acm2LjvQ/4/myHL59oFKugV5D+hD/dGNPbe 0tY4/bUr9msocT1ah8LS20Mzt+so8I0A0pTdu08DSNKJYKF1YjXbWd5j+xXwMi7M3Oy1 JkFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=H+qM4rnQ; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id o21-20020aa7c515000000b004539240e563si1554066edq.509.2022.09.21.00.47.25 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 00:47:25 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=H+qM4rnQ; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 980A33855172 for <ouuuleilei@gmail.com>; Wed, 21 Sep 2022 07:46:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 980A33855172 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663746387; bh=30/ep7CpVTZV2pbb2IH2DV3q46PjHEIMrxHNOWujCfU=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=H+qM4rnQ8Pr/Byp2CGC/7YpE5FajASCF7TJtWCno0H8yKwEkCdG33JnJfIKv4UWDG dMZxAM7wv1+YZ3tD0yFQ8sEbNR7qc46YSITIKvmdPcXegZpjzUbIpEWEsZQ9/FB8yi IDIurvvd4LcIyWvyIf3K9VhXYxb8ctE7lLvOKaFo= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id DE9653858293 for <gcc-patches@gcc.gnu.org>; Wed, 21 Sep 2022 07:45:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DE9653858293 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-441-MtoVml8pOt2OKlUt84lpew-1; Wed, 21 Sep 2022 03:45:41 -0400 X-MC-Unique: MtoVml8pOt2OKlUt84lpew-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 298A0858282; Wed, 21 Sep 2022 07:45:41 +0000 (UTC) Received: from localhost (unknown [10.33.36.214]) by smtp.corp.redhat.com (Postfix) with ESMTP id E6AF4C1908A; Wed, 21 Sep 2022 07:45:40 +0000 (UTC) To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Add _Exit to <stdlib.h> for freestanding Date: Wed, 21 Sep 2022 08:45:40 +0100 Message-Id: <20220921074540.863318-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Jonathan Wakely via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Jonathan Wakely <jwakely@redhat.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1744564592104752022?= X-GMAIL-MSGID: =?utf-8?q?1744564592104752022?= |
Series |
[committed] libstdc++: Add _Exit to <stdlib.h> for freestanding
|
|
Commit Message
Jonathan Wakely
Sept. 21, 2022, 7:45 a.m. UTC
Tested powerpc64le-linux, pushed to trunk. -- >8 -- When I added std::_Exit to the freestanding declarations in <cstdlib> I should also have added it to <stdlib.h>. libstdc++-v3/ChangeLog: * include/c_compatibility/stdlib.h [!_GLIBCXX_HOSTED]: Add using-declaration for _Exit. --- libstdc++-v3/include/c_compatibility/stdlib.h | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/libstdc++-v3/include/c_compatibility/stdlib.h b/libstdc++-v3/include/c_compatibility/stdlib.h index 377b9107ded..70fa4c8e503 100644 --- a/libstdc++-v3/include/c_compatibility/stdlib.h +++ b/libstdc++-v3/include/c_compatibility/stdlib.h @@ -45,6 +45,9 @@ using std::exit; # ifdef _GLIBCXX_HAVE_QUICK_EXIT using std::quick_exit; # endif +# if _GLIBCXX_USE_C99_STDLIB + using std::_Exit; +# endif #endif #if _GLIBCXX_HOSTED