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