3 - Add support for -MD/-MF (automatically generate dependencies for make)
4 - Add tcc_open_bf() function for BufferedFile compilation (grischka)
5 - Support Security-Enhanced Linux (Henry Kroll III)
6 - Split libtcc1.a build into separate directories (Henry Kroll III)
7 - Add -pthread option = -D_REENTRANT -lpthread (Henry Kroll III)
8 - Register __TRY__ SEH in startup code only for i386 (grischka)
9 - Support Debian GNU/kFreeBSD kernels (Pierre Chifflier)
10 - Support GNU/Hurd kernels (Thomas Preud'homme)
11 - support for asm labels for functions (Thomas Preud'homme)
12 - fix 32 to 64 bit casts, alignment and struct issues (Shinichiro Hamaji)
13 - mimic all GNU -option forms supported by ld (Kirill Smelkov)
14 - support indirect functions as externals (Thomas Preud'homme)
15 - Add support for C99 variable length arrays (Thomas Preud'homme)
19 - first support for x86-64 target (Shinichiro Hamaji)
21 - split tcc.c into tcc.h libtcc.c tccpp.c tccgen.c tcc.c
22 - improved preprocess output with linenumbers and spaces preserved
23 - tcc_relocate now copies code into user buffer
24 - fix bitfields with non-int types and in unions
25 - improve ARM cross-compiling (Daniel Glöckner)
26 - link stabstr sections from multiple objects
27 - better (still limited) support for multiple TCCStates
31 - added verbosity levels -v, -vv, -vvv
32 - Accept standard input as an inputstream (Hanzac Chen)
33 - Support c89 compilers other than gcc (Hanzac Chen)
34 - -soname linker option (Marc Andre Tanner)
35 - Just warn about unknown directives, ignore quotes in #error/#warning
36 - Define __STDC_VERSION__=199901L (477)
37 - Switch to newer tccpe.c (includes support for resources)
38 - Handle backslashes within #include/#error/#warning
39 - Import changesets (part 4) 428,457,460,467: defines for openbsd etc.
40 - Use _WIN32 for a windows hosted tcc and define it for the PE target,
41 otherwise define __unix / __linux (Detlef Riekenberg)
42 - Import changesets (part 3) 409,410: ARM EABI by Daniel Glöckner
43 - Some in-between fixes:
44 TCC -E no longer hangs with macro calls involving newlines.
45 (next_nomacro1 now advances the read-pointer with TOK_LINEFEED)
46 Global cast (int g_i = 1LL;) no longer crashes tcc.
47 (nocode_wanted is initially 1, and only 0 for gen_function)
48 On win32 now tcc.exe finds 'include' & 'lib' even if itself is in 'bin'.
49 (new function w32_tcc_lib_path removes 'bin' if detected)
50 Added quick build batch file for mingw (win32/build-tcc.bat)
51 Last added case label optimization (455) produced wrong code. Reverted.
53 - Import more changesets from Rob Landley's fork (part 2):
54 487: Handle long long constants in gen_opic() (Rob Landley)
55 484: Handle parentheses within __attribute__((...)) (Rob Landley)
56 480: Remove a goto in decl_initializer_alloc (Rob Landley)
57 475: Fix dereferences in inline assembly output (Joshua Phillips)
58 474: Cast ptrs to ints of different sizes correctly (Joshua Phillips)
59 473: Fix size of structs with empty array member (Joshua Phillips)
60 470: No warning for && and || with mixed pointers/integers (Rob Landley)
61 469: Fix symbol visibility problems in the linker (Vincent Pit)
62 468: Allow && and || involving pointer arguments (Rob Landley)
63 455: Optimize case labels with no code in between (Zdenek Pavlas)
64 450: Implement alloca for x86 (grischka)
65 415: Parse unicode escape sequences (Axel Liljencrantz)
66 407: Add a simple va_copy() in stdarg.h (Hasso Tepper)
67 400: Allow typedef names as symbols (Dave Dodge)
69 - Import some changesets from Rob Landley's fork (part 1):
70 462: Use LGPL with bcheck.c and il-gen.c
71 458: Fix global compound literals (in unary: case '&':) (Andrew Johnson)
72 456: Use return code from tcc_output_file in main() (Michael Somos)
73 442: Fix indirections with function pointers (***fn)() (grischka)
74 441: Fix LL left shift in libtcc1.c:__shldi3 (grischka)
75 440: Pass structures and function ptrs through ?: (grischka)
76 439: Keep rvalue in bit assignment (bit2 = bit1 = x) (grischka)
77 438: Degrade nonportable pointer assignment to warning (grischka)
78 437: Call 'saveregs()' before jumping with logical and/or/not (grischka)
79 435: Put local static variables into global memory (grischka)
80 432/434: Cast double and ptr to bool (grischka)
81 420: Zero pad x87 tenbyte long doubles (Felix Nawothnig)
82 417: Make 'sizeof' unsigned (Rob Landley)
83 397: Fix save_reg for longlongs (Daniel Glöckner)
84 396: Fix "invalid relocation entry" problem on ubuntu - (Bernhard Fischer)
86 - ignore AS_NEEDED ld command
87 - mark executable sections as executable when running in memory
88 - added support for win32 wchar_t (Filip Navara)
89 - segment override prefix support (Filip Navara)
90 - normalized slashes in paths (Filip Navara)
91 - windows style fastcall (Filip Navara)
92 - support for empty input register section in asm (Filip Navara)
93 - anonymous union/struct support (Filip Navara)
94 - fixed parsing of function parameters
95 - workaround for function pointers in conditional expressions (Dave Dodge)
96 - initial '-E' option support to use the C preprocessor alone
97 - discard type qualifiers when comparing function parameters (Dave Dodge)
98 - Bug fix: A long long value used as a test expression ignores the
99 upper 32 bits at runtime (Dave Dodge)
100 - fixed multiple concatenation of PPNUM tokens (initial patch by Dave Dodge)
101 - fixed multiple typedef specifiers handling
102 - fixed sign extension in some type conversions (Dave Dodge)
106 - initial PE executable format for windows version (grischka)
107 - '#pragma pack' support (grischka)
108 - '#include_next' support (Bernhard Fischer)
109 - ignore '-pipe' option
110 - added -f[no-]leading-underscore
111 - preprocessor function macro parsing fix (grischka)
115 - simple memory optimisations: kernel compilation is 30% faster
116 - linker symbol definitions fixes
118 - fixed value stack full error
119 - 'packed' attribute support for variables and structure fields
120 - ignore 'const' and 'volatile' in function prototypes
121 - allow '_Bool' in bit fields
125 - ARM target support (Daniel Glöckner)
126 - added '-funsigned-char, '-fsigned-char' and
127 '-Wimplicit-function-declaration'
128 - fixed assignment of const struct in struct
129 - line comment fix (reported by Bertram Felgenhauer)
130 - initial TMS320C67xx target support (TK)
132 - regparm() attribute
133 - many built-in assembler fixes
134 - added '.org', '.fill' and '.previous' assembler directives
135 - '-fno-common' option
136 - '-Ttext' linker option
137 - section alignment fixes
139 - do not generate code for unused inline functions
140 - '-oformat' linker option.
141 - added 'binary' output format.
146 - added '.gnu.linkonce' ELF sections support
147 - fixed libc linking when running in memory (avoid 'stat' function
149 - extended '-run' option to be able to give several arguments to a C
154 - "alacarte" linking (Dave Long)
155 - simpler function call
156 - more strict type checks
157 - added 'const' and 'volatile' support and associated warnings
158 - added -Werror, -Wunsupported, -Wwrite-strings, -Wall.
159 - added __builtin_types_compatible_p() and __builtin_constant_p()
160 - chars support in assembler (Dave Long)
161 - .string, .globl, .section, .text, .data and .bss asm directive
163 - man page generated from tcc-doc.texi
164 - fixed macro argument substitution
165 - fixed zero argument macro parsing
166 - changed license to LGPL
167 - added -rdynamic option support
171 - header fix (time.h)
172 - fixed inline asm without operand case
173 - fixed 'default:' or 'case x:' with '}' after (incorrect C construct accepted
175 - added 'A' inline asm constraint.
180 - tcc doc fixes (Peter Lund)
181 - struct parse fix (signaled by Pedro A. Aranda Gutierrez)
182 - better _Bool lvalue support (signaled by Alex Measday)
183 - function parameters must be converted to pointers (signaled by Neil Brown)
184 - sanitized string and character constant parsing
185 - fixed comment parse (signaled by Damian M Gryski)
186 - fixed macro function bug (signaled by Philippe Ribet)
187 - added configure (initial patch by Mitchell N Charity)
188 - added '-run' and '-v' options (initial patch by vlindos)
189 - added real date report in __DATE__ and __TIME__ macros
193 - added assembler language support
194 - added GCC inline asm() support
195 - fixed multiple variable definitions : uninitialized variables are
196 created as COMMON symbols.
197 - optimized macro processing
198 - added GCC statement expressions support
199 - added GCC local labels support
200 - fixed array declaration in old style function parameters
201 - support casts in static structure initializations
202 - added various __xxx[__] keywords for GCC compatibility
203 - ignore __extension__ GCC in an expression or in a type (still not perfect)
204 - added '? :' GCC extension support
208 - compilation fixes for glibc 2.2, gcc 2.95.3 and gcc 3.2.
209 - FreeBSD compile fixes. Makefile patches still missing (Carl Drougge).
210 - fixed file type guessing if '.' is in the path.
211 - fixed tcc_compile_string()
212 - add a dummy page in ELF files to fix RX/RW accesses (pageexec at
217 - added #warning. error message if invalid preprocessing directive.
218 - added CType structure to ease typing (faster parse).
219 - suppressed secondary hash tables (faster parse).
220 - rewrote parser by optimizing common cases (faster parse).
221 - fixed signed long long comparisons.
222 - fixed 'int a(), b();' declaration case.
223 - fixed structure init without '{}'.
224 - correct alignment support in structures.
225 - empty structures support.
226 - gcc testsuite now supported.
227 - output only warning if implicit integer/pointer conversions.
228 - added static bitfield init.
232 - correct preprocessing token pasting (## operator) in all cases (added
233 preprocessing number token).
234 - fixed long long register spill.
235 - fixed signed long long '>>'.
236 - removed memory leaks.
237 - better error handling : processing can continue on link errors. A
238 custom callback can be added to display error messages. Most
239 errors do not call exit() now.
240 - ignore -O, -W, -m and -f options
241 - added old style function declarations
242 - added GCC __alignof__ support.
243 - added GCC typeof support.
244 - added GCC computed gotos support.
245 - added stack backtrace in runtime error message. Improved runtime
246 error position display.
250 - more fixes for || and && handling.
251 - improved '? :' type handling.
252 - fixed bound checking generation with structures
253 - force '#endif' to be in same file as matching '#if'
254 - #include file optimization with '#ifndef #endif' construct detection
255 - macro handling optimization
256 - added tcc_relocate() and tcc_get_symbol() in libtcc.
260 - stdarg.h fix for double type (thanks to Philippe Ribet).
261 - correct white space characters and added MSDOS newline support.
262 - fixed invalid implicit function call type declaration.
263 - special macros such as __LINE__ are defined if tested with defined().
264 - fixed '!' operator with relocated address.
265 - added symbol + offset relocation (fixes some static variable initializers)
266 - '-l' option can be specified anywhere. '-c' option yields default
267 output name. added '-r' option for relocatable output.
268 - fixed '\nnn' octal parsing.
269 - fixed local extern variables declarations.
273 - fixed lvalue type when saved in local stack.
274 - fixed '#include' syntax when using macros.
276 - removed size limit on strings. Unified string constants handling
277 with variable declarations.
278 - added correct support for '\xX' in wchar_t strings.
279 - added support for bound checking in generated executables
280 - fixed -I include order.
281 - fixed incorrect function displayed in runtime error.
285 - fixed preprocessor expression parsing for #if/#elif.
286 - relocated debug info (.stab section).
287 - relocated bounds info (.bounds section).
288 - fixed cast to char of char constants ('\377' is -1 instead of 255)
289 - fixed implicit cast for unary plus.
290 - strings and '__func__' have now 'char[]' type instead of 'char *'
291 (fixes sizeof() return value).
292 - added __start_xxx and __stop_xxx symbols in linker.
293 - better DLL creation support (option -shared begins to work).
294 - ELF sections and hash tables are resized dynamically.
295 - executables and DLLs are stripped by default.
299 - First version of full ELF linking support (generate objects, static
300 executable, dynamic executable, dynamic libraries). Dynamic library
301 support is not finished (need PIC support in compiler and some
302 patches in symbol exporting).
303 - First version of ELF loader for object (.o) and archive (.a) files.
304 - Support of simple GNU ld scripts (GROUP and FILE commands)
305 - Separated runtime library and bound check code from TCC (smaller
307 - fixed register reload in float compare.
308 - fixed implicit char/short to int casting.
309 - allow array type for address of ('&') operator.
310 - fixed unused || or && result.
311 - added GCC style variadic macro support.
312 - optimized bound checking code for array access.
313 - tcc includes are now in $(prefix)/lib/tcc/include.
314 - more command line options - more consistent handling of multiple
316 - added tcc man page (thanks to Cyril Bouthors).
317 - uClibc Makefile update
318 - converted documentation to texinfo format.
319 - added developper's guide in documentation.
323 - added library API for easy dynamic compilation (see libtcc.h - first
325 - fixed long long register spill bug.
326 - fixed '? :' register spill bug.
330 - added floating point constant propagation (fixes negative floating
331 point constants bug).
335 - uClibc patches (submitted by Alfonso Martone).
336 - error reporting fix
337 - added CONFIG_TCC_BCHECK to get smaller code if needed.
341 - windows port (currently cannot use -g, -b and dll functions).
342 - faster and simpler I/O handling.
343 - '-D' option works in all cases.
344 - preprocessor fixes (#elif and empty macro args)
345 - floating point fixes
346 - first code for CIL generation (does not work yet)
350 - better and smaller code generator.
351 - full ISOC99 64 bit 'long long' support.
352 - full 32 bit 'float', 64 bit 'double' and 96 bit 'long double' support.
354 - added assembly sections support.
355 - even faster startup time by mmaping sections instead of mallocing them.
356 - added GNUC __attribute__ keyword support (currently supports
357 'section' and 'aligned' attributes).
358 - added ELF file output (only usable for debugging now)
359 - added debug symbol generation (STAB format).
360 - added integrated runtime error analysis ('-g' option: print clear
361 run time error messages instead of "Segmentation fault").
362 - added first version of tiny memory and bound checker ('-b' option).
366 - even faster parsing.
367 - various syntax parsing fixes.
368 - fixed external relocation handling for variables or functions pointers.
369 - better function pointers type handling.
370 - can compile multiple files (-i option).
371 - ANSI C bit fields are supported.
372 - beginning of float/double/long double support.
373 - beginning of long long support.
377 - full ISOC99 initializers handling.
379 - structures handle in assignments and as function param or return value.
380 - wide chars and strings.