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