From patchwork Wed May 1 09:23:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Chestnykh X-Patchwork-Id: 1930094 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (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 4VTs8M0hzDz1ydT for ; Wed, 1 May 2024 19:24:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 46F126059C; Wed, 1 May 2024 09:24:15 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id unll-XCWR6py; Wed, 1 May 2024 09:24:14 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 520E6605A5 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 520E6605A5; Wed, 1 May 2024 09:24:14 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 009B61BF3A3 for ; Wed, 1 May 2024 09:24:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id E1D2A605A5 for ; Wed, 1 May 2024 09:24:12 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id V5NnPAoD-kdc for ; Wed, 1 May 2024 09:24:12 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::134; helo=mail-lf1-x134.google.com; envelope-from=dm.chestnykh@gmail.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org C6EB86059C DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org C6EB86059C Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by smtp3.osuosl.org (Postfix) with ESMTPS id C6EB86059C for ; Wed, 1 May 2024 09:24:11 +0000 (UTC) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-5191b61cad3so1591622e87.2 for ; Wed, 01 May 2024 02:24:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714555449; x=1715160249; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YDfctzUgXUSI8Uy2PutedPSIm9GGDGSl5AR/rndB4ds=; b=mhIGc1wGWb+h8SjaaR1grAgw/pTGzhNZ/DTahitesycw1FLGZHewN6Gfmmr//IVDZk wz3DWDaX9LdMXvEMGb9YG0FdDFpkB2QwVSu9ZTEQZfUxk5h/YFf+hSBZrg3wW+wXLhcR T+RVnPLHSaA/0E1TJmdsW/eZfcZooFy6FlePjx7PDWXHSIuaIoxu+DJx1xGMLlUCm8KZ mvVKT7e7D1EGTBKB2zXXPkn0otX9ly/44zvj6anZ2O/fQLYlQMk73JJhpNtZbP69feuw ut4pgZ/5Em8QlaZUGiyj5TOmncuCvcaRhBI/9LGov4UeARJxMDbjs9QXYIqoLGeryAHY RiBw== X-Gm-Message-State: AOJu0YynqFHuELf/h7OYL62braK1ET2m/rth+bxBrlERp3uMmi1LuZq/ PVwD7htdEEJlhCFRL8aDSeDDoJEV0nPjZbk6iqtChFsQUOUVBKWzXxmawlnW X-Google-Smtp-Source: AGHT+IHI+T+gy3qYgLGtEx2nijHguqOb3K0gDxYrMexxgKMQZjnPxegHSpC0JhzTE831OttgN9yY+g== X-Received: by 2002:a2e:bc10:0:b0:2e1:9b2f:d47e with SMTP id b16-20020a2ebc10000000b002e19b2fd47emr108388ljf.4.1714555448749; Wed, 01 May 2024 02:24:08 -0700 (PDT) Received: from localhost.localdomain (109-252-38-243.nat.spd-mgts.ru. [109.252.38.243]) by smtp.gmail.com with ESMTPSA id s23-20020a2e81d7000000b002dfbff5667csm1446410ljg.52.2024.05.01.02.24.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 02:24:08 -0700 (PDT) From: Dmitry Chestnykh To: buildroot@buildroot.org Date: Wed, 1 May 2024 12:23:26 +0300 Message-ID: <20240501092328.323236-1-dm.chestnykh@gmail.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714555449; x=1715160249; darn=buildroot.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=YDfctzUgXUSI8Uy2PutedPSIm9GGDGSl5AR/rndB4ds=; b=P5mAFybzvpq4vWcILEyOKNpUvs6E1GR4n1gthIaZQz2EtweULWhoTWvi3bnJXalTEe RAy9TuJAixKnHi+XJnTBecNkACtMoZffSZpp1SBBcRwKrFgSRnZPIYbIc6o5GBkMkzMq I6m7M4Sr/NQ5m2FLljt+qBt9ltdgd+PwPv5awJ8v7w1D+9uh0A0HzZIBMly3JwLQ40l8 8a7uK6oJE1dUVWtObas1c4YSsKHUA/jqS2ow6K3cIdra3yNHTJAzTmi/aWOq19Yk3DKs /kwUYelotVamTWtpW3YgxqwsEFI5TDyAp1usqenUZeapVYLD6GW8qfzPmipaYMtvuDwG 2nJw== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=P5mAFybz Subject: [Buildroot] [PATCH 1/3] package/uclibc: Bump to 1.0.48. X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dmitry Chestnykh Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" In 1.0.48 release uClibc-ng has provided the fix for SPARC related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98784 Signed-off-by: Dmitry Chestnykh --- package/uclibc/uclibc.hash | 4 ++-- package/uclibc/uclibc.mk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package/uclibc/uclibc.hash b/package/uclibc/uclibc.hash index a10ceab54c..571bb7333c 100644 --- a/package/uclibc/uclibc.hash +++ b/package/uclibc/uclibc.hash @@ -1,4 +1,4 @@ -# From https://downloads.uclibc-ng.org/releases/1.0.47/uClibc-ng-1.0.47.tar.xz.sha256 -sha256 29a4d684a06da344ee3ee09acc2ca7649d592ae3ff848f698145c46def05efcb uClibc-ng-1.0.47.tar.xz +# From https://downloads.uclibc-ng.org/releases/1.0.47/uClibc-ng-1.0.48.tar.xz.sha256 +sha256 3bf5fc6cc5cbc454b6c478424755c6f71e7c15578a2c966f02606aa5c5596e21 uClibc-ng-1.0.48.tar.xz # Locally calculated sha256 6095e9ffa777dd22839f7801aa845b31c9ed07f3d6bf8a26dc5d2dec8ccc0ef3 COPYING.LIB diff --git a/package/uclibc/uclibc.mk b/package/uclibc/uclibc.mk index a7b18133ff..9593e18d45 100644 --- a/package/uclibc/uclibc.mk +++ b/package/uclibc/uclibc.mk @@ -4,7 +4,7 @@ # ################################################################################ -UCLIBC_VERSION = 1.0.47 +UCLIBC_VERSION = 1.0.48 UCLIBC_SOURCE = uClibc-ng-$(UCLIBC_VERSION).tar.xz UCLIBC_SITE = https://downloads.uclibc-ng.org/releases/$(UCLIBC_VERSION) UCLIBC_LICENSE = LGPL-2.1+ From patchwork Wed May 1 09:23:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Chestnykh X-Patchwork-Id: 1930095 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (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 4VTs8t285lz1ydT for ; Wed, 1 May 2024 19:24:46 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id C2C6A6059C; Wed, 1 May 2024 09:24:44 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id gd2c0uDKueWH; Wed, 1 May 2024 09:24:44 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org CA34F607E3 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id CA34F607E3; Wed, 1 May 2024 09:24:43 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 822361BF3A3 for ; Wed, 1 May 2024 09:24:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 6E76B40677 for ; Wed, 1 May 2024 09:24:41 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id PLuJkxkfZVE9 for ; Wed, 1 May 2024 09:24:40 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::136; helo=mail-lf1-x136.google.com; envelope-from=dm.chestnykh@gmail.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org 249B440360 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 249B440360 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by smtp4.osuosl.org (Postfix) with ESMTPS id 249B440360 for ; Wed, 1 May 2024 09:24:39 +0000 (UTC) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-51d9af6bf36so504270e87.3 for ; Wed, 01 May 2024 02:24:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714555477; x=1715160277; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vwKPFkpkPJf1MGT4CQJFqVP3qNR6bVa4AGuQi3n62Q8=; b=ZxE+5ZbEyK8ax7ZRljGk4o4zPzmvKCMSX5n9nBUwa5tyM3KCSMyjFCy8Ldnmi2MVaZ MowA7pqqny4TUNDG/ugivk2X+0TmRYFJVlabL2WdHvBDeTpxq2qw4wxlVAabLC09OydL 0xvMRJvmsJCT1Q9FypvKfLPkTqX/PziB3I/gG1k38eHIA08oVF6ll4dxlKSC+sFY2jYK yGYD2i03LuJZ7mqX3pdNfEuDAYNAKSMLRwClXc5XgitAhACWGbGGKnp0MEdQlMP6Vf0N ox7FCnkgCqyPhPWdyB5Ey4BQRORX+XgE/tSBEXYqqWxETK1bz/YOo3WjDZnEaGSWqm7L 2pCg== X-Gm-Message-State: AOJu0Yx0XpiPX8GaQSHu35B7n1j+e40EgF5T/LViceRD8sk5a55PUvrg fgGEK6RWjkAvWNskyqOMI6AXeCLFVbxInjVAcWiJAqIhtotOX1vUZW6Vrok4 X-Google-Smtp-Source: AGHT+IEQukyjJQGJPHjNItjQLzge3KgaIl29oCGCL/IhzAgGyZQDfx6GbXXjp7jsGkF7OF5Nm4EnAA== X-Received: by 2002:a2e:8004:0:b0:2de:1218:af30 with SMTP id j4-20020a2e8004000000b002de1218af30mr1376014ljg.1.1714555477170; Wed, 01 May 2024 02:24:37 -0700 (PDT) Received: from localhost.localdomain (109-252-38-243.nat.spd-mgts.ru. [109.252.38.243]) by smtp.gmail.com with ESMTPSA id s23-20020a2e81d7000000b002dfbff5667csm1446410ljg.52.2024.05.01.02.24.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 02:24:36 -0700 (PDT) From: Dmitry Chestnykh To: buildroot@buildroot.org Date: Wed, 1 May 2024 12:23:27 +0300 Message-ID: <20240501092328.323236-2-dm.chestnykh@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240501092328.323236-1-dm.chestnykh@gmail.com> References: <20240501092328.323236-1-dm.chestnykh@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714555477; x=1715160277; darn=buildroot.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vwKPFkpkPJf1MGT4CQJFqVP3qNR6bVa4AGuQi3n62Q8=; b=nVldxBvuCbRkC4096t2MVcgwab7bx/F9EJ9Xck40ad3SQFbTEHTDyF8umSAeRWo066 e9NIX71PgeiV5ijIIa+YcF7cjoIxnHL78o4x8OkBp53DOV4n0QSTawd3orfiyXA57sOy shFFF2PWB04q9wF4ziRvRo1Y06JifbX8mQPIjGSAnC1cCFtv0EbIEWAMjwpceFx32Mp0 BC+C/9e5JbwgzXGT7OjAJR9e2VRu+gqu1ff/v8LTktLjI53gu05VlozeCRpklu7iRJXo NXIEXiDr4upS3bbQ1AHUqS0URn8NB9Y1RrrWoG7UHFAxsLxX5vsZfupI6jvwupSgFxDp 3qXg== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=nVldxBvu Subject: [Buildroot] [PATCH 2/3] configs/qemu_sparc_ss10_defconfig: Restore. X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dmitry Chestnykh Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" With uClibc-ng-1.0.48 we can restore this config because now sparc systems work without reverting GCC commits. Signed-off-by: Dmitry Chestnykh Tested-by: Waldemar Brodkorb --- arch/Config.in | 5 ----- configs/qemu_sparc_ss10_defconfig | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 configs/qemu_sparc_ss10_defconfig diff --git a/arch/Config.in b/arch/Config.in index 9912f9fce6..e7349e83ae 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -216,11 +216,6 @@ config BR2_sh config BR2_sparc bool "SPARC" select BR2_USE_MMU - # uClibc-ng broken on sparc due to recent gcc changes - # that need to be reverted since gcc 8.4, 9.3 and 10.1. - # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98784 - # gcc <= 10.x has been removed from Buildroot. - select BR2_ARCH_HAS_NO_TOOLCHAIN_BUILDROOT help SPARC (from Scalable Processor Architecture) is a RISC instruction set architecture (ISA) developed by Sun diff --git a/configs/qemu_sparc_ss10_defconfig b/configs/qemu_sparc_ss10_defconfig new file mode 100644 index 0000000000..a8e3df9180 --- /dev/null +++ b/configs/qemu_sparc_ss10_defconfig @@ -0,0 +1,28 @@ +# Architecture +BR2_sparc=y +BR2_sparc_v8=y + +# System +BR2_SYSTEM_DHCP="eth0" + +# Filesystem +BR2_TARGET_ROOTFS_EXT2=y +# BR2_TARGET_ROOTFS_TAR is not set + +# Image +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/qemu/post-image.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_DEFCONFIG)" + +# Linux headers same as kernel +BR2_PACKAGE_HOST_LINUX_HEADERS_AS_KERNEL=y + +# Linux kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.8.6" +BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/sparc-ss10/linux.config" + +# host-qemu for gitlab testing +BR2_PACKAGE_HOST_QEMU=y +BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE=y From patchwork Wed May 1 09:23:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Chestnykh X-Patchwork-Id: 1930096 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (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 4VTs974jRZz1ydT for ; Wed, 1 May 2024 19:24:59 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id CBD8060B73; Wed, 1 May 2024 09:24:57 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id ba4v9tC7tgvS; Wed, 1 May 2024 09:24:55 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 470D260B65 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 470D260B65; Wed, 1 May 2024 09:24:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 193D11BF3A3 for ; Wed, 1 May 2024 09:24:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 0044340677 for ; Wed, 1 May 2024 09:24:54 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id TYI6Ox_tIAOH for ; Wed, 1 May 2024 09:24:52 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::230; helo=mail-lj1-x230.google.com; envelope-from=dm.chestnykh@gmail.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org 3AFE440360 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 3AFE440360 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by smtp4.osuosl.org (Postfix) with ESMTPS id 3AFE440360 for ; Wed, 1 May 2024 09:24:52 +0000 (UTC) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2d874b89081so15490411fa.0 for ; Wed, 01 May 2024 02:24:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714555490; x=1715160290; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zNBBwvbWghnrTpKHy8Rzy86rwDvrF2y6RlcEWfiUu+8=; b=PykEMudQnKrAuddt0xEPYxVye3kxSmhyMYglz6p7JmhjWd4wL/whYLst1dDcwRDu8Q 8Lo8mG+bi0KdX1Y751BF5/wejb8Af+7L7jABKbRUyfzS+7oa2D9Calzb7KTJbD2hqd0y BQFrQDcg7rhI6p2UkrU0H+GvUxWGSsN/5203ONhGeRhxdQQBXtgytrwysNIev8XBDHmF sQ++Z5LuEAlPv3kI4Ii9a6jDCuJuaP1Amc8IQjV8eIkYWFSbhJgev+d3UeIaRJCFQG4G ShQX1Bnv/WSbjJNQdhQRA2yHAeHQS4GXkevBhWi1V8c/KQqU4cgJVleFMWhAa3oGcO/z OL5Q== X-Gm-Message-State: AOJu0Yz/oU7vJXJKDdFKP/uCWTmzUC1Ap432nulhQT5bNrII8XnjBUBN 3/2l2um+/jFXRwAoJ3vhRldWvzibdAkC/b7Rgphn5f7hUrFfo+QvmWyS6HlE X-Google-Smtp-Source: AGHT+IFnapzqBpaoCq7RXDUtMaECpW6WqW0wpM36ezPPLBJrrNxBktv7U9dwlNW4Quy27OKytrSWOQ== X-Received: by 2002:a2e:8186:0:b0:2dd:374d:724e with SMTP id e6-20020a2e8186000000b002dd374d724emr1345209ljg.1.1714555489599; Wed, 01 May 2024 02:24:49 -0700 (PDT) Received: from localhost.localdomain (109-252-38-243.nat.spd-mgts.ru. [109.252.38.243]) by smtp.gmail.com with ESMTPSA id s23-20020a2e81d7000000b002dfbff5667csm1446410ljg.52.2024.05.01.02.24.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 02:24:49 -0700 (PDT) From: Dmitry Chestnykh To: buildroot@buildroot.org Date: Wed, 1 May 2024 12:23:28 +0300 Message-ID: <20240501092328.323236-3-dm.chestnykh@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240501092328.323236-1-dm.chestnykh@gmail.com> References: <20240501092328.323236-1-dm.chestnykh@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714555490; x=1715160290; darn=buildroot.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zNBBwvbWghnrTpKHy8Rzy86rwDvrF2y6RlcEWfiUu+8=; b=ffEiTuNPLtH0m3nVcsKP1eXDg7g85uI70qdHJRDOah5MjP1e6MjQKAkp3MsCkbqLkV U0ZkCnUUlSVItwaAwniqNr3k3mNknQWWHug1FAnt3aLniOv3ecGAcIVRyPoiNiB2XW1U 1gq7K7YL1dkYR0u5nJD76PJW88395FWLqdCyOzrcGoATzlBEkYEpNEQM8LUgXQD4b94q YnBHbscmf2oe5u5zkZYLSEKHqC3uV6EhqHanUqC1g0rqRipJQe0lhW21DjEZN4EDZl+0 lN6vTh4v4cTO0pRoru4UQs9J686TL/5yuPQQncJmY0zCaM8eFcoiOs5RVjaQTdxnpcRA 91IA== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=ffEiTuNP Subject: [Buildroot] [PATCH 3/3] package/gcc: Remove unneeded patch. X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dmitry Chestnykh Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" sparc systems work with uClibc-ng-1.0.48. Signed-off-by: Dmitry Chestnykh Tested-by: Waldemar Brodkorb --- ...get-92095-internal-error-with-O1-mcp.patch | 322 ------------------ 1 file changed, 322 deletions(-) delete mode 100644 package/gcc/8.4.0/0002-Revert-re-PR-target-92095-internal-error-with-O1-mcp.patch diff --git a/package/gcc/8.4.0/0002-Revert-re-PR-target-92095-internal-error-with-O1-mcp.patch b/package/gcc/8.4.0/0002-Revert-re-PR-target-92095-internal-error-with-O1-mcp.patch deleted file mode 100644 index ec2bf8835d..0000000000 --- a/package/gcc/8.4.0/0002-Revert-re-PR-target-92095-internal-error-with-O1-mcp.patch +++ /dev/null @@ -1,322 +0,0 @@ -From bb9b71752267444b4360442b89129bfc0ae938d3 Mon Sep 17 00:00:00 2001 -From: Romain Naour -Date: Wed, 20 Jan 2021 23:06:07 +0100 -Subject: [PATCH] Revert "re PR target/92095 (internal error with -O1 - -mcpu=niagara2 -fPIE)" - -This reverts commit 3fcce773f0f914c0499b130c6e9efa0e45ee54a0. - -Building the Buildroot defconfig qemu_sparc_ss10_defconfig using -gcc 8.4, 9.3 and 10 produce a broken rootfs that trigger illegal -instruction messages. - -gcc 8.3, 9.2 are the latest working gcc version. -git bisect between gcc 8.4 and 8.4 allowed to identify -the commit that introcuce the regression. - -Reverting this patch allowed to produce a working rootfs. - -Signed-off-by: Romain Naour -Cc: Eric Botcazou ---- - gcc/config/sparc/sparc-protos.h | 1 - - gcc/config/sparc/sparc.c | 121 +++++++----------- - gcc/config/sparc/sparc.md | 5 +- - .../gcc.c-torture/compile/20191108-1.c | 14 -- - gcc/testsuite/gcc.target/sparc/overflow-3.c | 2 +- - gcc/testsuite/gcc.target/sparc/overflow-4.c | 2 +- - gcc/testsuite/gcc.target/sparc/overflow-5.c | 2 +- - 7 files changed, 53 insertions(+), 94 deletions(-) - delete mode 100644 gcc/testsuite/gcc.c-torture/compile/20191108-1.c - -diff --git a/gcc/config/sparc/sparc-protos.h b/gcc/config/sparc/sparc-protos.h -index b3f73c2f2bf..71a067e871c 100644 ---- a/gcc/config/sparc/sparc-protos.h -+++ b/gcc/config/sparc/sparc-protos.h -@@ -69,7 +69,6 @@ extern void sparc_split_reg_mem (rtx, rtx, machine_mode); - extern void sparc_split_mem_reg (rtx, rtx, machine_mode); - extern int sparc_split_reg_reg_legitimate (rtx, rtx); - extern void sparc_split_reg_reg (rtx, rtx, machine_mode); --extern const char *output_load_pcrel_sym (rtx *); - extern const char *output_ubranch (rtx, rtx_insn *); - extern const char *output_cbranch (rtx, rtx, int, int, int, rtx_insn *); - extern const char *output_return (rtx_insn *); -diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c -index 73032d33596..db1b428db90 100644 ---- a/gcc/config/sparc/sparc.c -+++ b/gcc/config/sparc/sparc.c -@@ -4200,6 +4200,13 @@ eligible_for_sibcall_delay (rtx_insn *trial) - static bool - sparc_cannot_force_const_mem (machine_mode mode, rtx x) - { -+ /* After IRA has run in PIC mode, it is too late to put anything into the -+ constant pool if the PIC register hasn't already been initialized. */ -+ if ((lra_in_progress || reload_in_progress) -+ && flag_pic -+ && !crtl->uses_pic_offset_table) -+ return true; -+ - switch (GET_CODE (x)) - { - case CONST_INT: -@@ -4235,11 +4242,9 @@ sparc_cannot_force_const_mem (machine_mode mode, rtx x) - } - - /* Global Offset Table support. */ --static GTY(()) rtx got_symbol_rtx = NULL_RTX; --static GTY(()) rtx got_register_rtx = NULL_RTX; - static GTY(()) rtx got_helper_rtx = NULL_RTX; -- --static GTY(()) bool got_helper_needed = false; -+static GTY(()) rtx got_register_rtx = NULL_RTX; -+static GTY(()) rtx got_symbol_rtx = NULL_RTX; - - /* Return the SYMBOL_REF for the Global Offset Table. */ - -@@ -4252,6 +4257,27 @@ sparc_got (void) - return got_symbol_rtx; - } - -+#ifdef HAVE_GAS_HIDDEN -+# define USE_HIDDEN_LINKONCE 1 -+#else -+# define USE_HIDDEN_LINKONCE 0 -+#endif -+ -+static void -+get_pc_thunk_name (char name[32], unsigned int regno) -+{ -+ const char *reg_name = reg_names[regno]; -+ -+ /* Skip the leading '%' as that cannot be used in a -+ symbol name. */ -+ reg_name += 1; -+ -+ if (USE_HIDDEN_LINKONCE) -+ sprintf (name, "__sparc_get_pc_thunk.%s", reg_name); -+ else -+ ASM_GENERATE_INTERNAL_LABEL (name, "LADDPC", regno); -+} -+ - /* Wrapper around the load_pcrel_sym{si,di} patterns. */ - - static rtx -@@ -4271,78 +4297,30 @@ gen_load_pcrel_sym (rtx op0, rtx op1, rtx op2) - return insn; - } - --/* Output the load_pcrel_sym{si,di} patterns. */ -- --const char * --output_load_pcrel_sym (rtx *operands) --{ -- if (flag_delayed_branch) -- { -- output_asm_insn ("sethi\t%%hi(%a1-4), %0", operands); -- output_asm_insn ("call\t%a2", operands); -- output_asm_insn (" add\t%0, %%lo(%a1+4), %0", operands); -- } -- else -- { -- output_asm_insn ("sethi\t%%hi(%a1-8), %0", operands); -- output_asm_insn ("add\t%0, %%lo(%a1-4), %0", operands); -- output_asm_insn ("call\t%a2", operands); -- output_asm_insn (" nop", NULL); -- } -- -- if (operands[2] == got_helper_rtx) -- got_helper_needed = true; -- -- return ""; --} -- --#ifdef HAVE_GAS_HIDDEN --# define USE_HIDDEN_LINKONCE 1 --#else --# define USE_HIDDEN_LINKONCE 0 --#endif -- - /* Emit code to load the GOT register. */ - - void - load_got_register (void) - { -- rtx insn; -+ if (!got_register_rtx) -+ got_register_rtx = gen_rtx_REG (Pmode, GLOBAL_OFFSET_TABLE_REGNUM); - - if (TARGET_VXWORKS_RTP) -- { -- if (!got_register_rtx) -- got_register_rtx = pic_offset_table_rtx; -- -- insn = gen_vxworks_load_got (); -- } -+ emit_insn (gen_vxworks_load_got ()); - else - { -- if (!got_register_rtx) -- got_register_rtx = gen_rtx_REG (Pmode, GLOBAL_OFFSET_TABLE_REGNUM); -- - /* The GOT symbol is subject to a PC-relative relocation so we need a - helper function to add the PC value and thus get the final value. */ - if (!got_helper_rtx) - { - char name[32]; -- -- /* Skip the leading '%' as that cannot be used in a symbol name. */ -- if (USE_HIDDEN_LINKONCE) -- sprintf (name, "__sparc_get_pc_thunk.%s", -- reg_names[REGNO (got_register_rtx)] + 1); -- else -- ASM_GENERATE_INTERNAL_LABEL (name, "LADDPC", -- REGNO (got_register_rtx)); -- -+ get_pc_thunk_name (name, GLOBAL_OFFSET_TABLE_REGNUM); - got_helper_rtx = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (name)); - } - -- insn -- = gen_load_pcrel_sym (got_register_rtx, sparc_got (), got_helper_rtx); -+ emit_insn (gen_load_pcrel_sym (got_register_rtx, sparc_got (), -+ got_helper_rtx)); - } -- -- emit_insn (insn); - } - - /* Ensure that we are not using patterns that are not OK with PIC. */ -@@ -5494,7 +5472,7 @@ save_local_or_in_reg_p (unsigned int regno, int leaf_function) - return true; - - /* GOT register (%l7) if needed. */ -- if (got_register_rtx && regno == REGNO (got_register_rtx)) -+ if (regno == GLOBAL_OFFSET_TABLE_REGNUM && got_register_rtx) - return true; - - /* If the function accesses prior frames, the frame pointer and the return -@@ -12475,9 +12453,10 @@ static void - sparc_file_end (void) - { - /* If we need to emit the special GOT helper function, do so now. */ -- if (got_helper_needed) -+ if (got_helper_rtx) - { - const char *name = XSTR (got_helper_rtx, 0); -+ const char *reg_name = reg_names[GLOBAL_OFFSET_TABLE_REGNUM]; - #ifdef DWARF2_UNWIND_INFO - bool do_cfi; - #endif -@@ -12514,22 +12493,17 @@ sparc_file_end (void) - #ifdef DWARF2_UNWIND_INFO - do_cfi = dwarf2out_do_cfi_asm (); - if (do_cfi) -- output_asm_insn (".cfi_startproc", NULL); -+ fprintf (asm_out_file, "\t.cfi_startproc\n"); - #endif - if (flag_delayed_branch) -- { -- output_asm_insn ("jmp\t%%o7+8", NULL); -- output_asm_insn (" add\t%%o7, %0, %0", &got_register_rtx); -- } -+ fprintf (asm_out_file, "\tjmp\t%%o7+8\n\t add\t%%o7, %s, %s\n", -+ reg_name, reg_name); - else -- { -- output_asm_insn ("add\t%%o7, %0, %0", &got_register_rtx); -- output_asm_insn ("jmp\t%%o7+8", NULL); -- output_asm_insn (" nop", NULL); -- } -+ fprintf (asm_out_file, "\tadd\t%%o7, %s, %s\n\tjmp\t%%o7+8\n\t nop\n", -+ reg_name, reg_name); - #ifdef DWARF2_UNWIND_INFO - if (do_cfi) -- output_asm_insn (".cfi_endproc", NULL); -+ fprintf (asm_out_file, "\t.cfi_endproc\n"); - #endif - } - -@@ -13035,10 +13009,7 @@ sparc_init_pic_reg (void) - edge entry_edge; - rtx_insn *seq; - -- /* In PIC mode, we need to always initialize the PIC register if optimization -- is enabled, because we are called from IRA and LRA may later force things -- to the constant pool for optimization purposes. */ -- if (!flag_pic || (!crtl->uses_pic_offset_table && !optimize)) -+ if (!crtl->uses_pic_offset_table) - return; - - start_sequence (); -diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md -index 468e2cc5d3b..25134bd1148 100644 ---- a/gcc/config/sparc/sparc.md -+++ b/gcc/config/sparc/sparc.md -@@ -1601,7 +1601,10 @@ - (clobber (reg:P O7_REG))] - "REGNO (operands[0]) == INTVAL (operands[3])" - { -- return output_load_pcrel_sym (operands); -+ if (flag_delayed_branch) -+ return "sethi\t%%hi(%a1-4), %0\n\tcall\t%a2\n\t add\t%0, %%lo(%a1+4), %0"; -+ else -+ return "sethi\t%%hi(%a1-8), %0\n\tadd\t%0, %%lo(%a1-4), %0\n\tcall\t%a2\n\t nop"; - } - [(set (attr "type") (const_string "multi")) - (set (attr "length") -diff --git a/gcc/testsuite/gcc.c-torture/compile/20191108-1.c b/gcc/testsuite/gcc.c-torture/compile/20191108-1.c -deleted file mode 100644 -index 7929751bb06..00000000000 ---- a/gcc/testsuite/gcc.c-torture/compile/20191108-1.c -+++ /dev/null -@@ -1,14 +0,0 @@ --/* PR target/92095 */ --/* Testcase by Sergei Trofimovich */ -- --typedef union { -- double a; -- int b[2]; --} c; -- --double d(int e) --{ -- c f; -- (&f)->b[0] = 15728640; -- return e ? -(&f)->a : (&f)->a; --} -diff --git a/gcc/testsuite/gcc.target/sparc/overflow-3.c b/gcc/testsuite/gcc.target/sparc/overflow-3.c -index 18253bb6e5e..8cb24f52f7b 100644 ---- a/gcc/testsuite/gcc.target/sparc/overflow-3.c -+++ b/gcc/testsuite/gcc.target/sparc/overflow-3.c -@@ -1,5 +1,5 @@ - /* { dg-do compile } */ --/* { dg-options "-O -fno-pie" } */ -+/* { dg-options "-O" } */ - /* { dg-require-effective-target lp64 } */ - - #include -diff --git a/gcc/testsuite/gcc.target/sparc/overflow-4.c b/gcc/testsuite/gcc.target/sparc/overflow-4.c -index fb30877efb9..868edea2b9e 100644 ---- a/gcc/testsuite/gcc.target/sparc/overflow-4.c -+++ b/gcc/testsuite/gcc.target/sparc/overflow-4.c -@@ -1,5 +1,5 @@ - /* { dg-do compile } */ --/* { dg-options "-O -fno-pie -mno-vis3" } */ -+/* { dg-options "-O -mno-vis3" } */ - /* { dg-require-effective-target lp64 } */ - - #include -diff --git a/gcc/testsuite/gcc.target/sparc/overflow-5.c b/gcc/testsuite/gcc.target/sparc/overflow-5.c -index 509d957715d..501ce04f7a1 100644 ---- a/gcc/testsuite/gcc.target/sparc/overflow-5.c -+++ b/gcc/testsuite/gcc.target/sparc/overflow-5.c -@@ -1,5 +1,5 @@ - /* { dg-do compile } */ --/* { dg-options "-O -fno-pie -mvis3" } */ -+/* { dg-options "-O -mvis3" } */ - /* { dg-require-effective-target lp64 } */ - - #include --- -2.25.4 -