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