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