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