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