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