From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-x233.google.com (mail-pa0-x233.google.com [IPv6:2607:f8b0:400e:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A94F21400DA for ; Thu, 15 May 2014 19:47:24 +1000 (EST) Received: by mail-pa0-f51.google.com with SMTP id kq14so860221pab.24 for ; Thu, 15 May 2014 02:47:21 -0700 (PDT) Date: Thu, 15 May 2014 19:17:16 +0930 From: Alan Modra To: Guenter Roeck Subject: Re: powerpc/ppc64: Allow allmodconfig to build (finally !) Message-ID: <20140515094716.GQ5162@bubble.grove.modra.org> References: <1399874254.17624.85.camel@pasglop> <20140513002846.GA29753@roeck-us.net> <1399972601.17624.169.camel@pasglop> <20140513171749.GA9440@roeck-us.net> <20140514133434.13b66009@canb.auug.org.au> <5372FC43.6010707@roeck-us.net> <20140514055219.GL5162@bubble.grove.modra.org> <20140514153430.GA28553@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20140514153430.GA28553@roeck-us.net> Cc: Stephen Rothwell , linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, May 14, 2014 at 08:34:30AM -0700, Guenter Roeck wrote: > Bummer. Confirmed, if I replace "@h" with "@high" in just one place, > the builds pass with binutils 2.24. Unfortunately the same builds then > fails with binutils 2.23. > > Any idea how to get it to compile with both old and new versions ? The standard way with GNU software would be to write a configure test, that checks for @high support in the assembler, and defines a macro if the assembler passes the check. I'm not that familiar with the linux kernel these days, but a little grepping around says that something like ashigh := $(call as-instr,lis 9$(comma)foo@high,-DHAVE_AS_ATHIGH=1) KBUILD_AFLAGS += $(ashigh) might work. > Is there some predefined constant which I could possibly use for > something like > > .if as_version_below_2.24_ > oris reg,reg,(expr)@h; > .else > oris reg,reg,(expr)@high; > .endif > > Thanks, > Guenter -- Alan Modra Australia Development Lab, IBM