aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* fix build with msvcgrischka2009-05-112-17/+9
|
* fix unused/uninitalized warningsgrischka2009-05-112-0/+4
|
* fix warnings with tcc_add/get_symbolgrischka2009-05-112-2/+2
|
* enable making tcc using libtccgrischka2009-05-113-29/+32
|
* move static prototypes to libtcc.cgrischka2009-05-114-154/+180
|
* move some global variables into TCCStategrischka2009-05-119-86/+91
|
* make tcc from tcc.c and libtcc from libtcc.cgrischka2009-05-054-10/+2
|
* move minor things from libtcc.c to other filesgrischka2009-05-054-307/+314
|
* move global variables to libtcc.cgrischka2009-05-052-109/+111
|
* move libtcc interface and helper functions to libtcc.cgrischka2009-05-052-2281/+2283
|
* move parser/generator to tccgen.cgrischka2009-05-052-5102/+5103
|
* move preprocessor to tccpp.cgrischka2009-05-052-2642/+2644
|
* move declarations to tcc.hgrischka2009-05-052-935/+938
|
* new files: tcc.h libtcc.c tccpp.c tccgen.cgrischka2009-05-055-1/+82
|
* cleanup makefilesgrischka2009-04-192-72/+82
|
* enable backtrace only when it's supportedgrischka2009-04-181-8/+15
|
* Return value of exit should be void.Shinichiro Hamaji2009-04-181-1/+1
|
* Fixes for tests/Makefile.Shinichiro Hamaji2009-04-181-3/+3
| | | | | - On x86-64, we need $(TARGET) in RUN_TCC. - s/RuN_TCC/RUN_TCC/
* fix makefiles etc for subdirsgrischka2009-04-1813-272/+313
|
* new subdirs: include, lib, testsgrischka2009-04-1816-6/+0
|
* win32: readme.txt->tcc-win32.txt, update tcc-docgrischka2009-04-185-136/+177
|
* mute strange difference in tcctestgrischka2009-04-181-0/+3
|
* libtcc: add support to be build as DLLgrischka2009-04-181-20/+26
|
* libtcc: new api tcc_set_lib_pathgrischka2009-04-184-12/+26
|
* tcc_relocate: return error and remove unused codegrischka2009-04-181-18/+5
|
* Call relocate_sym() before we return the offset, so user doesn't need to ↵Shinichiro Hamaji2009-04-181-5/+5
| | | | check the return value twice.
* tcc -E: fix pasting empty tokensgrischka2009-04-181-23/+13
| | | | | | | | | | | /* test case */ #define t(x,y,z) x ## y ## z int j[] = { t(1,2,3), t(,4,5), t(6,,7), t(8,9,), t(10,,), t(,11,), t(,,12), t(,,) }; tcc -E: xpected result: int j[] = { 123, 45, 67, 89, 10, 11, 12, };
* tcc -E: preserve spaces, alternative solutiongrischka2009-04-181-43/+73
| | | | | | | | | | | | /* test case */ #define STR(x) #x #define MKSTR(x) STR(x) MKSTR(-A-) MKSTR(+ B +) tcc -E: expected result: "-A-" "+ B +"
* CONFIG_TCC_STATIC: add dummy for dlclosegrischka2009-04-181-0/+4
|
* avoid warning uninitializedgrischka2009-04-181-1/+1
|
* x86-64: Fix tcc -run. We need extra memory for PLT and GOT.Shinichiro Hamaji2009-04-182-12/+27
| | | | Size of the extra buffer is too large for now.
* get rid of 8 bytes memory leakgrischka2009-04-181-0/+1
|
* change tcc_add/get_symbol to use void*grischka2009-04-184-22/+19
|
* alternative int tcc_relocate(TCCState *s1, void *ptr);grischka2009-04-183-74/+80
|
* TOK_builtin_malloc: alternative solutiongrischka2009-04-182-14/+8
|
* x86-64: Define make variable TARGET so that test2 and test3 use correct flag.Shinichiro Hamaji2009-04-181-7/+5
|
* x86-64: Remove code for debug print.Shinichiro Hamaji2009-04-181-16/+0
| | | | Now, we concat buffers before relocation. So this only happens when users try creating >2GB binary.
* x86-64: Fix cast from integers to pointers.Shinichiro Hamaji2009-04-182-3/+13
| | | | | | | | Now, ./tcc -run -DTCC_TARGET_X86_64 tcc.c -run tcctest.c works!
* Work around for the issue TCC doesn't handle -2147483648 properly.Shinichiro Hamaji2009-04-181-1/+1
| | | | | | | | | TCC produces code which is incompatible with GCC for the following code: printf("%lld\n", (long long)-2147483648); printf("%lld\n", (long long)-2147483649); For now, just avoid using the corner value.
* Fixes for issues I've just found/introduced to x86 TCC.Shinichiro Hamaji2009-04-182-3/+6
| | | | | - Cast from pointer to long long makes TCC output an error. Use cast to int before we apply shift operation for a pointer value. - Removed test cases for casts from pointer to char/short because they produce warning.
* x86-64: Cast from 64bit pointer to long long must not generate movslq.Shinichiro Hamaji2009-04-182-1/+11
|
* win32: accept uppercase filename suffixesgrischka2009-04-181-3/+5
|
* x86-64: There can be valid addresses which is greater than 0xc0000000.Shinichiro Hamaji2009-04-181-1/+1
|
* Fix for x86-64: The first and second arguments of memcpy must be pointers.Shinichiro Hamaji2009-04-181-2/+2
|
* Fix silly typos in the previous change.Shinichiro Hamaji2009-04-181-2/+2
|
* x86-64: Make ABI for long double compatible with GCC.Shinichiro Hamaji2009-04-182-3/+31
| | | | | | - Now we use x87's stack top the long double return values. - Add rc_fret and reg_fret, wrapper functions for RC_FRET and REG_FRET. - Add a test case to check if strto* works OK.
* Improve the test coverage: !val for float/double/long long f.Shinichiro Hamaji2009-04-182-1/+4
|
* x86-64: Combine buffers of sections before we call tcc_run().Shinichiro Hamaji2009-04-183-47/+56
| | | | | | | - Now we can run tcc -run tcc.c successfully, though there are some bugs. - Remove jmp_table and got_table and use text_section for got and plt entries. - Combine buffers in tcc_relocate(). - Use R_X86_64_64 instead of R_X86_64_32 for R_DATA_32 (now the name R_DATA_32 is inappropriate...).
* Generate PIC code so that we can create shared objects properly.Shinichiro Hamaji2009-04-183-34/+128
| | | | | | - Add got_table in TCCState. This approach is naive and the distance between executable code and GOT can be longer than 32bit. - Handle R_X86_64_GOTPCREL properly. We use got_table for TCC_OUTPUT_MEMORY case for now. - Fix load() and store() so that they access global variables via GOT.
* check for absolute include pathsgrischka2009-04-181-6/+16
| | | | Suggested by Sandor Zsolt <narkoskatona@yahoo.com>