[U-Boot-Users] smc91111.c : error: label at end of compound statement

Komal Shah komal_shah802003 at yahoo.com
Thu Jan 27 07:39:51 CET 2005

Hi All,

I have tried to cross-compile (arm-linux-gcc-3.4.0)
u-boot source-code with smc91111.c driver enabled. I
am getting this error, because of recent changes in
gcc-3.4.x series to detect them. 

arm-linux-gcc -g  -Os   -fno-strict-aliasing 
-fno-common -ffixed-r8  -D__KERNEL__
-DTEXT_BASE=0x80e80000 -I/home/bluesky/u-boot/include
-fno-builtin -ffreestanding -nostdinc -isystem
-pipe  -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv6
-Wall -Wstrict-prototypes -c -o smc91111.o smc91111.c
smc91111.c: In function `smc_phy_configure':
smc91111.c:1343: error: label at end of compound
make[1]: *** [smc91111.o] Error 1
make[1]: Leaving directory
make: *** [drivers/libdrivers.a] Error 2

code snippet:
        /* Re-Configure the Receive/Phy Control
register */
        SMC_outw (RPC_DEFAULT, RPC_REG);


It seems to me that no one there tried the above
combination. Simple solution is to put some dummy
varibale initialisation _or_ is there any compiler
switch to make it as warning. 

---Komal Shah

Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.

More information about the U-Boot mailing list