aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* better constant handling for expr_condJoe Soroka2011-07-112-1/+6
|
* fix self-referential token pastingJoe Soroka2011-07-082-2/+20
|
* Use CONFIG_TCC_LDDIR for ld.so on all linux archsThomas Preud'homme2011-07-081-4/+4
|
* Fix problem spotted in <4E15F966.4090102@gmx.de>Thomas Preud'homme2011-07-081-35/+33
| | | | | | | | * Rename tcc_split_path_components * Move tcc_split_path below memory wrapper section * Ident tcc_split_path by 4 * Remove prefix and suffix clutter in tcc_split_path * Don't dereference beyond the end of the search paths string
* fix end-of-scope for self-referential macrosJoe Soroka2011-07-082-2/+3
|
* Remove useless changes from 31ca000d in configureThomas Preud'homme2011-07-071-31/+15
| | | | | After commit 4d6a4a26e08ef8581c70d29f578a42ab7d738c2d, the changes in configure are no longer needed.
* Make ex1.c and ex4.c be executable on any systemsThomas Preud'homme2011-07-072-2/+2
| | | | | Use /usr/bin/env to make ex1.c and ex4.c on any systems, wherever is installed tcc.
* Document in README that ex4.c can be executed.Thomas Preud'homme2011-07-071-1/+2
|
* Revert "Make examples' shebang use target tcc bindir path"Thomas Preud'homme2011-07-074-14/+7
| | | | This reverts commit cb2138f8b098feb1b51a407343a4b99e25d5b506.
* Add configuration of include subdirectoriesThomas Preud'homme2011-07-072-2/+20
| | | | | | | | Add the possibility to search headers in several subdirectories of /usr/local/include and /usr/include. A possible use case would be for tcc to search for headers in /usr/local/include/x86_64-linux-gnu, /usr/local/include, /usr/include/x86_64-linux-gnu and /usr/include in turn.
* Introduce tcc_split_path_component for 31ca000dThomas Preud'homme2011-07-071-20/+41
| | | | | Rewrite code introduced by 31ca000d and following commits around a new function tcc_split_path_component.
* Free extra_libdir_str after use.Thomas Preud'homme2011-07-061-0/+1
|
* Fix commit 31ca000dThomas Preud'homme2011-07-051-3/+7
| | | | | * CONFIG_TCC_*LDDIR should not be exported if no --*lddir option is used. * Don't write a : at the beginning of extralddir
* Add multiarch dirs to linker search pathThomas Preud'homme2011-07-053-21/+58
| | | | | | | | | | | By default, tcc search libraries in /lib and /usr/local/lib while crt*.o files are searched in /usr/lib and ld.so is searched in /lib. Unfortunetely the path are hardcoded in source code. This patch allow tcc to look in an other directory and also to look in extra directories. It's then possible to make tcc search libraries in /lib/x86_64-linux-gnu and /usr/local/lib/x86_64-linux-gnu while crt*.o files are searched in /usr/lib/x86_64-linux-gnu and ld.so is searched in /lib/x86_64-linux-gnu.
* Make examples' shebang use target tcc bindir pathThomas Preud'homme2011-06-184-7/+14
| | | | | | Use @BINDIR@ in shebang of examples to put the right path on the target system. That is, use #!/usr/local/bin/tcc if tcc is installed in /usr/local/bin and #!/usr/bin/tcc if tcc is installed in /usr/bin/tcc.
* Default to create progs with symbols (incl. debug)Thomas Preud'homme2011-06-172-5/+15
| | | | | | | * Set CFLAGS entirely in configure if not already set. * Compile bcheck.c with the same flags as the other source files * Don't strip binaries by default (GB are cheap now) but provide a --strip-binaries option in configure script.
* Update ChangelogThomas Preud'homme2011-05-171-5/+6
| | | | | | | * Mention the various ARM improvement * Make changelog consistent with regards to initial capital letters * Fix credits for VLA * Fix entry about asm label (variable are also supported)
* make test work when LIBTCC1 not definedThomas Preud'homme2011-05-172-1/+7
| | | | | Make libtest depends on LIBTCC1 instead of ../libtcc1.a and define LIBTCC1 to $(TOP)/$(LIBTCC1) if LIBTCC1 is defined
* tcc-doc: remove obsolete '-o option must also be given'grischka2011-05-171-6/+4
|
* Fix calling ARM EABI functions returning big structuresDaniel Glöckner2011-05-171-1/+1
| | | | The wrong type was tested to determine the size of the structure.
* Support scratchbox, Nokia N900 and qemu arm archsThomas Preud'homme2011-05-161-1/+1
| | | | Add arm, armv5tejl and armv7l to the list of supported arm architectures
* Remove unused variablesThomas Preud'homme2011-05-162-0/+5
| | | | | Declare float type conditionally to not declare them conditionally when they are not used.
* Remove unused variablesThomas Preud'homme2011-05-164-8/+14
| | | | | Remove unused local variables and declare them conditionally when they are used only on some architectures.
* Improve weak aliases handlingThomas Preud'homme2011-05-161-17/+19
| | | | | | * Include only the STB_GLOBAL alias symbol in .dynsym section * Stop the loop when STB_GLOBAL symbol is found * Reword / simplify comment
* make clean work when LIBTCC1 not definedThomas Preud'homme2011-05-141-0/+2
| | | | | Don't call make -C lib clean if LIBTCC1 is not defined, else make clean fails (for example of arm).
* fix spurious vstack-leak warnings on errorJoe Soroka2011-05-021-3/+3
|
* libtcc.c: report vstack "leaks" only if compile succeededJoe Soroka2011-04-141-2/+3
|
* use of TOK_alloca breaks cross compiler buildJoe Soroka2011-04-121-0/+4
| | | | | | | | | | | VLA inserts a call to alloca via enum TOK_alloca, but TOK_alloca only exists on I386 and X86_64 targets. This patch just emits an error at compile-time if someone tries to compile some VLA code for a TOK_alloca-less target. The best solution might be to just push the problem to link-time, since the existence-or-not of a alloca implementation can only be determined by linking. It seems like just declaring TOK_alloca unconditionally would achieve that, but for now, this at least gets the cross compilers to build.
* tcctok.h: fix ifdef target/host confusionJoe Soroka2011-04-121-1/+1
|
* simplify/rollback VLA pointer subtractionJoe Soroka2011-04-111-10/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I don't know if it makes a difference to gen_op(TOK_PDIV) or not, but logically the ptr1_is_vla test in TP's VLA patch seems out of order, where the patch to fix it would be: ------------------------------------------------------------------ @@ -1581,15 +1581,15 @@ ST_FUNC void gen_op(int op) u = pointed_size(&vtop[-1].type); } gen_opic(op); + if (ptr1_is_vla) + vswap(); /* set to integer type */ #ifdef TCC_TARGET_X86_64 vtop->type.t = VT_LLONG; #else vtop->type.t = VT_INT; #endif - if (ptr1_is_vla) - vswap(); - else + if (!ptr1_is_vla) vpushi(u); gen_op(TOK_PDIV); } else { ------------------------------------------------------------------ Instead of that patch, which increases the complexity of the code, this one fixes the problem by just rolling back and retrying with a simpler approach.
* update documentation to reflect VLA changesJoe Soroka2011-04-091-3/+3
|
* remove no-longer-necessary naive fix for vla vstack leakJoe Soroka2011-04-091-5/+0
|
* prevent internal segfault on apparent VLA at file scopeJoe Soroka2011-04-091-0/+2
|
* VLA fix [3/3]: store VLA sizeofs in anonymous runtime stack varsJoe Soroka2011-04-092-34/+22
|
* VLA fix [2/3]: removed VT_ARRAY from VT_VLA typesJoe Soroka2011-04-081-20/+11
| | | | | | | | | A VLA is not really an array, it's a pointer-to-an-array. Making this explicit allows us to back out a few parts of the original VLA patch and paves the way for the next part of the fix, where a VLA will be stored on the runtime stack as a pointer-to-an-array, rather than on the compile- time stack as a Sym*.
* VLA fix [1/3]: added testcase demonstrating VLA bugJoe Soroka2011-04-081-1/+6
|
* move a comment to its correct locationJoe Soroka2011-04-081-1/+1
|
* add naive workaround for VLA vstack leakJoe Soroka2011-04-081-0/+5
|
* VLA leaks vstack. added warning to detect future leaksJoe Soroka2011-04-081-0/+4
|
* VLA bcheck works via bound alloca; add test, remove warningJoe Soroka2011-04-062-4/+34
|
* clarify post_type() VT_STORAGE handling by moving it outJoe Soroka2011-04-061-7/+7
|
* re-apply VLA by Thomas Preud'hommeJoe Soroka2011-04-067-35/+173
|
* handle c99 flexible array members less hackilyJoe Soroka2011-03-181-1/+18
|
* revert complicated & broken flexible array member handlingJoe Soroka2011-03-182-21/+5
|
* sizeof(struct with "flexible array member") is wrongJoe Soroka2011-03-181-0/+1
|
* fix c99 for-loop init decl scope (thanks: grischka)Joe Soroka2011-03-082-0/+4
| | | | see http://lists.nongnu.org/archive/html/tinycc-devel/2011-03/msg00005.html
* clarify support for functions returning an array (try#2)Joe Soroka2011-03-081-4/+9
| | | | | fixes first attempt: http://repo.or.cz/w/tinycc.git/commitdiff/31fe1cc
* revert last commit. fails "make test"Joe Soroka2011-03-081-8/+5
| | | | | | | | | test target in Makefile does not depend on tcc. i'm not sure why, but i can think of at least one good reason. in my local tree I have it modified to do so, but somehow inadvertently reverted that so when i did "make test" before committing, it didn't actually test my changes. sorry.
* clarify support for functions returning an arrayJoe Soroka2011-03-081-5/+8
| | | | | | | | | previously, tcc would accept a prototype of a function returning an array, but not giving those functions bodies nor calling them. it seems that gcc has never supported them, so we should probably just error out... but it's possible that someone already using tcc includes some header that contains an unused prototype for one, so let's continue to support that.
* support c99 for-loop init decls (2nd attempt)Joe Soroka2011-03-081-3/+18
|