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