From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E9DF03857C6A; Fri, 19 Nov 2021 08:48:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E9DF03857C6A From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/103305] Cannot build libstdc++ with newlib on aarch64-none-elf or bfin-elf with new version of newlib Date: Fri, 19 Nov 2021 08:48:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Nov 2021 08:48:52 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103305 --- Comment #11 from CVS Commits --- The master branch has been updated by Tamar Christina : https://gcc.gnu.org/g:0e510ab53414430e93c6f5b64841e2f40031cda7 commit r12-5396-g0e510ab53414430e93c6f5b64841e2f40031cda7 Author: Tamar Christina Date: Fri Nov 19 08:48:11 2021 +0000 libstdc++: Fix ctype changed after newlib update. Newlib changed ctype.h recently[1] by moving the short labels from ctyp= e.h intro the private namespace in ctype_.h. This broke embedded builds due to t= hem no longer being found. Instead they now expose the long names to match gl= ibc. This patch now uses the short or long names depending on is the short o= nes are defined or not. [1] https://github.com/bminor/newlib/commit/3ba1bd0d9dbc015c14a0aaafcef042f706d= 1249a libstdc++-v3/ChangeLog: PR libstdc++/103305 * config/os/newlib/ctype_base.h (upper, lower, alpha, digit, xdigit, space, print, graph, cntrl, punct, alnum, blank): Use short or = long names depending on if short ones are defined.=