tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Call for testing


From: Feng Nauh
Subject: Re: [Tinycc-devel] Call for testing
Date: Sat, 26 Jan 2013 14:09:11 +0800

tinycc/tests:

on archlinux x86_64, make weaktest, result as:
...
tcctest.c:391:5: note: use option -std=c99 or -std=gnu99 to compile your code
make: *** [weaktest] Error 1

add -std=gnu99 to CFLAGS, result as:
cp ../include/tcclib.h .
gcc -o tcctest.gcc tcctest.c -I. -I. -I/root/shared/tinycc -w -Wall -g -O2 -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -m64 -DTCC_TARGET_X86_64    -std=gnu99 -O0 -fno-omit-frame-pointer
./tcctest.gcc > test.ref
../tcc -B.. -DTCC_TARGET_X86_64    -c tcctest.c -o weaktest.tcc.o -I. -I/root/shared/tinycc -Wall -g -O2 -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -m64
gcc -c tcctest.c -o weaktest.gcc.o -I. -I. -I/root/shared/tinycc -w -Wall -g -O2 -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -m64 -std=gnu99
objdump -t weaktest.tcc.o | grep ' w ' | sed -e 's/.* \([a-zA-Z0-9_]*\)$/\1/' | LC_ALL=C sort > weaktest.tcc.o.txt
objdump -t weaktest.gcc.o | grep ' w ' | sed -e 's/.* \([a-zA-Z0-9_]*\)$/\1/' | LC_ALL=C sort > weaktest.gcc.o.txt
diff weaktest.gcc.o.txt weaktest.tcc.o.txt && echo "Weak Auto Test OK"
18d17
< weak_toolate
make: *** [weaktest] Error 1

on win32(mingw), make weaktest, as:
../tcc -B.. -DTCC_TARGET_I386     -DTCC_TARGET_PE -I /e/shared/tinycc/win32/incl
ude -L -c tcctest.c -o weaktest.tcc.o -I. -I/e/shared/tinycc -Wall -g -O2 -fno-s
trict-aliasing -Wno-pointer-sign -Wno-sign-compare -mpreferred-stack-boundary=2
-march=i386 -falign-functions=0 -m32
tcctest.c:1933: warning: implicit declaration of function 'putchar'
tcctest.c:2087: warning: implicit declaration of function 'strlen'
tcc: error: undefined symbol 'strtof'
tcc: error: undefined symbol 'strtold'
tcc: error: undefined symbol 'weak_f1'
tcc: error: undefined symbol 'weak_v1'
tcc: error: undefined symbol 'weak_fpa'
tcc: error: undefined symbol 'weak_fpb'
tcc: error: undefined symbol 'weak_fpc'
tcc: error: undefined symbol 'weak_asm_f1x'
tcc: error: undefined symbol 'weak_asm_f2x'
tcc: error: undefined symbol 'weak_asm_f3x'
tcc: error: undefined symbol 'weak_asm_v1x'
tcc: error: undefined symbol 'weak_asm_v2x'
tcc: error: undefined symbol 'weak_asm_v3x'
make: *** [weaktest] Error 1


reply via email to

[Prev in Thread] Current Thread [Next in Thread]