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