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