Thomas Preud'homme wrote: >> I'm working on a patch. Once finished, I'll ask for testing and then we'll >> release. > > Here is a first version of the patch. Granted, detecting multiarch at > configure > time and specifying the triplet in tcc.h is better but the result is quite > ugly for now. The diffstat is as follows: > > Makefile | 10 +--------- > configure | 12 ++++++++++++ > tcc.h | 28 ++++++++++++++++++++++++++++ > 3 files changed, 41 insertions(+), 9 deletions(-)
I tested commit af4b27f0 ("Fix previous commit", 13-02-2013), which I believe is this patch plus one fixup. This fixes the regression for me (see display below). Thank you for your quick work on this. >> To be honest I'm tempted to delay the patch after the release since it's >> possible for you to just set crtprefix at configure time and everything >> should work. > > Thus still tempted. I tried to use ./configure --crtprefix=/usr/lib, but it didn't work. (I think I would have to specify the location of the libraries and includes as well ... but didn't try it; do you want me to try?) It would be a shame to release an new version of tcc (first in three years) without this fixed, but I know where you are coming from! ;-P Thanks! ATB, Ramsay Jones $ git log -1 commit af4b27f0fd7d1ee247bbd1a330dfbff9ed16bcae Author: Thomas Preud'homme <robo...@celest.fr> Date: Wed Feb 13 17:58:14 2013 +0100 Fix previous commit Fix commit f6cfaa6d2591b8931f8fde9aebf7822202b78810 $ make distclean >/dev/null $ ./configure Binary directory /usr/local/bin TinyCC directory /usr/local/lib/tcc Library directory /usr/local/lib Include directory /usr/local/include Manual directory /usr/local/share/man Info directory /usr/local/share/info Doc directory /usr/local/share/doc/tcc Target root prefix Source path /home/ramsay/tinycc C compiler gcc Target OS Linux CPU x86 Big Endian no gprof enabled no cross compilers no use libgcc no Creating config.mak and config.h $ make >out 2>&1 $ make test make -C tests test make[1]: Entering directory `/home/ramsay/tinycc/tests' ------------ hello-exe ------------ ../tcc -B.. ../examples/ex1.c -o hello || (../tcc -vv; exit 1) && ./hello Hello World ------------ hello-run ------------ ../tcc -B.. -run ../examples/ex1.c Hello World gcc -o libtcc_test libtcc_test.c ../libtcc.a -I.. -Wall -g -O2 -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -DTCC_TARGET_I386 -lm -ldl ------------ libtest ------------ ./libtcc_test lib_path=.. Hello World! fib(32) = 2178309 add(32, 64) = 96 cp ../include/tcclib.h . gcc -o tcctest.gcc tcctest.c -I. -I.. -w -Wall -g -O2 -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -DTCC_TARGET_I386 -std=gnu99 -O0 -fno-omit-frame-pointer ./tcctest.gcc > test.ref ------------ test3 ------------ ../tcc -B.. -DTCC_TARGET_I386 -DONE_SOURCE -run ../tcc.c -B.. -DTCC_TARGET_I386 -DONE_SOURCE -run ../tcc.c -B.. -DTCC_TARGET_I386 -DONE_SOURCE -run ../tcc.c -B.. -run tcctest.c > test.out3 Auto Test3 OK ------------ moretests ------------ make -C tests2 make[2]: Entering directory `/home/ramsay/tinycc/tests/tests2' Test: 00_assignment... Test: 01_comment... Test: 02_printf... Test: 03_struct... Test: 04_for... Test: 05_array... Test: 06_case... Test: 07_function... Test: 08_while... Test: 09_do_while... Test: 10_pointer... Test: 11_precedence... Test: 12_hashdefine... Test: 13_integer_literals... Test: 14_if... Test: 15_recursion... Test: 16_nesting... Test: 17_enum... Test: 18_include... Test: 19_pointer_arithmetic... Test: 20_pointer_comparison... Test: 21_char_array... Test: 22_floating_point... Test: 23_type_coercion... Test: 24_math_library... Test: 25_quicksort... Test: 26_character_constants... Test: 27_sizeof... Test: 28_strings... Test: 29_array_address... Test: 31_args... Test: 32_led... Test: 33_ternary_op... Test: 35_sizeof... Test: 36_array_initialisers... Test: 37_sprintf... Test: 38_multiple_array_index... Test: 39_typedef... Test: 40_stdio... Test: 41_hashif... Test: 42_function_pointer... Test: 43_void_param... Test: 44_scoped_declarations... Test: 45_empty_for... Test: 47_switch_return... Test: 48_nested_break... Test: 49_bracket_evaluation... Test: 50_logical_second_arg... Test: 51_static... Test: 52_unnamed_enum... Test: 54_goto... Test: 55_lshift_type... make[2]: Leaving directory `/home/ramsay/tinycc/tests/tests2' make[1]: Leaving directory `/home/ramsay/tinycc/tests' $ $ ./tcc -vv tcc version 0.9.25 (i386 Linux) install: /usr/local/lib/tcc/ crt: /usr/lib libraries: /usr/lib /lib /usr/local/lib include: /usr/local/include /usr/include /usr/local/lib/tcc/include $ _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel