Strange assembler warning

Bernd Walter ticso at cicely12.cicely.de
Sun Jan 7 13:41:43 PST 2007


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 <command line>: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.

-- 
B.Walter                http://www.bwct.de      http://www.fizon.de
bernd at bwct.de           info at bwct.de            support at fizon.de


More information about the freebsd-arm mailing list