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