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