From owner-freebsd-arm@FreeBSD.ORG Sun Jan 7 23:53:27 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 169F216A584 for ; Sun, 7 Jan 2007 23:53:27 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 9B1C013C45E for ; Sun, 7 Jan 2007 23:53:26 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id l07NrDMI020976; Mon, 8 Jan 2007 00:53:14 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id l07NqwLL001675 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 8 Jan 2007 00:52:59 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id l07Nqwop077820; Mon, 8 Jan 2007 00:52:58 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l07NqwJR077819; Mon, 8 Jan 2007 00:52:58 +0100 (CET) (envelope-from ticso) Date: Mon, 8 Jan 2007 00:52:58 +0100 From: Bernd Walter To: Olivier Houchard Message-ID: <20070107235257.GS58585@cicely12.cicely.de> References: <20070107210212.GP58585@cicely12.cicely.de> <20070107233704.GA34036@ci0.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070107233704.GA34036@ci0.org> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: Bernd Walter , freebsd-arm@freebsd.org, ticso@cicely.de, Hans Petter Selasky Subject: Re: Strange assembler warning X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jan 2007 23:53:27 -0000 On Mon, Jan 08, 2007 at 12:37:04AM +0100, Olivier Houchard wrote: > On Sun, Jan 07, 2007 at 10:02:13PM +0100, Bernd Walter wrote: > > I was trying to build Hans Petter's USB stack: > > cc -c -O2 -pipe -fno-strict-aliasing -mcpu=arm9 -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mcpu=arm9 -ffreestanding -Werror ../../../dev/usb/ohci.c > > ../../../dev/usb/ohci.c:120:1: "PHYSADDR" redefined > > In file included from :5: > > ./opt_global.h:3:1: this is the location of the previous definition > > {standard input}: Assembler messages: > > {standard input}:6052: Warning: source register same as write-back base > > *** Error code 1 > > > > Stop in /usr/src/sys/arm/compile/FBOX. > > 98.000u 3.000s 2:01.33 83.8% 37057+84655k 1+12io 2pf+0w > > Exit 1 > > [86]arm9# > > > > Ok - the PHYADDR is a name collision with the kernel load address. > > After removing the clash it compiles. > > But the assembler warning remains. > > > > Hi Bernd, > > Could you put the assembler file, as provided my cc -S, and ohci.c somewhere > online ? This typically happens with gcc allocating the wrong registers with > inline asm, so we need to figure out which code is at fault, and try to fix it > or work around the problem. I redid the file with -g. To get the new line numer in the assembly: [121]arm9# cc -c -g -O2 -pipe -fno-strict-aliasing -mcpu=arm9 -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mcpu=arm9 -ffreestanding -Werror ../../../dev/usb/ohci.c {standard input}: Assembler messages: {standard input}:7356: Warning: source register same as write-back base http://www.bwct.de/~ticso/ohci.c http://www.bwct.de/~ticso/ohci.s -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de