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