VLA code: minor fix
[tinycc.git] / Changelog
Commit [+]AuthorDateLineData
e946c358
TP
Thomas Preud'homme2013-02-18 11:41:34 +01001Version 0.9.27:
2
c634c797
TP
Thomas Preud'homme2014-01-04 20:33:21 +08003Licensing:
4
5- TinyCC partly relicensed to MIT license
6
7User interface:
8
9- define __STDC_HOSTED__ (Michael Matz, Urs Janssen)
10- added support for CPATH, C_INCLUDE_PATH and LD_LIBRARY_PATH (Andrew Aladjev
11and Urs Janssen)
12- added option -norunsrc to control argv[0] with tcc -run (James Lyon)
fdc31e15
TP
Thomas Preud'homme2014-01-04 20:33:21 +080013- improve --with-libgcc configure help (grischka)
14- improve error message when memory is full (grischka)
15- improve wording about compiler switches in documentation (Thomas Preud'homme)
16- use GNU triplet prefix for cross compiler names (Thomas Preud'homme)
17- ignore unknown linker optimization and as-needed option (Austin English)
c634c797
TP
Thomas Preud'homme2014-01-04 20:33:21 +080018
19Features:
20
21- added ABI tests with native compiler using libtcc (James Lyon)
22- added CMake build system with support for cross-compilation (James Lyon)
23- improved variable length array support (James Lyon)
24- add the possibility to use noname functions by ordinal (YX Hao)
25- add a install-strip target to install tcc (Thomas Preud'homme)
b6247d1f Thomas Preud'homme2014-01-07 15:23:54 +080026- add runtime selection of float ABI on ARM (Thomas Preud'homme)
01cf514e Thomas Preud'homme2014-01-04 20:33:21 +080027- add shared lib support on x86-64 (Michael Matz)
c634c797 Thomas Preud'homme2014-01-04 20:33:21 +080028
e946c358 Thomas Preud'homme2013-02-18 11:41:34 +010029Platforms:
c634c797
TP
Thomas Preud'homme2014-01-04 20:33:21 +080030- support Debian GNU/kfreeBSD 64bit userspace (Thomas Preud'homme)
31- fix GNU/Hurd interpreter path (Thomas Preud'homme)
32- fix configure script for FreeBSD host (Thomas Preud'homme)
33- make tcc -run work reliably on ARM by flushing caches (Thomas Preud'homme)
34- many x86-64 ABI fixes incl. XMM register passing (James Lyon)
35- improve compatibility with mingw's long double (James Lyon)
36- avoid .stabstr section name to be truncated on win32 (Roy)
37- add support for load/store of _Bool value (Thomas Preud'homme)
38- detect instruction with incorrect operands on x86-64 (Thomas Preud'homme)
39- improved relocations on ARM (Thomas Preud'homme)
40- add va_* macro implementation for ARM (Thomas Preud'homme)
41- define __ARM_EABI__, __ARMEL__ and __ARM_PCS_VFP (Thomas Preud'homme)
42- provide a runtime library for ARM (Thomas Preud'homme)
fdc31e15 Thomas Preud'homme2014-01-04 20:33:21 +080043- vastly improved support for ARM hard float calling convention
aa812e87 Edmund Grimley Evans2015-03-08 22:07:50 +000044(Thomas Preud'homme, Daniel Glöckner)
fdc31e15
TP
Thomas Preud'homme2014-01-04 20:33:21 +080045- tcc can uses libtcc1 on ARM (Thomas Preud'homme)
46- use __fixdfdi for all float to integer conversion (grischka)
47- simplify startup code for unix platforms (grischka)
48- improve ELF generated on ARM (Thomas Preud'homme)
49- add support for thumb to ARM relocation (Thomas Preud'homme)
50- fix globbing to match MSVC on Windows (Thomas Preud'homme)
51- deprecate FPA and OABI support for ARM (Thomas Preud'homme)
52- warn about softfloat not being supported on ARM (Thomas Preud'homme)
c634c797
TP
Thomas Preud'homme2014-01-04 20:33:21 +080053
54Bug fixes:
fdc31e15
TP
Thomas Preud'homme2014-01-04 20:33:21 +080055- many code clean up (Urs Janssen, grischka)
56- fixes of other's patches (grischka, Ramsay Jones, Michael Matz)
c634c797
TP
Thomas Preud'homme2014-01-04 20:33:21 +080057- fix documentation about __TINYC__ (Urs Janssen)
58- improve build of documentation (Urs Janssen)
59- improve build instructions (Jov)
60- switch from texi2html to makeinfo --html to build tcc-doc.html (James Lyon)
61- improve out of tree build (James Lyon)
62- improved passing and returning of struct (James Lyon)
63- fix CMake build on i386 and x86-64 (James Lyon)
64- fix i386 calling convention issue (James Lyon)
65- fix error in Windows build of tests (James Lyon)
66- fix x86-64 long double passing (James Lyon)
67- fix crash with undefined struct (grischka)
68- normalize slashes on win32 to always use backslashes (grischka)
69- use runtime function for float to int conversion on i386 (grischka)
70- improved documentation for include and lib lookup on win32 (grischka)
71- detect redefinition of function (Thomas Preud'homme)
72- detect the use of array of functions (Thomas Preud'homme)
73- detect use of enumerator with wrong enumeration (Thomas Preud'homme)
74- detect redefinition of enumerator or enumeration (Thomas Preud'homme)
75- set the user-defined library search paths first (Vittorio Giovara)
76- detect usage of incomplete types inside struct/union (Amine Najahi)
77- various macro bug fixes (Joseph Poirier)
78- avoid wrong trigger of assert on x86-64 platform (Thomas Preud'homme)
79- fix NaN comparison (Thomas Preud'homme)
80- use libtcc for static linking with runtime library (Thomas Preud'homme)
81- fix negation of 0.0 and -0.0 values (Thomas Preud'homme)
fdc31e15
TP
Thomas Preud'homme2014-01-04 20:33:21 +080082- fix use of long long as if condition (Thomas Preud'homme)
83- disable bound check if libgcc is used (Thomas Preud'homme)
84- error out when casting to void (grischka)
85- remove circular dependency in Makefile (grischka)
86- stop preventing gcc to do strict aliasing (grischka)
87- fix Windows build of tcc (grischka)
88- build runtime library for arm cross compiler (Thomas Preud'homme)
89- fix installation of arm cross-compiler (Thomas Preud'homme)
90- add basic test for cross-compiler (Thomas Preud'homme)
91- fix failure when generating PE on x86-64 (Archidemon)
92- fix floating point unary minus and plus (Michael Matz)
93- add more tests for signed zero float (Michael Matz)
94- fix precision of double on x86-64 (Vincent Lefevre)
95- fix bound checking of argv with -run switch (Kirill Smelkov)
96- work around a wine cmd bug when building tcc on Windows (Austin English)
97- reenable some bound check tests (grischka)
98- boundtest.c lookup honors VPATH (grischka)
99- diff compared to CC in test[123]b? are now errors (grischka)
100- fix test3 on Windows (grischka)
101- prevent gcc from building (non functional) libtcc.a (grischka)
102- fix warning related to PE file generation on x86-64 (grischka)
103- stop mixing ordinary and implicit rule in Makefile (Iavael)
5cbe03b9 Thomas Preud'homme2014-02-01 12:29:51 +0800104- fix integer to double conversion on ARM (Thomas Preud'homme)
fdc31e15
TP
Thomas Preud'homme2014-01-04 20:33:21 +0800105- fix parameter passing of structure < 4 bytes on ARM (Thomas Preud'homme)
106- disable builtin_frame_address test on ARM due to gcc bug (Thomas Preud'homme)
107- fix initialization of struct on ARM (Thomas Preud'homme)
17314a1f Thomas Preud'homme2014-02-04 20:54:28 +0800108- fix parameter passing of (unsigned) long long bitfield (Thomas Preud'homme)
fdc31e15 Thomas Preud'homme2014-01-04 20:33:21 +0800109- improve float to integer tests (Thomas Preud'homme)
e571850d Thomas Preud'homme2014-02-02 17:15:19 +0800110- fix relocation of Thumb branch to ARM function (Thomas Preud'homme)
b0b5165d Thomas Preud'homme2014-02-06 20:51:47 +0800111- fix char wrong compatibility with [un]signed char (Thomas Preud'homme)
fdc31e15
TP
Thomas Preud'homme2014-01-04 20:33:21 +0800112- choose the code to compile based on target in libtcc1 (Thomas Preud'homme)
113- fix various clang warnings (Thomas Preud'homme)
114- don't hardcode tcc in Makefile for tests (Thomas Preud'homme)
115- fix relocation of __bound_init bound checking code (Thomas Preud'homme)
116- accept only one basic type for a given variable (Thomas Preud'homme)
117- fix error when using va_* with tcc using libgcc (Thomas Preud'homme)
118- support GOT32 and PLT32 reloc on the same symbol (Thomas Preud'homme)
119- fix memory leak due to symbol attributes (mingodad)
120- partially fix bound checking of argv and arge (Thomas Preud'homme)
121- fix possible dereference when getting name of symbol (grischka)
aa812e87 Edmund Grimley Evans2015-03-08 22:07:50 +0000122- fix va_list type definition on x86-64 (Daniel Glöckner)
01cf514e Thomas Preud'homme2014-01-04 20:33:21 +0800123- reduce number of scan-build false positive (mingodad)
e946c358 Thomas Preud'homme2013-02-18 11:41:34 +0100124
913cd627 grischka2013-01-30 18:50:02 +0100125version 0.9.26:
0c928da9 Kirill Smelkov2010-06-20 20:08:12 +0400126
913cd627 grischka2013-01-30 18:50:02 +0100127User interface:
128- -MD/-MF (automatically generate dependencies for make)
129- -pthread option (same as -D_REENTRANT -lpthread) (Henry Kroll III)
130- -m32/-m64 to re-exec cross compiler (Henry Kroll III)
05108a3b grischka2013-02-12 19:13:28 +0100131- -Wl, Mimic all GNU -option forms supported by ld (Kirill Smelkov)
132- new LIBTCCAPI tcc_set_options() (grischka)
913cd627 grischka2013-01-30 18:50:02 +0100133
134Platforms:
135- Many improvements for x86-64 target (Shinichiro Hamaji, Michael Matz, grischka)
136- x86-64 assembler (Frederic Feret)
aa812e87 Edmund Grimley Evans2015-03-08 22:07:50 +0000137- Many improvements for ARM target (Daniel Glöckner, Thomas Preud'homme)
913cd627 grischka2013-01-30 18:50:02 +0100138- Support WinCE PE ARM (Timo VJ Lahde)
7f6095bf Thomas Preud'homme2011-12-10 07:22:09 +0100139- Support ARM hardfloat calling convention (Thomas Preud'homme)
913cd627 grischka2013-01-30 18:50:02 +0100140- Support SELinux (Security-Enhanced Linux) (Henry Kroll III)
141- Support Debian GNU/kFreeBSD kernels (Pierre Chifflier)
142- Support GNU/Hurd kernels (Thomas Preud'homme)
143- Support OSX (tcc -run only) (Milutin Jovanovic)
144- Support multiarch configuration (Thomas Preud'homme)
5fa135f9 Thomas Preud'homme2013-01-30 17:13:40 +0100145- Support out-of-tree build (Akim Demaille)
0c928da9 Kirill Smelkov2010-06-20 20:08:12 +0400146
913cd627 grischka2013-01-30 18:50:02 +0100147Features:
148- C99 variable length arrays (Thomas Preud'homme & Joe Soroka)
149- Asm labels for variables and functions (Thomas Preud'homme)
150- STT_GNU_IFUNC (Indirect functions as externals) (Thomas Preud'homme)
151- More tests (tests2) (Milutin Jovanovic)
152
bf8d8f5f grischka2009-05-11 19:01:26 +0200153version 0.9.25:
7f51aa13 grischka2008-09-15 00:07:58 +0200154
bf8d8f5f grischka2009-05-11 19:01:26 +0200155- first support for x86-64 target (Shinichiro Hamaji)
aa812e87 Edmund Grimley Evans2015-03-08 22:07:50 +0000156- support µClibc
68310299 grischka2009-05-16 22:29:40 +0200157- split tcc.c into tcc.h libtcc.c tccpp.c tccgen.c tcc.c
bf8d8f5f grischka2009-05-11 19:01:26 +0200158- improved preprocess output with linenumbers and spaces preserved
68310299 grischka2009-05-16 22:29:40 +0200159- tcc_relocate now copies code into user buffer
bf8d8f5f grischka2009-05-11 19:01:26 +0200160- fix bitfields with non-int types and in unions
7f51aa13 grischka2008-09-15 00:07:58 +0200161- improve ARM cross-compiling (Daniel Glöckner)
162- link stabstr sections from multiple objects
163- better (still limited) support for multiple TCCStates
164
6d66b5a9 bellard2005-09-04 09:18:26 +0000165version 0.9.24:
166
f22e961f grischka2008-03-31 19:50:58 +0000167- added verbosity levels -v, -vv, -vvv
168- Accept standard input as an inputstream (Hanzac Chen)
169- Support c89 compilers other than gcc (Hanzac Chen)
170- -soname linker option (Marc Andre Tanner)
3667408a grischka2008-01-16 20:16:35 +0000171- Just warn about unknown directives, ignore quotes in #error/#warning
172- Define __STDC_VERSION__=199901L (477)
5342b32e grischka2007-12-19 17:36:42 +0000173- Switch to newer tccpe.c (includes support for resources)
3667408a grischka2008-01-16 20:16:35 +0000174- Handle backslashes within #include/#error/#warning
6c96c41e grischka2007-12-16 18:24:44 +0000175- Import changesets (part 4) 428,457,460,467: defines for openbsd etc.
6c96c41e grischka2007-12-16 18:24:44 +0000176- Use _WIN32 for a windows hosted tcc and define it for the PE target,
177 otherwise define __unix / __linux (Detlef Riekenberg)
7f51aa13 grischka2008-09-15 00:07:58 +0200178- Import changesets (part 3) 409,410: ARM EABI by Daniel Glöckner
2bcb9646 grischka2007-11-25 22:13:08 +0000179- Some in-between fixes:
180 TCC -E no longer hangs with macro calls involving newlines.
181 (next_nomacro1 now advances the read-pointer with TOK_LINEFEED)
182 Global cast (int g_i = 1LL;) no longer crashes tcc.
183 (nocode_wanted is initially 1, and only 0 for gen_function)
184 On win32 now tcc.exe finds 'include' & 'lib' even if itself is in 'bin'.
185 (new function w32_tcc_lib_path removes 'bin' if detected)
186 Added quick build batch file for mingw (win32/build-tcc.bat)
187 Last added case label optimization (455) produced wrong code. Reverted.
188
d778bde7 grischka2007-11-21 17:16:31 +0000189- Import more changesets from Rob Landley's fork (part 2):
190 487: Handle long long constants in gen_opic() (Rob Landley)
191 484: Handle parentheses within __attribute__((...)) (Rob Landley)
192 480: Remove a goto in decl_initializer_alloc (Rob Landley)
193 475: Fix dereferences in inline assembly output (Joshua Phillips)
194 474: Cast ptrs to ints of different sizes correctly (Joshua Phillips)
195 473: Fix size of structs with empty array member (Joshua Phillips)
196 470: No warning for && and || with mixed pointers/integers (Rob Landley)
197 469: Fix symbol visibility problems in the linker (Vincent Pit)
198 468: Allow && and || involving pointer arguments (Rob Landley)
199 455: Optimize case labels with no code in between (Zdenek Pavlas)
200 450: Implement alloca for x86 (grischka)
201 415: Parse unicode escape sequences (Axel Liljencrantz)
202 407: Add a simple va_copy() in stdarg.h (Hasso Tepper)
203 400: Allow typedef names as symbols (Dave Dodge)
204
54bf8c05 grischka2007-11-14 17:34:30 +0000205- Import some changesets from Rob Landley's fork (part 1):
206 462: Use LGPL with bcheck.c and il-gen.c
207 458: Fix global compound literals (in unary: case '&':) (Andrew Johnson)
208 456: Use return code from tcc_output_file in main() (Michael Somos)
209 442: Fix indirections with function pointers (***fn)() (grischka)
210 441: Fix LL left shift in libtcc1.c:__shldi3 (grischka)
211 440: Pass structures and function ptrs through ?: (grischka)
212 439: Keep rvalue in bit assignment (bit2 = bit1 = x) (grischka)
213 438: Degrade nonportable pointer assignment to warning (grischka)
214 437: Call 'saveregs()' before jumping with logical and/or/not (grischka)
215 435: Put local static variables into global memory (grischka)
216 432/434: Cast double and ptr to bool (grischka)
217 420: Zero pad x87 tenbyte long doubles (Felix Nawothnig)
218 417: Make 'sizeof' unsigned (Rob Landley)
7f51aa13 grischka2008-09-15 00:07:58 +0200219 397: Fix save_reg for longlongs (Daniel Glöckner)
54bf8c05 grischka2007-11-14 17:34:30 +0000220 396: Fix "invalid relocation entry" problem on ubuntu - (Bernhard Fischer)
2bcc187b grischka2007-10-30 15:13:21 +0000221
6d66b5a9 bellard2005-09-04 09:18:26 +0000222- ignore AS_NEEDED ld command
223- mark executable sections as executable when running in memory
224- added support for win32 wchar_t (Filip Navara)
225- segment override prefix support (Filip Navara)
226- normalized slashes in paths (Filip Navara)
227- windows style fastcall (Filip Navara)
228- support for empty input register section in asm (Filip Navara)
229- anonymous union/struct support (Filip Navara)
230- fixed parsing of function parameters
8b0c4c65 bellard2006-10-28 14:47:46 +0000231- workaround for function pointers in conditional expressions (Dave Dodge)
232- initial '-E' option support to use the C preprocessor alone
233- discard type qualifiers when comparing function parameters (Dave Dodge)
234- Bug fix: A long long value used as a test expression ignores the
235 upper 32 bits at runtime (Dave Dodge)
236- fixed multiple concatenation of PPNUM tokens (initial patch by Dave Dodge)
237- fixed multiple typedef specifiers handling
238- fixed sign extension in some type conversions (Dave Dodge)
6d66b5a9 bellard2005-09-04 09:18:26 +0000239
ef156f0c bellard2005-04-13 21:36:43 +0000240version 0.9.23:
241
242- initial PE executable format for windows version (grischka)
243- '#pragma pack' support (grischka)
244- '#include_next' support (Bernhard Fischer)
245- ignore '-pipe' option
0c7f0ed3 bellard2005-06-15 22:32:10 +0000246- added -f[no-]leading-underscore
16559cd6 bellard2005-06-17 22:07:03 +0000247- preprocessor function macro parsing fix (grischka)
ef156f0c bellard2005-04-13 21:36:43 +0000248
1c191907 bellard2004-11-07 15:51:57 +0000249version 0.9.22:
250
251- simple memory optimisations: kernel compilation is 30% faster
252- linker symbol definitions fixes
253- gcc 3.4 fixes
254- fixed value stack full error
255- 'packed' attribute support for variables and structure fields
256- ignore 'const' and 'volatile' in function prototypes
257- allow '_Bool' in bit fields
258
7a5123a7 bellard2003-10-14 22:22:54 +0000259version 0.9.21:
260
261- ARM target support (Daniel Glöckner)
c1265d16 bellard2004-10-02 13:50:47 +0000262- added '-funsigned-char, '-fsigned-char' and
79c72b24 bellard2004-10-04 21:57:35 +0000263 '-Wimplicit-function-declaration'
264- fixed assignment of const struct in struct
c1265d16 bellard2004-10-02 13:50:47 +0000265- line comment fix (reported by Bertram Felgenhauer)
ec7d3632 bellard2004-10-05 22:33:55 +0000266- initial TMS320C67xx target support (TK)
13affef3 bellard2004-10-07 21:11:43 +0000267- win32 configure
807321ef bellard2004-10-18 00:20:41 +0000268- regparm() attribute
269- many built-in assembler fixes
270- added '.org', '.fill' and '.previous' assembler directives
271- '-fno-common' option
272- '-Ttext' linker option
273- section alignment fixes
274- bit fields fixes
bb07bf31 bellard2004-10-23 22:52:58 +0000275- do not generate code for unused inline functions
276- '-oformat' linker option.
277- added 'binary' output format.
7a5123a7 bellard2003-10-14 22:22:54 +0000278
b7f12dfb bellard2003-10-04 21:29:04 +0000279version 0.9.20:
280
281- added '-w' option
282- added '.gnu.linkonce' ELF sections support
283- fixed libc linking when running in memory (avoid 'stat' function
284 errors).
285- extended '-run' option to be able to give several arguments to a C
286 script.
287
edbfa771 bellard2003-04-28 22:08:59 +0000288version 0.9.19:
289
290- "alacarte" linking (Dave Long)
291- simpler function call
292- more strict type checks
293- added 'const' and 'volatile' support and associated warnings
294- added -Werror, -Wunsupported, -Wwrite-strings, -Wall.
295- added __builtin_types_compatible_p() and __builtin_constant_p()
296- chars support in assembler (Dave Long)
297- .string, .globl, .section, .text, .data and .bss asm directive
298 support (Dave Long)
8f5e44a4 bellard2003-05-24 14:11:17 +0000299- man page generated from tcc-doc.texi
300- fixed macro argument substitution
301- fixed zero argument macro parsing
302- changed license to LGPL
4e6edcdc bellard2003-05-24 16:12:58 +0000303- added -rdynamic option support
edbfa771 bellard2003-04-28 22:08:59 +0000304
0d6f8021 bellard2003-04-14 22:23:55 +0000305version 0.9.18:
306
307- header fix (time.h)
308- fixed inline asm without operand case
309- fixed 'default:' or 'case x:' with '}' after (incorrect C construct accepted
310 by gcc)
311- added 'A' inline asm constraint.
312
34b7d96f bellard2003-04-13 18:08:17 +0000313version 0.9.17:
314
315- PLT generation fix
316- tcc doc fixes (Peter Lund)
317- struct parse fix (signaled by Pedro A. Aranda Gutierrez)
318- better _Bool lvalue support (signaled by Alex Measday)
319- function parameters must be converted to pointers (signaled by Neil Brown)
320- sanitized string and character constant parsing
321- fixed comment parse (signaled by Damian M Gryski)
f46a02a3 bellard2003-04-13 18:32:37 +0000322- fixed macro function bug (signaled by Philippe Ribet)
dd56ab8c bellard2003-04-13 19:50:35 +0000323- added configure (initial patch by Mitchell N Charity)
3bbcd307 bellard2003-04-13 21:56:00 +0000324- added '-run' and '-v' options (initial patch by vlindos)
325- added real date report in __DATE__ and __TIME__ macros
34b7d96f bellard2003-04-13 18:08:17 +0000326
327version 0.9.16:
328
329- added assembler language support
330- added GCC inline asm() support
331- fixed multiple variable definitions : uninitialized variables are
332 created as COMMON symbols.
333- optimized macro processing
334- added GCC statement expressions support
335- added GCC local labels support
336- fixed array declaration in old style function parameters
337- support casts in static structure initializations
338- added various __xxx[__] keywords for GCC compatibility
339- ignore __extension__ GCC in an expression or in a type (still not perfect)
340- added '? :' GCC extension support
341
342version 0.9.15:
343
344- compilation fixes for glibc 2.2, gcc 2.95.3 and gcc 3.2.
345- FreeBSD compile fixes. Makefile patches still missing (Carl Drougge).
346- fixed file type guessing if '.' is in the path.
347- fixed tcc_compile_string()
348- add a dummy page in ELF files to fix RX/RW accesses (pageexec at
349 freemail dot hu).
350
351version 0.9.14:
352
353- added #warning. error message if invalid preprocessing directive.
354- added CType structure to ease typing (faster parse).
355- suppressed secondary hash tables (faster parse).
356- rewrote parser by optimizing common cases (faster parse).
357- fixed signed long long comparisons.
358- fixed 'int a(), b();' declaration case.
359- fixed structure init without '{}'.
360- correct alignment support in structures.
361- empty structures support.
362- gcc testsuite now supported.
363- output only warning if implicit integer/pointer conversions.
364- added static bitfield init.
365
366version 0.9.13:
367
368- correct preprocessing token pasting (## operator) in all cases (added
369 preprocessing number token).
370- fixed long long register spill.
371- fixed signed long long '>>'.
372- removed memory leaks.
373- better error handling : processing can continue on link errors. A
374 custom callback can be added to display error messages. Most
375 errors do not call exit() now.
376- ignore -O, -W, -m and -f options
377- added old style function declarations
378- added GCC __alignof__ support.
379- added GCC typeof support.
380- added GCC computed gotos support.
381- added stack backtrace in runtime error message. Improved runtime
382 error position display.
383
384version 0.9.12:
385
386- more fixes for || and && handling.
387- improved '? :' type handling.
388- fixed bound checking generation with structures
389- force '#endif' to be in same file as matching '#if'
390- #include file optimization with '#ifndef #endif' construct detection
391- macro handling optimization
392- added tcc_relocate() and tcc_get_symbol() in libtcc.
393
394version 0.9.11:
395
396- stdarg.h fix for double type (thanks to Philippe Ribet).
397- correct white space characters and added MSDOS newline support.
398- fixed invalid implicit function call type declaration.
399- special macros such as __LINE__ are defined if tested with defined().
400- fixed '!' operator with relocated address.
401- added symbol + offset relocation (fixes some static variable initializers)
402- '-l' option can be specified anywhere. '-c' option yields default
403 output name. added '-r' option for relocatable output.
404- fixed '\nnn' octal parsing.
405- fixed local extern variables declarations.
406
407version 0.9.10:
408
409- fixed lvalue type when saved in local stack.
410- fixed '#include' syntax when using macros.
411- fixed '#line' bug.
412- removed size limit on strings. Unified string constants handling
413 with variable declarations.
414- added correct support for '\xX' in wchar_t strings.
415- added support for bound checking in generated executables
416- fixed -I include order.
417- fixed incorrect function displayed in runtime error.
418
419version 0.9.9:
420
421- fixed preprocessor expression parsing for #if/#elif.
422- relocated debug info (.stab section).
423- relocated bounds info (.bounds section).
424- fixed cast to char of char constants ('\377' is -1 instead of 255)
425- fixed implicit cast for unary plus.
426- strings and '__func__' have now 'char[]' type instead of 'char *'
427 (fixes sizeof() return value).
428- added __start_xxx and __stop_xxx symbols in linker.
429- better DLL creation support (option -shared begins to work).
430- ELF sections and hash tables are resized dynamically.
431- executables and DLLs are stripped by default.
432
433version 0.9.8:
434
435- First version of full ELF linking support (generate objects, static
436 executable, dynamic executable, dynamic libraries). Dynamic library
437 support is not finished (need PIC support in compiler and some
438 patches in symbol exporting).
439- First version of ELF loader for object (.o) and archive (.a) files.
440- Support of simple GNU ld scripts (GROUP and FILE commands)
441- Separated runtime library and bound check code from TCC (smaller
442 compiler core).
443- fixed register reload in float compare.
444- fixed implicit char/short to int casting.
445- allow array type for address of ('&') operator.
446- fixed unused || or && result.
447- added GCC style variadic macro support.
448- optimized bound checking code for array access.
449- tcc includes are now in $(prefix)/lib/tcc/include.
450- more command line options - more consistent handling of multiple
451 input files.
452- added tcc man page (thanks to Cyril Bouthors).
453- uClibc Makefile update
454- converted documentation to texinfo format.
455- added developper's guide in documentation.
456
457version 0.9.7:
458
459- added library API for easy dynamic compilation (see libtcc.h - first
460 draft).
461- fixed long long register spill bug.
462- fixed '? :' register spill bug.
463
464version 0.9.6:
465
466- added floating point constant propagation (fixes negative floating
467 point constants bug).
468
469version 0.9.5:
470
471 - uClibc patches (submitted by Alfonso Martone).
472 - error reporting fix
473 - added CONFIG_TCC_BCHECK to get smaller code if needed.
474
475version 0.9.4:
476
477 - windows port (currently cannot use -g, -b and dll functions).
478 - faster and simpler I/O handling.
479 - '-D' option works in all cases.
480 - preprocessor fixes (#elif and empty macro args)
481 - floating point fixes
482 - first code for CIL generation (does not work yet)
483
484version 0.9.3:
485
486 - better and smaller code generator.
487 - full ISOC99 64 bit 'long long' support.
488 - full 32 bit 'float', 64 bit 'double' and 96 bit 'long double' support.
489 - added '-U' option.
490 - added assembly sections support.
491 - even faster startup time by mmaping sections instead of mallocing them.
492 - added GNUC __attribute__ keyword support (currently supports
493 'section' and 'aligned' attributes).
494 - added ELF file output (only usable for debugging now)
495 - added debug symbol generation (STAB format).
496 - added integrated runtime error analysis ('-g' option: print clear
497 run time error messages instead of "Segmentation fault").
498 - added first version of tiny memory and bound checker ('-b' option).
499
500version 0.9.2:
501
502 - even faster parsing.
503 - various syntax parsing fixes.
504 - fixed external relocation handling for variables or functions pointers.
505 - better function pointers type handling.
506 - can compile multiple files (-i option).
507 - ANSI C bit fields are supported.
508 - beginning of float/double/long double support.
509 - beginning of long long support.
510
511version 0.9.1:
512
513 - full ISOC99 initializers handling.
514 - compound literals.
515 - structures handle in assignments and as function param or return value.
516 - wide chars and strings.
517 - macro bug fix
518
519version 0.9:
520 - initial version.