From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762567Ab2DLThP (ORCPT ); Thu, 12 Apr 2012 15:37:15 -0400 Received: from terminus.zytor.com ([198.137.202.10]:42357 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754355Ab2DLThO (ORCPT ); Thu, 12 Apr 2012 15:37:14 -0400 Message-ID: <4F872ED8.1060608@kernel.org> Date: Thu, 12 Apr 2012 12:36:56 -0700 From: "H. Peter Anvin" Organization: Linux Kernel Organization, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120209 Thunderbird/10.0.1 MIME-Version: 1.0 To: Geert Uytterhoeven CC: Andi Kleen , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, x86@kernel.org, Andi Kleen Subject: Re: [PATCH 2/2] Add CONFIG_READABLE_ASM References: <1332960678-11879-1-git-send-email-andi@firstfloor.org> <1332960678-11879-2-git-send-email-andi@firstfloor.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/12/2012 12:08 PM, Geert Uytterhoeven wrote: > Hi Andi, > > On Wed, Mar 28, 2012 at 20:51, Andi Kleen wrote: >> +ifdef CONFIG_READABLE_ASM >> +# Disable optimizations that make assembler listings hard to read. >> +# reorder blocks reorders the control in the function >> +# ipa clone creates specialized cloned functions >> +# partial inlining inlines only parts of functions >> +KBUILD_CFLAGS += $(call cc-option,-fno-reorder-blocks,) \ >> + $(call cc-option,-fno-ipa-cp-clone,) \ >> + $(call cc-option,-fno-partial-inlining) >> +endif > > This (now in linux-next) causes m68k/allmodconfig to fail for me: > > CHK include/linux/version.h > CHK include/generated/utsrelease.h > CC kernel/bounds.s > cc1: error: unrecognized command line option "-fno-ipa-cp-clone" > > Somehow, "$(call cc-option,-fno-ipa-cp-clone,)" doesn't detect that my > toolchain (gcc version 4.1.2 20061115 (prerelease) (Ubuntu 4.1.1-21)) > doesn't support this option. > > I tried playing with the trailing comma (why do the first 2 tests have it, > and the 3rd one doesn't?), but that didn't make a difference. > > linux-next builds (using a newer toolchain) don't show this. > Sounds like the fundamental action item is to find out what makes cc-option not work. -hpa