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