4 - -x[c|a|n] filetype option (Sergey Korshunoff)
5 - -P[1], -dD, -dM preprocessor options (Sergey Korshunoff)
6 - -Wl,-(no-)whole-archive linker option (Reuben Thomas)
7 - -mms-bitfields option (David Mertens)
8 - -include <file> option (Michael Matz)
9 - @listfile support (Vlad Vissoultchev)
10 - CPATH, C_INCLUDE_PATH and LD_LIBRARY_PATH environment variables support
11 (Andrew Aladjev, Urs Janssen)
14 - new AARCH64 (arm64) target (Edmund Grimley Evans)
15 - vastly improved support for ARM hard float calling convention
16 (Thomas Preud'homme, Daniel Glöckner)
17 - provide a runtime library for ARM (Thomas Preud'homme)
18 - many x86-64 ABI fixes incl. XMM register passing and tests (James Lyon)
19 - ABI tests with native compiler using libtcc (James Lyon)
20 - UNICODE startup code supports wmain and wWinMain (YX Hao)
23 - VLA (variable length array) improved (James Lyon, Pip Cet)
24 - import functions by ordinal in .def files on windows (YX Hao)
25 - x86/x86-64 assembler much improved (Michael Matz)
26 - simple dead code suppression (Edmund Grimley Evans, Michael Matz, grischka)
27 - implement round/fmin/fmax etc. math on windows (Avi Halachmi)
28 - #pragma once support (Sergey Korshunoff, Vlad Vissoultchev, ...)
29 - switch/case code improved (Zdenek Pavlas)
30 - ~15% faster by TinyAlloc fast memory allocator (Vlad Vissoultchev)
33 - TinyCC partly relicensed to MIT license (See RELICENSING file).
38 - -MD/-MF (automatically generate dependencies for make)
39 - -pthread option (same as -D_REENTRANT -lpthread) (Henry Kroll III)
40 - -m32/-m64 to re-exec cross compiler (Henry Kroll III)
41 - -Wl, Mimic all GNU -option forms supported by ld (Kirill Smelkov)
42 - new LIBTCCAPI tcc_set_options() (grischka)
45 - Many improvements for x86-64 target (Shinichiro Hamaji, Michael Matz, grischka)
46 - x86-64 assembler (Frederic Feret)
47 - Many improvements for ARM target (Daniel Glöckner, Thomas Preud'homme)
48 - Support WinCE PE ARM (Timo VJ Lahde)
49 - Support ARM hardfloat calling convention (Thomas Preud'homme)
50 - Support SELinux (Security-Enhanced Linux) (Henry Kroll III)
51 - Support Debian GNU/kFreeBSD kernels (Pierre Chifflier)
52 - Support GNU/Hurd kernels (Thomas Preud'homme)
53 - Support OSX (tcc -run only) (Milutin Jovanovic)
54 - Support multiarch configuration (Thomas Preud'homme)
55 - Support out-of-tree build (Akim Demaille)
58 - C99 variable length arrays (Thomas Preud'homme & Joe Soroka)
59 - Asm labels for variables and functions (Thomas Preud'homme)
60 - STT_GNU_IFUNC (Indirect functions as externals) (Thomas Preud'homme)
61 - More tests (tests2) (Milutin Jovanovic)
65 - first support for x86-64 target (Shinichiro Hamaji)
67 - split tcc.c into tcc.h libtcc.c tccpp.c tccgen.c tcc.c
68 - improved preprocess output with linenumbers and spaces preserved
69 - tcc_relocate now copies code into user buffer
70 - fix bitfields with non-int types and in unions
71 - improve ARM cross-compiling (Daniel Glöckner)
72 - link stabstr sections from multiple objects
73 - better (still limited) support for multiple TCCStates
77 - added verbosity levels -v, -vv, -vvv
78 - Accept standard input as an inputstream (Hanzac Chen)
79 - Support c89 compilers other than gcc (Hanzac Chen)
80 - -soname linker option (Marc Andre Tanner)
81 - Just warn about unknown directives, ignore quotes in #error/#warning
82 - Define __STDC_VERSION__=199901L (477)
83 - Switch to newer tccpe.c (includes support for resources)
84 - Handle backslashes within #include/#error/#warning
85 - Import changesets (part 4) 428,457,460,467: defines for openbsd etc.
86 - Use _WIN32 for a windows hosted tcc and define it for the PE target,
87 otherwise define __unix / __linux (Detlef Riekenberg)
88 - Import changesets (part 3) 409,410: ARM EABI by Daniel Glöckner
89 - Some in-between fixes:
90 TCC -E no longer hangs with macro calls involving newlines.
91 (next_nomacro1 now advances the read-pointer with TOK_LINEFEED)
92 Global cast (int g_i = 1LL;) no longer crashes tcc.
93 (nocode_wanted is initially 1, and only 0 for gen_function)
94 On win32 now tcc.exe finds 'include' & 'lib' even if itself is in 'bin'.
95 (new function w32_tcc_lib_path removes 'bin' if detected)
96 Added quick build batch file for mingw (win32/build-tcc.bat)
97 Last added case label optimization (455) produced wrong code. Reverted.
99 - Import more changesets from Rob Landley's fork (part 2):
100 487: Handle long long constants in gen_opic() (Rob Landley)
101 484: Handle parentheses within __attribute__((...)) (Rob Landley)
102 480: Remove a goto in decl_initializer_alloc (Rob Landley)
103 475: Fix dereferences in inline assembly output (Joshua Phillips)
104 474: Cast ptrs to ints of different sizes correctly (Joshua Phillips)
105 473: Fix size of structs with empty array member (Joshua Phillips)
106 470: No warning for && and || with mixed pointers/integers (Rob Landley)
107 469: Fix symbol visibility problems in the linker (Vincent Pit)
108 468: Allow && and || involving pointer arguments (Rob Landley)
109 455: Optimize case labels with no code in between (Zdenek Pavlas)
110 450: Implement alloca for x86 (grischka)
111 415: Parse unicode escape sequences (Axel Liljencrantz)
112 407: Add a simple va_copy() in stdarg.h (Hasso Tepper)
113 400: Allow typedef names as symbols (Dave Dodge)
115 - Import some changesets from Rob Landley's fork (part 1):
116 462: Use LGPL with bcheck.c and il-gen.c
117 458: Fix global compound literals (in unary: case '&':) (Andrew Johnson)
118 456: Use return code from tcc_output_file in main() (Michael Somos)
119 442: Fix indirections with function pointers (***fn)() (grischka)
120 441: Fix LL left shift in libtcc1.c:__shldi3 (grischka)
121 440: Pass structures and function ptrs through ?: (grischka)
122 439: Keep rvalue in bit assignment (bit2 = bit1 = x) (grischka)
123 438: Degrade nonportable pointer assignment to warning (grischka)
124 437: Call 'saveregs()' before jumping with logical and/or/not (grischka)
125 435: Put local static variables into global memory (grischka)
126 432/434: Cast double and ptr to bool (grischka)
127 420: Zero pad x87 tenbyte long doubles (Felix Nawothnig)
128 417: Make 'sizeof' unsigned (Rob Landley)
129 397: Fix save_reg for longlongs (Daniel Glöckner)
130 396: Fix "invalid relocation entry" problem on ubuntu - (Bernhard Fischer)
132 - ignore AS_NEEDED ld command
133 - mark executable sections as executable when running in memory
134 - added support for win32 wchar_t (Filip Navara)
135 - segment override prefix support (Filip Navara)
136 - normalized slashes in paths (Filip Navara)
137 - windows style fastcall (Filip Navara)
138 - support for empty input register section in asm (Filip Navara)
139 - anonymous union/struct support (Filip Navara)
140 - fixed parsing of function parameters
141 - workaround for function pointers in conditional expressions (Dave Dodge)
142 - initial '-E' option support to use the C preprocessor alone
143 - discard type qualifiers when comparing function parameters (Dave Dodge)
144 - Bug fix: A long long value used as a test expression ignores the
145 upper 32 bits at runtime (Dave Dodge)
146 - fixed multiple concatenation of PPNUM tokens (initial patch by Dave Dodge)
147 - fixed multiple typedef specifiers handling
148 - fixed sign extension in some type conversions (Dave Dodge)
152 - initial PE executable format for windows version (grischka)
153 - '#pragma pack' support (grischka)
154 - '#include_next' support (Bernhard Fischer)
155 - ignore '-pipe' option
156 - added -f[no-]leading-underscore
157 - preprocessor function macro parsing fix (grischka)
161 - simple memory optimisations: kernel compilation is 30% faster
162 - linker symbol definitions fixes
164 - fixed value stack full error
165 - 'packed' attribute support for variables and structure fields
166 - ignore 'const' and 'volatile' in function prototypes
167 - allow '_Bool' in bit fields
171 - ARM target support (Daniel Glöckner)
172 - added '-funsigned-char, '-fsigned-char' and
173 '-Wimplicit-function-declaration'
174 - fixed assignment of const struct in struct
175 - line comment fix (reported by Bertram Felgenhauer)
176 - initial TMS320C67xx target support (TK)
178 - regparm() attribute
179 - many built-in assembler fixes
180 - added '.org', '.fill' and '.previous' assembler directives
181 - '-fno-common' option
182 - '-Ttext' linker option
183 - section alignment fixes
185 - do not generate code for unused inline functions
186 - '-oformat' linker option.
187 - added 'binary' output format.
192 - added '.gnu.linkonce' ELF sections support
193 - fixed libc linking when running in memory (avoid 'stat' function
195 - extended '-run' option to be able to give several arguments to a C
200 - "alacarte" linking (Dave Long)
201 - simpler function call
202 - more strict type checks
203 - added 'const' and 'volatile' support and associated warnings
204 - added -Werror, -Wunsupported, -Wwrite-strings, -Wall.
205 - added __builtin_types_compatible_p() and __builtin_constant_p()
206 - chars support in assembler (Dave Long)
207 - .string, .globl, .section, .text, .data and .bss asm directive
209 - man page generated from tcc-doc.texi
210 - fixed macro argument substitution
211 - fixed zero argument macro parsing
212 - changed license to LGPL
213 - added -rdynamic option support
217 - header fix (time.h)
218 - fixed inline asm without operand case
219 - fixed 'default:' or 'case x:' with '}' after (incorrect C construct accepted
221 - added 'A' inline asm constraint.
226 - tcc doc fixes (Peter Lund)
227 - struct parse fix (signaled by Pedro A. Aranda Gutierrez)
228 - better _Bool lvalue support (signaled by Alex Measday)
229 - function parameters must be converted to pointers (signaled by Neil Brown)
230 - sanitized string and character constant parsing
231 - fixed comment parse (signaled by Damian M Gryski)
232 - fixed macro function bug (signaled by Philippe Ribet)
233 - added configure (initial patch by Mitchell N Charity)
234 - added '-run' and '-v' options (initial patch by vlindos)
235 - added real date report in __DATE__ and __TIME__ macros
239 - added assembler language support
240 - added GCC inline asm() support
241 - fixed multiple variable definitions : uninitialized variables are
242 created as COMMON symbols.
243 - optimized macro processing
244 - added GCC statement expressions support
245 - added GCC local labels support
246 - fixed array declaration in old style function parameters
247 - support casts in static structure initializations
248 - added various __xxx[__] keywords for GCC compatibility
249 - ignore __extension__ GCC in an expression or in a type (still not perfect)
250 - added '? :' GCC extension support
254 - compilation fixes for glibc 2.2, gcc 2.95.3 and gcc 3.2.
255 - FreeBSD compile fixes. Makefile patches still missing (Carl Drougge).
256 - fixed file type guessing if '.' is in the path.
257 - fixed tcc_compile_string()
258 - add a dummy page in ELF files to fix RX/RW accesses (pageexec at
263 - added #warning. error message if invalid preprocessing directive.
264 - added CType structure to ease typing (faster parse).
265 - suppressed secondary hash tables (faster parse).
266 - rewrote parser by optimizing common cases (faster parse).
267 - fixed signed long long comparisons.
268 - fixed 'int a(), b();' declaration case.
269 - fixed structure init without '{}'.
270 - correct alignment support in structures.
271 - empty structures support.
272 - gcc testsuite now supported.
273 - output only warning if implicit integer/pointer conversions.
274 - added static bitfield init.
278 - correct preprocessing token pasting (## operator) in all cases (added
279 preprocessing number token).
280 - fixed long long register spill.
281 - fixed signed long long '>>'.
282 - removed memory leaks.
283 - better error handling : processing can continue on link errors. A
284 custom callback can be added to display error messages. Most
285 errors do not call exit() now.
286 - ignore -O, -W, -m and -f options
287 - added old style function declarations
288 - added GCC __alignof__ support.
289 - added GCC typeof support.
290 - added GCC computed gotos support.
291 - added stack backtrace in runtime error message. Improved runtime
292 error position display.
296 - more fixes for || and && handling.
297 - improved '? :' type handling.
298 - fixed bound checking generation with structures
299 - force '#endif' to be in same file as matching '#if'
300 - #include file optimization with '#ifndef #endif' construct detection
301 - macro handling optimization
302 - added tcc_relocate() and tcc_get_symbol() in libtcc.
306 - stdarg.h fix for double type (thanks to Philippe Ribet).
307 - correct white space characters and added MSDOS newline support.
308 - fixed invalid implicit function call type declaration.
309 - special macros such as __LINE__ are defined if tested with defined().
310 - fixed '!' operator with relocated address.
311 - added symbol + offset relocation (fixes some static variable initializers)
312 - '-l' option can be specified anywhere. '-c' option yields default
313 output name. added '-r' option for relocatable output.
314 - fixed '\nnn' octal parsing.
315 - fixed local extern variables declarations.
319 - fixed lvalue type when saved in local stack.
320 - fixed '#include' syntax when using macros.
322 - removed size limit on strings. Unified string constants handling
323 with variable declarations.
324 - added correct support for '\xX' in wchar_t strings.
325 - added support for bound checking in generated executables
326 - fixed -I include order.
327 - fixed incorrect function displayed in runtime error.
331 - fixed preprocessor expression parsing for #if/#elif.
332 - relocated debug info (.stab section).
333 - relocated bounds info (.bounds section).
334 - fixed cast to char of char constants ('\377' is -1 instead of 255)
335 - fixed implicit cast for unary plus.
336 - strings and '__func__' have now 'char[]' type instead of 'char *'
337 (fixes sizeof() return value).
338 - added __start_xxx and __stop_xxx symbols in linker.
339 - better DLL creation support (option -shared begins to work).
340 - ELF sections and hash tables are resized dynamically.
341 - executables and DLLs are stripped by default.
345 - First version of full ELF linking support (generate objects, static
346 executable, dynamic executable, dynamic libraries). Dynamic library
347 support is not finished (need PIC support in compiler and some
348 patches in symbol exporting).
349 - First version of ELF loader for object (.o) and archive (.a) files.
350 - Support of simple GNU ld scripts (GROUP and FILE commands)
351 - Separated runtime library and bound check code from TCC (smaller
353 - fixed register reload in float compare.
354 - fixed implicit char/short to int casting.
355 - allow array type for address of ('&') operator.
356 - fixed unused || or && result.
357 - added GCC style variadic macro support.
358 - optimized bound checking code for array access.
359 - tcc includes are now in $(prefix)/lib/tcc/include.
360 - more command line options - more consistent handling of multiple
362 - added tcc man page (thanks to Cyril Bouthors).
363 - uClibc Makefile update
364 - converted documentation to texinfo format.
365 - added developper's guide in documentation.
369 - added library API for easy dynamic compilation (see libtcc.h - first
371 - fixed long long register spill bug.
372 - fixed '? :' register spill bug.
376 - added floating point constant propagation (fixes negative floating
377 point constants bug).
381 - uClibc patches (submitted by Alfonso Martone).
382 - error reporting fix
383 - added CONFIG_TCC_BCHECK to get smaller code if needed.
387 - windows port (currently cannot use -g, -b and dll functions).
388 - faster and simpler I/O handling.
389 - '-D' option works in all cases.
390 - preprocessor fixes (#elif and empty macro args)
391 - floating point fixes
392 - first code for CIL generation (does not work yet)
396 - better and smaller code generator.
397 - full ISOC99 64 bit 'long long' support.
398 - full 32 bit 'float', 64 bit 'double' and 96 bit 'long double' support.
400 - added assembly sections support.
401 - even faster startup time by mmaping sections instead of mallocing them.
402 - added GNUC __attribute__ keyword support (currently supports
403 'section' and 'aligned' attributes).
404 - added ELF file output (only usable for debugging now)
405 - added debug symbol generation (STAB format).
406 - added integrated runtime error analysis ('-g' option: print clear
407 run time error messages instead of "Segmentation fault").
408 - added first version of tiny memory and bound checker ('-b' option).
412 - even faster parsing.
413 - various syntax parsing fixes.
414 - fixed external relocation handling for variables or functions pointers.
415 - better function pointers type handling.
416 - can compile multiple files (-i option).
417 - ANSI C bit fields are supported.
418 - beginning of float/double/long double support.
419 - beginning of long long support.
423 - full ISOC99 initializers handling.
425 - structures handle in assignments and as function param or return value.
426 - wide chars and strings.