Code

History

Commits on dev1330+
  1. win32/include/winsock2.h (look previous commit)seyko committed 11 years ago7b96ddd
  2. add declaration of the "double trunc (double _x)" and winsock2.h This allow to build a windows version of the nimrod compiler.seyko committed 11 years ago351e2ec
  3. A lrint functions in win32/include/math.h are rewrittem because tcc can't handle "t" constraintseyko committed 11 years ago4b61f7f
  4. wincrt1.c: add definition of the __TRY__ if not defined Some i686-pc-mingw32-gcc don't know about __TRY__seyko committed 11 years agodfbb00c
  5. Report a mingw as a execution environment instead of the Win32, Win64, WinCE when executing "tcc -v". Example $ ./i386-win-tcc -v tcc version 0.9.26 (i386, mingw) instead of the tcc version 0.9.26 (i386, Win32)seyko committed 11 years ago859ce5e
  6. Don't add a slash to the install path of the tcc in display_info()seyko committed 11 years ago2e6626a
  7. A 32/64 bit tcc on linux: an arch specific path for libtcc1.a Don't use /usr/local/lib/tcc/libtcc1.a for i386 and x86_64 A $(tccdir)/i386 directory was used to install a libtcc1.a but only when cross compiling. And no x86_64 directory. And this directory location was unknown inside tccelf.cseyko committed 11 years agod70440b
  8. Disable floating-point test for ARM soft-floatseyko committed 11 years ago43e4a40
  9. arm-unused-warnings: remove problems with defined but unused wariablesseyko committed 11 years ago774f061
  10. tcc_add_runtime() for a CONFIG_USE_LIBGCC case: reducing a complexityseyko committed 11 years ago6cbf4fb
  11. x86_64-win-tcc elfinterp: a bug correctionseyko committed 11 years agocd4f3d9
  12. lddir-on-x86-64: let CONFIG_LDDIR=lib64 by default if TCC_TARGET_X86_64 This is done for the case when CONFIG_LDDIR is not configured. Example: ./configure --enable-crossseyko committed 11 years ago2d83ec7
  13. Turn on a implicit-function-declaration warning by default.seyko committed 11 years agob5f88b5
  14. x86_64-tcc and libtcc1.c: size_t definition is needed for a x86_64-tcc to parse memset()seyko committed 11 years ago7f36abd
  15. -std=c99 option for the tcc: allow to use a tcc as a reference compiler for "make test" tcc will igmore this option.seyko committed 11 years agoe374a73
  16. remove a gcc warning for bcheck on x86_64 arch: conversion to pointer from integer of different sizeseyko committed 11 years ago4c8ffb3
  17. Use a display_info() to output a header of the tcc help listingseyko committed 11 years ago20074d8
  18. A partial reverse for commit eda2c756edc4dca004ba217d5bf361235dd9de1fseyko committed 11 years ago2437ccd
  19. A reverse of the commit 14745bdeb because of the problems while compiling linux 2.4.26 A test program: /////////// typedef unsigned int __u32; static inline const __u32 __fswab32(__u32 x) { return ({ __u32 __tmp = (x) ; ___swab32(__tmp); }); } void func() { int aaa = 1; int snd_wnd = 2; int TCP_FLAG_ACK = 3; int pred_flags = (__builtin_constant_p((__u32) (((aaa << 26) | (__builtin_constant_p((__u32)((TCP_FLAG_ACK))) ? ({ __u32 __x = (((TCP_FLAG_ACK))); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }) : __fswab32(((TCP_FLAG_ACK)))) | snd_wnd))) ? ({ __u32 __x = ((((aaa << 26) | (__builtin_constant_p((__u32)((TCP_FLAG_ACK))) ? ({ __u32 __x = (((TCP_FLAG_ACK))); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }) : __fswab32(((TCP_FLAG_ACK)))) | snd_wnd))); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }) : __fswab32((((aaa << 26) | (__builtin_constant_p((__u32)((TCP_FLAG_ACK))) ? ({ __u32 __x = (((TCP_FLAG_ACK))); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }) : __fswab32(((TCP_FLAG_ACK)))) | snd_wnd)))); } //////////// error: ';' expected (got "(")seyko committed 11 years agoc45a869
  20. a void to void cast. Allow tcc to compile the following program /////// void func1() {} void func2() { return func1(); } ////// gcc accepts this programseyko committed 11 years ago6fd4e5b
  21. a statement expressions with a pointer return type A test program: ////////////// int main() { void *p = ({ 0 ; ((void *)1); }); } ///////////// Porblem is introduced in a commit a80acab: Display error on statement expressions with complex return type This error is exposed when compiling a linux 2.4.26. tcc 0.9.23 can sucessfully compile this version of the linux.seyko committed 11 years ago09feeca
  22. iitialisation of the empty struct Current tcc don't understand an initialization of the empty struct This problem was found trying to compile a linux kernel 2.4.26 which can be compiled by tcc 0.9.23seyko committed 11 years ago1a1e954
  23. tcc don't understand am extern array of structs. A regression was found trying to compile a linux kernel 2.4.26 which can be compiled by tcc 0.9.23seyko committed 11 years agobbf8221
  24. tcc_free(table_ident) in preprocess_new() if table_ident != NULLseyko committed 11 years agoa429d40
  25. tcc_undefine_symbol(): free an alloced symbolseyko committed 11 years agoe2a8fd4
  26. Add a debug info when a #line directive is handled. The problem was: a debug info for the file which contain a #line directive (for example a preprocessed one) was wrong.seyko committed 11 years ago8d10c57
  27. Revert a grischka patch: gdb refused to know "main" It is a strange patch because before this commit a gdb is working well and after this commit there is exactly the same problem on Linux: gdb refuses to know "main"seyko committed 11 years ago09d4e4f
  28. pp-many-files: don't drop a preprocessor defines when tcc going to preprocess a next file in the same pass like tcc -E one.c two.c three.c -o combined.i This will allow to speed up a compilation process by using a commamd like tcc -E *.c | tcc -o program.exe -xc -seyko committed 11 years ago252a151
  29. A gcc preprocessor option -dD added With this option on a defines are included into the output (inside comments). This will allow to debug a problems like:seyko committed 11 years agob7b9f9f
  30. Added a gcc preprocessor options -P, -P1seyko committed 11 years ago50cdccf
  31. Move a line_ref variable from tcc_preprocess() function into struct BufferedFile. This id needed for a right ouput in other places, precisely to calculate a number of empty lines which are waiting to output.seyko committed 11 years ago40418f8
  32. A preprocessor should Interpret an input line "# NUM FILENAME" as "#line NUM FILENAME"seyko committed 11 years ago5e3e321
  33. arm64-gen.c: Improve generation of stack offsets.Edmund Grimley Evans committed 11 years ago1706d22
  34. arm64-gen.c: Rename some functions and add comments.Edmund Grimley Evans committed 11 years ago1d41da9
  35. arm64: Improve constant generation, with tests.Edmund Grimley Evans committed 11 years ago86e8dcd