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