12265da6cd
Runtime lib functions
...
Yesterday I felt the urge to change a few things in TinyCC.
This is the first and biggest change of all of them.
- use __aeabi_*divmod functions in ARM EABI to make binaries depend
solely on standardized library functions
- refactor ARM floating point <-> integer conversion a bit
- rename long long->float and shift library functions to correspond to
the names used by GCC
- compile more tokens conditionally to reduce the size of TinyCC
The intention is primarily to allow users of the ARM target to use
libgcc (which is usually available as a shared library) instead of
libtcc1 (which can't be compiled for ARM due to lack of an inline
assembler).
Changing the EABI target to use the divmod functions in theory allows
to use it without libtcc1 on any (not necessarily GCC based) ARM EABI
system.
Daniel
2008-09-12 22:22:36 +02:00
2c657f6608
Set VT_LVAL_xxx flags for function arguments in gfunc_prolog (Daniel Glöckner)
2008-09-12 02:36:32 +02:00
8f7e3f325d
Patch for DESTDIR installation (Adam Sampson)
2008-09-12 02:36:26 +02:00
2c6cd08bcc
fix isidnum_table for CH_EOF (-1)
2008-09-12 02:36:05 +02:00
1300cec38c
free_section bugfix
2008-09-12 02:36:01 +02:00
f9bf48d643
release loaded dlls cleanly (Sam K)
2008-05-05 22:40:49 +00:00
96bd8f2b25
enable pe-output from libtcc (Shmuel Zeigerman)
2008-05-05 22:39:43 +00:00
f2698687fb
fix options in C scripts after -run
2008-04-27 18:50:35 +00:00
5247bbc2f0
fix stabstr with linked objects
2008-04-27 18:49:31 +00:00
0d598aca08
fix bogus relocations with TCC_OUTPUT_DLL
2008-04-27 18:48:19 +00:00
23594b6980
enable multiple states and fix minor memory leaks
2008-04-27 18:47:35 +00:00
f22e961f80
update manual, changelog
2008-03-31 19:50:58 +00:00
a327c7a552
added verbosity levels (-vv -vvv)
2008-03-31 19:49:14 +00:00
4d9aaacc85
Accept standard input as an inputstream (Hanzac Chen)
2008-03-31 18:42:56 +00:00
cd24bd05b4
get rid of a warning and fix .bat
2008-03-25 21:05:48 +00:00
9bcc0b970b
Add -soname linker option (Marc Andre Tanner)
2008-03-25 21:04:47 +00:00
88b3cb570e
Comply to c89 compilers other than gcc (Hanzac Chen)
2008-03-25 20:58:37 +00:00
6ed868c51c
Enable -B option for library path on win32
2008-03-08 20:00:56 +00:00
e2c89576c7
Fix 'tcc -static' with recent glibc
2008-03-08 19:58:57 +00:00
c6537d11cb
Get rid of one warning
2008-03-08 19:57:26 +00:00
2eaa1104f7
Checkin tiny_libmaker (ar replacement) by Timovj Lahde
2008-03-08 19:55:47 +00:00
265dddbecf
Udated and cleaned up TODO.
2008-01-16 22:33:56 +00:00
3667408a57
Just warn about unknown directives, define __STDC_VERSION__=199901L
2008-01-16 20:16:35 +00:00
5342b32eef
Switch to newer tccpe.c (includes support for resources)
2007-12-19 17:36:42 +00:00
adb1456472
Handle backslashes within #include, #error, #warning
2007-12-17 19:35:15 +00:00
6c96c41ee4
Import changesets (part 4) 428,457,460,467: defines for openbsd etc.
2007-12-16 18:24:44 +00:00
f466577673
Disable singnedness warnings with newer gcc.
2007-12-13 19:17:45 +00:00
34140dd627
Use _WIN32 for a windows hosted tcc and define it for the PE target.
2007-12-13 19:07:19 +00:00
b0d40c12da
tiny_impdef.c - converted to LF line-endings (and slight cleanup)
2007-12-09 18:55:18 +00:00
f99d3de221
Import 409,410: ARM EABI by Daniel Glckner
2007-12-04 20:38:09 +00:00
2de1b2d14c
Some in-between fixes (See Changelog for details).
2007-11-25 22:14:35 +00:00
2bcb964694
Fixed:
...
- Hanging tcc -E
- Crashes witn global 'int g_i = 1LL;'
- include & lib search paths on win32
Added quick build batch file for mingw
Reverted case label optimization
(See Changelog for details).
2007-11-25 22:13:08 +00:00
3e8b9e6d10
New files: alloca86.S alloca86-bt.S
2007-11-23 00:03:03 +00:00
d778bde7f9
Import more changesets from Rob Landley's fork (part 2)
2007-11-21 17:16:31 +00:00
54bf8c0556
Import some changesets from Rob Landley's fork (part 1)
2007-11-14 17:34:30 +00:00
2bcc187b1b
Fix 'invalid relocation entry' problem on ubuntu - from Bernhard Fischer
2007-10-30 15:13:21 +00:00
d13aa5426a
typos
2006-10-28 19:50:24 +00:00
7097268ac5
fixed help
2006-10-28 19:46:55 +00:00
84f4e99635
added va_copy()
2006-10-28 19:45:50 +00:00
8b0c4c6582
update
2006-10-28 14:47:46 +00:00
fb2c34f8cd
fixed sign extension in some type conversions (Dave Dodge)
2006-10-28 14:47:39 +00:00
65b974e396
conversion test
2006-10-28 14:47:14 +00:00
365d0ad545
multiple typedef test
2006-10-28 14:28:33 +00:00
52b7254b9c
fixed multiple typedef specifiers handling
2006-10-28 14:28:02 +00:00
0bea5c7f21
workaround for function pointers in conditional expressions (Dave Dodge)
2006-10-28 14:15:37 +00:00
24a19cc37e
discard type qualifiers when comparing function parameters (Dave Dodge)
2006-10-28 14:13:28 +00:00
38d2e8b9d8
Bug fix: A long long value used as a test expression ignores the upper 32 bits at runtime (Dave Dodge)
2006-10-28 14:10:07 +00:00
3b8cd565be
fixed multiple concatenation of PPNUM tokens (initial patch by Dave Dodge)
2006-10-28 14:05:19 +00:00
200b58dad8
initial implementation of -E option
2006-10-16 19:44:00 +00:00
6ca0299e5b
allow (base,index) as alias to (base,index,1)
2006-02-20 21:16:10 +00:00