From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 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 814F01F47C for ; Fri, 13 Jan 2023 20:17:51 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=cs.ucla.edu header.i=@cs.ucla.edu header.a=rsa-sha256 header.s=78364E5A-2AF3-11ED-87FA-8298ECA2D365 header.b=KJoicRmB; dkim-atps=neutral Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGQUH-0002Ia-G1; Fri, 13 Jan 2023 15:17:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGQUG-0002Hr-7y for bug-gnulib@gnu.org; Fri, 13 Jan 2023 15:17:16 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGQUE-0001Xm-PC for bug-gnulib@gnu.org; Fri, 13 Jan 2023 15:17:15 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 660B3160084 for ; Fri, 13 Jan 2023 12:17:13 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id fiVhTEu7CC6Y; Fri, 13 Jan 2023 12:17:12 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 91F9F160081; Fri, 13 Jan 2023 12:17:12 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu 91F9F160081 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1673641032; bh=sPL0DMyFSuU6mzRF3ilqteSUyx7F0YYrv6o3yjEQ110=; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type: Content-Transfer-Encoding; b=KJoicRmBOJnlOsRsHEPyIYN71evZ9dRxmAv8LPVDC25CSxEhg7SGDbFOxiNciGhRx 1mNu/XQLkYNgorHHalTIsMusxFeWliIbkHsi2jn5XFDdGvSPAVimB4P67nVvYVQtKL WMsUWdMuSmpt0RleJKctPMUisliFGANJRIsoBvvE= X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 6f7LLboz4jtk; Fri, 13 Jan 2023 12:17:12 -0800 (PST) Received: from localhost.localdomain (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 6A03216007E; Fri, 13 Jan 2023 12:17:12 -0800 (PST) From: Paul Eggert To: bug-gnulib@gnu.org Cc: Paul Eggert Subject: [PATCH 2/4] =?UTF-8?q?Don=E2=80=99t=20use=20alloc=5Fsize=20with?= =?UTF-8?q?=20xlclang=2016.1?= Date: Fri, 13 Jan 2023 12:17:02 -0800 Message-Id: <20230113201704.325290-2-eggert@cs.ucla.edu> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230113201704.325290-1-eggert@cs.ucla.edu> References: <20230113201704.325290-1-eggert@cs.ucla.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@cs.ucla.edu; helo=zimbra.cs.ucla.edu X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org * m4/gnulib-common.m4 (_GL_HAS_ATTRIBUTE): Require Clang 5 instead of 3.5 for this, to pacify xlclang 16.1.0 on AIX 7.2, which advertises itself as clang 4.1.0, and which otherwise issues warnings like =E2=80=9C./xalloc.h:141:3: warning: 1540-2990 The attribute "__attribute__((alloc_size(2, 3)))" is not supported. The attribute is ignored.=E2=80=9D when building bleeding-edge GNU grep. --- ChangeLog | 8 ++++++++ m4/gnulib-common.m4 | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 916ed890c7..866a405d4a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2023-01-13 Paul Eggert =20 + Don=E2=80=99t use alloc_size with xlclang 16.1 + * m4/gnulib-common.m4 (_GL_HAS_ATTRIBUTE): Require Clang 5 instead + of 3.5 for this, to pacify xlclang 16.1.0 on AIX 7.2, which + advertises itself as clang 4.1.0, and which otherwise issues + warnings like =E2=80=9C./xalloc.h:141:3: warning: 1540-2990 The attribu= te + "__attribute__((alloc_size(2, 3)))" is not supported. The + attribute is ignored.=E2=80=9D when building bleeding-edge GNU grep. + localename: -Wtautological-pointer-compare Problem found by xlclang 16.1 on AIX 7.2. * lib/localename.c (duplocale, freelocale): diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index 26239caa2b..2db3376b01 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 @@ -71,7 +71,7 @@ AC_DEFUN([gl_COMMON_BODY], [ && (!defined __clang_minor__ \ || (defined __apple_build_version__ \ ? 6000000 <=3D __apple_build_version__ \ - : 3 < __clang_major__ + (5 <=3D __clang_minor__)))) + : 5 <=3D __clang_major__))) # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__) #else # define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr --=20 2.37.2