Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3655428imm; Mon, 4 Jun 2018 07:15:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJI6yL6AS0+s8UpDgi4GxQQfef17EDyFCvSj/1mvl2nPm6SIJl17vwZm//U+fInz1A7WJtk X-Received: by 2002:a17:902:8d8d:: with SMTP id v13-v6mr21898116plo.362.1528121717094; Mon, 04 Jun 2018 07:15:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528121717; cv=none; d=google.com; s=arc-20160816; b=dXg93bhmDm/bfbLi71Nh4glD28Ceug71gV3R9VYg9R7tvzJdAtYTqDTjHbP58BAKGQ R+nCBGVpX356kv7R3BMMdWVgVKTVt/dehpNqBwQWFdwFM4JPq9UiSSfB+t/uASe21OCP WfFGcroxC0uH+5OepmcNFar78FIfHejvJJ8qW4GGVn8hOi7ME50XiCX8wCUhEU6Enu+B +jTRB1UCzycNnmQMr4Ix0zmXKiqc3XD6d0ew40zgob8n7GcXy7thRC8B7lnn1pe3H08K /in0c+5lnjJiarotlrR9f7fwGts/YMe4Ntwig383/N47paH0K1Ufuc54JV3pNOnCXBqV KESg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to:arc-authentication-results; bh=x/ssdgRCPtF3qDIeGazbj0MFav4zYPxknbTWOmdd880=; b=B2aPL+wObFEBTEmWlM0CNhBUJSHQTuji+Ut1f0QPJoqm4ZrMOI8J2MavElGiS5Gmu/ TrXXhSb2N/KhfXUX4FQPhHOL0vfX3srjU5D69NXvZa3tHH+oUb6kKMWVP1wnvxQ+ak8v 9/ivRweyMvbBd3Jf/TJhMsyNRs87MJ+2Xwf8iH0zwrVUjmcC2QIEnouy2OOVTg3stKS6 z19jmgFf8lK/Ad2KR38FmPRV9DvQC/CPgyaqVi31MUMWcWvgqKI2+ABzvazzUfoNhld4 SzPPjl3bb/vIu+rO/VZoBPWM8AUHjoK34uv2xtixA5hAjryN+XZFd6lpAjxHQT9ofQ3B FTjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r8-v6si20218669pgs.573.2018.06.04.07.14.58; Mon, 04 Jun 2018 07:15:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753789AbeFDOLR (ORCPT + 99 others); Mon, 4 Jun 2018 10:11:17 -0400 Received: from ozlabs.org ([203.11.71.1]:58977 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753770AbeFDOLO (ORCPT ); Mon, 4 Jun 2018 10:11:14 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 40zxgL3MdHz9s7X; Tue, 5 Jun 2018 00:11:07 +1000 (AEST) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 1c38976334c0efce1b285369a6037f205e196299 In-Reply-To: <20180528060834.72DE86F377@po14934vm.idsi0.si.c-s.fr> To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: powerpc/Makefile: set -mcpu=860 flag for the 8xx Message-Id: <40zxgL3MdHz9s7X@ozlabs.org> Date: Tue, 5 Jun 2018 00:11:07 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-05-28 at 06:08:34 UTC, Christophe Leroy wrote: > When compiled with GCC 8.1, vmlinux is significantly bigger than > with GCC 4.8. > > When looking at the generated code with objdump, we notice that > all functions and loops when a 16 bytes alignment. This significantly > increases the size of the kernel. It is pointless and even > counterproductive as on the 8xx 'nop' also consumes one clock cycle. > > Size of vmlinux with GCC 4.8: > text data bss dec hex filename > 5801948 1626076 457796 7885820 7853fc vmlinux > > Size of vmlinux with GCC 8.1: > text data bss dec hex filename > 6764592 1630652 456476 8851720 871108 vmlinux > > Size of vmlinux with GCC 8.1 and this patch: > text data bss dec hex filename > 6331544 1631756 456476 8419776 8079c0 vmlinux > > Signed-off-by: Christophe Leroy Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/1c38976334c0efce1b285369a6037f cheers