aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* add version number to manpageUrs Janssen2013-02-1722-56/+57
| | | | | | | avoid c++/c99 style comments in preprocessor directives avoid leadings whitespaces in preprocessor directives mention implemented variable length arrays in documentation fixed ambiguous option in texi2html call (Austin English)
* Release TinyCC 0.9.26Thomas Preud'homme2013-02-151-1/+1
|
* fixed pasto in in 108b2876; background for the additional $CC test is:Urs Janssen2013-02-151-1/+1
| | | | | | | GCC_MAJOR may be set even is $CC not realy gcc (but i.e. clang, which (as of 3.1) requires an addtional CFLAG to accept the non portable (gnuisms all over the place; try to cimpile tcc with Sun^HOracle, Intel, Pathscale, ... compiler) code).
* - document -dumpversionUrs Janssen2013-02-154-3/+6
| | | | - fixed a broken prototype
* - don't use GCC_MAJOR to see if we're not using gcc as GCC_MAJOR might be setUrs Janssen2013-02-152-1/+3
| | | | during configure even with --cc=notgcc as long as gcc is installed.
* Revert "Don't search libgcc_s.so.1 on /lib64"Thomas Preud'homme2013-02-141-5/+1
| | | | This reverts commit b9f089fc4a3c852858bbc8e60c5ac19b7736d7a9.
* configure: detect ARM variantsgrischka2013-02-142-33/+37
| | | | Using gnu make's variable variable-names.
* Don't search libgcc_s.so.1 on /lib64Thomas Preud'homme2013-02-141-1/+5
| | | | | It seems libgcc_s.so.1 is systematically on /lib/ (whether /lib/$triplet for multiarch systems or just /lib for other systems).
* configure: pass CONFIG_xxxDIR/PATH options via commandlinegrischka2013-02-146-38/+30
| | | | | | | | | | | | | | | - except for CONFIG_SYSROOT and CONFIG_TCCDIR Strictly neccessary it is only for CONFIG_MULTIARCHDIR because otherwise if it's in config.h it is impossible to leave it undefined. But it is also nicer not to use these definitions for cross-compilers. - Also: lib/Makefile : include ../Makefile for CFLAGS lib/libtcc1.c : fix an issue compiling tcc with tcc on x64
* Add missing heading slash to detect /lib64 systemsThomas Preud'homme2013-02-141-1/+1
|
* Add arm ABI detection in conftest.cThomas Preud'homme2013-02-141-1/+9
|
* Another attempt to "detect" multiarchThomas Preud'homme2013-02-142-17/+55
|
* - make clang accept unportable code in libtcc1.cUrs Janssen2013-02-143-0/+11
| | | | - add -dumpversion cmd.line opt
* configure: cleanupgrischka2013-02-148-225/+257
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add quotes: eval opt=\"$opt\" - use $source_path/conftest.c for OOT build - add fn_makelink() for OOT build - do not check lddir etc. on Windows/MSYS - formatting config-print.c - rename to conftest.c (for consistency) - change option e to b - change output from that from "yes" to "no" - remove inttypes.h dependency - simpify version output Makefile: - improve GCC warning flag checks tcc.h: - add back default CONFIG_LDDIR - add default CONFIG_TCCDIR also (just for fun) tccpp.c: - fix Christian's last warning tccpp.c: In function ‘macro_subst’: tccpp.c:2803:12: warning: ‘*((void *)&cval+4)’ is used uninitialized in this function [-Wuninitialized] That the change fixes the warning doesn't make sense but anyway. libtcc.c: - tcc_error/warning: print correct source filename/line for token :paste: (also inline :asm:) lddir and multiarch logic still needs fixing.
* Create config-print program to test $ccThomas Preud'homme2013-02-132-46/+41
| | | | | | Create a helper program called config-print to print informations relative to the BUILD/HOST environment in the case of native compilation.
* Various fixes for f9ac2013Thomas Preud'homme2013-02-131-7/+3
|
* Detect multiarch triplet and lddir from ldd outputThomas Preud'homme2013-02-132-44/+8
|
* Fix previous commitThomas Preud'homme2013-02-131-1/+1
| | | | Fix commit f6cfaa6d2591b8931f8fde9aebf7822202b78810
* Improve multiarch detectionThomas Preud'homme2013-02-133-10/+44
| | | | | | * Detect multiarch at configure time * Detect based on the place where crti.o is * Define multiarch triplet in tcc.h
* libtcc: new LIBTCCAPI tcc_set_options(TCCState*, const char*str)grischka2013-02-1212-958/+880
| | | | | | | | | | | | | | | | | | | This replaces -> use instead: ----------------------------------- - tcc_set_linker -> tcc_set_options(s, "-Wl,..."); - tcc_set_warning -> tcc_set_options(s, "-W..."); - tcc_enable_debug -> tcc_set_options(s, "-g"); parse_args is moved to libtcc.c (now tcc_parse_args). Also some cleanups: - reorder TCCState members - add some comments here and there - do not use argv's directly, make string copies - use const char* in tcc_set_linker - tccpe: use fd instead of fp tested with -D MEM_DEBUG: 0 bytes left
* tcc --help: update option summarygrischka2013-02-102-34/+55
| | | | tcc-doc.texi: also
* tcc -vv/--print-search-dirs: print more infogrischka2013-02-107-58/+113
| | | | | | | | | | | | | | tests/Makefile: - print-search-dirs when 'hello' fails - split off hello-run win32/include/_mingw.h: - fix for compatibility with mingw headers (While our headers in win32 are from mingw-64 and don't have the problem) tiny_libmaker: - don't use "dangerous" mktemp
* tcc.h: declare CValue.tab[LDOUBLE_SIZE/4]grischka2013-02-0811-109/+100
| | | | | | | | Should fix some warnings wrt. access out of array bounds. tccelf.c: fix "static function unused" warning x86_64-gen.c: fix "ctype.ref uninitialzed" warning and cleanup tcc-win32.txt: remove obsolete limitation notes.
* Fix fn_dirname in configure scriptThomas Preud'homme2013-02-081-1/+1
| | | | | Use ${parameter%word} construct to fix fn_dirname in configure script. Bonus: on less fork.
* lib/Makefile: use CC, add bcheck to libtcc1.agrischka2013-02-067-61/+41
| | | | | | | | Also: - fix "make tcc_p" (profiling version) - remove old gcc flags: -mpreferred-stack-boundary=2 -march=i386 -falign-functions=0 - remove test "hello" for Darwin (cannot compile to file)
* tccelf: fix debug section relocationgrischka2013-02-051-1/+1
| | | | | | | | | | | | With: tcc -g hello.c gdb a.out b main gdb refused to know "main" because of broken dwarf info. This partially reverts commit 0d598aca087e46ea67f97dda50df3eed522d5e7a. I don't remember what the problem was but it was the wrong way to fix it.
* tests: cleanupgrischka2013-02-0514-299/+272
| | | | | | | | | | | | | | | | tests: - add "hello" to test first basic compilation to file/memory - add "more" test (tests2 suite) - remove some tests tests2: - move into tests dir - Convert some files from DOS to unix LF - remove 2>&1 redirection win32: - tccrun.c: modify exception filter to exit correctly (needed for btest) - tcctest.c: exclude weak_test() (feature does not exist on win32)
* tests2: move into testsgrischka2013-02-05112-0/+0
|
* Align on 4n bytes when copying fct args on stackThomas Preud'homme2013-02-051-0/+1
| | | | | When copying function arguments on stack in prolog, use multiple of 4 bytes for alignment.
* portability: make tcc_get_symbol() available for non-nativegrischka2013-02-041-2/+2
| | | | | For consistency with tcc_add_symbol(). Use uintptr_t here also.
* Slightly improved support for !gcc compilersThomas Preud'homme2013-02-041-1/+3
| | | | | Hack before a complete solution after 0.9.26's release to be able to compile tcc with clang.
* win32: Honor "-Wl,-subsystem=console/gui" optiongrischka2013-02-041-9/+10
|
* tccrun.c: unify rt_get_caller_pc prototypegrischka2013-02-041-18/+15
|
* Makefile: fix "allow CONFIG_LDDIR=lib64 configuration"grischka2013-02-041-4/+4
| | | | I forgot the commas.
* portability: fix void* <-> target address conversion confusiongrischka2013-02-046-130/+136
| | | | | | - #define addr_t as ElfW(Addr) - replace uplong by addr_t - #define TCC_HAS_RUNTIME_PLTGOT and use it
* Makefile: allow CONFIG_LDDIR=lib64 configurationgrischka2013-02-042-12/+14
|
* win32: wincrt1.c: include stdlib.h for exit()grischka2013-02-041-0/+1
|
* c67: remove global #define's for TRUE/FALSE/BOOLgrischka2013-02-045-32/+32
| | | | Also use uppercase TRUE/FALSE instead of true/false
* arm-gen.c: fix var initialization in gfunc_callThomas Preud'homme2013-02-041-2/+1
| | | | | | Fix initialization of args_size before doing register allocation. When adding hardfloat calling convention the initialization stopped being performed when !defined (TCC_ARM_EABI).
* arm: force rounding towards zero on cast to integer with VFPDaniel Glöckner2013-02-041-1/+1
| | | | | Cast to integer should not be affected by the current rounding mode as set by fesetround.
* arm: fix conversion from float/double to signed integer with VFPDaniel Glöckner2013-02-031-1/+1
| | | | The signed flag was not encoded in the instruction.
* arm: fix conversion from integer to float/double with VFPDaniel Glöckner2013-02-031-1/+1
| | | | The source register was not encoded in the instruction.
* Revert "Add predictability in CType initialization."Thomas Preud'homme2013-01-311-6/+0
| | | | This reverts commit 93785149ed61b7165510ff30149f297cf0821c88.
* Revert "Don't call elf_hash on NULL value"Thomas Preud'homme2013-01-311-1/+1
| | | | This reverts commit 505329b5b3ee4cb47d0a3590ccd62a65dbf83fc9.
* safety: replace occurrences of strcpy by pstrcpygrischka2013-01-314-21/+11
|
* Revert "Check whether structure fields have a type"Thomas Preud'homme2013-01-311-2/+1
| | | | This reverts commit 981eb84d8ab91aafe73d5eeb218ffe31d28b1014.
* Check whether structure fields have a typeThomas Preud'homme2013-01-311-1/+2
|
* Don't call elf_hash on NULL valueDomingo Alvarez Duarte2013-01-311-1/+1
| | | | | | Make sur elf_hash is never invoked with a NULL value. Signed-off-by: Thomas Preud'homme <robotux@celest.fr>
* Add predictability in CType initialization.Domingo Alvarez Duarte2013-01-311-0/+6
| | | | | | Initialize the ref field to 0 when manipulating a CType. Signed-off-by: Thomas Preud'homme <robotux@celest.fr>
* Fix cross-compilation out-of-tree buildThomas Preud'homme2013-01-301-2/+2
| | | | | | Add tcc.c as a prerequesite of the %-tcc$(EXESUF) target and compile $< instead of tcc.c to make sure tcc.c is search in directories specified by VPATH.