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