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