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