This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problems with newer binutils building linux-2.0.37


	
: leisner@soyata;as --version
GNU assembler 990904
: leisner@soyata;make bzImage
gcc -D__KERNEL__ -I/usr/local/src/linux/kernel/linux-2.0.37/include -Wall 
-Wstri
ct-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 
-malign-
loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586  -c -o init/main.o 
init/ma
in.c
In file included from init/main.c:46:
/usr/local/src/linux/kernel/linux-2.0.37/include/asm/bugs.h: In function 
`check_
k6_bug':
/usr/local/src/linux/kernel/linux-2.0.37/include/asm/string.h:118: Invalid 
`asm'
 statement:
/usr/local/src/linux/kernel/linux-2.0.37/include/asm/string.h:118: fixed or 
forb
idden register 4 (si) was spilled for class SIREG.
/usr/local/src/linux/kernel/linux-2.0.37/include/asm/bugs.h: In function 
`check_
cyrix_various':
/usr/local/src/linux/kernel/linux-2.0.37/include/asm/string.h:39: Invalid 
`asm'
statement:
/usr/local/src/linux/kernel/linux-2.0.37/include/asm/string.h:39: fixed or 
forbi
dden register 4 (si) was spilled for class SIREG.
init/main.c: In function `get_options':
init/main.c:269: warning: subscript has type `char'
/usr/local/src/linux/kernel/linux-2.0.37/include/asm/string.h:159: Invalid 
`asm'
 statement:
/usr/local/src/linux/kernel/linux-2.0.37/include/asm/string.h:159: fixed or 
forb
idden register 4 (si) was spilled for class SIREG.
init/main.c: In function `checksetup':
/usr/local/src/linux/kernel/linux-2.0.37/include/asm/string.h:140: Invalid 
`asm'
 statement:
/usr/local/src/linux/kernel/linux-2.0.37/include/asm/string.h:140: fixed or 
forb
idden register 2 (cx) was spilled for class CREG.
/usr/local/src/linux/kernel/linux-2.0.37/include/asm/string.h:140: Invalid 
`asm'
...


string.h has:

    102 #define __HAVE_ARCH_STRCMP
    103 extern inline int strcmp(const char * cs,const char * ct)
    104 {
    105 register int __res;
    106 __asm__ __volatile__(
    107         "cld\n"
    108         "1:\tlodsb\n\t"
    109         "scasb\n\t"
    110         "jne 2f\n\t"
    111         "testb %%al,%%al\n\t"
    112         "jne 1b\n\t"
    113         "xorl %%eax,%%eax\n\t"
    114         "jmp 3f\n"
    115         "2:\tsbbl %%eax,%%eax\n\t"
    116         "orb $1,%%eax\n"
    117         "3:"
    118         :"=a" (__res):"S" (cs),"D" (ct):"si","di");
    119 return __res;
    120 }
    121
    122 #define __HAVE_ARCH_STRNCMP

I don't have a problem if I'm using as 2.9.1 (in /usr/bin on redhat 6.0).

(I have a machine I'm running 2.0.* on successfully and I don't want to 
upgrade)

If this is a problem, it should be documented somewhere...

Marty Leisner
leisner@rochester.rr.com



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]