aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Summary of commits + added some brief comments to MakefileHenry Kroll III2010-04-261-5/+10
| | | | | | | | | | | | | | | | | | | Summary of what was changed or added so far: These won't work on Win32 * --disable-static option builds libtcca.so.1.0 and associated simlinks. This replaces libtcca.a, which is a static library with a dynamic one. * --with-selinux option uses mmap to enable tcc -run to work with Selinux. * attempt to build tcc1.def on i386 / x86_64 when --enable-cross is used. If successful, this gets around the "_start not found" or "_winstart not found" messages when i386-win32-tcc is run on these systems. I say "if" because it gave me fits of trouble on my system and not all others have been tested yet. tcc1.def is not a real .def file by the way, but it works, so it's kind of a dancing bear at this point. We're not concerned that it's getting the steps wrong. We're just happy it's not eating us for lunch.
* don't build tcc1.def on Windows.Henry Kroll III2010-04-261-11/+11
| | | | | I think the Windows build portion of the Makefile already provides their own version. If not, we can remove the check.
* Makefile fixup:Henry Kroll III2010-04-252-23/+26
| | | | | | | | | | | | * additional make target for lib/tcc1.def on non-win32 builds tcc1.def was formerly lib/libtcc1.a but has bee made into its own Makefile target, tcc1.def * use mv instead of cp on config.h this fixes a mistake I made which caused Makefile to rebuild all targets every time * make links from libtcc.so.1.0 to libtcc.so.1 and libtcc.so
* make --enable-cross work properly on x86_64Henry Kroll III2010-04-251-3/+8
| | | | | merge more changes from Fedora spec file into Makefile I did a lot of reading on Makefiles. It should be a lot less hacked now that I got rid of my temporary cross-build script. I had to build i386-win32-tcc as 32 bit in order to use it to build the windows version of libtcc1.a and move that into lib directory. Still testing, but it does build windows fib.exe smoothly now and generates shard lib, libtcc.so.1.0 and test links against it.
* Merge branch 'mob' of ssh://repo.or.cz/srv/git/tinycc into makefileHenry Kroll III2010-04-250-0/+0
|\
| * reverse make win32 version of libtcc1.a patchHenry Kroll III2010-04-242-32/+37
| |
* | remove make_libtcc1_win32.sh shell scriptHenry Kroll III2010-04-242-32/+37
|/ | | | and merge commands into Makefile
* make win32 version of libtcc1.a for cross-compiler on x86 / x86_64Henry Kroll III2010-04-242-4/+28
|
* put tcc in /usr/lib64/tcc on distros that have itHenry Kroll III2010-04-241-1/+1
|
* make --with-selinux work with libtcc, tooHenry Kroll III2010-04-243-34/+35
|
* add --disable-static option to build libtcc.so instead of libtcc.aHenry Kroll III2010-04-242-10/+33
| | | | for distros that want static libs
* fix typo in configureHenry Kroll III2010-04-241-1/+2
|
* i386-win32-tcc fails to build a valid win32 executable if builtHenry Kroll III2010-04-231-1/+1
| | | | | | | | | on x86_64 using --enable-cross. The easiest way to fix this is to put -m32 in the Makefile. Committer: Henry Kroll <henry@comptune.com> Committer: Henry Kroll <henry@comptune.com>
* Use mmap instead of exec mem for Selinux machines. Fixes crash on Fedora.Henry Kroll III2010-04-202-5/+41
|
* Replace malloc+strcpy by tcc_strdup in ld_load_file_listThomas Preud'homme2010-04-201-9/+3
|
* Fix "already done" test in libname_to_filename()Thomas Preud'homme2010-04-201-1/+1
| | | | if "(libname == '\0')" should be instead "if (libname != '\0')"
* Delete unused vtop_saved variable in unary_typeThomas Preud'homme2010-04-201-2/+0
|
* Clean changes introduced by 47abdbdThomas Preud'homme2010-04-203-89/+86
| | | | | | | | | | | | * Replace the save/load_buffer_state by a dynarray approach: - Filename and libname are added to a dynarray when first encountered - Load repeatedly the files in the dynarray until no new undefined symbol are encountered * Replace snprintf by sprintf in libname_to_filename * Use tcc_fileextension in filename_to_libname * Introduce a tcc_strcpy_part fonction to copy only a subset of a string * Move new_undef_syms declaration from tcc.h to tccelf.c
* WinCE PE subsystemTimo VJ Lahde2010-04-191-0/+2
|
* PE ARM: jump IAT arm codeTimo VJ Lahde2010-04-191-2/+13
|
* libtcc.c: fix compilation failure (inconsistent tcc_add_file_internal)Sergei Trofimovich2010-04-192-1/+2
| | | | | | | | | gcc -o libtcc1.o -c lib/libtcc1.c -O2 -Wall libtcc.c: At top level: libtcc.c:1063: error: static declaration of 'tcc_add_file_internal' follows non-static declaration tccelf.c:2915: note: previous implicit declaration of 'tcc_add_file_internal' was here Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
* Support more arm EABI compatible architecturesThomas Preud'homme2010-04-181-1/+1
| | | | | | | Add support for: - armv5tel - armv6j - armv7a
* Complain for static fct declared w/o file scopeThomas Preud'homme2010-04-151-0/+3
| | | | | Error out on static function without file scope and give an explaination to the user
* Better handle ld scriptsThomas Preud'homme2010-04-153-3/+136
| | | | | | | * search file from INPUT and GROUP commands in the library path in addition to the current directory * handle libraries specified by -lfoo options * Search lib in GROUP command repeatedly
* Don't prefix $prefix with $(DESTDIR) in configureThomas Preud'homme2010-04-151-1/+1
| | | | | | | Prefixing $prefix with $(DESTDIR) is an error as it could lead for example to mandir being equal to $(DESTDIR)$prefix/man where $prefix itself is equal to $(DESTDIR)/usr/local which make man be equal to $(DESTDIR)$(DESTDIR)/usr/local/man
* Correctly support all unary expression with sizeofThomas Preud'homme2010-04-151-6/+19
| | | | | | | Unary expression can start with a parenthesis. Thus, the current test to detect which sizeof form is being parsed is inaccurate. This patch makes tcc able to handle things like sizeof (x)[1] where x is declared as char x[5]; wich is a valid unary expression
* Error out on bad char array initializationRomain Francoise2010-04-151-0/+3
| | | | | | | Error out with an explicit message when trying to initialize a character array with something that's not a literal (optionally enclosed in braces) as per C99 6.7.8:14; thanks to Antti-Juhani Kaijanaho <ajk@debian.org> who did all the work.
* tccelf: fix warninggrischka2010-04-131-0/+2
|
* win32: sys/timeb.h use _ftime instead of _ftime32grischka2010-04-121-1/+2
|
* tccgen: Fix broken use of ATTR_MODEDetlef Riekenberg2010-04-061-2/+2
| | | | | | | Sorry for that. -- By by ... Detlef
* tccgen: Detect (but ignore) function redirectionDetlef Riekenberg2010-04-061-1/+30
| | | | | | | | tcc is now able to parse <stdio.h> from gcc, when __GNUC__ is also defined -- By by ... Detlef
* libtcc: Detect (but ignore) -init and -fini for -WlDetlef Riekenberg2010-04-054-13/+26
| | | | | -- By by ... Detlef
* libtcc: Support -soname for the linkerDetlef Riekenberg2010-04-051-0/+3
| | | | | -- By by ... Detlef
* libtcc: Allow multiple options for -Wl separated with ','Detlef Riekenberg2010-04-053-83/+116
| | | | | | | I moved the code to libtcc to prepare for a later tiny_ld -- By by ... Detlef
* tccasm: Detect (but ignore) .ident directiveDetlef Riekenberg2010-04-052-0/+19
| | | | | | | tcc is now able to compile many asm files generated by gcc -- By by ... Detlef
* tccasm: Detect (but ignore) .size directiveDetlef Riekenberg2010-04-052-0/+22
| | | | | -- By by ... Detlef
* tccasm: Support .type directive (only name,@function)Detlef Riekenberg2010-04-052-0/+32
| | | | | -- By by ... Detlef
* tccpp: Allow local labels to start with a dotDetlef Riekenberg2010-04-052-1/+10
| | | | | -- By by ... Detlef
* tccasm: Detect (but ignore) the .file directiveDetlef Riekenberg2010-04-052-0/+19
| | | | | | | | | Some patches, to allow tcc to compile asm sources generated by gcc and help tcc with the autoconf stuff used in Wine ( http://source.winehq.org/git/wine.git/ ) -- By by ... Detlef
* Avoid a crash with weak symbols for "make test"Timo VJ Lähde2010-04-051-1/+1
| | | | | | | Patch from the mailing list by Timo VJ Lähde -- By by ... Detlef
* generate inc and dec for smaller codeU-UNIT1\dennis2010-04-031-4/+10
|
* tinylibmaker: On error situation tempfile was not removedunknown2010-04-031-0/+3
|
* tccpp: Add missing bracket in an error messageDetlef Riekenberg2010-03-311-1/+1
|
* Catch array[index] with unknown sizeof(*array)Daniel Glöckner2010-03-151-2/+5
| | | | We could support this for index == 0, but GCC doesn't bother, so why should we?
* weak function symbolsManuel Simoni2010-02-276-3/+32
|
* fill got table for static linkingAli Gholami Rudi2010-02-053-0/+54
|
* Fixed bug which prevent tcc preprocessor to ignore line number directivesAlexandre Becoulet2010-02-011-1/+1
|
* Added patch to detect and use the paths for 64bit libraries asNikos Mavrogiannopoulos2010-01-284-2/+17
| | | | used by CentOS (affects X86_64 only).
* Dump the current token in skip(), when it's not the expected tokenDetlef Riekenberg2010-01-271-1/+1
|
* Add support for --helpDetlef Riekenberg2010-01-261-0/+1
|