Re: [Tinycc-devel] [PATCH] tccelf.c: Fix the Linux-i386 build

2014-02-03 Thread Austin English
FWIW, I see the same failures on Gentoo amd64, at
4e5f15c6851c69c4cc5da18209218eb918dbee77 (also tested against
2eb844f8b5ea0ae159eb3fcec78aa50bd8c03f11, but the problem is there as well).
austin@aw25 ~/src/tinycc $ make test
make -C tests test 'PROGS_CROSS=i386-linux-gnu-tcc i386-w64-mingw32-tcc
x86_64-w64-mingw32-tcc arm-linux-fpa-tcc arm-linux-fpa-ld-tcc
arm-linux-gnu-tcc arm-linux-gnueabi-tcc c67-tcc'
make[1]: Entering directory '/home/austin/src/tinycc/tests'
 hello-exe 
../tcc -B.. -I.. -I.. -I../include ../examples/ex1.c -o hello || (../tcc
-vv; exit 1)  ./hello
Hello World
 hello-run 
../tcc -B.. -I.. -I.. -I../include -run ../examples/ex1.c
Hello World
 libtest 
./libtcc_test lib_path=..
Hello World!
fib(32) = 2178309
add(32, 64) = 96
gcc -o tcctest.gcc tcctest.c -I.. -I..  -w -Wall -g -O2
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result
-DCONFIG_LDDIR=\lib64\ -DTCC_TARGET_X86_64 -std=gnu99 -O0
-fno-omit-frame-pointer
./tcctest.gcc  test.ref
 test3 
../tcc -B.. -I.. -I.. -I../include -DCONFIG_LDDIR=\lib64\
-DTCC_TARGET_X86_64 -DONE_SOURCE -run ../tcc.c -B.. -I.. -I.. -I../include
-DCONFIG_LDDIR=\lib64\ -DTCC_TARGET_X86_64 -DONE_SOURCE -run ../tcc.c
-B.. -I.. -I.. -I../include -DCONFIG_LDDIR=\lib64\ -DTCC_TARGET_X86_64
-DONE_SOURCE -run ../tcc.c -B.. -I.. -I.. -I../include -run tcctest.c 
test.out3
--- test.ref2014-02-03 16:08:40.010395893 -0800
+++ test.out32014-02-03 16:08:40.371390533 -0800
@@ -346,7 +346,7 @@
 itof: -1234.00
 lltof: -2334.00
 utof: 2166572288.00
-ulltof: 18446744073709551616.00
+ulltof: 2334.00
 float: 42.123455
 double: 42.123455
 long double: 42.123455
@@ -385,7 +385,7 @@
 itof: -1234.00
 lltof: -2334.00
 utof: 2166572288.00
-ulltof: 18446744073709549568.00
+ulltof: 2334.00
 float: 42.123455
 double: 42.123457
 long double: 42.123457
@@ -424,7 +424,7 @@
 itof: -1234.00
 lltof: -2334.00
 utof: 2166572288.00
-ulltof: 18446744073709549282.00
+ulltof: 2334.00
 float: 42.123455
 double: 42.123457
 long double: 42.123457
Makefile:125: recipe for target 'test3' failed
make[1]: *** [test3] Error 1
make[1]: Leaving directory '/home/austin/src/tinycc/tests'
Makefile:350: recipe for target 'test' failed
make: *** [test] Error 2
austin@aw25 ~/src/tinycc $ git describe
release_0_9_26-142-g4e5f15c
austin@aw25 ~/src/tinycc $ uname -a
Linux aw25 3.12.0-gentoo-devlight-1 #1 SMP Mon Nov 4 19:37:36 Local time
zone must be set--see zic m x86_64 Intel(R) Core(TM) i7 CPU 960 @ 3.20GHz
GenuineIntel GNU/Linux
austin@aw25 ~/src/tinycc $ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-4.8.2/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include/g++-v4
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/python
--enable-languages=c,c++,java,go --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --disable-nls --enable-checking=release
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.2
p1.3r1, pie-0.5.8r1' --enable-libstdcxx-time --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-multilib --with-multilib-list=m32,m64 --disable-altivec
--disable-fixed-point --enable-targets=all --enable-libgomp
--enable-libmudflap --disable-libssp --disable-libquadmath --enable-lto
--without-cloog
Thread model: posix
gcc version 4.8.2 (Gentoo 4.8.2 p1.3r1, pie-0.5.8r1)



On Sun, Feb 2, 2014 at 4:02 AM, Thomas Preud'homme robo...@celest.frwrote:

 Le dimanche 2 février 2014 11:29:08, vous avez écrit :
  Signed-off-by: Ramsay Jones ram...@ramsay1.demon.co.uk
  ---
 
  Hi Thomas,
 
  tcc currently fails to compile on Linux-i386; this patch fixes it
  up for me. Unfortunately, the tests are also failing, but I don't
  have time to look into fixing them. The failure looks like so:

 My apologize, I did some refactoring of tccelf.c in the hope to make it
 more
 accessible but I made some mistake obviously. It worked on my ARM machine
 though, hence I didn't see the problem. I'll revert the last three commits
 for
 now and will wait to have access to a i386 machine to test it before
 reapplying them.

 Sorry for that.

 Best regards,

 Thomas

 ___
 Tinycc-devel mailing list
 Tinycc-devel@nongnu.org
 

Re: [Tinycc-devel] Running 'make test' on windows?

2014-02-03 Thread Austin English
Reported to MinGW:
http://sourceforge.net/p/mingw/bugs/2182/


On Thu, Jan 23, 2014 at 6:07 PM, grischka gris...@gmx.de wrote:

 Austin English wrote:

 It fails with gcc-4.8.1, gcc-4.7.2 and gcc-4.6.2 I also tried gcc-4.5.2,
 but that failed to compile at all.


 Here using gcc-4.7.2, shell from git, no AV, works.


 --- grischka


 ___
 Tinycc-devel mailing list
 Tinycc-devel@nongnu.org
 https://lists.nongnu.org/mailman/listinfo/tinycc-devel




-- 
-Austin
___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


Re: [Tinycc-devel] [PATCH] tccelf.c: Fix the Linux-i386 build

2014-02-03 Thread Thomas Preud'homme
On February 4, 2014 8:09:12 AM GMT+08:00, Austin English 
austinengl...@gmail.com wrote:
 FWIW, I see the same failures on Gentoo amd64, at
 4e5f15c6851c69c4cc5da18209218eb918dbee77 (also tested against
 2eb844f8b5ea0ae159eb3fcec78aa50bd8c03f11, but the problem is there as
 well

[...]

 -ulltof: 18446744073709551616.00
 +ulltof: 2334.00

[...]

 -ulltof: 18446744073709549568.00
 +ulltof: 2334.00

[...]

 -ulltof: 18446744073709549282.00
 +ulltof: 2334.00

This is a test I just introduce when I fixed long long to float conversion for 
arm. It means the bug was already there for x86 and became exposed by this new 
test. I might give it a shot after I fix the problem of parameter passing of 
bit field (I only tried on arm but it seems to be present on all architectures).

However my main machine is an arm machine without much space for a vm or chroot 
so it is more difficult to fix this x86 bug for me.

Cheers,

Thomas


___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel