From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id E88D41F86C for ; Tue, 1 Dec 2020 18:59:16 +0000 (UTC) Received: from localhost ([::1]:53486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkArr-00070W-My for normalperson@yhbt.net; Tue, 01 Dec 2020 13:59:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkAr0-0006MJ-HN for bug-gnulib@gnu.org; Tue, 01 Dec 2020 13:58:22 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.24]:31431) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkAqu-00081F-Sg for bug-gnulib@gnu.org; Tue, 01 Dec 2020 13:58:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1606849093; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=Xls6aeCOj39Wp+nj0xcnQnOFLsPo5UivMzwLLt/y9Q0=; b=OKcHlgIlFj0uWdiAWT3RIJqvQvS2x4TuCodnVmIJXvhNf+5QI+3LMgbi2JbxPv9ono sF8LWKeWOL6JUginLCEZpTGmVFqpHTEgL7X1w7HBeR8hrQ/12PjQ7fQ4q6Imw8aFZU7Z Rvrw4nhWDtAUKsfD07jrz0ccLT7MCu68zhzKDrWOM9DK+Atz7vdcDpiavygZCsdyR+pi i9G01TfZqIaJJs6xXSKVhNkGjqAeVby2FqBUcNaZ6CVBy/jVaUkJ2F8UrEkqnxEO2zEI O4i6gcgQTdVFkkQ5pUKVj6FJSnIo8FYMDVmL9Py7Sb5p8KQbi3Kwed4KkoHr7ndzMv1c YeYA== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOGaf0yJVW" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 47.3.4 DYNA|AUTH) with ESMTPSA id V00800wB1IwBnxf (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Tue, 1 Dec 2020 19:58:11 +0100 (CET) From: Bruno Haible To: bug-gnulib@gnu.org Subject: Re: Issues with posix functions on modern macOS/Xcode Date: Tue, 01 Dec 2020 19:58:07 +0100 Message-ID: <2335880.Hj2sta0Lcv@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-193-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Received-SPF: none client-ip=85.215.255.24; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin =?ISO-8859-1?Q?Storsj=F6?= Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Martin Storsj=F6 wrote: > This same bit does succeed on x86_64 though - it looks like=20 > gnulib/lib/vma-iter.c has a macos specific arch check like this: >=20 > # if defined __ppc64__ || defined __x86_64__ >=20 > This probably needs to be amended with "|| defined __aarch64__". Done: 2020-12-01 Bruno Haible vma-iter: Add support for macOS11/arm64. Patch suggested by Hill Ma in and by Martin Storsj=F6 in . * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions. diff --git a/lib/vma-iter.c b/lib/vma-iter.c index 10ccda4..5e5acf8 100644 =2D-- a/lib/vma-iter.c +++ b/lib/vma-iter.c @@ -1333,7 +1333,7 @@ vma_iterate (vma_iterate_callback_fn callback, void *= data) In 64-bit processes, we could use vm_region_64 or mach_vm_region. I choose vm_region_64 because it uses the same types as vm_region, resulting in less conditional code. */ =2D# if defined __ppc64__ || defined __x86_64__ +# if defined __aarch64__ || defined __ppc64__ || defined __x86_64__ struct vm_region_basic_info_64 info; mach_msg_type_number_t info_count =3D VM_REGION_BASIC_INFO_COUNT_64; =20