From patchwork Wed May 29 10:11:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 1941148 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=lDoBSWaG; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Vq4tr39wKz20Pc for ; Wed, 29 May 2024 20:12:19 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 16A91385ED4C for ; Wed, 29 May 2024 10:12:16 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id 3BD95385E83A for ; Wed, 29 May 2024 10:11:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3BD95385E83A Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3BD95385E83A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::329 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716977517; cv=none; b=G1Qh+gweozARyoUqTZRVIauJcygskbddFE6JaT9cYufX5IqNAOLWhYGNNYXfmAM4vYih2t6PexWSMVyUnQ0Fco3yIiLQhzzYJfNm1omsFERaym5oj55vftQRJV7OSTh/4E4OBngYw5f2j9uGNk+YkhuNN0TTvnYzcM5EORimrd8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716977517; c=relaxed/simple; bh=RwrJ1Qo5oA2YUxZ2RVu9oDvBKeTnND2n2Uk9vHLrvWw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ZWKjpNMvrkZy71vmgUgzcnVc+ULaz0ovESqNitc6VpYtoPoWCAL2Td9jM+2yPWGUQti0PE1dIoAd6Jgsk99aucqNkIZ8wCzekQRry+uVA9xTLw5Ed65P8ZYypyNJvqrmBKG7AQP+gSpM0Ftbku9SsMyOYmgs1XzUun25g8waylw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4202ca70289so15969725e9.1 for ; Wed, 29 May 2024 03:11:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1716977513; x=1717582313; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=WRi+YwDxiHAWEAdfA/y2mQTmWGT5wgXKHLDCEwVBfso=; b=lDoBSWaGkAquQzD+gGFUSf+OED/pdCeDCKVhM4OILtjausMScdTWrJI93o6W/YB2er rb0OEtUPXGg0ht/apMXFG+YpVjDl89SrpOwiuuZlu2Q3Ez+Cz9hdCaansNthS4lKuboR zUNG/islSw2OwkAMyHnMyquHKhEJodE+BV+n2PWMcvXgNJ9rgm/sGEx5TvdyxdA4DAB5 2pgBNbXJ3WHH36KK3OM5nmn6bipWNYPYp5udCZ7ZReVWUSPOpFBN1ycccjlui9G5jP0v dx84bUjbuVwzzrMSwXAdhQZ/bo0vQx5vxEq8f4ifKR2Y9wu8QQP1GIvXPmceaWQpndI2 JlCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716977513; x=1717582313; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WRi+YwDxiHAWEAdfA/y2mQTmWGT5wgXKHLDCEwVBfso=; b=a5UFtaOoCWQegV8V3GfoN5MFXHTPCT3HUMS0Jc223ZMF67gETECwDQh7n1CxOhaJEz tzzXYCKnUjwt+oJoc0n8wOAD98hNVh7ss70JZZjfNoq+tAgmfSiT0Wi1a+pTj3NRBlO6 24OGuQeNrDOstV4CRyyUsU+p8oam1EAgjm83Xr3ABduRk2nNWg1A0bZTjq9+UCPII8Z/ n3CiMbvEGJH0vlMV661EmHbLyseGBpd9Z2hFEe+Liverm5WkWQxsJZYVzwWlh4Gz6ah3 VORYB9RUUcyF9qsonVP0pF96egm6Hs/VQISzp4vgb6NHoaSVVrbZE+OQMzg7Z/i+gmBE mxRg== X-Gm-Message-State: AOJu0YwJZy9OoOSyEpOgU0xMPqBAQansJwTJ/elZn2LczNkf4lqFvNEC nQXSIJJvdy4w9oY/2fVvqaFHgn9V64zh4vI38uhP4XXeI6Yzoc4ZKBvgYD6uBcd94/9ggK6xhEc = X-Google-Smtp-Source: AGHT+IHot4Cj55z4+8MpCPgAX2YanZpkRNONnR1Pj44nILutXiHVbD6WvLT2cCxdduPMS1tmCIRmbg== X-Received: by 2002:adf:ffce:0:b0:354:f802:f3a6 with SMTP id ffacd0b85a97d-355245e31b5mr9954517f8f.9.1716977513359; Wed, 29 May 2024 03:11:53 -0700 (PDT) Received: from fomalhaut.localnet ([2a01:e0a:8d5:d990:e654:e8ff:fe8f:2ce6]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3557a1c9303sm14500891f8f.88.2024.05.29.03.11.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 03:11:52 -0700 (PDT) From: Eric Botcazou X-Google-Original-From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [Ada] Fix PR ada/115270 Date: Wed, 29 May 2024 12:11:52 +0200 Message-ID: <2346842.ElGaqSPkdT@fomalhaut> MIME-Version: 1.0 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, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org This fixes the link failure of the GNAT tools on 32-bit SPARC/Linux (as well as on 32-bit PowerPC/Linux probably) coming from an incorrect binding to the 64-bit compare-and-exchange builtin. Tested by Rainer on 32-bit SPARC/Linux, applied on mainline and 14 branch. 2024-05-29 Eric Botcazou PR ada/115270 * Makefile.rtl (PowerPC/Linux): Use libgnat/s-atopri__32.ads for the 32-bit library. (SPARC/Linux): Likewise. diff --git a/gcc/ada/Makefile.rtl b/gcc/ada/Makefile.rtl index 570d0b2703d..0f5ebb87d73 100644 --- a/gcc/ada/Makefile.rtl +++ b/gcc/ada/Makefile.rtl @@ -2266,15 +2266,18 @@ ifeq ($(strip $(filter-out powerpc% linux%,$(target_cpu) $(target_os))),) system.ads