Changelog 17 KB

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