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