From patchwork Sat Sep 26 19:13:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1371834 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=HiwtSlnd; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BzJNb3PPzz9sSt for ; Sun, 27 Sep 2020 05:13:51 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 0288A2039A; Sat, 26 Sep 2020 19:13:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S3b3lTeM4qHy; Sat, 26 Sep 2020 19:13:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 99620203DA; Sat, 26 Sep 2020 19:13:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id CD2CA1BF3E3 for ; Sat, 26 Sep 2020 19:13:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C98E584826 for ; Sat, 26 Sep 2020 19:13:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PI8smU-cIDkn for ; Sat, 26 Sep 2020 19:13:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by fraxinus.osuosl.org (Postfix) with ESMTPS id AB11C84547 for ; Sat, 26 Sep 2020 19:13:39 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id k15so7420550wrn.10 for ; Sat, 26 Sep 2020 12:13:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=phKGc/vbeWO5XRg+e1jFjd+BrlhI2D7Bg1rWq7UZmB0=; b=HiwtSlndWobNlEd37CHOsYPwnpuBIpQlmhNzXQNgoM6EsFcL2k5RLb7yzxpkyB5UxY M6BlKoz7q/5Lpal16MDCB4kCNOxN4lj0Jp2ElzUeIz1p3dnaNpuG2X+6XcAD/e9xgaV9 kuEBNPS4cSyyQrnnHFNZS2oJnUhDI0g56MEA6mstWeuOm1jf2IDcDxvQlY0SrCzVuYrV R4yn10NeH0kfMSMQa2JCkvDVmiW32XA5dgCYumZ6zmsBbRhvGmFt/NM5CZpivEnR7LsH gyGsbNpdPhx24xRrfZ8RNL+T/m458waCBc1sT3lqRjQa7qOv8D3+Hei/Ejt3+nNVfoxM Gusg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=phKGc/vbeWO5XRg+e1jFjd+BrlhI2D7Bg1rWq7UZmB0=; b=pHoJandaBHWADrxcvVlE3ZrXA6z7EQyprp38qNglR1CWyuD4c19xFHaw9j/mjxkO0i FVS4Kr96RmKKOLnGwvji9l3ucd/IpE8DPcuqeEkl95zcdRuJorocX7Zh4vijzTLw0j5k 7Fx67XUEq7EO3thqfrocNk9NXmS4Pk5EV1Dzgj6Ir6BKUkfTtS4oymOJuL0vhYTFlQxh HPvayZi7gFikVOhxOdfc223pMPbC2zNEztHoNvim8n1OLxolqyRO5X3gqEc2ktHNEc24 R0HNdlS+ucjHMFJ1t/OHi0VxXhnQ199dX70hnWI3WEtx+ieWI4ZKnV2ive8UOLZs7LJX z8BQ== X-Gm-Message-State: AOAM531xfjQ2VaKX6bJV3I7wuqGXhXLLCMSgCPDurxlH1+80w+bTRIau LPuckB6HyXhyclBBnixkSgOd5xIe66s= X-Google-Smtp-Source: ABdhPJzAioyayTFFxqTc4SbY9B5FF4kB65iFuJUJ+m2Ubkp7B2JXpFJGecud5pp/2w69FY51If/ewg== X-Received: by 2002:adf:cc8c:: with SMTP id p12mr11053709wrj.92.1601147617810; Sat, 26 Sep 2020 12:13:37 -0700 (PDT) Received: from localhost.localdomain (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id q4sm7482326wru.65.2020.09.26.12.13.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Sep 2020 12:13:37 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sat, 26 Sep 2020 21:13:30 +0200 Message-Id: <20200926191330.96074-2-romain.naour@gmail.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200926191330.96074-1-romain.naour@gmail.com> References: <20200926191330.96074-1-romain.naour@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/2] linux: Disable -ftree-loop-distribute-patterns when building for microblaze with gcc >= 10 X-BeenThere: buildroot@busybox.net 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: Romain Naour , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" GCC 10 now enable by default -ftree-loop-distribute-patterns at -O2 or -Os optimization level instead of -O3, see commit [1]. Due to this change, the microblaze kernel doesn't boot (as reported by toolchain-builder project). The gcc docs between version 9 and 10 has been updated accordingly [2] [3] but there no word about this change in the gcc 10 changelog [4]. Fixes microblazebe: https://gitlab.com/bootlin/toolchains-builder/-/jobs/729359536 (glibc) https://gitlab.com/bootlin/toolchains-builder/-/jobs/729359538 (musl) https://gitlab.com/bootlin/toolchains-builder/-/jobs/729359540 (uClubc-ng) Fixes microblazeel: https://gitlab.com/bootlin/toolchains-builder/-/jobs/729359542 (glibc) https://gitlab.com/bootlin/toolchains-builder/-/jobs/729359544 (musl) https://gitlab.com/bootlin/toolchains-builder/-/jobs/729359546 (uClibc-ng) This has been reported upsteam [5]. [1] https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=5879ab5fafedc8f6f9bfe95a4cf8501b0df90edd [2] https://gcc.gnu.org/onlinedocs/gcc-9.3.0/gcc/Optimize-Options.html#Optimize-Options [3] https://gcc.gnu.org/onlinedocs/gcc-10.2.0/gcc/Optimize-Options.html#Optimize-Options [4] https://gcc.gnu.org/gcc-10/changes.html [5] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97208 Signed-off-by: Romain Naour Cc: Thomas Petazzoni --- linux/linux.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/linux/linux.mk b/linux/linux.mk index b9b223e3f3..9ee9054bed 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -158,6 +158,12 @@ ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_8),y) LINUX_KCFLAGS += -Wno-attribute-alias endif +# https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=5879ab5fafedc8f6f9bfe95a4cf8501b0df90edd +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97208 +ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_10)$(BR2_microblaze),yy) +LINUX_KCFLAGS += -fno-tree-loop-distribute-patterns +endif + ifeq ($(BR2_LINUX_KERNEL_DTB_OVERLAY_SUPPORT),y) LINUX_MAKE_ENV += DTC_FLAGS=-@ endif