Ronald G Minnich <[EMAIL PROTECTED]> writes:
> cc -c -mcpu=ev6 -Wa,-m21264 -I/root/freebios//src/include
> -I/root/freebios//src/arch/alpha/include -DUSE_TSUNAMI_TIGBUS_ROM=1
> -DCMD_LINE='"console=ttyS0,115200 root=/dev/nfs alpha_mv=Webbrick
> ip=192.168.0.252:192.168.0.253::255.255.255.0:ds10:eth0:off
> nfsroot=/mnt/hdb/images/alpha-nfs-boot"' -DSERIAL_CONSOLE
> -DUSE_CORE_TSUNAMI=1 -DUSE_ELF_BOOT=1 -DUSE_CPU_EV6=1
> -DTIG_KERNEL_START=0x20000 -DSROM_CONSOLE -O2 -nostdinc -nostdlib
> -fno-builtin -Wall /root/freebios/src/lib/printk.c
> /root/freebios/src/lib/printk.c: In function `printk':
> /root/freebios/src/lib/printk.c:45: __builtin_saveregs not supported by
> this target
> /root/freebios/src/lib/printk.c: At top level:
> /root/freebios/src/lib/printk.c:9: warning: `rcsid' defined but not used
> make: *** [printk.o] Error 1
The problem is the header src/arch/alpha/include/va-alpha.h included
from src/include/stdarg.h. And grabbed from an earlier version of gcc.
That this crops up is a general problem of compiling with -nostdinc -nostdlib
and grabbing headers from elsewhere.
For now I suggest we conditionalize on the compiler version in the header,
and have both the version of the header from your compiler and mine in
the same file. __GNUC__ is the major number and __GNUC_MINOR__ is the
minor number.
Long term we need to think about this some more. Those va functions currently
tie us pretty tightly to a compiler. Though it may not be possible to
untie ourselves in this case.
Eric