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