From patchwork Thu Nov 24 12:30:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Clifton X-Patchwork-Id: 25494 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3366479wrr; Thu, 24 Nov 2022 04:30:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ZBtUOeSHC7jtPYPdtf7pz4/pfk9AKZc/1CoWYAfSfuY8GmEDX577tbD9tkEQRkYzGZYXU X-Received: by 2002:a05:6402:4008:b0:458:dd63:e339 with SMTP id d8-20020a056402400800b00458dd63e339mr12064677eda.81.1669293026082; Thu, 24 Nov 2022 04:30:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669293026; cv=none; d=google.com; s=arc-20160816; b=XdXuHWO3onHQ/fEV6HOgJYmB53x84Pnewi8daxUmsUrfQjbD1w/rrbS0grfYZwFy+R q1HssA/6vio+IziqDbfCFqgwFubkA1OxeKrDt5lASDPi5NDhV2zROLERWRyV+6ks8i5p YbmzzQDnZl+bAg/Dkh3SCtI/08fQOIhlzOcg0bb7oKCY2chyI9cJAd71aNgqLBZXLEaX nosuh/TTa6TaVHlgcEr21JAiDwmg3HX3GeO5ubYs1NMwCAKoKDrfbTmjtJYSikXA+D6v GBboScdwYu9kuZQvgLL4wzfCF1VGw3cCmwxWqE0ywGoatjv2mj/j5wyqBQjbr/Y+TfpC NSQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:mime-version :message-id:date:subject:to:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=G9HOwaarpHgk9cqbQQJSjgewBch7cxNEJhGEsiezV7o=; b=056afem6sk53u4EtKPOqfbtqMiLBVDwPl9xWbrUExI2CTVvlu8yAUibFR7505xb4Gz hWEQtvc4dd0TO16R61uw+7lYj+WWBc+VDyK6RZ0kghxjSpnIA03JOHkBK8Jbo99+ZzFk gyjaltwILBoxY4bSCsaE4XCNPf/OsCt3O6SXU5sKd8y4+/jb5S4HFP8MckQ/F9BsG0rl 6fdLVUp8K3bTJ5aWVtTgSaAF9pcUEpmNUt4+9mBAK+VTYZLC3KXyR/2e8s0WDyTl2LeW Otd5AJIvMy/2vwEBjQx08Pl/KfFRnVr6A8cSGlBd8L/98uOmB80NZnxOYQUkygtHKtyu 5YuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=gv6VHV+X; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id d14-20020a50f68e000000b00461c531d8casi919957edn.305.2022.11.24.04.30.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 04:30:26 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=gv6VHV+X; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DBBF83841889 for ; Thu, 24 Nov 2022 12:30:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DBBF83841889 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669293024; bh=G9HOwaarpHgk9cqbQQJSjgewBch7cxNEJhGEsiezV7o=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=gv6VHV+XMJ3Ecbfy8nwqaK19S9DeqPEQE/etNQPaNnVTfeTYZi8Pc5PekLSFzCuMQ i96kQSS1ufMR8huJcuhw3EzUneGlF8boafuHzVQjVDeHROCpBkxrWsWAYcgQA/MRWz IWhZo3zRz+esZOPihN31MKnL9OUSdM+xYQQrXd10= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org 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 948BD384F6FB for ; Thu, 24 Nov 2022 12:30:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 948BD384F6FB Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-645-H3aibmMuOFG6jupv7bb-XA-1; Thu, 24 Nov 2022 07:30:15 -0500 X-MC-Unique: H3aibmMuOFG6jupv7bb-XA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B5A34381458B for ; Thu, 24 Nov 2022 12:30:14 +0000 (UTC) Received: from prancer.redhat.com (unknown [10.33.36.160]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6B2351731B for ; Thu, 24 Nov 2022 12:30:14 +0000 (UTC) To: binutils@sourceware.org Subject: Commit: Fix compile time warnings in conftest.c files Date: Thu, 24 Nov 2022 12:30:11 +0000 Message-ID: <874juopmb0.fsf@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Nick Clifton via Binutils From: Nick Clifton Reply-To: Nick Clifton Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750380604249203317?= X-GMAIL-MSGID: =?utf-8?q?1750380604249203317?= Hi Guys, I am applying the patch below to fix a potential compile time warning message when gas's configure script runs. In addition I have also imported Florian Weimer's patch to the libiberty sources (885b6660c17f) which does the same thing there. Together these two patches mean that the configure scripts run without generating compile time warning messages from modern versions of gcc. Cheers Nick diff --git a/gas/acinclude.m4 b/gas/acinclude.m4 index 9864abe23eb..bf6dba6825f 100644 --- a/gas/acinclude.m4 +++ b/gas/acinclude.m4 @@ -23,6 +23,7 @@ AC_DEFUN([GAS_WORKING_ASSERT], [AC_MSG_CHECKING([for working assert macro]) AC_CACHE_VAL(gas_cv_assert_ok, AC_TRY_LINK([#include +#include #include ], [ /* check for requoting problems */ static int a, b, c, d; diff --git a/gas/configure b/gas/configure index d9800f8a53d..57c1fa3557e 100755 --- a/gas/configure +++ b/gas/configure @@ -13791,6 +13791,7 @@ else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include +#include #include int main ()