Romain Francoise
6655e06ec8
Error out on bad char array initialization
...
Error out with an explicit message when trying to initialize a
character array with something that's not a literal (optionally
enclosed in braces) as per C99 6.7.8:14; thanks to Antti-Juhani
Kaijanaho <ajk@debian.org> who did all the work.
2010-04-15 19:04:25 +02:00
grischka
d2cf970a41
tccelf: fix warning
2010-04-13 18:30:01 +02:00
grischka
e6f43dd0c6
win32: sys/timeb.h use _ftime instead of _ftime32
2010-04-12 20:56:13 +02:00
Detlef Riekenberg
a3b932b3f9
tccgen: Fix broken use of ATTR_MODE
...
Sorry for that.
--
By by ... Detlef
2010-04-06 22:53:16 +02:00
Detlef Riekenberg
264a103610
tccgen: Detect (but ignore) function redirection
...
tcc is now able to parse <stdio.h> from gcc, when
__GNUC__ is also defined
--
By by ... Detlef
2010-04-06 00:33:15 +02:00
Detlef Riekenberg
34dabe496f
libtcc: Detect (but ignore) -init and -fini for -Wl
...
--
By by ... Detlef
2010-04-05 22:56:33 +02:00
Detlef Riekenberg
87574de8ed
libtcc: Support -soname for the linker
...
--
By by ... Detlef
2010-04-05 21:37:54 +02:00
Detlef Riekenberg
78e83d8761
libtcc: Allow multiple options for -Wl separated with ','
...
I moved the code to libtcc to prepare for a later tiny_ld
--
By by ... Detlef
2010-04-05 21:21:58 +02:00
Detlef Riekenberg
a135dd50c6
tccasm: Detect (but ignore) .ident directive
...
tcc is now able to compile many asm files generated by gcc
--
By by ... Detlef
2010-04-05 12:45:52 +02:00
Detlef Riekenberg
558258a301
tccasm: Detect (but ignore) .size directive
...
--
By by ... Detlef
2010-04-05 12:43:51 +02:00
Detlef Riekenberg
6825c5db72
tccasm: Support .type directive (only name,@function)
...
--
By by ... Detlef
2010-04-05 12:31:45 +02:00
Detlef Riekenberg
f740485a5a
tccpp: Allow local labels to start with a dot
...
--
By by ... Detlef
2010-04-05 12:28:27 +02:00
Detlef Riekenberg
9ff7a0bc98
tccasm: Detect (but ignore) the .file directive
...
Some patches, to allow tcc to compile asm sources generated by gcc
and help tcc with the autoconf stuff used in Wine
( http://source.winehq.org/git/wine.git/ )
--
By by ... Detlef
2010-04-05 12:19:49 +02:00
Timo VJ Lähde
197a6acb30
Avoid a crash with weak symbols for "make test"
...
Patch from the mailing list by Timo VJ Lähde
--
By by ... Detlef
2010-04-05 01:08:49 +02:00
U-UNIT1\dennis
d3c432244c
generate inc and dec for smaller code
2010-04-03 21:20:34 +03:00
unknown
27bcc8f583
tinylibmaker: On error situation tempfile was not removed
2010-04-03 11:31:38 +03:00
Detlef Riekenberg
95bc36a149
tccpp: Add missing bracket in an error message
2010-03-31 00:42:39 +02:00
Daniel Glöckner
4d05a6319d
Catch array[index] with unknown sizeof(*array)
...
We could support this for index == 0, but GCC doesn't bother, so why should we?
2010-03-15 22:51:19 +01:00
Manuel Simoni
95b9a477b6
weak function symbols
2010-02-27 17:37:59 +01:00
Ali Gholami Rudi
d63ec6f20d
fill got table for static linking
2010-02-05 08:25:48 +03:30
Alexandre Becoulet
b9aeac0a64
Fixed bug which prevent tcc preprocessor to ignore line number directives
2010-02-01 18:08:51 +01:00
Nikos Mavrogiannopoulos
253bad7993
Added patch to detect and use the paths for 64bit libraries as
...
used by CentOS (affects X86_64 only).
2010-01-28 08:27:38 +01:00
Detlef Riekenberg
900871ca8d
Dump the current token in skip(), when it's not the expected token
2010-01-27 00:02:33 +01:00
Detlef Riekenberg
62ba135228
Add support for --help
2010-01-26 22:58:48 +01:00
Detlef Riekenberg
a975008ae7
Add support for the __mode__ attribute
...
--
By by ... Detlef
2010-01-26 22:56:22 +01:00
Detlef Riekenberg
2650584ac4
Recognize -Wl,-Bsymbolic
...
Without -Bsymbolic, a symbol/function in a *.so can be overridden
by a symbol/function in the main module.
That is the default search order, but not supported by tcc.
With -Bsymbolic, the linker tries to resolve a symbol/function in
the current module first.
The loader in tcc implements this search order.
We do not distinguish -Bsymbolic and -Bsymbolic-function
--
By by ... Detlef
2010-01-26 22:55:14 +01:00
Detlef Riekenberg
5caf6235cf
Makefile: Delete tcc-doc.html during 'make distclean'
2010-01-26 22:53:52 +01:00
grischka
3aa26a794e
win32: adjust for mingw32 winapi packages
...
Note: the files in tcc/win32/include/winapi are now from the
mingw-w64 project, however with this fix using mingw32 winapi
should still work.
2010-01-26 22:18:03 +01:00
grischka
a40814cc9d
tccpp: signal missing #endif error
2010-01-14 21:00:05 +01:00
grischka
4e5170d4a5
tccpp: convert TOK_GET macro into function
2010-01-14 20:59:44 +01:00
grischka
280e20b1d3
tccpp: warn about #define redefinition
2010-01-14 20:59:44 +01:00
grischka
e20bf69ac5
win64: defined size_t and ptrdiff_t to unsigned long long
2010-01-14 20:59:43 +01:00
grischka
b0abcfde9d
win32: cleanup include
2010-01-14 20:59:43 +01:00
grischka
5299142286
x86-64: use uplong for symbol values
2010-01-14 20:59:42 +01:00
grischka
2341ee5142
tccpe: improve dllimport/export and use for tcc_add_symbol
2010-01-14 20:59:42 +01:00
grischka
bdb9387a74
win32: readme: add libtcc_test example
2010-01-14 20:59:41 +01:00
grischka
903b6001e7
update Makefiles
2009-12-20 20:34:35 +01:00
grischka
0de95730ad
build from multiple objects: fix other targets
2009-12-20 20:33:41 +01:00
grischka
b54862406e
x86-64: fix gtst, back to only 5 regs for now
2009-12-20 20:33:21 +01:00
grischka
070b86a870
x86-64: use r8/r9 as generic integer registers
2009-12-20 02:19:51 +01:00
grischka
0e5c0ee045
x86-64: use r8,r9 as load/store registers
2009-12-20 01:54:39 +01:00
grischka
cda8c41ef3
win32: add size_t to _mingw.h
2009-12-20 01:54:38 +01:00
grischka
4a01eb09d8
use vpushv in some places
2009-12-20 01:54:38 +01:00
grischka
50b040ef83
win64: add tiny unwind data for setjmp/longjmp
...
This enables native unwind semantics with longjmp on
win64 by putting an entry into the .pdata section for
each compiled fuction.
Also, the function now use a fixed stack and store arguments
into X(%rsp) rather than using push.
2009-12-20 01:54:37 +01:00
grischka
88a3ccab9f
allow tcc be build from separate objects
...
If you want that, run: make NOTALLINONE=1
2009-12-20 01:53:49 +01:00
grischka
7fa712e00c
win32: enable bounds checker & exception handler
...
exception handler borrowed from k1w1. Thanks.
2009-12-19 22:22:43 +01:00
grischka
8bbde91f62
tcc_relocate: revert to 0.9.24 behavior
2009-12-19 22:16:23 +01:00
grischka
3db219477a
tccrun: new file
...
factor out -run support
2009-12-19 22:16:22 +01:00
grischka
41e112360f
fix uninitialized warnings with 'type.ref'
2009-12-19 22:16:22 +01:00
grischka
3020a4765d
tccpe: with -l try also with "lib" prefix
...
-lfoo searches: foo.def, libfoo.def, foo.dll, libfoo.dll
2009-12-19 22:16:21 +01:00