From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 423203858438; Wed, 21 Sep 2022 07:45:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 423203858438 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663746321; bh=YshF5EN8uyZclHNmWREse07f5shUwYJUoq1jiH3y3f0=; h=From:To:Subject:Date:From; b=wULls4nk+RrE9INj7nPyLtIa0cEy+gpp4XMZx8hC5eNPGN0Zti/TmaaumxgMPoF4e aBijJqB3olivcARRGmo6uAm1jj7gM5Tb6Nx1r0L3JWxFMbl03gwuOIuPaf7X+f8Nmz G4BhqdudFvvWXhLZ2MnPL7dj2FCEv/QJgRU270hE= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r13-2752] libstdc++: Add _Exit to for freestanding X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: d784c5cfe694fe8d5620504ae45ceaebb3cc9f7c X-Git-Newrev: cb29396e67f5e2622e31bf83f253c6d66c51135d Message-Id: <20220921074521.423203858438@sourceware.org> Date: Wed, 21 Sep 2022 07:45:21 +0000 (GMT) List-Id: https://gcc.gnu.org/g:cb29396e67f5e2622e31bf83f253c6d66c51135d commit r13-2752-gcb29396e67f5e2622e31bf83f253c6d66c51135d Author: Jonathan Wakely Date: Wed Sep 21 00:48:12 2022 +0100 libstdc++: Add _Exit to for freestanding When I added std::_Exit to the freestanding declarations in I should also have added it to . libstdc++-v3/ChangeLog: * include/c_compatibility/stdlib.h [!_GLIBCXX_HOSTED]: Add using-declaration for _Exit. Diff: --- 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