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