Skip to contentSkip to conversation

Sun4d - assembler errors

DISCUSSION Chris Newport 2 participants 4 messages Aug 18, 2004

lore
Share & tools
lore
#0 lore raw

Could this be the smoking gun ?
Looks like the compiler does not like this inline assembly code. Sorry, this is outside of my skills to fix.

gcc -D__KERNEL__ -I/usr/src/linux-2.4.27/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7 -nostdinc -iwithprefix include -DKBUILD_BASENAME=sun4d_smp -c -o sun4d_smp.o sun4d_smp.c
sun4d_smp.c: In function `smp4d_cross_call':
sun4d_smp.c:347: warning: ignoring asm-specifier for non-static local variable f' sun4d_smp.c:348: warning: ignoring asm-specifier for non-static local variable a1' sun4d_smp.c:349: warning: ignoring asm-specifier for non-static local variable a2' sun4d_smp.c:350: warning: ignoring asm-specifier for non-static local variable a3' sun4d_smp.c:351: warning: ignoring asm-specifier for non-static local variable a4' sun4d_smp.c:352: warning: ignoring asm-specifier for non-static local variable a5'

Thanks,
Chris Newport

#1 lore raw
Quoted 7 lines · Chris Newport

Could this be the smoking gun ?
Looks like the compiler does not like this inline assembly code. Sorry, this is outside of my skills to fix.
gcc -D__KERNEL__ -I/usr/src/linux-2.4.27/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7 -nostdinc -iwithprefix include -DKBUILD_BASENAME=sun4d_smp -c -o sun4d_smp.o sun4d_smp.c
sun4d_smp.c: In function `smp4d_cross_call':
sun4d_smp.c:347: warning: ignoring asm-specifier for non-static local variable f' sun4d_smp.c:348: warning: ignoring asm-specifier for non-static local variable a1'

gcc/binutils versions?

-- wli

author
#2 lore raw
In reply to Chris Newport
Quoted 14 lines · William Lee Irwin III
Quoted 11 lines · Chris Newport

Could this be the smoking gun ?
Looks like the compiler does not like this inline assembly code. Sorry, this is outside of my skills to fix.
gcc -D__KERNEL__ -I/usr/src/linux-2.4.27/include -Wall

(quoted diff) +0 -3
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7  
-nostdinc -iwithprefix include -DKBUILD_BASENAME=sun4d_smp  -c -o

sun4d_smp.o sun4d_smp.c sun4d_smp.c: In function `smp4d_cross_call':
sun4d_smp.c:347: warning: ignoring asm-specifier for non-static local variable f' sun4d_smp.c:348: warning: ignoring asm-specifier for non-static local variable a1'

gcc/binutils versions?

gcc 3.2.2
binutils 2.14.90.0.5
glibc-2.3.2

#3 lore raw
In reply to Chris Newport
Quoted 1 line · William Lee Irwin III
Quoted 1 line

gcc/binutils versions?

Quoted 3 lines · C.Newport

gcc 3.2.2
binutils 2.14.90.0.5
glibc-2.3.2

Could you send the disassembly of that function, extracted from a fully-linked kernel?

-- wli