This website requires JavaScript.
a4e630c7d9
Install libtcc.h when invoking make install
Thomas Preud'homme
2013-01-14 18:16:17 +01:00
8c56b0cf90
Revert "Added what I call virtual io to tinycc this way we can make a monolitic executable or library that contains all needed to compile programs, truly tinycc portable."
Thomas Preud'homme
2013-01-14 17:34:07 +01:00
60a3ff5f2c
Revert "pe: fix tcc not linking to user32 and gdi32"
Thomas Preud'homme
2013-01-14 17:21:06 +01:00
5e7954b408
Stop setting -Wno-unused-result switch in Makefile
Thomas Preud'homme
2013-01-13 23:34:46 +01:00
ea583f7b8a
Fix C99ism in vswap()
Thomas Preud'homme
2013-01-13 23:31:02 +01:00
59e18aee0e
Added what I call virtual io to tinycc this way we can make a monolitic executable or library that contains all needed to compile programs, truly tinycc portable. Tested under linux exec the "mk-it" shell script and you'll end up with a portable tinycc executable that doesn't depend on anything else.
mingodad
2013-01-11 00:04:38 +00:00
0a8c7d143e
Fix "Optimize cstr_reset() to only reset string to empty"
grischka
2013-01-06 17:21:33 +01:00
2358b378b3
tccpp: alternative fix for #include_next infinite loop bug
grischka
2013-01-06 17:20:44 +01:00
e92dbe4686
Stop returning 0 in cmp_comparison_test
Thomas Preud'homme
2013-01-06 12:26:53 +01:00
eb028a8f42
Honor CC when testing for -Wno-unused-result
Thomas Preud'homme
2013-01-06 12:20:23 +01:00
fc574f1498
win32: malloc.h: fix win32 tcc-tcc complication by correcting _STATIC_ASSERT, ideas from mingw-w64 changeset 4293 stdarg.h, stddef.h: _mingw.h needs them
Roy
2012-12-31 08:59:50 +08:00
63193d1794
Optimize vswap()
Kirill Smelkov
2012-12-21 13:55:01 +04:00
8eb92e6052
Optimize cstr_reset() to only reset string to empty, not call free() and later malloc()
Kirill Smelkov
2012-12-21 12:21:59 +04:00
e79281f58e
build: fix out-of-tree install
Akim Demaille
2012-12-21 14:23:28 +01:00
7667a8887a
build: fix out-of-tree build
Akim Demaille
2012-12-21 14:17:23 +01:00
8adfb4a419
build: simplify the makefiles
Akim Demaille
2012-12-21 14:17:16 +01:00
017bbbfee1
configure: support absolete out-of-tree builds
Akim Demaille
2012-12-21 13:55:26 +01:00
d7264e0218
configure: style changes
Akim Demaille
2012-12-21 13:49:15 +01:00
ba49862de6
configure: prefer here-documents
Akim Demaille
2012-12-21 13:47:00 +01:00
9c9ca2032b
configure: style changes
Akim Demaille
2012-12-21 13:41:43 +01:00
5ebc6a964d
Makefile: revamp "tar" target
grischka
2012-12-20 21:29:57 +01:00
b174399340
win32: build-tcc.bat: get rid of hardcoded VERSION string
grischka
2012-12-20 21:20:54 +01:00
3f09b90d21
build: fix VPATH builds
Akim Demaille
2012-12-14 17:18:03 +01:00
d815896d4c
bcheck: there is no unistd.h in win32.
Roy
2012-12-10 09:51:49 +08:00
a55ecf6d2c
Repair bounds-checking more, this time tcc -b -run tcc.c -run tcc.c -run tcctest.c works
Kirill Smelkov
2012-12-09 19:51:20 +04:00
031ff872be
tests: Add tests for compile/run tcc.c with tcc -b then compile tcc.c again, then run tcctest.c
Kirill Smelkov
2012-12-09 19:43:40 +04:00
dbeb4faf21
lib/bcheck: Fix code typo in __bound_delete_region()
Kirill Smelkov
2012-12-09 19:30:28 +04:00
efd9d92b7c
lib/bcheck: Don't assume heap goes right after bss
Kirill Smelkov
2012-12-09 18:48:48 +04:00
43a11a7ed1
Make tcc work after self-compiling with bounds-check enabled
Kirill Smelkov
2012-12-01 01:00:23 +04:00
c4a18f47a2
Detect ARM CPU version in configure
Thomas Preud'homme
2012-12-04 11:17:51 +01:00
8d90205fd9
Fix OABI calling convention
Thomas Preud'homme
2012-11-28 22:13:02 +01:00
05b02a5581
arm-gen.c: Invalid operator test always false
Thomas Preud'homme
2012-11-23 23:45:30 +01:00
168aed4984
tests: btest should only run on targets supporting bcheck
Kirill Smelkov
2012-11-21 09:47:23 +04:00
4744269494
Update .gitignore
Kirill Smelkov
2012-11-21 08:33:26 +04:00
6eec931038
Only reference vfpr when available
Thomas Preud'homme
2012-11-21 12:21:51 +01:00
15a315f4a5
Define TCC_ARM_EABI if using hardfloat ABI
Thomas Preud'homme
2012-11-19 12:04:25 +01:00
e2212738d4
Generate PLT thumb stub only when necessary
Thomas Preud'homme
2012-11-04 00:40:05 +01:00
ab24aaeca3
i386: We can change 'lea 0(%ebp),r' to 'mov %ebp,r'
Kirill Smelkov
2012-11-16 00:04:56 +04:00
b2a02961b4
Add support for __builtin_frame_address(level)
Kirill Smelkov
2012-11-15 03:31:49 +04:00
e79c3533ec
-Wno-unused-result now added only on gcc >= 4.4
Milutin Jovanović
2012-11-14 17:45:15 -05:00
40a54c4399
Repair bounds-checking runtime
Kirill Smelkov
2012-11-14 10:50:34 +04:00
5d648485bd
Now btest pass!
Kirill Smelkov
2012-11-13 22:23:01 +04:00
cffb7af9f9
lib/bcheck: Prevent __bound_local_new / __bound_local_delete from being miscompiled
Kirill Smelkov
2012-11-13 13:14:26 +04:00
646b51833f
lib/bcheck: Prevent libc_malloc/libc_free etc from being miscompiled
Kirill Smelkov
2012-11-13 00:34:16 +04:00
1af3bca4ea
Revert "Generate PLT thumb stub only when necessary"
Thomas Preud'homme
2012-11-12 23:14:21 +01:00
3c986eeae3
Add armv6l to ARM supported processors
Thomas Preud'homme
2012-11-11 20:01:01 +01:00
14c99236da
Call to veneers in ARM mode
Thomas Preud'homme
2012-11-09 10:59:06 +01:00
061b5799cc
Allow source fortification
Thomas Preud'homme
2012-11-07 21:13:14 +01:00
891dfcdf3f
Generate PLT thumb stub only when necessary
Thomas Preud'homme
2012-11-04 00:40:05 +01:00
e07802e39d
Support R_ARM_THM_JUMP24 relocation to plt
Thomas Preud'homme
2012-10-28 19:38:38 +01:00
b0f08ace94
Create a clean target for tests2/Makefile
Thomas Preud'homme
2012-11-07 14:54:43 +01:00
a7f010ee8a
Honour *FLAGS everywhere
Thomas Preud'homme
2012-10-22 11:11:42 +02:00
5eb64357b1
forbid invalid comparison of struct
Hitoshi Mitake
2012-11-05 12:26:26 +09:00
943574aba5
pe: fix tcc not linking to user32 and gdi32
Roy Tam
2012-11-02 16:59:21 +08:00
034dce4f04
Enable arm hardfloat calling convention
Thomas Preud'homme
2012-10-28 18:24:27 +01:00
fad68c9163
Add support for R_ARM_THM_{JUMP24,CALL} relocs
Thomas Preud'homme
2012-10-07 17:48:46 +02:00
508df168f4
Fix commit 85f6fad3a6
Thomas Preud'homme
2012-10-25 20:14:55 +02:00
cf95ac399c
Error out in case of variable name clash
Thomas Preud'homme
2012-10-25 19:40:04 +02:00
85f6fad3a6
Forbid VLA as static variables
Thomas Preud'homme
2012-10-25 18:07:13 +02:00
9966fd4eae
Only use blx if available
Thomas Preud'homme
2012-10-16 00:31:56 +02:00
c6630ef92a
Fix R_ARM_CALL when target fonction is Thumb
Thomas Preud'homme
2012-10-10 00:09:42 +02:00
2fe7fd9e87
Support for R_ARM_[THM_]MOV{W,T}_ABS[_NC} relocs
Thomas Preud'homme
2012-10-07 17:48:46 +02:00
3d409b0889
fix #include_next infinite loop bug, see http://savannah.nongnu.org/bugs/?31357
Sergey Vinokurov
2012-09-20 21:58:13 +03:00
ca38792df1
tccrun: another incompatible change to the tcc_relocate API
grischka
2012-09-01 11:33:34 +02:00
56e23984b9
Disable callsave_test for arm
Thomas Preud'homme
2012-07-30 22:51:32 +08:00
c9a2fbaad1
Add multiarch directory for arm hardfloat variant
Thomas Preud'homme
2012-07-27 17:19:39 +08:00
d1694f7d7e
get_reg(): try to free r2 for an SValue first
Thomas Preud'homme
2012-07-11 23:39:05 +02:00
ed9c6b132a
Fix R_ARM_REL32 relocation
Thomas Preud'homme
2012-06-12 17:57:31 +02:00
d27a0b3548
Incorrect shift result type on unsigned short first argument.
Vincent Lefevre
2012-07-06 14:22:37 +02:00
09b98a42a3
Tests on left-shift type.
Vincent Lefevre
2012-07-06 13:26:43 +02:00
d54e24cc0e
tests: Minor adjustments selecting which tests are run on each platform.
Milutin Jovanović
2012-06-27 13:04:27 -04:00
240064c03b
Incorrect shift result type with 64-bit ABI
Vincent Lefevre
2012-06-27 13:31:44 +02:00
42c1b6ba38
tests: Added numerous tests.
Milutin Jovanović
2012-06-18 13:27:32 -04:00
b0ebcfa7ba
Detect multiarch on Kfreebsd and Hurd
Thomas Preud'homme
2012-06-13 18:28:24 +02:00
2e7a1af5d5
Evaluate configure arguments
Thomas Preud'homme
2012-06-12 20:48:01 +02:00
ad5f3758c3
Revert "Make ex1.c and ex4.c be executable on any systems"
grischka
2012-06-12 15:45:13 +02:00
27d38bf23f
tcc.c: fix argv index for parse_args
grischka
2012-05-13 10:21:39 +02:00
32cd070c96
osx: Removed some optimizations for x86 builds as they were causing seg faults.
Milutin Jovanović
2012-06-10 20:58:48 -04:00
a42b029101
x86-64: Fix call saved register restore
Michael Matz
2012-06-10 09:01:13 +02:00
9a81dcab0a
tccelf.c: Add R_ARM_REL32 relocation
Thomas Preud'homme
2012-06-05 17:02:41 +02:00
7f6095bfec
Add support for arm hardfloat calling convention
Thomas Preud'homme
2011-12-10 07:22:09 +01:00
bfb00494eb
Fix removal of vnrott
Thomas Preud'homme
2012-03-14 15:39:16 +01:00
731e07f175
Only warn for unknown options in configure script
Thomas Preud'homme
2012-05-28 21:16:39 +02:00
b56edc7b90
Several multiarch/biarch fixes
Thomas Preud'homme
2012-05-23 00:14:15 +02:00
a2c71af1ea
Fix CONFIG_LDDIR usage
Thomas Preud'homme
2012-05-22 23:44:03 +02:00
2daae0dc99
x86_64: Fix compares with NaNs.
Michael Matz
2012-05-13 02:21:51 +02:00
0394caf784
Emit spaces for -MD
Michael Matz
2012-05-13 02:03:47 +02:00
9ca9c82ff8
Fix comparing comparisons
Michael Matz
2012-04-16 02:52:15 +02:00
718fd591fa
Make sizeof() be of type size_t
Michael Matz
2012-04-16 01:13:25 +02:00
b068e29df7
x86_64: Implement GET_CALLER_FP
Michael Matz
2012-04-16 00:39:24 +02:00
4c0d70ab07
Fix parsing function macro invocations
Michael Matz
2012-04-16 00:21:40 +02:00
15f4ac2b1a
Fix detection of labels with a typedef name
Michael Matz
2012-04-15 22:17:51 +02:00
1d0a5c2515
x86_64: Fix segfault for global data
Michael Matz
2012-04-15 19:29:45 +02:00
86ac6b9bee
x86_64: Fix indirection in struct paramaters
Michael Matz
2012-04-15 05:12:43 +02:00
5c0a2366a3
Fix bitfield loads into char/short.
Michael Matz
2012-04-15 01:06:46 +02:00
6471ec0a2b
Fix conversion in a?0:ptr.
Michael Matz
2012-04-14 23:50:21 +02:00
f98c2306a0
libtcc: tcc_get_symbol uses the TCCState parameter
grischka
2012-04-18 18:48:26 +02:00
32a411914b
support "x86_64-linux-gnu" subdirs with lib & include
grischka
2012-04-18 18:44:39 +02:00
f1b5c2ef4f
tcc_realloc: auto "memory full" error
grischka
2012-04-18 18:43:55 +02:00
3c59f84240
tcc.h: unify multiple #ifdef CONFIG_TCC_BACKTRACE
grischka
2012-04-18 18:43:29 +02:00