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