From patchwork Mon Mar 21 16:08:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 600177 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3qTLNt05T4z9s4n for ; Tue, 22 Mar 2016 03:09:02 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A34A5A7498; Mon, 21 Mar 2016 17:09:00 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o2tKrS8kIAgj; Mon, 21 Mar 2016 17:09:00 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 43DBCA752A; Mon, 21 Mar 2016 17:08:58 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D8764A74D6 for ; Mon, 21 Mar 2016 17:08:52 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bDsa_bhFfomz for ; Mon, 21 Mar 2016 17:08:52 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by theia.denx.de (Postfix) with ESMTPS id 51C61A750E for ; Mon, 21 Mar 2016 17:08:43 +0100 (CET) Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 651FF90E55; Mon, 21 Mar 2016 16:08:42 +0000 (UTC) Received: from shalem.localdomain.com (vpn1-7-224.ams2.redhat.com [10.36.7.224]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2LG8bKw017061; Mon, 21 Mar 2016 12:08:40 -0400 From: Hans de Goede To: u-boot@lists.denx.de Date: Mon, 21 Mar 2016 17:08:34 +0100 Message-Id: <1458576514-9470-2-git-send-email-hdegoede@redhat.com> In-Reply-To: <1458576514-9470-1-git-send-email-hdegoede@redhat.com> References: <1458576514-9470-1-git-send-email-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 Subject: [U-Boot] [PATCH] ARMv7: Build cache_v7.c with -O1 to avoid gcc6 breakage X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" It seems that building cache_v7.c with gcc6 with -O2 or -Os results in an unreliable u-boot (only boots the kernel some of the time), at least on sunxi boards. For details see: https://bugzilla.redhat.com/show_bug.cgi?id=1318788 This commit adds -O1 at the end of the CFLAGS when building cache_v7.c working around this. Signed-off-by: Hans de Goede --- arch/arm/cpu/armv7/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/cpu/armv7/Makefile b/arch/arm/cpu/armv7/Makefile index 45f346c..45a49fe 100644 --- a/arch/arm/cpu/armv7/Makefile +++ b/arch/arm/cpu/armv7/Makefile @@ -8,6 +8,7 @@ extra-y := start.o obj-y += cache_v7.o +CFLAGS_cache_v7.o := $(KBUILD_CFLAGS) -O1 obj-y += cpu.o cp15.o obj-y += syslib.o