From patchwork Sat Jul 30 22:06:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Sayle X-Patchwork-Id: 56453 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 96C163853579 for ; Sat, 30 Jul 2022 22:06:28 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from server.nextmovesoftware.com (server.nextmovesoftware.com [162.254.253.69]) by sourceware.org (Postfix) with ESMTPS id 216063858418 for ; Sat, 30 Jul 2022 22:06:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 216063858418 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=nextmovesoftware.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nextmovesoftware.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nextmovesoftware.com; s=default; h=Content-Type:MIME-Version:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=waP/B5KXdj36/1+HTmUJHVtNR26dzAqgXRkUAbjwhl0=; b=PgKs5gAbsl6Ei+zTP55JRwW4tx ln5ARFyQk/ixVNaRHC8qf9IJiJQUCEznpijMV420hM57FvKNWwA+cozXvVfIwiGUXpZVwjqzXJkzs FhZwzDwkUW4dP0Ex5zZmE9fBNbSKufH1JhOrfSvAbB25VKHo08Zp0wx30BNZU6fOHqQ4euUuqL53c aTuE3fwYBdSHYppyt+QjaQHSpOYQAdgUCDU5tkWDL6JbcHUPwYTSpPS/6tzaZtTLV9fOixP47WgBf 6ol/iVcnvXHDOvHaopFzE8/fmm/+5lVUX+ALwP//Itaox0kb+NNbfWXKKGjDo3/sNIFASF8l9tZA4 CWcR78yA==; Received: from host86-169-41-119.range86-169.btcentralplus.com ([86.169.41.119]:60608 helo=Dell) by server.nextmovesoftware.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oHub5-0000G0-BJ; Sat, 30 Jul 2022 18:06:11 -0400 From: "Roger Sayle" To: "'GCC Patches'" Subject: [Ada PATCH] Update configure to check for a recent gnat Ada compiler. Date: Sat, 30 Jul 2022 23:06:09 +0100 Message-ID: <004601d8a460$940e7220$bc2b5660$@nextmovesoftware.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdikX+5HV24GlmLnTN2W7ec+8MkeXQ== Content-Language: en-gb X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server.nextmovesoftware.com X-AntiAbuse: Original Domain - gcc.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - nextmovesoftware.com X-Get-Message-Sender-Via: server.nextmovesoftware.com: authenticated_id: roger@nextmovesoftware.com X-Authenticated-Sender: server.nextmovesoftware.com: roger@nextmovesoftware.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_NONE, SPF_PASS, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 'Eric Botcazou' Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" GCC fails to bootstrap when configured with --enable-languages=all on machines that have older versions of GNAT installed as the system Ada compiler. In configure, it's not sufficient to check whether gnat is available, but whether a sufficiently recent version of GNAT is installed. This patch tweaks config/acx.m4 so that conftest.adb also contains a reference to System.CRTL.int64 as required by the current version of gcc/ada/osint.adb. This fixes the build when the system Ada is GNAT v4.8.5 (on Redhat 7) by disabling ada, but continues to work fine when the system Ada is GNAT v11.3.1. Tested in x86_64-pc-linux-gnu. Ok for mainline? 2022-07-30 Roger Sayle ChangeLog * config/acx.me (AC_PROG_GNAT): Update conftest.adb to include features required of the host gnat compiler. * configure: Regenerate. Thanks in advance, Roger diff --git a/config/acx.m4 b/config/acx.m4 index b86c4f9..bd3e7f8 100644 --- a/config/acx.m4 +++ b/config/acx.m4 @@ -396,6 +396,10 @@ AC_CHECK_TOOL(GNATMAKE, gnatmake, no) AC_CACHE_CHECK([whether compiler driver understands Ada], acx_cv_cc_gcc_supports_ada, [cat >conftest.adb <&6 else cat >conftest.adb <