From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 99DC13858C54; Fri, 27 Jan 2023 08:51:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99DC13858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674809479; bh=721dxU196yWyNlcDryyXUw5ZK1fzCDK5y6FBpgDR2iM=; h=From:To:Subject:Date:From; b=lqJPenBBcow9lbAXT2vuYbsLK37MhHCXeYStxB1uS0tTVmDt2WrQPYH0XIWZmoWMS K9ooHjq8eVnqifKnrN7CJf995lzl1RGTaQNO2jY8D0/h0cGpI0n4PIm34FRryHDr1Z 0mAY3X1XeeiLDbRUKmzg5l3idlCyhR6romdMBa9A= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108568] New: FAILs in 17_intro/names.cc Date: Fri, 27 Jan 2023 08:51:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108568 Bug ID: 108568 Summary: FAILs in 17_intro/names.cc Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- On gcc112 I'm seeing FAIL: 17_intro/names.cc (test for excess errors) FAIL: experimental/names.cc (test for excess errors) These are because glibc < 2.19 used __unused as field member of various structs, including mcontext_t in sys/ucontext.h on ppc64le. This was changed in glibc with https://gcc.gnu.org/pipermail/libc-alpha/2013-November/045766.html names.cc even has #ifdef __GLIBC_PREREQ #if ! __GLIBC_PREREQ(2, 19) // Glibc defines this prior to 2.19 #undef __unused #endif #endif for it, but it doesn't work. The reason is that __GLIBC_PREREQ is defined = in but nothing included that header before this spot (it is inclu= ded later from bits/stdc++.h). Can't it use #if __GLIBC__ =3D=3D 1 || (__GLIBC__ =3D=3D 2 && __GLIBC_MINOR__ < 19) instead? Or just #if __GLIBC__ =3D=3D 2 && __GLIBC_MINOR__ < 19 (because who knows what glibc 1 actually used, that was 1996 and already in 1997 we had glibc 2.x).=