From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 0CEAF3858C74 for ; Tue, 1 Feb 2022 16:37:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0CEAF3858C74 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-385-KIRob4krOmabhEYM7C8Qjw-1; Tue, 01 Feb 2022 11:37:24 -0500 X-MC-Unique: KIRob4krOmabhEYM7C8Qjw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E7FAD8145E0; Tue, 1 Feb 2022 16:37:22 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.193.205]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C0E0C108B8; Tue, 1 Feb 2022 16:37:21 +0000 (UTC) From: Florian Weimer To: Andrew Kelley Cc: "H.J. Lu" , GNU C Library Subject: Re: [PATCH] features: version-gate _DYNAMIC_STACK_SIZE_SOURCE References: <20220129023727.1496360-1-andrew@ziglang.org> Date: Tue, 01 Feb 2022 17:37:19 +0100 In-Reply-To: (Andrew Kelley's message of "Fri, 28 Jan 2022 21:04:01 -0700") Message-ID: <87ee4m35mo.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2022 16:37:29 -0000 * Andrew Kelley: > The Zig project aims to support targeting many versions of glibc; not > only the latest one. Our strategy is multi-faceted. For the shared > objects, there is this project: > https://github.com/ziglang/glibc-abi-tool/ > > And then we have the headers. For the most part, the latest glibc > headers are still correct for targeting systems with older glibc > versions. Some of the other usages of __GNUC_PREREQ look to be > supporting this use case to me. An occasional patch such as this one > is needed to make it work correctly, however. __GNUC_PREREQ certainly does not work for this, it's for GCC version checks. Why do you need *C* header files? Thanks, Florian