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