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