From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in-12.arcor-online.net (mail-in-12.arcor-online.net [151.189.21.52]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.arcor.de", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 7DDE6DDF93 for ; Fri, 29 Jun 2007 19:51:07 +1000 (EST) In-Reply-To: <18052.53604.173632.186062@cargo.ozlabs.ibm.com> References: <18052.42546.78964.805791@cargo.ozlabs.ibm.com> <18052.53604.173632.186062@cargo.ozlabs.ibm.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <86458f827c7ba4a92be4861c1cd3b928@kernel.crashing.org> From: Segher Boessenkool Subject: Re: Please pull from 'for_paulus' branch Date: Fri, 29 Jun 2007 11:51:02 +0200 To: Paul Mackerras Cc: linuxppc-dev@ozlabs.org, Arnd Bergmann List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , >> It is not. -mcpu=powerpc64 doesn't select an ABI, and your >> GCC presumably defaults to the 32-bit ABI. Use -m64 on the >> GCC command line, too, you need it, and it solves this issue >> as a side effect. > > No, actually the command line had -m64 on it. The situation is this: > > gcc -m64 -mtune=power4 works > gcc -m64 -mcpu=powerpc64 -mtune=power4 fails. > > The problem is in the spec file where it works out what parameters to > pass to `as'. Without any -mcpu it correctly defaults to passing > -mppc64 (when -m64 is given). It then also has a list of -mcpu values > and the corresponding flag to pass to as, but powerpc64 isn't in that > list. Thus with -mcpu=powerpc64 we don't get -mppc64 passed to as. Oh okay, badness. What's the GCC PR #? Segher